log error suite redemarrage Domoticz

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.
Répondre
salinois
Messages : 330
Inscription : 08 févr. 2024, 19:10

log error suite redemarrage Domoticz

Message par salinois »

bonjour,

pourquoi quand je redémarre Domoticz, j'ai ça dans les logs ?
2024-03-02 17:37:04.189 Error: [web:443] missing SSL certificate chain file ./server_cert.pem!
2024-03-02 17:37:04.190 Error: [web:443] missing SSL certificate file ./server_cert.pem!
2024-03-02 17:37:04.190 Error: [web:443] missing SSL private key file ./server_cert.pem!
2024-03-02 17:37:04.190 Error: [web:443] missing SSL DH parameters file ./server_cert.pem!
et j'ai ça aussi quelquefois, je suis oblige de relancer plusieurs fois le service pour qu'il n'y ait plus d'erreurs.
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > #8 0x00d986fe in std::terminate() ()
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > #9 0x008ebf0c in std::_Sp_counted_ptr_inplace<std::thread, std::allocator<std::thread>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() ()
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > #10 0x008ed7de in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() ()
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > #11 0x0092e334 in CMQTTPush::~CMQTTPush() ()
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > #12 0xf7456e74 in __run_exit_handlers (status=1, listp=0xf7576130 <__new_exitfn_called>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_>
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > #13 0xf7457014 in __GI_exit (status=<optimized out>) at exit.c:139
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > #14 0xf743d744 in __libc_start_main (main=0xffb2ac24, argc=-145272832, argv=0xf743d744 <__libc_start_main+280>, init=<optimized out>, fini=0xdfbdad>
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > #15 0x008c124c in _start ()
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
mars 02 17:42:56 raspberrypi-4b domoticz[7182]: > [Inferior 1 (process 7182) detached]
salinois
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: log error suite redemarrage Domoticz

Message par Keros »

Il serait utile pour nous de savoir sur quelle version de DomoticZ tu as ces erreurs et sur quel système tourne DomoticZ (Type, Os et Version) ?

Tu as fait des installations particulières en plus de DomoticZ ? Pour un accès depuis l'extérieur par exemple ?

Tu as mis ton erreur dans la recherche du forum pour voir s'il y avait des résultats ?
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
salinois
Messages : 330
Inscription : 08 févr. 2024, 19:10

Re: log error suite redemarrage Domoticz

Message par salinois »

Bonjour,
ah oui, j'avais oublié de dire sur quelle plateforme , c'était installé.
Donc, c'est sur ma machine de test, que je fais mes essais et apres je mets sur ma machine de prod.
domoticz-test.png
domoticz-test.png (85.3 Kio) Consulté 711 fois
et ça tourne sur un RPi 4b avec:
lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Donc, ce matin , je le démarre (test arrêté pendant la nuit) et voilà les logs dans domoticz.
les lignes concernant "SSL", n'apparaissent qu’après un démarrage. A part ça tout va bien.
J'ai acces à domoticz et les 2 choses qui tournent "livebox et speedtest" fonctionnent.

