Perte interface web pas de connection

Posez ici vos questions d'utilisation, de configuration de DomoticZ, de bugs, de conseils sur le logiciel lui même dans son utilisation et son paramétrage.
Des forums spécifiques sont ouverts ci-dessous pour regrouper les différents sujets.
pierrotori
Messages : 821
Inscription : 29 févr. 2016, 12:11

Perte interface web pas de connection

Message par pierrotori »

Bonjour
suite à la perte de l'interface web, ma domotique ne schedulait plus rien

Code : Tout sélectionner

2022-12-25 00:24:31.751  Status: WebServer(HTTP) startup failed on address :: with port: 8080: bind: Address already in use [system:98], trying ::
2022-12-25 00:24:31.754  Status: WebServer(HTTP) startup failed on address :: with port: 8080: bind: Address already in use [system:98], trying 0.0.0.0
2022-12-25 00:24:31.760  Error: WebServer(HTTP) startup failed on address 0.0.0.0 with port: 8080: bind: Address already in use [system:98]
2022-12-25 00:24:31.760  Error: WebServer(HTTP) check if no other application is using port: 8080
2022-12-25 00:24:31.793  Status: WebServer(SSL) startup failed on address :: with port: 443: bind: Address already in use [system:98], trying ::
2022-12-25 00:24:31.799  Status: WebServer(SSL) startup failed on address :: with port: 443: bind: Address already in use [system:98], trying 0.0.0.0
2022-12-25 00:24:31.806  Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Address already in use [system:98]
2022-12-25 00:24:31.806  Error: WebServer(SSL) check privileges for opening ports below 1024
2022-12-25 00:24:31.806  Error: Domoticz(pid:8800, tid:8800('domoticz')) received fatal signal 6 (Aborted)
2022-12-25 00:24:31.806  Error: siginfo address=0x2260, address=0xffffffff
2022-12-25 00:24:40.419  Error: Thread 1 (Thread 0x75ef5040 (LWP 8800)):
2022-12-25 00:24:40.419  Error: #0  __waitpid (options=0, stat_loc=0x7efe0020, pid=8808) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2022-12-25 00:24:40.419  Error: #1  __waitpid (pid=8808, stat_loc=0x7efe0020, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
2022-12-25 00:24:40.419  Error: #2  0x00279814 in dumpstack_gdb(bool) ()
2022-12-25 00:24:40.419  Error: #3  0x00279de0 in signal_handler(int, siginfo_t*, void*) ()
2022-12-25 00:24:40.419  Error: #4  <signal handler called>
2022-12-25 00:24:40.419  Error: #5  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
2022-12-25 00:24:40.419  Error: #6  0x76891230 in __GI_abort () at abort.c:79
2022-12-25 00:24:40.420  Error: #7  0x008d8fa8 in __gnu_cxx::__verbose_terminate_handler() ()
2022-12-25 00:24:40.420  Error: #8  0x0083c59c in __cxxabiv1::__terminate(void (*)()) ()
2022-12-25 00:24:40.420  Error: #9  0x0083c610 in std::terminate() ()
2022-12-25 00:24:40.420  Error: #10 0x001a21e0 in main ()
Après cette erreur, il y a eu crash

Code : Tout sélectionner

[New LWP 8801]
[New LWP 8804]
[New LWP 8805]
[New LWP 8807]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
__waitpid (options=0, stat_loc=0x7efe0020, pid=8808) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30	../sysdeps/unix/sysv/linux/waitpid.c: Aucun fichier ou dossier de ce type.
  Id   Target Id                                 Frame 
* 1    Thread 0x75ef5040 (LWP 8800) "domoticz"   __waitpid (options=0, stat_loc=0x7efe0020, pid=8808) at ../sysdeps/unix/sysv/linux/waitpid.c:30
  2    Thread 0x75a1c200 (LWP 8801) "Watchdog"   __GI___nanosleep (remaining=0x75a1bbb0, requested_time=0x75a1bbb0) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
  3    Thread 0x7521b200 (LWP 8804) "SQLHelper"  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
  4    Thread 0x74a1a200 (LWP 8805) "PluginMgr"  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
  5    Thread 0x73bef200 (LWP 8807) "InfluxPush" syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37

Thread 5 (Thread 0x73bef200 (LWP 8807)):
#0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1  0x0088cff4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
#2  0x00372824 in CInfluxPush::Do_Work() ()
#3  0x008af584 in execute_native_thread_routine ()
#4  0x76a9d494 in start_thread (arg=0x73bef200) at pthread_create.c:486
#5  0x76950dd8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0x74a1a200 (LWP 8805)):
#0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1  0x0088cff4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
#2  0x00653190 in Plugins::CPluginSystem::Do_Work() ()
#3  0x008af584 in execute_native_thread_routine ()
#4  0x76a9d494 in start_thread (arg=0x74a1a200) at pthread_create.c:486
#5  0x76950dd8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x7521b200 (LWP 8804)):
#0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
#1  0x0088cff4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
#2  0x0028f710 in CSQLHelper::Do_Work() ()
#3  0x008af584 in execute_native_thread_routine ()
#4  0x76a9d494 in start_thread (arg=0x7521b200) at pthread_create.c:486
#5  0x76950dd8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x75a1c200 (LWP 8801)):
#0  __GI___nanosleep (remaining=0x75a1bbb0, requested_time=0x75a1bbb0) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
#1  __GI___nanosleep (requested_time=0x75a1bbb0, remaining=0x75a1bbb0) at ../sysdeps/unix/sysv/linux/nanosleep.c:25
#2  0x0021069c in sleep_milliseconds(long) ()
#3  0x00279f7c in Do_Watchdog_Work() ()
#4  0x008af584 in execute_native_thread_routine ()
#5  0x76a9d494 in start_thread (arg=0x75a1c200) at pthread_create.c:486
#6  0x76950dd8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x75ef5040 (LWP 8800)):
#0  __waitpid (options=0, stat_loc=0x7efe0020, pid=8808) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  __waitpid (pid=8808, stat_loc=0x7efe0020, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
#2  0x00279814 in dumpstack_gdb(bool) ()
#3  0x00279de0 in signal_handler(int, siginfo_t*, void*) ()
#4  <signal handler called>
#5  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#6  0x76891230 in __GI_abort () at abort.c:79
#7  0x008d8fa8 in __gnu_cxx::__verbose_terminate_handler() ()
#8  0x0083c59c in __cxxabiv1::__terminate(void (*)()) ()
#9  0x0083c610 in std::terminate() ()
#10 0x001a21e0 in main ()

