[Résolu] Domoticz ne démarre pas du départ
[Résolu] Domoticz ne démarre pas du départ
Bonjour,
cela fait pas mal de temps que j'ai ce problème, mais là ca m'a un peut embêté :
à chaque démarrage suite à un arrêt d'alimentation , le mon pi3 démarre bien , mais pas domoticz, je suis obligé de faire un reboot du pi3, pour qu'il démarre .. et avec la tempête qu'on a eu , bing, coupure de courant domoticz n'a pas démarrer quand le courant est revenus. j' ai du faire un reboot ( le soir en rentrant chez moi) ... et c'est reparti .
Ce qui m'ennui , c'est que si je suis en vacance , si il y a une coupure de courant , plus de domoticz ....
ca me le fait sur 2 rpi , tout deux à jours Version: 2022.1
de quel côté je dois chercher ?
mauvaise config du rpi ? domoticz ?
cela fait pas mal de temps que j'ai ce problème, mais là ca m'a un peut embêté :
à chaque démarrage suite à un arrêt d'alimentation , le mon pi3 démarre bien , mais pas domoticz, je suis obligé de faire un reboot du pi3, pour qu'il démarre .. et avec la tempête qu'on a eu , bing, coupure de courant domoticz n'a pas démarrer quand le courant est revenus. j' ai du faire un reboot ( le soir en rentrant chez moi) ... et c'est reparti .
Ce qui m'ennui , c'est que si je suis en vacance , si il y a une coupure de courant , plus de domoticz ....
ca me le fait sur 2 rpi , tout deux à jours Version: 2022.1
de quel côté je dois chercher ?
mauvaise config du rpi ? domoticz ?
Dernière modification par didier02 le 27 févr. 2022, 16:08, modifié 1 fois.
Mon instal PI 3b+/disk SSD 128Go / envoie sms / linky en usb USBTICLC / zigate V2+ / sonoff powR2 / sonoff SNZB01 - SNZB 02 - Xiaomi Aqara - 1wire ds18b20 - détection présence Bluetooth -
Re: Domoticz ne démarre pas du départ
Ca m'interesse aussi.
De mon coté je ne redemarre pas le PI (car parfois ca bloque aussi), je redemarre juste domoticz.
De mon coté je ne redemarre pas le PI (car parfois ca bloque aussi), je redemarre juste domoticz.
Re: Domoticz ne démarre pas du départ
perso , je peux pas redémarrer juste domoticz, il démarre pas du tout !!!
au premier démarrage
Mon instal PI 3b+/disk SSD 128Go / envoie sms / linky en usb USBTICLC / zigate V2+ / sonoff powR2 / sonoff SNZB01 - SNZB 02 - Xiaomi Aqara - 1wire ds18b20 - détection présence Bluetooth -
-
Chrominator
- Messages : 1042
- Inscription : 19 déc. 2015, 07:29
- Localisation : France
Re: Domoticz ne démarre pas du départ
La piste c'est d'aller voir dans le log de domoticz ce qui cloche ;
Domoticz a sans doute démarré et rencontré un problème, il faut trouver lequel pour envisager des actions correctives.
Domoticz a sans doute démarré et rencontré un problème, il faut trouver lequel pour envisager des actions correctives.
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
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
Re: Domoticz ne démarre pas du départ
Il n y a pas de log puisqu il n a pas démarré.. d ou mon problème.. si je reboot il demarre et ras dans les log ... je vois pas d où ca peux venir justement .. setup de domoticz ?
Mon instal PI 3b+/disk SSD 128Go / envoie sms / linky en usb USBTICLC / zigate V2+ / sonoff powR2 / sonoff SNZB01 - SNZB 02 - Xiaomi Aqara - 1wire ds18b20 - détection présence Bluetooth -
Re: Domoticz ne démarre pas du départ
Il doit bien tenter de se lancer à un moment du démarrage.
Active le fichier log pour voir.
Active le fichier log pour voir.
-
Chrominator
- Messages : 1042
- Inscription : 19 déc. 2015, 07:29
- Localisation : France
Re: Domoticz ne démarre pas du départ
Il n'y a pas qu'une seule solution pour démarrer une app au boot de l'OS.
Donc si d'après toi il n'existe pas de tentative de démarrer domoticz après une coupure de courant, c'est le log du système qu'il faut examiner.
Tu y trouveras peut-être la correction d'erreurs sur le système de fichiers ou autres incidents qui ont pu en être la cause.
Donc si d'après toi il n'existe pas de tentative de démarrer domoticz après une coupure de courant, c'est le log du système qu'il faut examiner.
Tu y trouveras peut-être la correction d'erreurs sur le système de fichiers ou autres incidents qui ont pu en être la cause.
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
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
Re: Domoticz ne démarre pas du départ
bon , c'est officiel , je suis largué ....
J'ai essayé de faire ce que Neutrino ma dit :
suivant le lien
mon ancien domoticz.txt

