Page 2 sur 2

Re: Lancement mqtt au reboot

Publié : 01 nov. 2019, 12:42
par Doume
La ligne que tu as citée correspond à l'arrêt général qui a précédé le reboot : Normal !

Pourquoi dis-tu que mosquitto ne démarre pas au boot?
Quand je vois ceci :
Oct 31 18:20:46 raspberrypi systemd[1]: Started LSB: mosquitto MQTT v3.1 message broker.
Oct 31 18:20:46 raspberrypi mosquitto[406]: Starting network daemon:: mosquitto.
ça indique qu'il est parfaitement démarré ! !


Par contre, tu as un problème avec le driver Bluetooth : Il crashe à chaque nouvelle tentative d'interrogations :
31 21:45:47 raspberrypi kernel: [12278.728203] sysfs: cannot create duplicate filename '/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:64'
Oct 31 21:45:47 raspberrypi kernel: [12278.728222] CPU: 0 PID: 42 Comm: kworker/u9:0 Tainted: G C 4.19.66-v7+ #1253
Oct 31 21:45:47 raspberrypi kernel: [12278.728227] Hardware name: BCM2835
Oct 31 21:45:47 raspberrypi kernel: [12278.728378] Workqueue: hci0 hci_rx_work [bluetooth]
Oct 31 21:45:47 raspberrypi kernel: [12278.728414] [<80111f38>] (unwind_backtrace) from [<8010d4b0>] (show_stack+0x20/0x24)
Oct 31 21:45:47 raspberrypi kernel: [12278.728432] [<8010d4b0>] (show_stack) from [<808191e0>] (dump_stack+0xd4/0x118)
Oct 31 21:45:47 raspberrypi kernel: [12278.728452] [<808191e0>] (dump_stack) from [<80333bd0>] (sysfs_warn_dup+0x6c/0x78)
Oct 31 21:45:47 raspberrypi kernel: [12278.728467] [<80333bd0>] (sysfs_warn_dup) from [<80333d00>] (sysfs_create_dir_ns+0xcc/0xe0)
Oct 31 21:45:47 raspberrypi kernel: [12278.728486] [<80333d00>] (sysfs_create_dir_ns) from [<8081e4ec>] (kobject_add_internal+0xb4/0x2ec)
Oct 31 21:45:47 raspberrypi kernel: [12278.728504] [<8081e4ec>] (kobject_add_internal) from [<8081e934>] (kobject_add+0x60/0xb8)
Oct 31 21:45:47 raspberrypi kernel: [12278.728524] [<8081e934>] (kobject_add) from [<805a6ecc>] (device_add+0x104/0x600)
Oct 31 21:45:47 raspberrypi kernel: [12278.728663] [<805a6ecc>] (device_add) from [<7f5b7344>] (hci_conn_add_sysfs+0x40/0x68 [bluetooth])
Oct 31 21:45:47 raspberrypi kernel: [12278.728924] [<7f5b7344>] (hci_conn_add_sysfs [bluetooth]) from [<7f5a1408>] (le_conn_complete_evt+0x354/0x5a4 [bluetooth])
Oct 31 21:45:47 raspberrypi kernel: [12278.729181] [<7f5a1408>] (le_conn_complete_evt [bluetooth]) from [<7f5a1e58>] (hci_le_meta_evt+0x304/0xa50 [bluetooth])
Oct 31 21:45:47 raspberrypi kernel: [12278.729438] [<7f5a1e58>] (hci_le_meta_evt [bluetooth]) from [<7f5a4564>] (hci_event_packet+0x858/0x2ecc [bluetooth])
Oct 31 21:45:47 raspberrypi kernel: [12278.729693] [<7f5a4564>] (hci_event_packet [bluetooth]) from [<7f595e80>] (hci_rx_work+0x160/0x228 [bluetooth])
Oct 31 21:45:47 raspberrypi kernel: [12278.729830] [<7f595e80>] (hci_rx_work [bluetooth]) from [<8013bf0c>] (process_one_work+0x170/0x458)
Oct 31 21:45:47 raspberrypi kernel: [12278.729847] [<8013bf0c>] (process_one_work) from [<8013c250>] (worker_thread+0x5c/0x5a4)
Oct 31 21:45:47 raspberrypi kernel: [12278.729865] [<8013c250>] (worker_thread) from [<8014253c>] (kthread+0x138/0x168)
Oct 31 21:45:47 raspberrypi kernel: [12278.729882] [<8014253c>] (kthread) from [<801010ac>] (ret_from_fork+0x14/0x28)
Oct 31 21:45:47 raspberrypi kernel: [12278.729890] Exception stack(0xb9f9dfb0 to 0xb9f9dff8)
Oct 31 21:45:47 raspberrypi kernel: [12278.729899] dfa0: 00000000 00000000 00000000 00000000
Oct 31 21:45:47 raspberrypi kernel: [12278.729911] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Oct 31 21:45:47 raspberrypi kernel: [12278.729921] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
Oct 31 21:45:47 raspberrypi kernel: [12278.730065] kobject_add_internal failed for hci0:64 with -EEXIST, don't try to register things with the same name in the same directory.
Oct 31 21:45:47 raspberrypi kernel: [12278.730080] Bluetooth: hci0: failed to register connection device
Ceci se répète toutes les 5 mn ....

Re: Lancement mqtt au reboot

Publié : 01 nov. 2019, 13:53
par Wolfen38
Je dis que mosquitto ne demarre pas car apres le reboot j'ai plein d'erreur dans log car pas de connexion, et ca s'arrete ces erreurs uniquement apres que dans putty j'ai tapé mosquitto -d

Oui, le bluetooth, je sais pas cxxe que c'est mais en effet mes thermometre xiaomi bluetooth ne fonctionnent plus...

Re: Lancement mqtt au reboot

Publié : 01 nov. 2019, 14:13
par Doume
Dans ton log, on dirait que mosquitto est lancé plusieurs fois :

par systemd ( processus gérant le boot ) et par le cron !

Ce serait pas ton script de vérification de domoticz, qui lancerait aussi un "mosquitto -d" ?????

Je suspecte que tu te crées toi-même un conflit, car mosquitto ne doit être lancé qu'une fois !

Re: Lancement mqtt au reboot

Publié : 01 nov. 2019, 16:17
par Wolfen38
En effet bien vu, suite à différents essais, j'avais une commande de lancement de mosquitto dans crontab, je viens de l'enlever, je vais voir au prochain reboot.