Main thread:
#0  __waitpid (options=0, stat_loc=0x7efe0020, pid=8808) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  __waitpid (pid=8808, stat_loc=0x7efe0020, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
#2  0x00279814 in dumpstack_gdb(bool) ()
#3  0x00279de0 in signal_handler(int, siginfo_t*, void*) ()
#4  <signal handler called>
#5  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#6  0x76891230 in __GI_abort () at abort.c:79
#7  0x008d8fa8 in __gnu_cxx::__verbose_terminate_handler() ()
#8  0x0083c59c in __cxxabiv1::__terminate(void (*)()) ()
#9  0x0083c610 in std::terminate() ()
#10 0x001a21e0 in main ()
[Inferior 1 (process 8800) detached]
ce qui était étonnant c'est que le service domoticz était en Active(running) , donc non détecté par mon script de control de service

à 00H45 j’arrête le service domoticz pour les sauvegarde mais en effet le serveur apache était en vrac, ce qui a fait planter les sauvegardes même l'appel de sauvegarde de Base de données par curl -s http://192.XXX.X.X:XXX/backupdatabase.php a bien planté mais erreur mal remontée par le NAS

Code : Tout sélectionner

Bienvenue interface de backup de la domotique
26 Dec 00:45:02 tournesol (root):
Debut : 26-12-2022 00:45:02
Jour traite : 26
-----------------------------
999 Param1 : Sauvegarde Database Y/N - Y
999 Param2 : Jour Database - 0
999 Param3 : Sauvegarde Directory Y/N - Y
999 Param4 : Jour Directory - 0
999 Param5 : Sauvegarde SD Y/N - Y
999 Param6 : Jour SD - 01
-----------------------------
Sauvegarde database Domoticz-Duree:0:02:15-Satut:KO
Erreur valeur : 2
Fin : 26-12-2022 00:47:17
Duree : 0:02:15
Comment faites vous pour contrôler le service webservice apache ?
Dernière modification par pierrotori le 27 déc. 2022, 12:27, modifié 4 fois.
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Perte interface web pas de connection

Message par Keros »

Tu peux nous préciser quelle version de DomoticZ tu utilises et sur quel système elle tourne ?
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
pierrotori
Messages : 821
Inscription : 29 févr. 2016, 12:11

Re: Perte interface web pas de connection

Message par pierrotori »

buster et 2022.2
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: Perte interface web pas de connection

Message par Keros »

Je sais qu'ils ont fait des modifs au niveau du serveur web avec la 2022.2. Est-ce qu'il y aurait un lien avec l'erreur que tu as eu ?

Je suis toujours en 2022.1, je ne pourrais pas t'en dire plus.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
pierrotori
Messages : 821
Inscription : 29 févr. 2016, 12:11

Re: Perte interface web pas de connection

Message par pierrotori »

c'est surement vrai car je n'avais jamais eu le problème, de mon côté je n'utilise pas monit
je vais ajouter le test du webservice qui est dans ce topic
https://www.domoticz.com/wiki/index.php ... ldid=16731
pierrotori
Messages : 821
Inscription : 29 févr. 2016, 12:11

Re: Perte interface web pas de connection

Message par pierrotori »

c'est le broker qui tombe car dans homebridge , j'ai cette erreur

Code : Tout sélectionner

[30/12/2022, 00:18:48] [home] synchronizeAccessories in progress...
[30/12/2022, 00:23:18] [home] Could not connect to MQTT broker! (192.168.0.6:1883)
Du coup génération du fichier domoticz_crash.log, car plugin

Peut-être basculer sur le Mqtt auto discovery Client Gateway With Lan interface au lieu de Mqtt Client Gateway With Lan interface?!?

Je viens de basculer sur le auto discovery par contre il y a qu'un topic en prefix qui est domoticz alors que dans l'autre j'avais domoticz/in et domoticz/out à configurer

Avez vous configuré 2 matériels MQTT, l'un en in et l'autre en out ?

Je suis revenu en arrière car il ne prend plus en compte ce qui arrive sur domoticz/in
pierrotori
Messages : 821
Inscription : 29 févr. 2016, 12:11

Re: Perte interface web pas de connection

Message par pierrotori »

il y a bien un conflit entre le service mosquitto et le plugin dans domoticz

Code : Tout sélectionner

mosquitto -v
1672417157: mosquitto version 1.5.7 starting
1672417157: Using default config.
1672417157: Opening ipv4 listen socket on port 1883.
1672417157: Error: Address already in use
Répondre