Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3: Connection delayed #865

Closed
AFPass opened this issue Jul 28, 2021 · 36 comments
Closed

v3: Connection delayed #865

AFPass opened this issue Jul 28, 2021 · 36 comments
Assignees
Labels
bug 🐛 Something isn't working HIGH PRIORITY ❗ HIGH PRIORITY
Projects

Comments

@AFPass
Copy link

AFPass commented Jul 28, 2021

*Please note that you may restore an old layout via jarvis adapter configuration directly within ioBroker

Prerequisites / Voraussetzungen

  • [3.0.0-alpha.39] Which jarvis version are you running / Welche Version von jarvis nutzt du? BITTE GENAUE ANGABE!
  • [ Im Browser kommt die Fehlermeldung: Connection delayed ] Fehler / Screenshot der Browser Konsole (F12), siehe Fehleranalyse und -Meldung

Describe the bug / Beschreibe den Fehler
A clear and concise description of what the bug / problem is.
Eine genaue Beschreibung des Fehlers inkl. Herleitung, um diesen Nachstellen zu können.
Jarvis installiert. Im Browser Jarvis geöffnet.

Screenshots
If applicable, add screenshots to help explain your problem.
Sofern möglich, bitte Screenshots einfügen, um den Fehler bildlich zu erläutern.


Please note that bug reports may be closed if the information above are not given!

Bitte beachte, dass Bug-Reports ggf. einfach geschlossen werden, wenn die oben genannten Kriterien nicht angemessen gegeben sind!

@AFPass AFPass added the bug 🐛 Something isn't working label Jul 28, 2021
@Zefau
Copy link
Owner

Zefau commented Jul 28, 2021

Welche URL rufst du genau auf? Hast du https aktiviert? Irgendwelche Besonderheiten wie Docker oder Reverse Proxy? Wie ist dein Web Adapter konfiguriert? Jarvis grün?

@AFPass
Copy link
Author

AFPass commented Jul 28, 2021

Kurz vor dem Connection delayed kommt ein Time Out.
Ich rufe folgende URL auf https://iobroker:8082/jarvis/index.html#/0/.
ioBroker läuft als VM in einer Proxmox Umgebung. Docker oder Reverse Proxy habe ich nicht im Einsatz.
Jarvis ist grün.

Was meinst Du mit: Wie ist dein Web Adapter konfiguriert?

@Zefau
Copy link
Owner

Zefau commented Jul 28, 2021

Was steht in der Browser Konsole (F12) ?

@Zefau
Copy link
Owner

Zefau commented Jul 28, 2021

jarvis verbindet über den Web Adapter. Hast du dort die https Zertifikate ausgewählt?

@AFPass
Copy link
Author

AFPass commented Jul 28, 2021

grafik

@AFPass
Copy link
Author

AFPass commented Jul 28, 2021

grafik

@Zefau
Copy link
Owner

Zefau commented Jul 28, 2021

v2 geht?

@AFPass
Copy link
Author

AFPass commented Jul 28, 2021

Ja. Die Stable lief. Bis zur Roten Fehlermeldung bei Wizard.

@Zefau
Copy link
Owner

Zefau commented Jul 28, 2021

Benutz mal bitte die IP

@AFPass
Copy link
Author

AFPass commented Jul 28, 2021

grafik

Das gleiche.

@Zefau
Copy link
Owner

Zefau commented Jul 29, 2021

Was passiert, wenn du https://192.168.178.9:8400/ direkt im Browser aufrufst?

@AFPass
Copy link
Author

AFPass commented Jul 31, 2021

Da hab ich eine Ausgabe bekommen. Bin aber im Moment auf Version 2.xx

@Zefau
Copy link
Owner

Zefau commented Aug 1, 2021

Also insgesamt liegt es daran, dass keine Socket Verbindung aufgebaut werden kann. Der Port 8400 lehnt es wegen CORS ab, also wegen den Zertifikaten.

