diff --git a/Troubleshooting.md b/Troubleshooting.md index 6f3315a..65cb495 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -147,4 +147,20 @@ _Solutions_: * Verify that if you manually put a file in the watch directory, the downloader processes it. * Does the black hole directory of Headphones match the watch directory of your downloader? * Does the downloader have read/write permissions on the watch directory? - * Check the watch interval settings of your downloader. \ No newline at end of file + * Check the watch interval settings of your downloader. + +## Headphones installed as daemon does not work +_Symptons_: +When I installed Headphones as a daemon, it does nothing when I start it (e.g. `service headphones start). + +Or: + +Headphones does not run at startup, even though I installed it as daemon. + +_Solutions_: +* See if it is actually running. Under Ubuntu/Debian `ps awx | grep Headphones` should list a process with it's startup arguments if it has started. +* Check the log files. +* Make sure you have the service enabled. For instance, under Ubuntu/Debian you have to mark a service to startup on boot with `sudo update-rc.d headphones defaults`. Refer to [[Install as a daemon]] for more information. +* Make sure that the daemon user has write permissions to the data folder. +* Make sure no other service is running on the configured port. Also note that ports below 1024 require root privileges. +* Debug the startup script. One way is to edit the startup script and remove the `--daemon` and `--quiet` option from the launch options and add the `--verbose` option. For instance, see [Line 112](https://github.com/rembo10/headphones/blob/master/init-scripts/init.ubuntu#L112) in the Ubuntu launch script. Now when you start the script, it should start in the foreground. Any errors will now be printed to console. \ No newline at end of file