ZTube / truenas-gotify-adapter

Send TrueNas alerts to Gotify
The Unlicense
11 stars 2 forks source link

Failed to send alert #2

Open imjustleaving opened 3 weeks ago

imjustleaving commented 3 weeks ago

Followed the exact steps laid out on TrueNAS-SCALE-24.04.2

got this error: Failed sending test alert!

container logs show this:


2024-08-30 15:18:27.643230-04:00======== Running on http://127.0.0.1:31662 ========
2024-08-30 15:18:27.643293-04:00(Press CTRL+C to quit)
2024-08-30 15:19:01.509381-04:00===== Alert =====
2024-08-30 15:19:01.509504-04:00TrueNAS @ TrueNAS  
2024-08-30 15:19:01.509543-04:002024-08-30T15:19:01.509543967-04:00
2024-08-30 15:19:01.509564-04:00This is a test alert
2024-08-30 15:19:01.509582-04:002024-08-30T15:19:01.509582545-04:00
2024-08-30 15:19:01.509600-04:002024-08-30T15:19:01.509600045-04:00
2024-08-30 15:19:58.457829-04:00===== Alert =====
2024-08-30 15:19:58.457885-04:00TrueNAS @ TrueNAS  
2024-08-30 15:19:58.457900-04:002024-08-30T15:19:58.457900877-04:00
2024-08-30 15:19:58.457908-04:00This is a test alert
2024-08-30 15:19:58.457914-04:002024-08-30T15:19:58.457914955-04:00
2024-08-30 15:19:58.457927-04:002024-08-30T15:19:58.457927589-04:00
2024-08-30 15:20:09.230839-04:00===== Alert =====
2024-08-30 15:20:09.230879-04:00TrueNAS @ TrueNAS  
2024-08-30 15:20:09.230885-04:002024-08-30T15:20:09.230885075-04:00
2024-08-30 15:20:09.230889-04:00This is a test alert
2024-08-30 15:20:09.230902-04:002024-08-30T15:20:09.230902197-04:00
2024-08-30 15:20:09.230908-04:002024-08-30T15:20:09.230908297-04:00
2024-08-30 15:21:27.261724-04:00===== Alert =====
2024-08-30 15:21:27.261773-04:00TrueNAS @ TrueNAS  
2024-08-30 15:21:27.261783-04:002024-08-30T15:21:27.261783507-04:00
2024-08-30 15:21:27.261789-04:00This is a test alert
2024-08-30 15:21:27.261795-04:002024-08-30T15:21:27.261795846-04:00
2024-08-30 15:21:27.261801-04:002024-08-30T15:21:27.261801388-04:00
2024-08-30 15:23:50.065857-04:00===== Alert =====
2024-08-30 15:23:50.066029-04:00TrueNAS @ TrueNAS  
2024-08-30 15:23:50.066061-04:002024-08-30T15:23:50.066061730-04:00
2024-08-30 15:23:50.066082-04:00This is a test alert
2024-08-30 15:23:50.066101-04:002024-08-30T15:23:50.066101855-04:00
2024-08-30 15:23:50.066121-04:002024-08-30T15:23:50.066121222-04:00
ZTube commented 4 hours ago

It seems like the connection truenas->adapter is working but the adapter somehow cannot reach your gotify instance. I will have to implement better error handling/debug output in order to properly help you with that. Until then double check if the URL and TOKEN are correct. If you are using a domain name for your gotify instance, maybe try replacing that with the ip address of your server (In case you don't use a reverse proxy) to rule out dns issues. I'm on TrueNAS-SCALE-24.04.2 and it works for me so it certainly is not an issue with a new truenas version.