84 lines
3.7 KiB
Markdown
Raw Normal View History

2023-09-29 21:01:11 +03:00
---
title: Troubleshooting
description: Basic Troubleshooting
icon: material/message-question
2023-09-29 21:01:11 +03:00
hide:
- navigation
---
## 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/homepage.log, on docker simply e.g. `docker logs homepage`. 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 `ENV` variable `LOG_LEVEL` to `debug`.
2025-03-14 22:35:47 -07:00
- If certain widgets are failing when connecting to public APIs, consider [disabling IPv6](#disabling-ipv6).
2023-09-29 21:01:11 +03:00
## Service Widget Errors
2025-02-17 21:39:03 -08:00
All service widgets work essentially the same, that is, homepage 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:
2023-09-29 21:01:11 +03:00
2025-02-17 21:39:03 -08:00
1. URLs should not end with a / or other API path. Each widget will handle the path on its own.
2023-09-29 21:01:11 +03:00
2025-02-11 23:40:36 -08:00
2. All services with a widget require a unique name.
3. Verify the homepage 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 homepage machine, in Docker this means _from inside the container_ itself, e.g.:
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
```
docker exec homepage ping SERVICEIPORDOMAIN
```
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
If your homepage install (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.
2023-09-29 21:01:11 +03:00
2025-02-11 23:40:36 -08:00
4. If you have verified that homepage 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.
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
!!! note
2023-10-12 13:12:11 -07:00
`curl` is not installed in the base image by default but can be added inside the container with `apk add curl`.
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
The exact API endpoints and authentication vary of course, but in many cases instructions can be found by searching the web or if you feel comfortable looking at the homepage source code (e.g. `src/widgets/{widget}/widget.js`).
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
It is out of the scope of this to go into full detail about how to , but an example for PiHole would be:
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
```
curl -L -k http://PIHOLEIPORHOST/admin/api.php
```
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
Or for AdGuard:
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
```
curl -L -k -u 'username:password' http://ADGUARDIPORHOST/control/stats
```
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
Or for Portainer:
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
```
curl -L -k -H 'X-Api-Key:YOURKEY' 'https://PORTAINERIPORHOST:PORT/api/endpoints/2/docker/containers/json'
```
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
Sonarr:
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
```
curl -L -k 'http://SONARRIPORHOST:PORT/api/v3/queue?apikey=YOURAPIKEY'
```
2023-09-29 21:01:11 +03:00
2023-10-12 13:12:11 -07:00
This will return some data which may reveal an issue causing a true bug in the service widget.
2023-09-29 21:01:11 +03:00
## Missing custom icons
If, after correctly adding and mapping your custom icons via the [Icons](../configs/services.md#icons) instructions, you are still unable to see your icons please try recreating your container.
2025-03-14 22:35:47 -07:00
## Disabling IPv6
If you are having issues with certain widgets that are unable to reach public APIs (e.g. weather), in certain setups you may need to disable IPv6. You can set the environment variable `HOMEPAGE_PROXY_DISABLE_IPV6` to `true` to disable IPv6 for the homepage proxy.
Alternatively, you can use the `sysctls` option in your docker-compose file to disable IPv6 for the homepage container completely:
2025-03-14 22:35:47 -07:00
```yaml
services:
homepage:
...
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
```