J'avoue , je fais beaucoup de copier coller , et je comprend pas toujours tout !!
le fichier domoticz que j'ai recupéré ...
2022-02-20 13:16:34.186 tuya: 'Username':'**********'
2022-02-20 13:16:34.186 tuya: 'Password':'*******'
c'est volontaire ...
J'ai essayé de faire ce que Neutrino ma dit :
suivant le lien
j'ai donc changé mon fichierActive le fichier log pour voir.
avec celui du lien, commenté la ligne avec www 8080 et décommenté celle avec domoticz.txt ... et bien ca fonctionne ..domoticz.sh
mon ancien domoticz.txt
perso , a part l'ajout des ports gpio , j'ai rien modifié de plus ... ou k'cé k'ca vas pas ?# Do NOT "set -e"
/usr/local/bin/gpio export 4 out
/usr/local/bin/gpio export 12 out
/usr/local/bin/gpio export 17 out
/usr/local/bin/gpio export 18 out
/usr/local/bin/gpio export 22 out
/usr/local/bin/gpio export 23 out
/usr/local/bin/gpio export 24 out
/usr/local/bin/gpio export 25 out
/usr/local/bin/gpio export 27 out
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"
NAME=domoticz
USERNAME=pi
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
DAEMON=/home/pi/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 -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
J'avoue , je fais beaucoup de copier coller , et je comprend pas toujours tout !!
le fichier domoticz que j'ai recupéré ...
2022-02-20 13:12:46.842 Status: Domoticz V2022.1 (c)2012-2022 GizMoCuz
2022-02-20 13:12:46.843 Status: Build Hash: c9526851b, Date: 2022-01-31 09:34:32
2022-02-20 13:12:46.843 Status: Startup Path: /home/pi/domoticz/
2022-02-20 13:12:47.123 Sunrise: 07:36:00 SunSet: 18:39:00
2022-02-20 13:12:47.123 Day length: 11:04:00 Sun at south: 13:07:00
2022-02-20 13:12:47.123 Civil twilight start: 07:09:00 Civil twilight end: 19:05:00
2022-02-20 13:12:47.123 Nautical twilight start: 06:39:00 Nautical twilight end: 19:35:00
2022-02-20 13:12:47.123 Astronomical twilight start: 06:09:00 Astronomical twilight end: 20:05:00
2022-02-20 13:12:47.794 Status: PluginSystem: Started, Python version '3.7.3', 2 plugin definitions loaded.
2022-02-20 13:12:47.808 Active notification Subsystems: (0/13)
2022-02-20 13:12:47.842 Status: WebServer(HTTP) started on address: :: with port 8080
2022-02-20 13:12:47.864 Status: WebServer(SSL) started on address: :: with port 443
2022-02-20 13:12:47.868 Starting shared server on: :::6144
2022-02-20 13:12:47.869 Status: TCPServer: shared server started...
2022-02-20 13:12:47.869 Status: RxQueue: queue worker started...
2022-02-20 13:12:49.870 Status: tuya: Entering work loop.
2022-02-20 13:12:49.870 tuya: Worker thread started.
2022-02-20 13:12:49.870 Status: tuya: Started.
2022-02-20 13:12:49.870 Status: NotificationSystem: thread started...
2022-02-20 13:12:49.876 Status: EventSystem: reset all events...
2022-02-20 13:12:49.918 Status: EventSystem: reset all device statuses...
2022-02-20 13:12:50.158 Status: Python EventSystem: Initializing event module.
2022-02-20 13:12:50.159 Status: EventSystem: Started
2022-02-20 13:12:50.159 Status: EventSystem: Queue thread started...
2022-02-20 13:12:50.196 Status: PluginSystem: 1 plugins started.
2022-02-20 13:12:52.472 Status: tuya: Initialized version 1.0.13, author 'Wagner Oliveira contributed Xenomes'
2022-02-20 13:12:52.508 tuya: Waiting 60 seconds to connect TuyaApi login error timeout
2022-02-20 13:12:52.508 tuya: Waiting 50 seconds to connect TuyaApi (Tuya Plug-in)
2022-02-20 13:13:02.518 tuya: Waiting 40 seconds to connect TuyaApi (Tuya Plug-in)
2022-02-20 13:13:12.529 tuya: Waiting 30 seconds to connect TuyaApi (Tuya Plug-in)
2022-02-20 13:16:27.827 Error: EventSystem thread seems to have ended unexpectedly (last update 195.000000 seconds ago)
2022-02-20 13:16:27.827 Error: Scheduler thread seems to have ended unexpectedly (last update 195.000000 seconds ago)
2022-02-20 13:16:27.827 Error: tuya hardware (3) thread seems to have ended unexpectedly
2022-02-20 13:16:34.186 tuya: TUYA plugin started
2022-02-20 13:16:34.186 tuya: Debug logging mask set to: PYTHON CONNECTION
2022-02-20 13:16:34.186 tuya: 'HardwareID':'3'
2022-02-20 13:16:34.186 tuya: 'HomeFolder':'/home/pi/domoticz/plugins/Domoticz-TUYA-Plugin/'
2022-02-20 13:16:34.186 tuya: 'StartupFolder':'/home/pi/domoticz/'
2022-02-20 13:16:34.186 tuya: 'UserDataFolder':'/home/pi/domoticz/'
2022-02-20 13:16:34.186 tuya: 'Database':'/home/pi/domoticz/domoticz.db'
2022-02-20 13:16:34.186 tuya: 'Language':'fr'
2022-02-20 13:16:34.186 tuya: 'Version':'1.0.13'
2022-02-20 13:16:34.186 tuya: 'Author':'Wagner Oliveira contributed Xenomes'
2022-02-20 13:16:34.186 tuya: 'Name':'tuya'
2022-02-20 13:16:34.186 tuya: 'Port':'0'
2022-02-20 13:16:34.186 tuya: 'Username':'**********'
2022-02-20 13:16:34.186 tuya: 'Password':'*******'
2022-02-20 13:16:34.186 tuya: 'Username':'**********'
2022-02-20 13:16:34.186 tuya: 'Password':'*******'
c'est volontaire ...
Mon instal PI 3b+/disk SSD 128Go / envoie sms / linky en usb USBTICLC / zigate V2+ / sonoff powR2 / sonoff SNZB01 - SNZB 02 - Xiaomi Aqara - 1wire ds18b20 - détection présence Bluetooth -
Re: Domoticz ne démarre pas du départ
bon , ben c'est pas beau a voir, ...., après la modif si j'arrête le raspberry à l'arrache en coupant l' alim. pendant 10 minutes , domoticz redémarre toujours pas ,et j'ai plus accès a distance , ni en local ...
j'ai du coup avant arrêté le plug tuya, pour y voir plus clair, mais ca me le faisait aussi avant ...
le fichier domoticz.txt :
.
.
après un reboot , le fichier domoticz txt :
.
on dirais que c'est au niveau de
j'ai du coup avant arrêté le plug tuya, pour y voir plus clair, mais ca me le faisait aussi avant ...
le fichier domoticz.txt :
.pi@raspberrypi:/tmp $ sudo nano domoticz.txt
GNU nano 3.2 domoticz.txt
2022-02-20 18:06:33.751 Status: Domoticz V2022.1 (c)2012-2022 GizMoCuz
2022-02-20 18:06:33.752 Status: Build Hash: c9526851b, Date: 2022-01-31 09:34:32
2022-02-20 18:06:33.752 Status: Startup Path: /home/pi/domoticz/
2022-02-20 18:06:34.357 Sunrise: 07:36:00 SunSet: 18:39:00
2022-02-20 18:06:34.357 Day length: 11:04:00 Sun at south: 13:07:00
2022-02-20 18:06:34.357 Civil twilight start: 07:09:00 Civil twilight end: 19:05:00
2022-02-20 18:06:34.357 Nautical twilight start: 06:39:00 Nautical twilight end: 19:35:00
2022-02-20 18:06:34.357 Astronomical twilight start: 06:09:00 Astronomical twilight end: 20:05:00
2022-02-20 18:06:35.098 Status: PluginSystem: Started, Python version '3.7.3', 2 plugin definitions loaded.
2022-02-20 18:06:35.114 Active notification Subsystems: (0/13)
2022-02-20 18:06:35.147 Status: WebServer(HTTP) started on address: :: with port 8080
2022-02-20 18:06:35.168 Status: WebServer(SSL) started on address: :: with port 443
2022-02-20 18:06:35.172 Starting shared server on: :::6144
2022-02-20 18:06:35.173 Status: TCPServer: shared server started...
2022-02-20 18:06:35.174 Status: RxQueue: queue worker started...
2022-02-20 18:06:37.174 Status: NotificationSystem: thread started...
2022-02-20 18:06:37.487 Status: EventSystem: reset all events...
2022-02-20 18:06:37.507 Status: EventSystem: reset all device statuses...
2022-02-20 18:06:37.604 Status: Python EventSystem: Initializing event module.
2022-02-20 18:06:37.605 Status: EventSystem: Started
2022-02-20 18:06:37.605 Status: EventSystem: Queue thread started...
2022-02-20 18:12:18.999 Error: mainworker seems to have ended or hung unexpectedly (last update 329.000000 seconds ago)
2022-02-20 18:12:19.000 Error: Domoticz(511) is exiting due to watchdog triggered...
2022-02-20 18:12:23.358 Error: EventSystem thread seems to have ended unexpectedly (last update 323.000000 seconds ago)
2022-02-20 18:12:23.359 Error: Scheduler thread seems to have ended unexpectedly (last update 323.000000 seconds ago)
2022-02-20 18:12:23.414 Error: Stack frame for all threads:
2022-02-20 18:12:23.414 Error: > [New LWP 512]
2022-02-20 18:12:23.414 Error: > [New LWP 515]
2022-02-20 18:12:23.414 Error: > [New LWP 517]
2022-02-20 18:12:23.414 Error: > [New LWP 522]
2022-02-20 18:12:23.414 Error: > [New LWP 523]
2022-02-20 18:12:23.414 Error: > [New LWP 524]
2022-02-20 18:12:23.414 Error: > [New LWP 525]
2022-02-20 18:12:23.414 Error: > [New LWP 526]
2022-02-20 18:12:23.414 Error: > [New LWP 527]
2022-02-20 18:12:23.414 Error: > [New LWP 528]
2022-02-20 18:12:23.414 Error: > [New LWP 529]
2022-02-20 18:12:23.414 Error: > [New LWP 530]
2022-02-20 18:12:23.414 Error: > [New LWP 562]
2022-02-20 18:12:23.414 Error: > [New LWP 564]
2022-02-20 18:12:23.414 Error: > [New LWP 576]
2022-02-20 18:12:23.414 Error: > [New LWP 577]
2022-02-20 18:12:23.414 Error: > [New LWP 976]
2022-02-20 18:12:23.414 Error: > [Thread debugging using libthread_db enabled]
2022-02-20 18:12:23.414 Error: > Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2022-02-20 18:12:23.414 Error: > __GI___nanosleep (remaining=0x7ec7a9c8, requested_time=0x7ec7a9c8) at ../sysdeps/unix/sysv/linux/nanosleep.c:28
2022-02-20 18:12:23.414 Error: > 28 ../sysdeps/unix/sysv/linux/nanosleep.c: Aucun fichier ou dossier de ce type.
2022-02-20 18:12:23.414 Error: > Id Target Id Frame
.
.
après un reboot , le fichier domoticz txt :
et là tous vas bien ..2022-02-20 18:30:51.310 Status: Domoticz V2022.1 (c)2012-2022 GizMoCuz
2022-02-20 18:30:51.310 Status: Build Hash: c9526851b, Date: 2022-01-31 09:34:32
2022-02-20 18:30:51.311 Status: Startup Path: /home/pi/domoticz/
2022-02-20 18:30:51.589 Sunrise: 07:36:00 SunSet: 18:39:00
2022-02-20 18:30:51.589 Day length: 11:04:00 Sun at south: 13:07:00
2022-02-20 18:30:51.589 Civil twilight start: 07:09:00 Civil twilight end: 19:05:00
2022-02-20 18:30:51.589 Nautical twilight start: 06:39:00 Nautical twilight end: 19:35:00
2022-02-20 18:30:51.589 Astronomical twilight start: 06:09:00 Astronomical twilight end: 20:05:00
2022-02-20 18:30:52.226 Status: PluginSystem: Started, Python version '3.7.3', 2 plugin definitions loaded.
2022-02-20 18:30:52.240 Active notification Subsystems: (0/13)
2022-02-20 18:30:52.272 Status: WebServer(HTTP) started on address: :: with port 8080
2022-02-20 18:30:52.292 Status: WebServer(SSL) started on address: :: with port 443
2022-02-20 18:30:52.296 Starting shared server on: :::6144
2022-02-20 18:30:52.297 Status: TCPServer: shared server started...
2022-02-20 18:30:52.298 Status: RxQueue: queue worker started...
2022-02-20 18:30:54.298 Status: NotificationSystem: thread started...
2022-02-20 18:30:54.303 Status: EventSystem: reset all events...
2022-02-20 18:30:54.325 Status: EventSystem: reset all device statuses...
2022-02-20 18:30:54.424 Status: Python EventSystem: Initializing event module.
2022-02-20 18:30:54.425 Status: EventSystem: Started
2022-02-20 18:30:54.425 Status: EventSystem: Queue thread started...
2022-02-20 18:31:14.175 Status: Incoming connection from: 192.168.0.27
.
on dirais que c'est au niveau de
que çà vas pas ...2022-02-20 18:06:37.605 Status: EventSystem: Queue thread started...
2022-02-20 18:12:18.999 Error: mainworker seems to have ended or hung unexpectedly (last update 329.000000 seconds ago)
Mon instal PI 3b+/disk SSD 128Go / envoie sms / linky en usb USBTICLC / zigate V2+ / sonoff powR2 / sonoff SNZB01 - SNZB 02 - Xiaomi Aqara - 1wire ds18b20 - détection présence Bluetooth -
Re: Domoticz ne démarre pas du départ
Je vois cette ligne : Domoticz(511) is exiting due to watchdog triggered
Tu as monit d'installer ou quelque chose de similaire qui regarde si DomoticZ fonctionne ? Si oui, que dise les logs.
Tu as monit d'installer ou quelque chose de similaire qui regarde si DomoticZ fonctionne ? Si oui, que dise les 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
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos