This guide walk you though the steps required to troubleshoot LibreTime.
When facing a problem with LibreTime the first reflex is to verify whether the services are running.
In the web interface, go to Settings > Status to see the state of the services.
Or directly from a terminal:
sudo systemctl --all --plain | egrep 'libretime|nginx|php.*-fpm'
If a service isn't running, you should search for details using the tool running those services. On a common setup, you should use the systemd service status:
sudo systemctl status libretime-celery
Be sure to replace the service name with the problematic one.
The next place to search for details on potential errors are the log files.
/var/log/syslog file contains most of the system logs combined. This log file may contain information that the application logger wasn't able to log, such as early startup errors. You can follow the logs using:
sudo tail -n 100 -f "/var/log/syslog"
# Filter the logs
sudo tail -n 100 -f "/var/log/syslog" | egrep 'libretime|nginx|php.*-fpm'
On a common setup, to access LibreTime specific logs you should search for the following files:
/var/log/libretime/analyzer.logfile contains logs from the analyzer,
/var/log/libretime/api.logfile contains logs from the api,
/var/log/libretime/legacy.logfile contains logs from the legacy app,
/var/log/libretime/liquidsoap.logfile contains logs from liquidsoap,
/var/log/libretime/playout.logfile contains logs from playout.
For some LibreTime services, you can set a higher log level using the
LIBRETIME_LOG_LEVEL environment variable, or by running the service by hand and using a command line flag:
sudo -u libretime libretime-analyzer --config /etc/libretime/config.yml --log-level debug
/var/log/nginx/libretime.error.log file contains logs from the web server.