Troubleshooting
General Troubleshooting Tips
Section titled “General Troubleshooting Tips”- For API errors, clicking the “API Error Information” button in the widget will usually show some helpful information as to whether the issue is reaching the service host, an authentication issue, etc.
- Check
config/logs/daemun.logor the container logs, for exampledocker logs daemun. This may provide some insight into the reason for an error. - Check the browser error console, this can also sometimes provide useful information.
- Consider setting the
ENVvariableLOG_LEVELtodebug.
Service Widget Errors
Section titled “Service Widget Errors”All service widgets work essentially the same, that is, Daemun makes a proxied call to an API made available by that service. The majority of the time widgets don’t work it is a configuration issue. Of course, sometimes things do break. Some basic steps to check:
-
URLs should not end with a / or other API path. Each widget will handle the path on its own.
-
All services with a widget require a unique name as well as a unique group (and all subgroups) name.
-
Verify the Daemun installation can connect to the IP address or host you are using for the widget
url. This is most simply achieved by pinging the server from the Daemun container, e.g.:docker exec daemun ping SERVICEIPORDOMAINIf your Daemun container cannot reach the service then you need to figure out why, for example in Docker this can mean putting the two containers on the same network, checking firewall issues, etc.
-
If you have verified that Daemun can in fact reach the service then you can also check the API output using e.g.
curl, which is often helpful if you do need to file a bug report. Again, depending on your networking setup this may need to be run from inside the container as IP / hostname resolution can differ inside vs outside.Note
curlis not installed in the base image by default but can be added inside the container withapk add curl.The exact API endpoints and authentication vary of course, but in many cases instructions can be found by searching the web or by looking at the Daemun source code (e.g.
src/widgets/{widget}/widget.ts).It is out of the scope of this to go into full detail about how to , but an example for PiHole would be:
curl -L -k http://PIHOLEIPORHOST/admin/api.phpOr for AdGuard:
curl -L -k -u 'username:password' http://ADGUARDIPORHOST/control/statsOr for Portainer:
curl -L -k -H 'X-Api-Key:YOURKEY' 'https://PORTAINERIPORHOST:PORT/api/endpoints/2/docker/containers/json'Sonarr:
curl -L -k 'http://SONARRIPORHOST:PORT/api/v3/queue?apikey=YOURAPIKEY'This will return some data which may reveal an issue causing a true bug in the service widget.
Missing custom icons
Section titled “Missing custom icons”If, after correctly adding and mapping your custom icons via the Icons instructions, you are still unable to see your icons please try recreating your container.