androidseb25 / iGotify-Notification-Assistent

Docker container for sending Gotify notifications to iOS devices (bridge to gotify websocket)
MIT License
99 stars 3 forks source link

Keine Push Benachrichtigung iPhone #48

Closed DarkRudolf closed 2 months ago

DarkRudolf commented 3 months ago

Hallo,

ich bekomme es leider nicht hin...

im browser bekomme ich Benachrichtigungen. Am iPhone will es absolut nicht ich sehe die Nachrichten aber leider kein Push.

im NPM ist nur we

Log:

info: Microsoft.Hosting.Lifetime[0] Application is shutting down... Database is created: True 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 Gotify - Url: https://gotify.***.de Is Gotify - Url available: no SecNtfy Server - Url: https://api.secntfy.app/api Is SecNtfy Server - Url available: yes Client - Token: **** Client connecting... Done! Disconnection happened, type: Websocket.Client.DisconnectionInfo warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect.

Log App: 16:47:49.020 INFO Logger.getInstance():30 - ♻️ - Initialize iGotify Logger

16:47:49.028 INFO SecNtfy.initialize():65 - ♻️ - API URL https://api.secntfy.app

16:47:49.034 INFO SecNtfy.initialize():66 - ♻️ - Bundle Group group.sr.iGotify

16:47:49.037 INFO SecNtfy.initialize():77 - PubKey: MIIBCgKCAQEAq3j7quS7u6oUbTgidtGYgTzIWgOSR4bLuaifWLHFSTgKwD9/fTxOLLNPrWdPRJhK+Y50tGM9kpDrfR9VOAvo5jArg3bBO4UbRfNeO8jHmg89MgBGnZjWHoKjJTzpYN4X2PjQSnBWH1oHhV84799lfNrSiim3W0+KV6ERZvAxyeOvPbdwFy5+Psn8D/fMJ92Vd7xI4Om1OPyTXGVLLCLuHDoSzC6NG7KQhYKa5URDDMPL6h4KaX9vRJ1TNwHoTvDTLfDdXSWXYkOc9Uk4DnHm9UVex8qdJ2L4Sk1RoVnHdPg5SYPbJgUS9aXjYJUdpGu5MGo2ATTARhePvz/XNmGXIwIDAQAB

16:47:49.040 INFO SecNtfy.initialize():78 - PrivKey: MIIEo*****qy5Zm

16:47:49.043 INFO SecNtfy.configure():102 - Model: iPhone 14 Pro

16:47:49.046 INFO SecNtfy.configure():103 - OS: 17.4.1

16:47:49.049 INFO SecNtfy.configure():105 - PubKey: MIIBCgKCAQEAq3j7quS7u6oUbTgidtGYgTzIWgOSR4bLuaifWLHFSTgKwD9/fTxOLLNPrWdPRJhK+Y50tGM9kpDrfR9VOAvo5jArg3bBO4UbRfNeO8jHmg89MgBGnZjWHoKjJTzpYN4X2PjQSnBWH1oHhV84799lfNrSiim3W0+KV6ERZvAxyeOvPbdwFy5+Psn8D/fMJ92Vd7xI4Om1OPyTXGVLLCLuHDoSzC6NG7KQhYKa5URDDMPL6h4KaX9vRJ1TNwHoTvDTLfDdXSWXYkOc9Uk4DnHm9UVex8qdJ2L4Sk1RoVnHdPg5SYPbJgUS9aXjYJUdpGu5MGo2ATTARhePvz/XNmGXIwIDAQAB

16:47:49.052 INFO SecNtfy.configure():106 - PrivKey: MIIEo*****qy5Zm

16:47:49.220 VERBOSE AppDelegate.application():84 - APNs token retrieved: 32 bytes

16:47:49.223 VERBOSE AppDelegate.application():87 - The token: 0ECF7*****6A885

16:47:49.226 INFO SecNtfy.setApnsToken():132 - 0ECF7*****6A885

16:47:50.642 INFO SecNtfy.getInstance():43 - ♻️ - instance init

