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 3000
# Find what's using port 3000
netstat -ano | findstr :3000
# Kill the process using task manager or change port in config.json
- Missing Node.js: Node.js not installed or not in PATH
# Check Node.js installation
node --version
npm --version
- Missing dependencies: NPM packages not installed
npm install
- 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 localhost 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 localhost:3000, 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
- Check config.json for custom PIN
- 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 "localhost" to "0.0.0.0" in config.json
- Configure Windows Firewall to allow port 3000
- Find your computer's IP address:
ipconfig
- Access from other devices using:
http://YOUR_IP:3000
🚪 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 Node.js executable or add port 3000
- 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
"EADDRINUSE: address already in use"
Port 3000 is being used by another application. Either close the other application or change the port in config.json.
"Cannot find module 'express'"
Dependencies are not installed. Run npm install in the nJukebox directory.
"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:
- Set
"debug": true in config.json
- Restart nJukebox server
- 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
- Node.js and npm versions
- 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 localhost:3000
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 3000
# Finde heraus, was Port 3000 nutzt
netstat -ano | findstr :3000
# Prozess im Task-Manager beenden oder Port in config.json ändern
- Node.js fehlt: Node.js nicht installiert oder nicht im PATH
# Node.js Installation prüfen
node --version
npm --version
- Fehlende Abhängigkeiten: NPM-Pakete nicht installiert
npm install
🎵 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 in config.json korrekt eingetragen
- Redirect URI in Spotify Developer Dashboard:
http://localhost:3000/spotify_login.html
- Internetverbindung aktiv
- Browser erlaubt Pop-ups für die nJukebox-Domain
- Widevine DRM im Browser aktiviert
🔒 Admin-PIN vergessen
Lösung: PIN in config.json zurücksetzen
- nJukebox-Server stoppen
config.json öffnen
- Unter
"app" → "adminPin" auf "1234" setzen
- Server neu starten
- Mit Standard-PIN 1234 anmelden und neue PIN 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"
# Oder manuell:
npm run cleanup
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: Port 3000 freigeben
- Im Browser:
http://[SERVER-IP]:3000 ö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