Impossible d'accéder à Domoticz sur une installation fraiche

Forum dédié aux questions concernant la configuration de votre serveur sous Linux
pce5962
Messages : 6
Inscription : 15 nov. 2021, 20:55
Localisation : PROVIN (59 FRANCE)

Impossible d'accéder à Domoticz sur une installation fraiche

Message par pce5962 »

Bonjour à tous,

Je souhaite tester Domoticz sur mon PI4 sur lequel est connectée ma PiZigate, mais impossible d'effectuer la première connexion 192.168.101.10:8080, la connexion est refusée.

J'accède a la console du raspberry en SSH avec putty.
en invite de commande sous windows la connexion est impossible.

Code : Tout sélectionner

C:\Users\pce59>telnet 192.168.101.10 8080
Connexion à 192.168.101.10...Impossible d’ouvrir une connexion à l’hôte, sur le port 8080: Échec lors de la connexion

C:\Users\pce59>
Le status de domoticz a l'air d'être bon

Code : Tout sélectionner

pce5962@pi-domoticz:~ $ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
     Loaded: loaded (/etc/init.d/domoticz.sh; generated)
     Active: active (exited) since Sat 2023-06-10 10:13:03 CEST; 10min ago
       Docs: man:systemd-sysv-generator(8)
    Process: 5267 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
        CPU: 25ms

juin 10 10:13:03 pi-domoticz systemd[1]: Starting LSB: Home Automation System...
juin 10 10:13:03 pi-domoticz domoticz.sh[5272]: start-stop-daemon: unable to start /home/pce5962/domoticz/domoticz (>
juin 10 10:13:03 pi-domoticz systemd[1]: Started LSB: Home Automation System.
lines 1-10/10 (END)
La commande journalctl -xe renvois une erreur error: kex_exchange_identification: client sent invalid protocol identifier>

Code : Tout sélectionner

pce5962@pi-domoticz:~ $ journalctl -xe

                                                 echo ":::"
                                                 if [[ "${useUpdateVars}" == false ]]; then
                                                         echo "::: Installation Complete! Configure your browser to >
                                                         echo ":::     ${IPv4_address%/*}:${HTTP_port}"
                                                         echo ":::     ${IPv4_address%/*}:${HTTPS_port}"
                                                 else
                                                         echo "::: Update complete!"
                                                 fi
                                         }

                                         main "$@"
juin 10 10:12:30 pi-domoticz sudo[5114]: pam_unix(sudo:session): session opened for user root(uid=0) by pce5962(uid=>
juin 10 10:12:57 pi-domoticz systemd[1]: Reloading.
juin 10 10:13:02 pi-domoticz systemd[1]: Reloading.
juin 10 10:13:03 pi-domoticz systemd[1]: Stopping LSB: Home Automation System...
░░ Subject: L'unité (unit) domoticz.service a commencé à s'arrêter
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ L'unité (unit) domoticz.service a commencé à s'arrêter.
juin 10 10:13:03 pi-domoticz systemd[1]: domoticz.service: Succeeded.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit domoticz.service has successfully entered the 'dead' state.
juin 10 10:13:03 pi-domoticz systemd[1]: Stopped LSB: Home Automation System.
░░ Subject: L'unité (unit) domoticz.service a terminé son arrêt
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ L'unité (unit) domoticz.service a terminé son arrêt.
juin 10 10:13:03 pi-domoticz systemd[1]: Starting LSB: Home Automation System...
░░ Subject: L'unité (unit) domoticz.service a commencé à démarrer
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ L'unité (unit) domoticz.service a commencé à démarrer.
juin 10 10:13:03 pi-domoticz domoticz.sh[5272]: start-stop-daemon: unable to start /home/pce5962/domoticz/domoticz (>
juin 10 10:13:03 pi-domoticz systemd[1]: Started LSB: Home Automation System.
░░ Subject: L'unité (unit) domoticz.service a terminé son démarrage
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ L'unité (unit) domoticz.service a terminé son démarrage, avec le résultat done.
juin 10 10:13:03 pi-domoticz sudo[5114]: pam_unix(sudo:session): session closed for user root
juin 10 10:16:46 pi-domoticz sudo[5279]:  pce5962 : TTY=pts/0 ; PWD=/home/pce5962 ; USER=root ; COMMAND=/usr/bin/nan>
juin 10 10:16:46 pi-domoticz sudo[5279]: pam_unix(sudo:session): session opened for user root(uid=0) by pce5962(uid=>
juin 10 10:16:49 pi-domoticz sudo[5279]: pam_unix(sudo:session): session closed for user root
juin 10 10:16:54 pi-domoticz sudo[5284]:  pce5962 : TTY=pts/0 ; PWD=/home/pce5962 ; USER=root ; COMMAND=/usr/bin/nan>
juin 10 10:16:54 pi-domoticz sudo[5284]: pam_unix(sudo:session): session opened for user root(uid=0) by pce5962(uid=>
juin 10 10:17:01 pi-domoticz CRON[5286]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
juin 10 10:17:01 pi-domoticz CRON[5287]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
juin 10 10:17:01 pi-domoticz CRON[5286]: pam_unix(cron:session): session closed for user root
juin 10 10:18:07 pi-domoticz sudo[5284]: pam_unix(sudo:session): session closed for user root
juin 10 10:23:07 pi-domoticz sudo[5300]:  pce5962 : TTY=pts/0 ; PWD=/home/pce5962 ; USER=root ; COMMAND=/usr/sbin/se>
juin 10 10:23:07 pi-domoticz sudo[5300]: pam_unix(sudo:session): session opened for user root(uid=0) by pce5962(uid=>
juin 10 10:24:41 pi-domoticz sshd[5307]: error: kex_exchange_identification: client sent invalid protocol identifier>
juin 10 10:24:41 pi-domoticz sshd[5307]: banner exchange: Connection from 192.168.101.39 port 26447: invalid format
juin 10 10:26:10 pi-domoticz sudo[5300]: pam_unix(sudo:session): session closed for user root
juin 10 10:27:21 pi-domoticz sudo[5310]:  pce5962 : TTY=pts/0 ; PWD=/home/pce5962 ; USER=root ; COMMAND=/etc/init.d/>
juin 10 10:27:21 pi-domoticz sudo[5310]: pam_unix(sudo:session): session opened for user root(uid=0) by pce5962(uid=>
juin 10 10:27:21 pi-domoticz sudo[5310]: pam_unix(sudo:session): session closed for user root
lines 3770-3833/3833 (END)
L'IP 192.168.101.39 est l'ip de mon PC qui est connecté en SSH à la console du raspberry.

J'avoue avoir refait plusieurs fois l'installation a partir de zéro, mais je bloque au même point la première connexion a domoticz.

La PiZigate est installé sur le GPIO.

Merci d'avance pour votre aide et vos conseils.
Philippe
pce5962
Messages : 6
Inscription : 15 nov. 2021, 20:55
Localisation : PROVIN (59 FRANCE)

Re: Impossible d'accéder à Domoticz sur une installation fraiche

Message par pce5962 »

C'est fou ça...

Je mets la carte SD dans mon rapberry Pi3B+, je reconfigurer Domoticz pour utiliser la bonne IP et hop connexion au premier coup.

Par acquis de conscience, je modifie l'ip du PI4 dans mon routeur, malgré que je n'ai pas trouvé de trace de redirection des ports 8080 et 443 vers une quelconque et toujours connexion refusée, même avec la PiZigate déconnectée.

Je comprends pas.
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Modération

Message par Keros »

Sujet déplacé dans la section dédiée au Raspberry
Répondre