16:47:51.076 ERROR SecNtfy.PostDevice():159 - ♻️ - Optional("Device already added") Optional("**") nil

16:47:51.084 VERBOSE Functions.sendTokenToSecNtfy():242 - registration token: **

androidseb25 commented 3 months ago

Hi,

Es sieht so aus als würde er deinen Gotify Server nicht finden können.

Wie hast du den Service installiert? Als docker oder als SystemD Service?

DarkRudolf commented 3 months ago

Ich habe die Docker Compose genommen und von aussen ist alles erreichbar was mich wundert.

androidseb25 commented 3 months ago

Mmmh sehr komisch, normalerweise wird immer SecNtfy weggeblockt, aber das erreicht er.

Ist vllt was innerhalb deines Netzwerkes falsch konfiguriert, das er vom Container aus den Gotify Server wegblockt?

DarkRudolf commented 3 months ago

seltsam...

GOTIFY_SERVER_URL 10.100.0.3:8680 das stimmt soweit. in der Firewall wird auch nix geblockt und alles ist von innen und aussen erreichbar.... was auch immer ich da verbockt habe

androidseb25 commented 3 months ago

Schonmal über die interne IP probiert?

Vielleicht hilft das schon

DarkRudolf commented 3 months ago

Ja auch schon probiert :-( Von meinem iPhone gesendetAm 29.03.2024 um 18:05 schrieb Sebastian @.***>: Schonmal über die interne IP probiert? Vielleicht hilft das schon

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

androidseb25 commented 3 months ago

Puuuuuhhh das wird schwer das herauszufinden warum der Container auf die URL nicht draufkommt 🤔 Das hat meistens immer was mit der Netzwerk Konfiguration zu tun.

Könnte höchstens ne nginx Einstellung sein das er falsch routet

Kommst du auf folgende Schnittstelle im Browser ran?

https://< urlgotify >/version

DarkRudolf commented 3 months ago

nur wenn ich die ip angebe mit port und http

{"version":"2.4.0","commit":"97f180b65091fc6ca313d29dfc5b559aa8cd9465","buildDate":"2023-09-17-08:24:00"}

Am 29.03.2024 um 18:26 schrieb Sebastian @.***>:

Puuuuuhhh das wird schwer das herauszufinden warum der Container auf die URL nicht draufkommt 🤔 Das hat meistens immer was mit der Netzwerk Konfiguration zu tun.

Kommst du auf folgende Schnittstelle im Browser ran?

https:///version

— Reply to this email directly, view it on GitHub https://github.com/androidseb25/iGotify-Notification-Assistent/issues/48#issuecomment-2027522622, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEEW6YCTIPA5BRSKTJENPDY2WI47AVCNFSM6AAAAABFOS7CT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGUZDENRSGI. You are receiving this because you authored the thread.

androidseb25 commented 3 months ago

Da haben wirs doch irgewndwas stimmt bei deinem Webproxy nicht wenn es bei der ip klappt und nicht bei der domain

DarkRudolf commented 3 months ago

Achse von aussen bekomme ich auch

auch die version

https://gotify.**.de/version https://gotify..de/version

Am 29.03.2024 um 18:05 schrieb Sebastian @.***>:

Schonmal über die interne IP probiert?

Vielleicht hilft das schon

— Reply to this email directly, view it on GitHub https://github.com/androidseb25/iGotify-Notification-Assistent/issues/48#issuecomment-2027498694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEEW65QW4UODRQN36WJQQDY2WGLHAVCNFSM6AAAAABFOS7CT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGQ4TQNRZGQ. You are receiving this because you authored the thread.

DarkRudolf commented 3 months ago

da fällt mir ein könnte es an Cloudflare liegen?

Am 29.03.2024 um 18:05 schrieb Sebastian @.***>:

Schonmal über die interne IP probiert?

Vielleicht hilft das schon

— Reply to this email directly, view it on GitHub https://github.com/androidseb25/iGotify-Notification-Assistent/issues/48#issuecomment-2027498694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEEW65QW4UODRQN36WJQQDY2WGLHAVCNFSM6AAAAABFOS7CT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGQ4TQNRZGQ. You are receiving this because you authored the thread.

androidseb25 commented 3 months ago

Ok gut dann ist es nicht das routing wenn es klappt

Keine Ahnung kann durch aus sein....

DarkRudolf commented 3 months ago

jetzt kommt im log

Disconnection happened, type: Websocket.Client.DisconnectionInfo warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect.

Am 29.03.2024 um 19:52 schrieb Sebastian @.***>:

Ok gut dann ist es nicht das routing wenn es klappt

Keine Ahnung kann durch aus sein....

— Reply to this email directly, view it on GitHub https://github.com/androidseb25/iGotify-Notification-Assistent/issues/48#issuecomment-2027604481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEEW6ZIRH4UVTOTUVQVRKLY2WS6FAVCNFSM6AAAAABFOS7CT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGYYDINBYGE. You are receiving this because you authored the thread.

DarkRudolf commented 3 months ago

Habe den Fehler gefunden…

Cloudflare hat einen Bot erkannt und alles geklockt!! Hat also alles funktioniert mann bin ich blöd aber dennoch danke für die Hilfe.

Am 29.03.2024 um 19:52 schrieb Sebastian @.***>:

Ok gut dann ist es nicht das routing wenn es klappt

Keine Ahnung kann durch aus sein....

— Reply to this email directly, view it on GitHub https://github.com/androidseb25/iGotify-Notification-Assistent/issues/48#issuecomment-2027604481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEEW6ZIRH4UVTOTUVQVRKLY2WS6FAVCNFSM6AAAAABFOS7CT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGYYDINBYGE. You are receiving this because you authored the thread.

androidseb25 commented 3 months ago

Ok warum haben die das als bot erkannt 🤔

DarkRudolf commented 3 months ago

ich sende dir mal das event log vielleicht hilft es.

{ "action": "managed_challenge", "clientASNDescription": "HETZNER-AS", "clientAsn": "24940", "clientCountryName": "DE", "clientIP": „Meine Server IP", "clientRequestHTTPHost": „gotify.**.de", "clientRequestHTTPMethodName": "GET", "clientRequestHTTPProtocol": "HTTP/1.1", "clientRequestPath": "/stream", "clientRequestQuery": "?token=***", "datetime": "2024-03-29T19:29:57Z", "rayName": "86c2458d7f9a5d8e", "ruleId": "bot_fight_mode", "rulesetId": "", "source": "botFight", "userAgent": "", "matchIndex": 0, "metadata": [], "sampleInterval": 1 }

{ "action": "managed_challenge", "clientASNDescription": "HETZNER-AS", "clientAsn": "24940", "clientCountryName": "DE", "clientIP": „Server IP", "clientRequestHTTPHost": „gotify.**.de", "clientRequestHTTPMethodName": "GET", "clientRequestHTTPProtocol": "HTTP/1.1", "clientRequestPath": "/", "clientRequestQuery": "", "datetime": "2024-03-29T19:29:57Z", "rayName": "86c2458b6e129f1f", "ruleId": "bot_fight_mode", "rulesetId": "", "source": "botFight", "userAgent": "", "matchIndex": 0, "metadata": [], "sampleInterval": 1 }

Am 29.03.2024 um 19:52 schrieb Sebastian @.***>:

Ok gut dann ist es nicht das routing wenn es klappt

Keine Ahnung kann durch aus sein....

— Reply to this email directly, view it on GitHub https://github.com/androidseb25/iGotify-Notification-Assistent/issues/48#issuecomment-2027604481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGEEW6ZIRH4UVTOTUVQVRKLY2WS6FAVCNFSM6AAAAABFOS7CT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGYYDINBYGE. You are receiving this because you authored the thread.

androidseb25 commented 3 months ago

Ok danke ich schau mal ob man das irgendwie abstellen kann

androidseb25 commented 2 months ago

konnte nichts herausfinden was ich dagegen machen kann schließe mal den issue