iGotify-Notification-Assistent icon indicating copy to clipboard operation
iGotify-Notification-Assistent copied to clipboard

[BUG] Unraid error:

Open ne0ark opened this issue 1 year ago • 15 comments

image

Please take a look above error. I can see notification in app but i am not getting any push notifications.

ne0ark avatar Sep 07 '24 15:09 ne0ark

Yeah he is trying to connect to the websocket of gotify how did you configure the app?

androidseb25 avatar Sep 07 '24 15:09 androidseb25

Or did you have a deleted the required client token?

This error has several causes.

androidseb25 avatar Sep 07 '24 15:09 androidseb25

Database is created: True
Gotify Url list is: empty
Gotify Client list is: empty
SecNtfy Token list is: empty
If one or more lists are empty please check the environment variable! GOTIFY_SERVERS or GOTIFY_CLIENTS or NTFY_TOKENS
If all lists are empty do nothing, you will configure the gotify server over the iGotify app.
Gotify - Url: https://push.<domain>:443
Is Gotify - Url available: yes
SecNtfy Server - Url: https://api.secntfy.app
Is SecNtfy Server - Url available: yes
Client - Token: CdeMTI<hidden>
Client connecting...
Done!
info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://[::]:8080
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: /app
Disconnection happened, type: Error
Webseocket Reconnection failed with Error. Try to reconnect in 10s.
Disconnection happened, type: Error
Webseocket Reconnection failed with Error. Try to reconnect in 10s.
Disconnection happened, type: Error
Webseocket Reconnection failed with Error. Try to reconnect in 10s.
Disconnection happened, type: Error
Webseocket Reconnection failed with Error. Try to reconnect in 10s.
Disconnection happened, type: Error
Webseocket Reconnection failed with Error. Try to reconnect in 10s.
Disconnection happened, type: Error

It seems like its using my external URL instead of one specified in the local docker container: 192.168.1.20

image

ne0ark avatar Sep 07 '24 16:09 ne0ark

Ok, did you specified the correct url in the app? Because the app say the container which way he use

androidseb25 avatar Sep 07 '24 16:09 androidseb25

Ok, did you specified the correct url in the app? Because the app say the container which way he use

Yes, I see the notifications in the app, not push notifications. I see version number show for both gotify and igotify when I entered it.

docker run
  -d
  --name='iGotify'
  --net='bridge'
  --pids-limit 2048
  -e TZ="America/New_York"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="UNRAID"
  -e HOST_CONTAINERNAME="iGotify"
  -e 'GOTIFY_URL'='http://192.168.1.200:8070'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8080]'
  -l net.unraid.docker.icon='https://github.com/RichKidsDev/Unraid-Templates/blob/main/iGotify/igotify-logo-small.png?raw=true'
  -p '8681:8080/tcp'
  -v '/mnt/user/appdata/igotify/api-data/':'/app/data':'rw'
  --security-opt no-new-privileges:true
  --pull always 'ghcr.io/androidseb25/igotify-notification-assist:latest'
latest: Pulling from androidseb25/igotify-notification-assist
Digest: sha256:c182373030474a924e7eba82fd08c0b2a198fab831540a623819d0c83e7980aa
Status: Image is up to date for ghcr.io/androidseb25/igotify-notification-assist:latest
edb5af3fb74fa58965c1037693862c745fa29409ad09d39540face1db0f7d56c

ne0ark avatar Sep 07 '24 16:09 ne0ark

Ok, but this environment -e 'GOTIFY_URL'='http://192.168.1.200:8070' variable didn't exist anymore

androidseb25 avatar Sep 07 '24 16:09 androidseb25

Please take a look in the readme to configure you're compose correct

androidseb25 avatar Sep 07 '24 16:09 androidseb25

The issue was with WebSockets. How do I not expose igotify in unraid?

ne0ark avatar Sep 07 '24 19:09 ne0ark

Sorry I don't know because I don't use unraid

androidseb25 avatar Sep 08 '24 10:09 androidseb25

What is the use case for:

Optional environment variables GOTIFY_URLS = the local gotify sever URL e.g.: http://gotify GOTIFY_CLIENT_TOKENS = the client token from the Gotify Client e.g.: cXXXXXXXX SECNTFY_TOKENS = the SecNtfy Token that you get from the app after configure it e.g.: NTFY-DEVICE-XXXXXX

In the IOS app, when I specify the local URL for which variable is used, GOTIFY_URLS?

ne0ark avatar Sep 08 '24 13:09 ne0ark

Hi please read following issue for this reason

https://github.com/androidseb25/iGotify-Notification-Assistent/issues/59

androidseb25 avatar Sep 08 '24 13:09 androidseb25

I updated the template in unraid.

RichKidsDev avatar Sep 14 '24 09:09 RichKidsDev

I updated the template in unraid.

The following should be the variables:

GOTIFY_URLS GOTIFY_CLIENT_TOKENS

You need these if you don't want to expose igotify on public network.

ne0ark avatar Sep 19 '24 21:09 ne0ark

I noticed that once the database has been created and you change the entries for the variables, it has no effect. Only if you delete it and create a new one.

RichKidsDev avatar Sep 20 '24 23:09 RichKidsDev

He change the entries only on restart of the container when he read the entries.

androidseb25 avatar Sep 21 '24 05:09 androidseb25

Is this error still actually?

When no this Issue will be closed on day 30.

androidseb25 avatar Oct 14 '24 16:10 androidseb25