iGotify-Notification-Assistent: [BUG] Unable to Reach iGotify Container Internally

Hi,

I´m having troubles with setting up igotify, gotify itself seems to work fine, also if i try to manually update notifications in the app it works. But I can internally not reach the igotify container internally via http://IP-of-Host:8681 and i get the following errors in the log of the app:

16:35:05.664 INFO Logger.init():26 - ♻️ - Initialize iGotify Logger

16:35:05.877 VERBOSE AppDelegate.application():67 - APNs token retrieved: 32 bytes

16:35:05.883 VERBOSE AppDelegate.application():70 - The token: 76545*****7066F

16:35:05.888 INFO SecNtfy.setApnsToken():182 - 76545*****7066F

16:35:40.607 INFO SecNtfy.PostDevice():213 - ♻️ - Device already added NTFY-DEVICE-TOKEN

16:35:42.250 INFO SecNtfy.PostDevice():213 - ♻️ - Device already added NTFY-DEVICE-TOKEN

16:35:42.261 VERBOSE Functions.sendTokenToSecNtfy():232 - registration token: NTFY-DEVICE-TOKEN

16:36:38.892 ERROR NetworkServices.GetServerApiVersion():108 - GetServerApiVersion: Die Daten konnten nicht gelesen werden, da sie nicht das korrekte Format haben.

16:45:09.838 ERROR NetworkServices.GetServerApiVersion():108 - GetServerApiVersion: Die Daten konnten nicht gelesen werden, da sie nicht das korrekte Format haben.

Smartphone:

  • Device: iPhone13Mini
  • OS: iOS 18.3
  • Version of Gotify-Container: 2.6.1
  • Version of iGotify: 1.3.1.0

In the Log of the igotify container it shows the following:

   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService.StartConnection(System.Collections.Generic.List`1<iGotify_Notification_Assist.Models.Users>, System.String)
   at iGotify_Notification_Assist.Services.GotifySocketService+<Start>d__11.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[iGotify_Notification_Assist.Services.GotifySocketService+<Start>d__11, iGotify Notification Assist, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null]](<Start>d__11 ByRef)
   at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[[iGotify_Notification_Assist.Services.GotifySocketService+<Start>d__11, iGotify Notification Assist, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null]](<Start>d__11 ByRef)
   at iGotify_Notification_Assist.Services.GotifySocketService.Start()
   at iGotify_Notification_Assist.Services.StartUpBuilder+<>c__DisplayClass0_0.<Configure>b__0(Microsoft.AspNetCore.Builder.IApplicationBuilder)
   at Microsoft.AspNetCore.Hosting.GenericWebHostService+<StartAsync>d__40.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.AspNetCore.Hosting.GenericWebHostService+<StartAsync>d__40, Microsoft.AspNetCore.Hosting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<StartAsync>d__40 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.AspNetCore.Hosting.GenericWebHostService+<StartAsync>d__40, Microsoft.AspNetCore.Hosting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<StartAsync>d__40 ByRef)
   at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(System.Threading.CancellationToken)
   at Microsoft.Extensions.Hosting.Internal.Host+<<StartAsync>b__14_1>d.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Extensions.Hosting.Internal.Host+<<StartAsync>b__14_1>d, Microsoft.Extensions.Hosting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<<StartAsync>b__14_1>d ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Extensions.Hosting.Internal.Host+<<StartAsync>b__14_1>d, Microsoft.Extensions.Hosting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<<StartAsync>b__14_1>d ByRef)
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__14_1(Microsoft.Extensions.Hosting.IHostedService, System.Threading.CancellationToken)
   at Microsoft.Extensions.Hosting.Internal.Host+<ForeachService>d__17`1[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Extensions.Hosting.Internal.Host+<ForeachService>d__17`1[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Microsoft.Extensions.Hosting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<ForeachService>d__17`1<System.__Canon> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Extensions.Hosting.Internal.Host+<ForeachService>d__17`1[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], Microsoft.Extensions.Hosting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<ForeachService>d__17`1<System.__Canon> ByRef)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Threading.CancellationToken, Boolean, Boolean, System.Collections.Generic.List`1<System.Exception>, System.Func`3<System.__Canon,System.Threading.CancellationToken,System.Threading.Tasks.Task>)
   at Microsoft.Extensions.Hosting.Internal.Host+<StartAsync>d__14.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Extensions.Hosting.Internal.Host+<StartAsync>d__14, Microsoft.Extensions.Hosting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<StartAsync>d__14 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Extensions.Hosting.Internal.Host+<StartAsync>d__14, Microsoft.Extensions.Hosting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<StartAsync>d__14 ByRef)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(System.Threading.CancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions+<RunAsync>d__4.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions+<RunAsync>d__4, Microsoft.Extensions.Hosting.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<RunAsync>d__4 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions+<RunAsync>d__4, Microsoft.Extensions.Hosting.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]](<RunAsync>d__4 ByRef)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(Microsoft.Extensions.Hosting.IHost, System.Threading.CancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(Microsoft.Extensions.Hosting.IHost)
   at Program.<Main>$(System.String[])

Thanks for you help!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 36 (10 by maintainers)

Most upvoted comments

Heureka!

I have found a solution for the “OPNSense as firewall” scenario. In OPNSense under Firewall -> Settings -> Advanced the checkboxes “Automatic outbound NAT for Reflection”, “Reflection for 1:1” and “Reflection for port forwards” must be checked.

Image

After deleting igotify and gotify folders “data/” and “api-data/”, starting both containers and setting up the App with the “new” Containers, the messages arrive as a push on my iPhone!

My NginX Proxy Manager Setup is:

Image

Image

Image

Image

There is no

proxy_set_header   Host $http_host;
proxy_connect_timeout   1m;
proxy_send_timeout      1m;
proxy_read_timeout      1m;

in “Advanced” necessary.

I could manage to Open a Websocket from anywhere to my Public Adresse of Gotigy, and i was not able to oben a Websocket from the iGotify Container to my Public Gotify Adress. But i could Open a Websocket Connection from igotify Container to the gotify Container via their internal Adress. So it was clear that it was the firewall that was preventing this.

I am an experienced networker but I am not familiar with OPNSense. I have been looking all the time for something that allows the NAT to access internally via the pulblic IP. After some searching I came up with these settings.