2024-03-03 10:48:04.460 Sunrise: 07:12:00 SunSet: 18:27:00
2024-03-03 10:48:04.461 Day length: 11:15:00 Sun at south: 12:50:00
2024-03-03 10:48:04.461 Civil twilight start: 06:42:00 Civil twilight end: 18:57:00
2024-03-03 10:48:04.462 Nautical twilight start: 06:07:00 Nautical twilight end: 19:32:00
2024-03-03 10:48:04.464 Astronomical twilight start: 05:32:00 Astronomical twilight end: 20:07:00
2024-03-03 10:48:04.852 Active notification Subsystems: (0/13)
2024-03-03 10:48:04.400 Status: Domoticz V2024.4 (c)2012-2024 GizMoCuz
2024-03-03 10:48:04.400 Status: Build Hash: 731719420, Date: 2024-01-30 09:16:34
2024-03-03 10:48:04.400 Status: Startup Path: /home/jeeper/domoticz/
2024-03-03 10:48:04.797 Status: PluginSystem: Started, Python version '3.9.2', 3 plugin definitions loaded.
2024-03-03 10:48:05.054 Starting shared server on: :::6144
2024-03-03 10:48:05.039 Status: WebServer(HTTP) started on address: :: with port 8080
2024-03-03 10:48:05.051 Status: WebServer(SSL) started on address: :: with port 443
2024-03-03 10:48:05.054 Status: TCPServer: shared server started...
2024-03-03 10:48:05.055 Status: RxQueue: queue worker started...
2024-03-03 10:48:05.048 Error: [web:443] missing SSL certificate chain file ./server_cert.pem!
2024-03-03 10:48:05.048 Error: [web:443] missing SSL certificate file ./server_cert.pem!
2024-03-03 10:48:05.048 Error: [web:443] missing SSL private key file ./server_cert.pem!
2024-03-03 10:48:05.048 Error: [web:443] missing SSL DH parameters file ./server_cert.pem!
2024-03-03 10:48:07.059 Status: NotificationSystem: thread started...
2024-03-03 10:48:07.063 Status: EventSystem: reset all events...
2024-03-03 10:48:07.070 Status: dzVents: Write file: /home/jeeper/domoticz/scripts/dzVents/generated_scripts/livebox.lua
2024-03-03 10:48:07.071 Status: EventSystem: reset all device statuses...
2024-03-03 10:48:07.172 Status: Python EventSystem: Initializing event module.
2024-03-03 10:48:07.173 Status: EventSystem: Started
2024-03-03 10:48:07.174 Status: EventSystem: Queue thread started...
2024-03-03 10:49:08.664 Status: Login successful from 192.168.0.6 for user 'admin'
2024-03-03 10:49:08.664 Status: [web:8080] Incoming connection from: 192.168.0.6
Apres, je vais vérifier le statut de domoticz:
sudo systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: failed (Result: timeout) since Sun 2024-03-03 10:52:34 CET; 3min 1>
Docs: man:systemd-sysv-generator(8)
Process: 585 ExecStart=/etc/init.d/domoticz.sh start (code=killed, signal=T>
Tasks: 19 (limit: 3933)
CPU: 2.885s
CGroup: /system.slice/domoticz.service
└─1478 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 10:49:08 raspberrypi-4b domoticz.sh[1478]: 2024-03-03 10:49:08.664 Sta>
mars 03 10:49:08 raspberrypi-4b domoticz[1478]: [web:8080] Incoming connection >
mars 03 10:50:23 raspberrypi-4b domoticz.sh[1478]: domoticz: [web:8080] Incomin>
mars 03 10:50:23 raspberrypi-4b domoticz[1478]: [web:8080] Incoming connection >
mars 03 10:50:23 raspberrypi-4b domoticz.sh[1478]: 2024-03-03 10:50:23.038 Sta>
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: start operation t>
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: Failed with resul>
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: Unit process 1478>
mars 03 10:52:34 raspberrypi-4b systemd[1]: Failed to start LSB: Home Automatio>
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: Consumed 2.151s C>
lines 1-20/20 (END)
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: failed (Result: timeout) since Sun 2024-03-03 10:52:34 CET; 3min 10s ago
Docs: man:systemd-sysv-generator(8)
Process: 585 ExecStart=/etc/init.d/domoticz.sh start (code=killed, signal=TERM)
Tasks: 19 (limit: 3933)
CPU: 2.885s
CGroup: /system.slice/domoticz.service
└─1478 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 10:49:08 raspberrypi-4b domoticz.sh[1478]: 2024-03-03 10:49:08.664 Status: [web:8080] Incomin>
mars 03 10:49:08 raspberrypi-4b domoticz[1478]: [web:8080] Incoming connection from: 192.168.0.6
mars 03 10:50:23 raspberrypi-4b domoticz.sh[1478]: domoticz: [web:8080] Incoming connection from: 127.>
mars 03 10:50:23 raspberrypi-4b domoticz[1478]: [web:8080] Incoming connection from: 127.0.0.1
mars 03 10:50:23 raspberrypi-4b domoticz.sh[1478]: 2024-03-03 10:50:23.038 Status: [web:8080] Incomin>
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: start operation timed out. Terminating.
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: Failed with result 'timeout'.
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: Unit process 1478 (domoticz) remains run>
mars 03 10:52:34 raspberrypi-4b systemd[1]: Failed to start LSB: Home Automation System.
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: Consumed 2.151s CPU time.
~
~
~
lines 1-20/20 (END)...skipping...
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: failed (Result: timeout) since Sun 2024-03-03 10:52:34 CET; 3min 10s ago
Docs: man:systemd-sysv-generator(8)
Process: 585 ExecStart=/etc/init.d/domoticz.sh start (code=killed, signal=TERM)
Tasks: 19 (limit: 3933)
CPU: 2.885s
CGroup: /system.slice/domoticz.service
└─1478 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 10:49:08 raspberrypi-4b domoticz.sh[1478]: 2024-03-03 10:49:08.664 Status: [web:8080] Incomin>
mars 03 10:49:08 raspberrypi-4b domoticz[1478]: [web:8080] Incoming connection from: 192.168.0.6
mars 03 10:50:23 raspberrypi-4b domoticz.sh[1478]: domoticz: [web:8080] Incoming connection from: 127.>
mars 03 10:50:23 raspberrypi-4b domoticz[1478]: [web:8080] Incoming connection from: 127.0.0.1
mars 03 10:50:23 raspberrypi-4b domoticz.sh[1478]: 2024-03-03 10:50:23.038 Status: [web:8080] Incomin>
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: start operation timed out. Terminating.
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: Failed with result 'timeout'.
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: Unit process 1478 (domoticz) remains run>
mars 03 10:52:34 raspberrypi-4b systemd[1]: Failed to start LSB: Home Automation System.
mars 03 10:52:34 raspberrypi-4b systemd[1]: domoticz.service: Consumed 2.151s CPU time.
je retente 14 mn apres, meme commande:
sudo systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: failed (Result: timeout) since Sun 2024-03-03 10:52:34 CET; 14min ago
Docs: man:systemd-sysv-generator(8)
Process: 585 ExecStart=/etc/init.d/domoticz.sh start (code=killed, signal=TERM)
Tasks: 19 (limit: 3933)
CPU: 6.364s
CGroup: /system.slice/domoticz.service
└─1478 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 11:00:02 raspberrypi-4b domoticz[1478]: dzVents: Info: Livebox 1.15: IP WAN : xxx.xxx.xxx.xxx
mars 03 11:00:02 raspberrypi-4b domoticz[1478]: dzVents: Info: Livebox 1.15: mac : introuvable
mars 03 11:00:02 raspberrypi-4b domoticz.sh[1478]: domoticz: dzVents: Info: Livebox 1.15: mac : introuvable
mars 03 11:00:02 raspberrypi-4b domoticz.sh[1478]: 2024-03-03 11:00:02.025 Status: dzVents: Info: Livebox 1.15: mac : introuvable
mars 03 11:00:02 raspberrypi-4b domoticz.sh[1478]: domoticz: dzVents: Info: Livebox 1.15: ------ Finished livebox
mars 03 11:00:02 raspberrypi-4b domoticz.sh[1478]: 2024-03-03 11:00:02.030 Status: dzVents: Info: Livebox 1.15: ------ Finished livebox
mars 03 11:00:02 raspberrypi-4b domoticz[1478]: dzVents: Info: Livebox 1.15: ------ Finished livebox
mars 03 11:05:23 raspberrypi-4b domoticz.sh[1478]: domoticz: [web:8080] Incoming connection from: 127.0.0.1
mars 03 11:05:23 raspberrypi-4b domoticz.sh[1478]: 2024-03-03 11:05:23.847 Status: [web:8080] Incoming connection from: 127.0.0.1
mars 03 11:05:23 raspberrypi-4b domoticz[1478]: [web:8080] Incoming connection from: 127.0.0.1
plus d'erreurs mais Active "Failed", Domoticz fonctionne toujours bien !!!

JE restart le service:
sudo systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (running) since Sun 2024-03-03 11:09:20 CET; 53s ago
Docs: man:systemd-sysv-generator(8)
Process: 2784 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
Tasks: 19 (limit: 3933)
CPU: 2.317s
CGroup: /system.slice/domoticz.service
└─1478 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > #8 0x011786fe in std::terminate() ()
mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > #9 0x00ccbf0c in std::_Sp_counted_ptr_inplace<std::thread, std::allocator<std::thread>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() ()
mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > #10 0x00ccd7de in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() ()
mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > #11 0x00d0e334 in CMQTTPush::~CMQTTPush() ()
mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > #12 0xf743de74 in __run_exit_handlers (status=1, listp=0xf755d130 <__new_exitfn_called>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@en>
mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > #13 0xf743e014 in __GI_exit (status=<optimized out>) at exit.c:139
mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > #14 0xf7424744 in __libc_start_main (main=0xffacd504, argc=-145375232, argv=0xf7424744 <__libc_start_main+280>, init=<optimized out>, fini=0x11dbdad <__lib>
mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > #15 0x00ca124c in _start ()
mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
mars 03 11:09:20 raspberrypi-4b domoticz[2792]: > [Inferior 1 (process 2792) detached]
des erreurs ,mais Active "Running".

je verifie qq minutes apres le status:
sudo systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: activating (start) since Sun 2024-03-03 11:12:24 CET; 3min 22s ago
Docs: man:systemd-sysv-generator(8)
Cntrl PID: 2900 (domoticz.sh)
Tasks: 20 (limit: 3933)
CPU: 1.566s
CGroup: /system.slice/domoticz.service
├─2900 /bin/sh /etc/init.d/domoticz.sh start
└─2909 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 11:15:01 raspberrypi-4b domoticz.sh[2909]: 2024-03-03 11:15:01.992 Status: dzVents: Info: Livebox 1.15: IP WAN : xxx.xxx.xxx.xxx
mars 03 11:15:01 raspberrypi-4b domoticz[2909]: dzVents: Info: Livebox 1.15: Uptime : 25:19:29:57
mars 03 11:15:01 raspberrypi-4b domoticz.sh[2909]: domoticz: dzVents: Info: Livebox 1.15: mac : introuvable
mars 03 11:15:01 raspberrypi-4b domoticz.sh[2909]: 2024-03-03 11:15:01.993 Status: dzVents: Info: Livebox 1.15: mac : introuvable
mars 03 11:15:01 raspberrypi-4b domoticz[2909]: dzVents: Info: Livebox 1.15: Internet : true
mars 03 11:15:01 raspberrypi-4b domoticz[2909]: dzVents: Info: Livebox 1.15: IP WAN : xxx.xxx.xxx.xxx
mars 03 11:15:01 raspberrypi-4b domoticz[2909]: dzVents: Info: Livebox 1.15: mac : introuvable
mars 03 11:15:02 raspberrypi-4b domoticz.sh[2909]: domoticz: dzVents: Info: Livebox 1.15: ------ Finished livebox
mars 03 11:15:02 raspberrypi-4b domoticz.sh[2909]: 2024-03-03 11:15:01.998 Status: dzVents: Info: Livebox 1.15: ------ Finished livebox
mars 03 11:15:01 raspberrypi-4b domoticz[2909]: dzVents: Info: Livebox 1.15: ------ Finished livebox
plus d'erreurs mais Active: activating (start) ; il ne devrait pas passer à "Running"; domoticz tourne toujours bien.

reverification du statut:
sudo systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: failed (Result: timeout) since Sun 2024-03-03 11:17:24 CET; 4min 12s ago
Docs: man:systemd-sysv-generator(8)
Process: 2900 ExecStart=/etc/init.d/domoticz.sh start (code=killed, signal=TERM)
Tasks: 19 (limit: 3933)
CPU: 3.176s
CGroup: /system.slice/domoticz.service
└─2909 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 11:15:02 raspberrypi-4b domoticz.sh[2909]: 2024-03-03 11:15:01.998 Status: dzVents: Info: Livebox 1.15: ------ Finished livebox
mars 03 11:15:01 raspberrypi-4b domoticz[2909]: dzVents: Info: Livebox 1.15: ------ Finished livebox
mars 03 11:17:24 raspberrypi-4b systemd[1]: domoticz.service: start operation timed out. Terminating.
mars 03 11:17:24 raspberrypi-4b systemd[1]: domoticz.service: Failed with result 'timeout'.
mars 03 11:17:24 raspberrypi-4b systemd[1]: domoticz.service: Unit process 2909 (domoticz) remains running after unit stopped.
mars 03 11:17:24 raspberrypi-4b systemd[1]: Failed to start LSB: Home Automation System.
mars 03 11:17:24 raspberrypi-4b systemd[1]: domoticz.service: Consumed 2.006s CPU time.
mars 03 11:20:22 raspberrypi-4b domoticz.sh[2909]: domoticz: [web:8080] Incoming connection from: 127.0.0.1
mars 03 11:20:22 raspberrypi-4b domoticz.sh[2909]: 2024-03-03 11:20:22.305 Status: [web:8080] Incoming connection from: 127.0.0.1
mars 03 11:20:22 raspberrypi-4b domoticz[2909]: [web:8080] Incoming connection from: 127.0.0.1
Active "failed"; mais domoticz tourne bien.......

Je sais plus quoi penser, désolé, d'alourdir ce post avec les logs, j'ai cherché mais pas trouver sur le forum.

Ultime tentative:
sudo systemctl restart domoticz.service
sudo systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (running) since Sun 2024-03-03 11:36:50 CET; 1min 17s ago
Docs: man:systemd-sysv-generator(8)
Process: 4039 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
Tasks: 19 (limit: 3933)
CPU: 3.615s
CGroup: /system.slice/domoticz.service
└─3623 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 11:37:42 raspberrypi-4b domoticz.sh[3623]: domoticz: dzVents: Info: Livebox 1.15: ------ Start internal script: livebox: Device: "Effacer liste appels (Domoticz_RPi4b)", Index: 15
mars 03 11:37:42 raspberrypi-4b domoticz.sh[3623]: 2024-03-03 11:37:42.407 Status: dzVents: Info: Livebox 1.15: ------ Start internal script: livebox: Device: "Effacer liste appels (Domoticz_RPi4b)", Inde>
mars 03 11:37:42 raspberrypi-4b domoticz[3623]: dzVents: Info: Livebox 1.15: ------ Start internal script: livebox: Device: "Effacer liste appels (Domoticz_RPi4b)", Index: 15
mars 03 11:37:42 raspberrypi-4b domoticz.sh[4162]: {"status":null}
mars 03 11:37:42 raspberrypi-4b domoticz.sh[3623]: domoticz: dzVents: Info: Livebox 1.15: clearCallList false
mars 03 11:37:42 raspberrypi-4b domoticz.sh[3623]: 2024-03-03 11:37:42.528 Status: dzVents: Info: Livebox 1.15: clearCallList false
mars 03 11:37:42 raspberrypi-4b domoticz[3623]: dzVents: Info: Livebox 1.15: clearCallList false
mars 03 11:37:42 raspberrypi-4b domoticz.sh[3623]: domoticz: dzVents: Info: Livebox 1.15: ------ Finished livebox
mars 03 11:37:42 raspberrypi-4b domoticz.sh[3623]: 2024-03-03 11:37:42.533 Status: dzVents: Info: Livebox 1.15: ------ Finished livebox
mars 03 11:37:42 raspberrypi-4b domoticz[3623]: dzVents: Info: Livebox 1.15: ------ Finished livebox
et là tout est bien; Active: active(running); vraiment bizarre; mais peut-etre que je mets fais des idées.....

Voilà, j'espere que ce n'est pas trop à lire...

Salinois
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: log error suite redemarrage Domoticz

Message par Keros »

Il vaut mieux trop de logs que pas du tout. En plus tu nous les répartis et commentes les divers essais que tu fais. C'est top.

En faisant une recherche de l'erreur sur le forum, il n'y a pas beaucoup de retours, certes, mais il y a un tuto qui parle de certificat. Tu n'aurais pas changé quelque chose de ce côté-là ?

Tu n'as rien touché quand tu as modifié le système de logs ?
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
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: log error suite redemarrage Domoticz

Message par Chrominator »

salinois a écrit : 02 mars 2024, 17:39 2024-03-02 17:37:04.189 Error: [web:443] missing SSL certificate chain file ./server_cert.pem!
2024-03-02 17:37:04.190 Error: [web:443] missing SSL certificate file ./server_cert.pem!
2024-03-02 17:37:04.190 Error: [web:443] missing SSL private key file ./server_cert.pem!
2024-03-02 17:37:04.190 Error: [web:443] missing SSL DH parameters file ./server_cert.pem!
Ceci semble indiquer que le fichier nommé server_cert.pem n'existe pas dans le répertoire où est l'exécutable de domoticz.
Est-ce le cas ?

Ce fichier est un certificat auto-signé livré avec domoticz pour sécuriser les connexions du protocole https.
Tu peux l'obtenir sur github si tu l'as perdu.
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
salinois
Messages : 330
Inscription : 08 févr. 2024, 19:10

Re: log error suite redemarrage Domoticz

Message par salinois »

bonjour Chrominator,

c'est ce que je pensai, pourtant, il y est présent...
domoticz-test_1.png
domoticz-test_1.png (23.28 Kio) Consulté 700 fois
Chrominator
Messages : 1042
Inscription : 19 déc. 2015, 07:29
Localisation : France

Re: log error suite redemarrage Domoticz

Message par Chrominator »

En effet.
Est-ce que son contenu serait corrompu ?
Pour le savoir tu pourrais le renommer en .old par exemple et mettre à la place celui de github, pour être certain.

Et vérifier aussi si le paramètre -sslcert est utilisé dans /etc/init.d/domoticz.sh (normalement il n'est pas spécifié).
Un bon frein vaut mieux que deux sparadraps.

Ubuntu 24.04.3 LTS - Domoticz 2025.1 (build 16782)
Pentium G3220T 2.6GHz - 4Go DDR3
RFXtrx433 USB Ver Pro1/1043
Z-Stick GEN5 Version: 1.6-1136-g07ea22bb
Rtl433 RTL-SDR receiver
RFLink Gateway
Zigbee SLZB-06
salinois
Messages : 330
Inscription : 08 févr. 2024, 19:10

Re: log error suite redemarrage Domoticz

Message par salinois »

re,

j'avais déjà fait une tentative dans domoticz.sh mais je les remis en commentaire
et je n'avais pas pensé qu'il pourrait corrompu vu qu'il a été mis par défaut à l'installation.
DAEMON=/home/jeeper/domoticz/$NAME
DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
#DAEMON_ARGS="$DAEMON_ARGS -sslcert /home/jeeper/domoticz/server_cert.pem"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log"
y a un moyen de tester le certificat? je vais aller prendre celui de github et réessayer.
apres je dois redemarrer le daemon et service Domotics ou juste Daemon ça suffit ?

salinois
salinois
Messages : 330
Inscription : 08 févr. 2024, 19:10

Re: log error suite redemarrage Domoticz

Message par salinois »

Bon, je viens de suivre tes préconisations
remis la ligne dans domoticz.sh , mais c'est tout pareil !!!!!

salinois
salinois
Messages : 330
Inscription : 08 févr. 2024, 19:10

Re: log error suite redemarrage Domoticz

Message par salinois »

Bon pour les autres logs, j'ai l'impression qu'au bout d'un moment , tout devient normal.
un écart d'une heure environ entre deux commandes de status
sudo systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (running) since Sun 2024-03-03 19:02:05 CET; 4min 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 17716 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
Tasks: 19 (limit: 3933)
CPU: 3.258s
CGroup: /system.slice/domoticz.service
└─17471 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 19:02:05 raspberrypi-4b domoticz[17724]: > #11 0x00a9e334 in CMQTTPush::~CMQTTPush() ()
mars 03 19:02:05 raspberrypi-4b domoticz[17724]: > #12 0xf7276e74 in __run_exit_handlers (status=1, listp=0>
mars 03 19:02:05 raspberrypi-4b domoticz[17724]: > #13 0xf7277014 in __GI_exit (status=<optimized out>) at >
mars 03 19:02:05 raspberrypi-4b domoticz[17724]: > #14 0xf725d744 in __libc_start_main (main=0xffc60324, ar>
mars 03 19:02:05 raspberrypi-4b domoticz[17724]: > #15 0x00a3124c in _start ()
mars 03 19:02:05 raspberrypi-4b domoticz[17724]: > Backtrace stopped: previous frame identical to this fram>
mars 03 19:02:05 raspberrypi-4b domoticz[17724]: > [Inferior 1 (process 17724) detached]
mars 03 19:05:24 raspberrypi-4b domoticz.sh[17471]: domoticz: [web:8080] Incoming connection from: 127.0.0.1
mars 03 19:05:24 raspberrypi-4b domoticz.sh[17471]: 2024-03-03 19:05:24.338 Status: [web:8080] Incoming co>
mars 03 19:05:24 raspberrypi-4b domoticz[17471]: [web:8080] Incoming connection from: 127.0.0.1

jeeper@raspberrypi-4b:~/domoticz $ sudo systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (running) since Sun 2024-03-03 19:02:05 CET; 1h 9min ago
Docs: man:systemd-sysv-generator(8)
Process: 17716 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
Tasks: 19 (limit: 3933)
CPU: 23.490s
CGroup: /system.slice/domoticz.service
└─17471 /home/jeeper/domoticz/domoticz $ -syslog local1

mars 03 20:10:06 raspberrypi-4b domoticz[17471]: Active notification Subsystems: browser (1/13)
mars 03 20:10:18 raspberrypi-4b domoticz.sh[17471]: domoticz: Login successful from 192.168.0.6 for user 'a>
mars 03 20:10:18 raspberrypi-4b domoticz.sh[17471]: 2024-03-03 20:10:18.783 Status: Login successful from >
mars 03 20:10:18 raspberrypi-4b domoticz[17471]: Login successful from 192.168.0.6 for user 'admin'
mars 03 20:10:18 raspberrypi-4b domoticz.sh[17471]: domoticz: [web:8080] Incoming connection from: 192.168.>
mars 03 20:10:18 raspberrypi-4b domoticz.sh[17471]: 2024-03-03 20:10:18.784 Status: [web:8080] Incoming co>
mars 03 20:10:18 raspberrypi-4b domoticz[17471]: [web:8080] Incoming connection from: 192.168.0.6
mars 03 20:11:14 raspberrypi-4b domoticz.sh[17471]: domoticz: Active notification Subsystems: browser (1/13)
mars 03 20:11:14 raspberrypi-4b domoticz.sh[17471]: 2024-03-03 20:11:14.144 Active notification Subsystems>
mars 03 20:11:14 raspberrypi-4b domoticz[17471]: Active notification Subsystems: browser (1/13)
A suivre.

salinois
Répondre