@Zefau Zefau added this to the ROADMAP v3.0.0 milestone Aug 1, 2021
@o0shojo0o
Copy link

Moin ich habe das gleiche Problem, allerdings nutze ich kein https. (V2 läuft sauber)
image

@Zefau Zefau added HIGH PRIORITY ❗ HIGH PRIORITY and removed information required labels Aug 2, 2021
@Zefau
Copy link
Owner

Zefau commented Aug 3, 2021

bitte installiert v3.0.0-alpha.47 und stellt den Adapter in ioBroker auf debug. Wenn ihr dann mit jarvis verbindet, was steht im ioBroker Log?

@o0shojo0o
Copy link

Klappt nun wunderbar :)

jarvis.0 2021-08-04 09:03:18.097 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-04 09:03:18.093 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-04 09:03:18.082 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-04 09:03:18.078 info Client with IP ::ffff:192.168.0.1 connected
jarvis.0 2021-08-04 09:03:18.077 debug Websocket-Handler for client initialized
jarvis.0 2021-08-04 09:03:18.076 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-04 09:03:18.072 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-04 09:03:17.490 debug Client with IP ::ffff:192.168.0.1 disconnected: transport close

@Zefau
Copy link
Owner

Zefau commented Aug 4, 2021

Super ;-)
@AFPass bei dir auch?

@Zefau
Copy link
Owner

Zefau commented Aug 6, 2021

#847

@AFPass
Copy link
Author

AFPass commented Aug 6, 2021 via email

@o0shojo0o
Copy link

image

1 Zeit debug Nachricht
jarvis.0 2021-08-12 10:51:10.132 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected)
jarvis.0 2021-08-12 10:51:04.132 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected)
jarvis.0 2021-08-12 10:50:58.121 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected)
jarvis.0 2021-08-12 10:50:56.115 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected)
jarvis.0 2021-08-12 10:50:55.117 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected)

Heute wieder das Problem, auch ein Update auf die Version v3.0.0-alpha.50 ergab keine Besserung.

@Zefau
Copy link
Owner

Zefau commented Aug 12, 2021

Was steht denn beim Start des Adapters im Log bzgl des Hosts?

@o0shojo0o
Copy link

Ah ich sehe schon er nimmt die IP von 2. Interface.

jarvis.0 Zeit debug Nachricht
jarvis.0 2021-08-12 18:11:40.855 debug Push update of instances..
jarvis.0 2021-08-12 18:11:40.721 info Found Backups for styles.
jarvis.0 2021-08-12 18:11:40.683 info Found Backups for devices.
jarvis.0 2021-08-12 18:11:40.647 info Found Backups for layout.
jarvis.0 2021-08-12 18:11:40.635 info Found Backups for settings.
jarvis.0 2021-08-12 18:11:40.634 info Found Backups for widgets.
jarvis.0 2021-08-12 18:11:40.630 info Connection: WebSocket opened on port 8400 using http...
jarvis.0 2021-08-12 18:11:40.621 debug Connection: Using non-secure HTTP-Server
jarvis.0 2021-08-12 18:11:40.621 debug Connection: ioBroker host detected with iobroker (IP: 172.18.0.20)
jarvis.0 2021-08-12 18:11:40.569 info starting. Version 3.0.0-alpha.50 in /opt/iobroker/node_modules/iobroker.jarvis, node: v12.22.2, js-controller: 3.3.15
jarvis.0 2021-08-12 18:11:36.297 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
jarvis.0 2021-08-12 18:11:36.297 info terminating
jarvis.0 2021-08-12 18:11:36.296 info Adapter stopped und unloaded.
jarvis.0 2021-08-12 18:11:36.295 info Got terminate signal TERMINATE_YOURSELF

@Zefau
Copy link
Owner

Zefau commented Aug 12, 2021

