Quick Diagnostics
Start with this checklist to identify common issues:
Common Issues
🚫 Cannot Start nJukebox Server
Symptoms: Error messages when running startup scripts, server won't start
Causes & Solutions:
- Port already in use: Another application is using port 5500 or 3001
# Find what's using the ports
netstat -ano | findstr :5500
netstat -ano | findstr :3001
# Kill the process using task manager or change the ports in config.json
- Binary not built: The Go binary has not been compiled yet
# Build the binary (Go is only needed to build)
go build -o njukebox ./cmd/njukebox
- Permission issues: Script can't access files/directories
# Run as administrator or check file permissions
🎵 No Music Shows in Library
Symptoms: Library is empty, no tracks visible, "No tracks found" message
Causes & Solutions:
- Empty music directory: No MP3 files in /music folder
- Add MP3 files to the music directory
- Supported formats: MP3, FLAC, M4A, OGG
- Database not scanned: Music database needs to be built
- Use Admin Panel → Settings → "Rescan Music"
- Wait for scan to complete (check console output)
- Database corruption: Music database is corrupted
- Delete data/music.db
- Restart server and rescan music
- File permissions: Server can't read music files
- Check folder permissions
- Ensure server has read access to music directory
🔇 No Audio Playback
Symptoms: Music appears to play but no sound, audio controls don't work
Causes & Solutions:
- Browser autoplay policy: Browser blocks autoplay
- Click anywhere on the page to enable audio
- Allow autoplay for 127.0.0.1 in browser settings
- Audio codec issues: Browser can't decode audio format
- Test with different MP3 files
- Convert problematic files to standard MP3
- CORS issues: Cross-origin restrictions blocking audio
- Ensure accessing via 127.0.0.1:5500, not file://
- Check console for CORS errors
- System audio: Computer audio is muted or low
- Check system volume
- Test audio with other applications
🔐 Cannot Access Admin Panel
Symptoms: Admin PIN doesn't work, lock icon doesn't respond
Causes & Solutions:
- Wrong PIN: Using incorrect admin PIN
- Default PIN is 1234
- The PIN is stored in the settings database and can be changed in the Admin Panel
- JavaScript errors: Browser errors preventing admin panel
- Open browser developer tools (F12)
- Check Console tab for errors
- Reload page and try again
- Session timeout: Admin session has expired
- Refresh page and log in again
- Increase sessionTimeout in config.json
🎤 Spotify Connection Issues
Symptoms: Cannot connect to Spotify, authentication fails
Causes & Solutions:
- Invalid Client ID: Spotify credentials not configured
- Check Spotify Developer Dashboard
- Verify Client ID in config.json
- Ensure redirect URI matches exactly
- Spotify Premium required: Free accounts can't use Web Playback API
- Upgrade to Spotify Premium
- Use local music only if needed
- Network connectivity: Cannot reach Spotify servers
- Check internet connection
- Verify firewall allows outbound HTTPS
Performance Issues
⏳ Slow Library Loading
Solutions:
- Large music libraries take time to scan initially
- Subsequent loads use cached data and are faster
- Consider organizing music into smaller subdirectories
- Disable auto-scan for very large libraries
💾 High Memory Usage
Solutions:
- Restart nJukebox server periodically
- Clear cover cache from admin panel
- Reduce library scan interval
- Limit playlist size in config.json
Browser-Specific Issues
Chrome/Edge Issues
- Autoplay: May require user interaction before audio plays
- File limits: Very large libraries may hit memory limits
- CORS: Strict cross-origin policies
Firefox Issues
- Audio formats: Limited codec support compared to Chrome
- Performance: May be slower with large visualizations
- Extensions: Ad blockers may interfere
Safari Issues
- Limited support: Some features may not work properly
- Audio codecs: Strict format requirements
- Web technologies: May not support latest web APIs
Network Issues
🌐 Cannot Access from Other Devices
Solutions:
- Change
host from "127.0.0.1" to "0.0.0.0" in config.json
- Configure Windows Firewall to allow ports 5500 and 3001
- Find your computer's IP address:
ipconfig
- Access from other devices using:
http://YOUR_IP:5500
🚪 Firewall Blocking Connection
Windows Firewall Configuration:
- Open Windows Defender Firewall
- Click "Allow an app or feature through Windows Defender Firewall"
- Click "Change Settings" then "Allow another app..."
- Browse to the njukebox binary or add ports 5500 and 3001
- Enable for both Private and Public networks
Database Issues
🗄️ Database Corruption
Symptoms: Server crashes, data loss, SQLite errors
Recovery Steps:
- Stop nJukebox server
- Backup current database files
- Delete corrupted .db files from /data directory
- Restart server (creates new databases)
- Rescan music library from admin panel
- Reconfigure settings as needed
Error Messages
"bind: address already in use"
Port 5500 or 3001 is being used by another application. Either close the other application or change the ports in config.json.
"go: command not found"
Go is not installed or not in PATH. Go is only needed to build the binary — a prebuilt binary runs without it.
"SQLITE_CORRUPT: database disk image is malformed"
Database is corrupted. Delete the .db files and restart to rebuild the database.
"Failed to load resource: net::ERR_CONNECTION_REFUSED"
Cannot connect to the server. Ensure nJukebox server is running and accessible.
Log Analysis
Enabling Debug Mode
Enable detailed logging to diagnose issues:
- Enable the debug toggle in the Admin Panel settings
- Open browser developer tools (F12)
- Check Console tab for detailed messages
- Monitor server terminal for backend logs
Common Log Messages
- "Music scan completed": Library scan finished successfully
- "Spotify token refreshed": Spotify authentication working
- "Database error": Database connection or query failed
- "CORS error": Cross-origin request blocked
- "Audio context suspended": Browser autoplay restriction
Getting Help
Information to Gather
When seeking help, collect this information:
- Operating system and version
- Go version (only when building from source)
- Browser and version
- nJukebox version/commit
- Complete error messages
- Console logs (browser F12)
- Server terminal output
- Configuration files (remove sensitive data)
Safe Mode Testing
Test with minimal configuration:
- Use default config.json settings
- Test with a small number of MP3 files
- Disable Spotify integration
- Test in Chrome with no extensions
- Access only via 127.0.0.1:5500
Still Need Help? If issues persist after trying these solutions, gather the diagnostic information above and consult the project documentation or community support resources.
Preventive Maintenance
Regular Tasks
- Weekly: Clear cover cache if using many tracks
- Monthly: Backup database files
- After updates: Test all functionality
- Before events: Full system test and backup
System Health Monitoring
- Monitor disk space (covers and cache can grow)
- Check memory usage during long sessions
- Verify network connectivity for Spotify features
- Test admin access periodically
Schnelldiagnose
Beginnen Sie mit dieser Checkliste, um häufige Probleme zu identifizieren:
Häufige Probleme
🚫 nJukebox-Server startet nicht
Symptome: Fehlermeldungen beim Ausführen der Startskripte, Server startet nicht
Ursachen & Lösungen:
- Port bereits belegt: Eine andere Anwendung nutzt Port 5500 oder 3001
# Finde heraus, was die Ports nutzt
netstat -ano | findstr :5500
netstat -ano | findstr :3001
# Prozess im Task-Manager beenden oder Ports in config.json ändern
- Binary nicht gebaut: Das Go-Binary wurde noch nicht kompiliert
# Binary bauen (Go wird nur zum Bauen benötigt)
go build -o njukebox ./cmd/njukebox
🎵 Keine Musik in der Bibliothek
Symptome: Die Bibliothek ist leer oder zeigt keine Tracks an
Lösungen:
- Überprüfen Sie, dass MP3-Dateien im
music/ Verzeichnis vorhanden sind
- Klicken Sie im Admin-Panel auf "Musikbibliothek neu scannen"
- Stellen Sie sicher, dass MP3-Dateien gültige ID3-Tags haben
- Prüfen Sie Dateiberechtigungen (Lesezugriff erforderlich)
🔇 Kein Ton bei der Wiedergabe
Mögliche Ursachen:
- Browser-Audio blockiert: Browser blockiert Autoplay - einmal auf der Seite klicken
- Systemlautstärke: Lautstärke am Computer zu niedrig oder stumm
- Falsches Ausgabegerät: Audio-Ausgabegerät im System prüfen
- Beschädigte Dateien: MP3-Datei könnte beschädigt sein
🟢 Spotify verbindet nicht
Checkliste:
- Spotify Premium-Konto erforderlich (kostenlose Konten funktionieren nicht)
- Client ID im Admin-Panel korrekt eingetragen
- Redirect URI in Spotify Developer Dashboard:
http://127.0.0.1:5500/spotify_login.html
- Internetverbindung aktiv
- Browser erlaubt Pop-ups für die nJukebox-Domain
- Widevine DRM im Browser aktiviert
🔒 Admin-PIN vergessen
Lösung: Die PIN wird in der Einstellungs-Datenbank gespeichert (Standard: 1234)
- nJukebox-Server stoppen
data/app.db sichern und löschen (setzt alle Einstellungen zurück, auch den Spotify-Login)
- Server neu starten
- Mit Standard-PIN 1234 anmelden und neue PIN im Admin-Panel setzen
Browser-spezifische Probleme
Chrome/Edge
- Widevine DRM: Gehe zu
chrome://settings/content/protectedContent
- Autoplay: Aktiviere unter
chrome://settings/content/sound
Firefox
- Widevine DRM: Gehe zu
about:preferences#privacy → DRM-Inhalte aktivieren
- Autoplay: about:preferences → "Autoplay" Einstellungen
Safari
- Spotify-Wiedergabe funktioniert möglicherweise nicht optimal
- Empfohlen: Chrome oder Firefox verwenden
Performance-Probleme
Langsame Oberfläche
- Große Bibliothek: Bei >10.000 Tracks kann die UI langsam werden
- Visualisierungen: Deaktivieren Sie Effekte im Admin-Panel
- Browser-Cache: Leeren Sie den Browser-Cache
- Cover-Cache: Alter Cover-Cache - im Admin-Panel löschen
Hoher Speicherverbrauch
# Datenbank-Cleanup durchführen
# Im Admin-Panel: "Datenbank bereinigen"
Datenbank-Probleme
Beschädigte Datenbank
Backup zuerst! Sichern Sie immer data/app.db und data/music.db vor Reparaturversuchen.
# Backup erstellen
xcopy data\*.db backup\ /Y
# Datenbank neu initialisieren (LÖSCHT ALLE DATEN!)
# Im Admin-Panel: "Datenbank löschen"
Bibliothek neu aufbauen
- Backup der Datenbanken erstellen
- Im Admin-Panel: "Datenbank löschen"
- nJukebox neu starten
- Automatischer Scan läuft beim Start
Netzwerk-Probleme
Kein Zugriff von anderen Geräten
Wenn Sie von anderen Computern im Netzwerk zugreifen möchten:
- In config.json:
"host": "0.0.0.0" setzen
- Server neu starten
- Windows-Firewall: Ports 5500 und 3001 freigeben
- Im Browser:
http://[SERVER-IP]:5500 öffnen
# IP-Adresse finden (Windows)
ipconfig
# IP-Adresse finden (Linux/Mac)
ifconfig
Vorbeugende Wartung
Regelmäßige Aufgaben
- Wöchentlich: Cover-Cache leeren bei vielen Tracks
- Monatlich: Datenbank-Dateien sichern
- Nach Updates: Alle Funktionen testen
- Vor Events: Vollständiger Systemtest und Backup
Systemüberwachung
- Festplattenspeicher überwachen (Cover und Cache wachsen)
- Speichernutzung bei langen Sessions prüfen
- Netzwerkverbindung für Spotify-Features verifizieren
- Admin-Zugriff regelmäßig testen