Troubleshooting
If something isn't working right, start here. These are the most common issues and their fixes. For all of these, running deja logs is a great first step — it shows you exactly what the server is doing (or what went wrong).
Server Not Connecting to CommandStation
Symptoms: deja status shows no serial port, or the Throttle app says "Disconnected."
- Check the USB cable — make sure it's plugged in at both ends. Try a different USB port on the computer.
- Run
deja status— look under Connections for a serial port like/dev/ttyUSB0or/dev/tty.usbmodem*. If none is listed, the server can't see the CommandStation. - Restart the server —
deja restartwill re-scan for serial ports and try to connect again. - Try unplugging and replugging the USB cable, then restart the server.
Serial Port Permission Denied (Linux / Raspberry Pi)
Symptoms: The server starts but can't open the serial port. Logs show a "permission denied" error.
Run this command once to add your user to the dialout group:
sudo usermod -a -G dialout $USER
Then log out and log back in (or reboot). This only needs to be done once — after that, the server will always have access.
Server Won't Start
Symptoms: deja start shows an error or the server exits immediately.
- Check Node.js version: Run
node --version— you need v20 or later. If you need to upgrade, visit nodejs.org. - Check the logs: Run
deja logsto see what error the server reported. - Reinstall: Run the installer again — it downloads a fresh copy and reconfigures:
curl -fsSL https://install.dejajs.com | bash
Firebase Connection Errors
Symptoms: Logs show Firebase or Firestore errors. The Throttle and Cloud apps can't see the server.
Your Firebase credentials may be missing or incorrect. They live in ~/.deja/.env.
- Open the Cloud app and go to Settings → View Local Environment Configuration.
- Compare those values with what's in your
~/.deja/.envfile. - If they don't match, update the
.envfile and restart:deja restart.
Or re-run the installer to reconfigure automatically.
Subscription Issues
"Subscription inactive"
Your subscription may have expired or been canceled. Visit dejajs.com to check your account status and renew.
The server allows a 48-hour grace period when it can't reach the internet — if your subscription was active within the last 48 hours, the server will continue running using its cached status.
"Cannot verify subscription"
The server needs to verify your subscription online periodically. If it can't reach Firebase and the cached verification is older than 48 hours, it will stop.
Connect the computer to the internet and restart the server: deja restart.
deja Command Not Found
If the terminal says deja: command not found after installation:
- Open a new terminal window — the installer added
dejato your PATH, but the current terminal may not have picked it up yet. - Or reload your shell config:
source ~/.zshrc # if using zsh source ~/.bashrc # if using bash - Or run it directly:
~/.deja/bin/deja status
Still Stuck?
If none of the above fixes your issue:
- Run
deja logs -n 100and look for error messages near the bottom. - Run
deja statusand note any warnings. - Check the DEJA.js community for help from other users.