Interface 1 / 2 ist LAN und WLAN oder wie? Und du hast beides angeschlossen und er nimmt das falsche? Die IPs müssen stimmen, sonst lehnt er die Verbindung ab. Ich kann bei Gelegenheit nochmal eine Whitelist reinbauen.

@o0shojo0o
Copy link

o0shojo0o commented Aug 12, 2021

Das ist eine Docker Container, mit MacVLAN: 192.168.0.203 und eine Bridge: 172.18.0.20 .
Ja es das wäre ratsam ein Interface zu wählen oder wie Du schon sagtes eine Whitelist zu pflegen zu können.

Gruß
Dennis

@o0shojo0o
Copy link

Noch zu Erläuterung, das Bridge Netzwerk wird genutzt um Dockerintern mit anderen Container zu kommunizieren, wie z.B. die RedisDB.
Und das Bridge Netzwerk ist nicht von Außen erreichbar.

@AFPass

This comment has been minimized.

@Zefau Zefau mentioned this issue Aug 17, 2021
@Zefau
Copy link
Owner

Zefau commented Aug 17, 2021

@o0shojo0o mit v3.0.0-alpha.51 gibt es nun die Möglichkeit in den ioBroker Adapter-Einstellungen eine Whitelist zu pflegen.

@o0shojo0o
Copy link

@Zefau will leider noch nicht funktionieren:

jarvis.0 Zeit debug Nachricht
jarvis.0 2021-08-18 15:41:04.532 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-18 15:40:59.508 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-18 15:40:54.704 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-18 15:40:53.159 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-18 15:40:51.660 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)

@Zefau
Copy link
Owner

Zefau commented Aug 19, 2021

schau mal bitte mit der v3.0.0-alpha.52.

@o0shojo0o
Copy link

o0shojo0o commented Aug 19, 2021

Scheint nun zu laufen, oder weil er nun zufällig die richtige IP hat?
Connection: ioBroker host detected with iobroker (IP: 192.168.0.203)

jarvis.0 Zeit debug Nachricht
jarvis.0 2021-08-19 23:53:43.597 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-19 23:53:43.590 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-19 23:53:43.585 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-19 23:53:43.579 info Client with IP ::ffff:192.168.0.1 connected
jarvis.0 2021-08-19 23:53:43.576 debug Websocket-Handler for client initialized
jarvis.0 2021-08-19 23:53:43.570 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-19 23:53:43.547 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-19 23:53:43.077 info Found Backups for styles.
jarvis.0 2021-08-19 23:53:43.040 info Found Backups for devices.
jarvis.0 2021-08-19 23:53:43.038 debug Push update of instances..
jarvis.0 2021-08-19 23:53:42.861 info Found Backups for layout.
jarvis.0 2021-08-19 23:53:42.856 info Connection: WebSocket opened on port 8400 using http...
jarvis.0 2021-08-19 23:53:42.847 debug Connection: Using non-secure HTTP-Server
jarvis.0 2021-08-19 23:53:42.847 debug Connection: ioBroker host detected with iobroker (IP: 192.168.0.203)
jarvis.0 2021-08-19 23:53:42.842 info Found Backups for settings.
jarvis.0 2021-08-19 23:53:42.842 info Found Backups for widgets.
jarvis.0 2021-08-19 23:53:42.790 info starting. Version 3.0.0-alpha.52 in /opt/iobroker/node_modules/iobroker.jarvis, node: v12.22.2, js-controller: 3.3.15

PS: wie bekommt man den Pro Acc?

@Zefau
Copy link
Owner

Zefau commented Aug 20, 2021

Wieso zufällig? Er nimmt die iobroker IP und deine Whitelist.

@o0shojo0o
Copy link

Weil er sonst oft die IP von der Bridge (172.18.0.20) genommen hat anstatt die vom MACVlan (192.168.0.203), war aber nur ein Gedanke.

@Zefau
Copy link
Owner

Zefau commented Aug 20, 2021

Kann ich tatsächlich nicht beantworten wie das aufgelöst wird.

Ich würde das Ticket aber dann erst mal schließen, da es funktioniert. Sollte sich das ändern, öffne es gerne wieder.

@o0shojo0o
Copy link

Ich muss das Issues leider wieder aufmachen.

jarvis.0 Zeit debug Nachricht
jarvis.0 2021-08-23 12:00:55.833 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:55.782 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:55.729 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:55.678 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:50.589 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:50.533 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:50.480 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:45.390 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:42.503 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:40.931 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:40.269 debug Connection: Origin detected with http://192.168.0.203:8082 (rejected, not in 192.168.0.203, localhost, 127.0.0.1, 172.18.0.20, iobroker)
jarvis.0 2021-08-23 12:00:38.072 debug Push update of instances..
jarvis.0 2021-08-23 12:00:37.958 info Found Backups for styles.
jarvis.0 2021-08-23 12:00:37.924 info Found Backups for devices.
jarvis.0 2021-08-23 12:00:37.900 info Found Backups for layout.
jarvis.0 2021-08-23 12:00:37.890 info Found Backups for settings.
jarvis.0 2021-08-23 12:00:37.890 info Found Backups for widgets.
jarvis.0 2021-08-23 12:00:37.885 info Connection: WebSocket opened on port 8400 using http...
jarvis.0 2021-08-23 12:00:37.876 debug Connection: Using non-secure HTTP-Server
jarvis.0 2021-08-23 12:00:37.876 debug Connection: ioBroker host detected with iobroker (IP: 172.18.0.20)
jarvis.0 2021-08-23 12:00:37.827 info starting. Version 3.0.0-alpha.52 in /opt/iobroker/node_modules/iobroker.jarvis, node: v12.22.5, js-controller: 3.3.15

@Zefau Zefau reopened this Aug 23, 2021
@Zefau
Copy link
Owner

Zefau commented Aug 23, 2021

sollte mit v3.0.0-alpha.59 nun funktionieren.

@o0shojo0o
Copy link

Danke es läuft nun 👍

jarvis.0 Zeit debug Nachricht
jarvis.0 2021-08-23 22:35:31.407 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-23 22:35:31.271 info Client with IP ::ffff:192.168.0.145 connected
jarvis.0 2021-08-23 22:35:31.268 debug Websocket-Handler for client initialized
jarvis.0 2021-08-23 22:35:31.259 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-23 22:35:31.215 debug Connection: Origin detected with http://192.168.0.203:8082 (allowed)
jarvis.0 2021-08-23 22:35:28.905 debug Push update of instances..
jarvis.0 2021-08-23 22:35:28.780 info Found Backups for styles.
jarvis.0 2021-08-23 22:35:28.746 info Found Backups for devices.
jarvis.0 2021-08-23 22:35:28.714 info Found Backups for layout.
jarvis.0 2021-08-23 22:35:28.703 info Found Backups for settings.
jarvis.0 2021-08-23 22:35:28.703 info Found Backups for widgets.
jarvis.0 2021-08-23 22:35:28.698 info Connection: WebSocket opened on port 8400 using http...
jarvis.0 2021-08-23 22:35:28.689 debug Connection: Using non-secure HTTP-Server
jarvis.0 2021-08-23 22:35:28.688 debug Connection: ioBroker host detected with iobroker (IP: 172.18.0.20)
jarvis.0 2021-08-23 22:35:28.633 info starting. Version 3.0.0-alpha.59 in /opt/iobroker/node_modules/iobroker.jarvis, node: v12.22.5, js-controller: 3.3.15

@Zefau Zefau closed this as completed Aug 23, 2021
@Zefau Zefau added this to DONE in v3.0.x Sep 2, 2021
@Zefau Zefau removed this from the ROADMAP v3.0.0 milestone Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working HIGH PRIORITY ❗ HIGH PRIORITY
Projects
No open projects
Development

No branches or pull requests

3 participants