Daemon zigbee s'arrêtent avec apache mais ne redémarrent pas automatiquement

Tags: #<Tag:0x00007fa79a6b2468>

Bonjour,

Je tiens à faire une remontée de bug, j’essaye de remonter à la source le plus moi même pour peut-être avoir de quoi bugfixer (je ne suis qu’un sysadmin :stuck_out_tongue: )
Je suis en core 4.1.22 et plugin zigbee 2021-05-18 (up-to-date il y a encore 2 jours, mais plus maintenant xD ) sur raspberry pi 3

Les 2 daemons zigbee plantent à 5h00 depuis 2 jours, ils s’arrêtent avec un return code de 0 (étonnamment :thinking:) et ils le fond au moment où le cron d’archive plante aussi, trop de coïncidence :slight_smile:
J’ai un clé zigate et une clé popp EZSP
image

J’ai parcouru le forum et j’ai vu un sujet similaire assez vieux avec une commande qui aurait un historique null, et j’ai donc lancé manuellement la tâche pour voir une erreur, mais celle-ci s’est exécutée correctement cette fois :roll_eyes:

Je ne pense pas que cela soit normal que ces processus se finissent avec un statut 0 au moment de la tâche d’archivage qui concerne plus la DB quand j’ai fait un strace du processus cron en cours.
Je suis dispo pour investiguer sur le bug :slight_smile: je vais déjà voir si cela se reproduit cette nuit.

Extrait du log zigbee

[2021-06-09 05:00:08][DEBUG] : null
[2021-06-09 05:00:09][DEBUG] : http://127.0.0.1:8090/device/all type : GET
[2021-06-09 05:00:09][DEBUG] : null
[2021-06-09 05:00:10][ERROR] : Le module [RDC][telecommande 3 boutons] n'a pas envoyé de message depuis plus de 120 min
[2021-06-09 05:00:10][ERROR] : Le module [RDC][sonde living] n'a pas envoyé de message depuis plus de 120 min
[2021-06-09 05:00:10][DEBUG] : {"devices":{"00:15:bc:00:36:00:0c:8d":{"38":{"64515":{"0":{"value":"40","cluster_name":"Jeedom - Frient Voc Measurement"},"3":{"value":"1","cluster_name":"Jeedom - Frient Voc Measurement"}}}}}}
[2021-06-09 05:00:10][DEBUG] : Search attribut for 00:15:bc:00:36:00:0c:8d logicalId : 38::64515::0 => 40
[2021-06-09 05:00:10][DEBUG] : Search attribut for 00:15:bc:00:36:00:0c:8d logicalId : 38::64515::3 => 1
[2021-06-09 05:00:56][DEBUG] : {"devices":{"cc:86:ec:ff:fe:59:6e:47":{"1":[{"1":{"value":"66","cluster_name":"Basic"}}]}}}
[2021-06-09 06:00:04][DEBUG] : http://127.0.0.1:8089/device/all type : GET
[2021-06-09 06:00:04][DEBUG] : null
[2021-06-09 06:00:04][ERROR] : Echec de la requête HTTP : http://127.0.0.1:8089/device/all cURL error : Failed to connect to 127.0.0.1 port 8089: Connection refused
[2021-06-09 06:00:04][DEBUG] : http://127.0.0.1:8090/device/all type : GET
[2021-06-09 06:00:04][DEBUG] : null
[2021-06-09 06:00:04][ERROR] : Echec de la requête HTTP : http://127.0.0.1:8090/device/all cURL error : Failed to connect to 127.0.0.1 port 8090: Connection refused

Extrait du zigbeed zigate

[2021-06-09 04:59:53][DEBUG] : zigate_callback_handler [0, 260, 0, 1, 1, <Address address_mode=ADDRESS_MODE.NWK address=0x6c3e>, <Address address_mode=ADDRESS_MODE.NWK address=0x0000>, b'\x18=
\x01\x00 B']
[2021-06-09 04:59:53][DEBUG] : [0x6c3e:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=61 command_id=Command.Report_Attributes>
[2021-06-09 04:59:53][DEBUG] : [0x6c3e:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
[2021-06-09 04:59:53][INFO] : [cc:86:ec:ff:fe:59:6e:3a][listener.general_command] Cluster: <zigpy.zcl.clusters.general.Basic object at 0x7f8157c2b0> ClusterId: 0x0000 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=True> manufacturer=None tsn=61 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]],)
[2021-06-09 04:59:53][DEBUG] : [0x6c3e:1:0x0000] Attribute report received: app_version=66
[2021-06-09 04:59:53][INFO] : [cc:86:ec:ff:fe:59:6e:3a][listener.attribute_updated] Received an attribute update 1=66 on cluster 0
[2021-06-09 04:59:53][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7f81e14c70>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (cc:86:ec:ff:fe:59:6e:3a, 1, 0, 1, 66))
[2021-06-09 04:59:53][DEBUG] : operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7f81e14c70>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (cc:86:ec:ff:fe:59:6e:3a, 1, 0, 1, 66)) completed
[2021-06-09 04:59:53][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7f81e14c70>)
[2021-06-09 04:59:53][DEBUG] : operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7f81e14c70>) completed
[2021-06-09 04:59:53][DEBUG] : Send to jeedom : {'devices': {'cc:86:ec:ff:fe:59:6e:3a': {'1': {'0': {'1': {'value': '66', 'cluster_name': 'Basic'}}}}}}
[2021-06-09 04:59:53][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-06-09 04:59:53][DEBUG] : http://127.0.0.1:80 "POST /plugins/zigbee/core/php/jeeZigbee.php?apikey=N1lXfJXHKQZXvpW7OXx9i6WCI2rPeU2m HTTP/1.1" 200 0
[2021-06-09 05:00:08][DEBUG] : [DeviceHandler.prepare] Json arg : None
[2021-06-09 05:00:08][DEBUG] : [00:15:8d:00:01:ae:9f:79][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:08][DEBUG] : [0x3fa5:1] Manufacturer: LUMI
[2021-06-09 05:00:08][DEBUG] : [0x3fa5:1] Model: lumi.sensor_motion
[2021-06-09 05:00:08][DEBUG] : [00:15:8d:00:01:ef:5f:3e][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:08][DEBUG] : [0x340f:1] Manufacturer: LUMI
[2021-06-09 05:00:08][DEBUG] : [0x340f:1] Model: lumi.sensor_switch.aq2
[2021-06-09 05:00:08][DEBUG] : [00:15:8d:00:04:50:a4:d2][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:08][DEBUG] : [0x38bb:1] Manufacturer: LUMI
[2021-06-09 05:00:08][DEBUG] : [0x38bb:1] Model: lumi.remote.b1acn01
[2021-06-09 05:00:08][DEBUG] : [00:15:8d:00:04:50:a5:9f][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:08][DEBUG] : [0xf5f4:1] Manufacturer: LUMI
[2021-06-09 05:00:08][DEBUG] : [0xf5f4:1] Model: lumi.remote.b1acn01
[2021-06-09 05:00:08][DEBUG] : [00:15:8d:00:02:b4:ab:23][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:08][DEBUG] : [0xee0c:1] Manufacturer: LUMI
[2021-06-09 05:00:08][DEBUG] : [0xee0c:1] Model: lumi.vibration.aq1
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:02:a5:1d:23][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0xb180:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0xb180:1] Model: lumi.vibration.aq1
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:03:46:ac:3b][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0xd0ba:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0xd0ba:1] Model: lumi.sensor_magnet.aq2
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:02:c3:54:dd][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0xc5d7:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0xc5d7:1] Model: lumi.sensor_magnet.aq2
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:03:46:ac:4a][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0x766e:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0x766e:1] Model: lumi.sensor_magnet.aq2
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:02:bf:9f:6a][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0xb6b0:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0xb6b0:1] Model: lumi.sensor_magnet.aq2
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:04:22:03:6e][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0x50ae:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0x50ae:1] Model: lumi.sens
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:02:c3:4d:8f][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0x5b55:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0x5b55:1] Model: lumi.sensor_magnet.aq2
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:02:45:ae:4e][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0xcf94:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0xcf94:1] Model: lumi.weather
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:02:cb:31:d6][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0x9a72:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0x9a72:1] Model: lumi.remote.b186acn01
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:02:4a:d7:a4][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0x39ae:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0x39ae:1] Model: lumi.sensor_smoke
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:02:49:c6:de][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0xdfc9:1] Manufacturer: LUMI
[2021-06-09 05:00:09][DEBUG] : [0xdfc9:1] Model: lumi.sensor_smoke
[2021-06-09 05:00:09][DEBUG] : [7c:b0:3e:aa:00:af:1a:ac][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0xb0f3:3] Manufacturer: OSRAM
[2021-06-09 05:00:09][DEBUG] : [0xb0f3:3] Model: Plug 01
[2021-06-09 05:00:09][DEBUG] : [54:ef:44:10:00:0c:35:71][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0x9af6:1] Manufacturer: XIAOMI
[2021-06-09 05:00:09][DEBUG] : [0x9af6:1] Model: lumi.sen_ill.mgl01
[2021-06-09 05:00:09][DEBUG] : [cc:86:ec:ff:fe:59:6e:47][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0xa615:1] Manufacturer: _TZ3000_i8l0nqdu
[2021-06-09 05:00:09][DEBUG] : [0xa615:1] Model: TS0503B
[2021-06-09 05:00:09][DEBUG] : [cc:86:ec:ff:fe:59:6e:3a][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0x6c3e:1] Manufacturer: _TZ3000_i8l0nqdu
[2021-06-09 05:00:09][DEBUG] : [0x6c3e:1] Model: TS0503B
[2021-06-09 05:00:09][DEBUG] : [00:15:8d:00:01:ec:bc:c8][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][INFO] : 200 GET /device/all (127.0.0.1) 777.20ms
[2021-06-09 05:00:56][DEBUG] : Frame received: 800200154c0001040000010102a61502000018480a0100204254
[2021-06-09 05:00:56][DEBUG] : data received 0x8002 b'0001040000010102a61502000018480a01002042' LQI:84
[2021-06-09 05:00:56][DEBUG] : zigate_callback_handler [0, 260, 0, 1, 1, <Address address_mode=ADDRESS_MODE.NWK address=0xa615>, <Address address_mode=ADDRESS_MODE.NWK address=0x0000>, b'\x18H
\x01\x00 B']
[2021-06-09 05:00:56][DEBUG] : [0xa615:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=72 command_id=Command.Report_Attributes>
[2021-06-09 05:00:56][DEBUG] : [0xa615:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
[2021-06-09 05:00:56][INFO] : [cc:86:ec:ff:fe:59:6e:47][listener.general_command] Cluster: <zigpy.zcl.clusters.general.Basic object at 0x7f81570f98> ClusterId: 0x0000 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=True> manufacturer=None tsn=72 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]],)
[2021-06-09 05:00:56][DEBUG] : [0xa615:1:0x0000] Attribute report received: app_version=66
[2021-06-09 05:00:56][INFO] : [cc:86:ec:ff:fe:59:6e:47][listener.attribute_updated] Received an attribute update 1=66 on cluster 0
[2021-06-09 05:00:56][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7f81e14c70>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (cc:86:ec:ff:fe:59:6e:47, 1, 0, 1, 66))
[2021-06-09 05:00:56][DEBUG] : operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7f81e14c70>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (cc:86:ec:ff:fe:59:6e:47, 1, 0, 1, 66)) completed
[2021-06-09 05:00:56][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7f81e14c70>)
[2021-06-09 05:00:56][DEBUG] : Send to jeedom : {'devices': {'cc:86:ec:ff:fe:59:6e:47': {'1': {'0': {'1': {'value': '66', 'cluster_name': 'Basic'}}}}}}
[2021-06-09 05:00:56][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-06-09 05:00:56][DEBUG] : operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7f81e14c70>) completed
[2021-06-09 05:00:56][DEBUG] : http://127.0.0.1:80 "POST /plugins/zigbee/core/php/jeeZigbee.php?apikey=N1lXfJXHKQZXvpW7OXx9i6WCI2rPeU2m HTTP/1.1" 200 0
[2021-06-09 05:01:01][DEBUG] : Signal 15 caught, exiting...
[2021-06-09 05:01:01][DEBUG] : Shutdown
[2021-06-09 05:01:01][DEBUG] : Signal 15 caught, exiting...
[2021-06-09 05:01:01][DEBUG] : Shutdown
[2021-06-09 05:01:03][DEBUG] : Removing PID file /tmp/jeedom/zigbee/deamon_1.pid
[2021-06-09 05:01:03][DEBUG] : Exit 0

Extrait du zigbeed EZSP

[2021-06-09 04:59:03][DEBUG] : Data frame: b'07d7b1a9112a15b658944a24ab1593499ccbaf1514299874fade1783fd7e1fe52c4f7e'
[2021-06-09 04:59:03][DEBUG] : Sending: b'8160597e'
[2021-06-09 04:59:03][DEBUG] : Application frame 69 (incomingMessageHandler) received: b'00040100000101400100008588bef9e7ffff0718740a01002042'
[2021-06-09 04:59:03][DEBUG] : Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=0, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=133), 136, -66, 0xe7f9, 255, 255, b'\x18t
\x01\x00 B']
[2021-06-09 04:59:03][DEBUG] : [0xe7f9:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=116 command_id=Command.Report_Attributes>
[2021-06-09 04:59:03][DEBUG] : [0xe7f9:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]]
[2021-06-09 04:59:03][INFO] : [84:fd:27:ff:fe:39:e3:9e][listener.general_command] Cluster: <zigpy.zcl.clusters.general.Basic object at 0x7faed53748> ClusterId: 0x0000 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=True> manufacturer=None tsn=116 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]],)
[2021-06-09 04:59:03][DEBUG] : [0xe7f9:1:0x0000] Attribute report received: app_version=66
[2021-06-09 04:59:03][INFO] : [84:fd:27:ff:fe:39:e3:9e][listener.attribute_updated] Received an attribute update 1=66 on cluster 0
[2021-06-09 04:59:03][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (84:fd:27:ff:fe:39:e3:9e, 1, 0, 1, 66))
[2021-06-09 04:59:03][DEBUG] : operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (84:fd:27:ff:fe:39:e3:9e, 1, 0, 1, 66)) completed
[2021-06-09 04:59:03][DEBUG] : Send to jeedom : {'devices': {'84:fd:27:ff:fe:39:e3:9e': {'1': {'0': {'1': {'value': '66', 'cluster_name': 'Basic'}}}}}}
[2021-06-09 04:59:03][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>)
[2021-06-09 04:59:03][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-06-09 04:59:03][DEBUG] : operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>) completed
[2021-06-09 04:59:03][DEBUG] : http://127.0.0.1:80 "POST /plugins/zigbee/core/php/jeeZigbee.php?apikey=N1lXfJXHKQZXvpW7OXx9i6WCI2rPeU2m HTTP/1.1" 200 0
[2021-06-09 04:59:07][DEBUG] : Send command nop: ()
[2021-06-09 04:59:07][DEBUG] : Sending: b'71d421a9512a6a997e'
[2021-06-09 04:59:07][DEBUG] : Data frame: b'10d4a1a9512aad197e'
[2021-06-09 04:59:07][DEBUG] : Sending: b'82503a7e'
[2021-06-09 04:59:07][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 04:59:17][DEBUG] : Send command nop: ()
[2021-06-09 04:59:17][DEBUG] : Sending: b'02d521a9512a4bb47e'
[2021-06-09 04:59:17][DEBUG] : Data frame: b'20d4b1a9112a15b259954a25aa5593499cbdaf1520129874f8626389fc7ed3027e'
[2021-06-09 04:59:17][DEBUG] : Sending: b'83401b7e'
[2021-06-09 04:59:17][DEBUG] : Data frame: b'31d5a1a9512a77e07e'
[2021-06-09 04:59:17][DEBUG] : Application frame 69 (incomingMessageHandler) received: b'0000000100000000010000f388becddcffff05a400000000'
[2021-06-09 04:59:17][DEBUG] : Sending: b'8430fc7e'
[2021-06-09 04:59:17][DEBUG] : Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=0, clusterId=1, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=243), 136, -66, 0xdccd, 255, 255, b'\xa4\x00\x00\x00\x00']
[2021-06-09 04:59:17][DEBUG] : [0xdccd:zdo] ZDO request ZDOCmd.IEEE_addr_req: [0x0000, 0, 0]
[2021-06-09 04:59:17][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 04:59:17][DEBUG] : Send command sendUnicast: (<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 0xDCCD, EmberApsFrame(profileId=0, clusterId=32769, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=164), 86, b'\xa4\x00\xb6:0\xfe\xffPK\x80\x00\x00\x00\x00')
[2021-06-09 04:59:17][DEBUG] : Sending: b'14da21a9602a157f85944a242a5592099d4e270fbbc0c38b4bfc5377032e7427ebcdde6f1d017e'
[2021-06-09 04:59:17][DEBUG] : Data frame: b'42daa1a9602a151ecb547e'
[2021-06-09 04:59:17][DEBUG] : Sending: b'8520dd7e'
[2021-06-09 04:59:17][DEBUG] : Application frame 52 (sendUnicast) received: b'00ac'
[2021-06-09 04:59:18][DEBUG] : Data frame: b'52dab1a96b2a157f85944a242a5592099d4e2707bbce675bb87e'
[2021-06-09 04:59:18][DEBUG] : Sending: b'8610be7e'
[2021-06-09 04:59:18][DEBUG] : Application frame 63 (messageSentHandler) received: b'00cddc00000180000040010000ac560000'
[2021-06-09 04:59:18][DEBUG] : Received messageSentHandler frame with [<EmberOutgoingMessageType.OUTGOING_DIRECT: 0>, 56525, EmberApsFrame(profileId=0, clusterId=32769, sourceEndpoint=0, destinationEndpoint=0, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY|APS_OPTION_RETRY: 320>, groupId=0, sequence=172), 86, <EmberStatus.SUCCESS: 0>, b'']
[2021-06-09 04:59:27][DEBUG] : Send command nop: ()
[2021-06-09 04:59:27][DEBUG] : Sending: b'26db21a9512ab7b57e'
[2021-06-09 04:59:27][DEBUG] : Data frame: b'63dba1a9512a439c7e'
[2021-06-09 04:59:27][DEBUG] : Sending: b'87009f7e'
[2021-06-09 04:59:27][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 04:59:37][DEBUG] : Send command nop: ()
[2021-06-09 04:59:37][DEBUG] : Sending: b'37d821a9512a06437e'
[2021-06-09 04:59:37][DEBUG] : Data frame: b'74d8a1a9512a7f8b7e'
[2021-06-09 04:59:37][DEBUG] : Sending: b'8070787e'
[2021-06-09 04:59:37][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 04:59:39][DEBUG] : Data frame: b'04d8b1a9112a15b658964e03ab5593499cbbaf1520129874f0de2c83fc7e1605e3cede4e9bff42487e'
[2021-06-09 04:59:39][DEBUG] : Sending: b'8160597e'
[2021-06-09 04:59:39][DEBUG] : Application frame 69 (incomingMessageHandler) received: b'0004010204260100010000f588becddcffff0d184f0a000029a2080300211400'
[2021-06-09 04:59:39][DEBUG] : Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=1026, sourceEndpoint=38, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=245), 136, -66, 0xdccd, 255, 255, b'\x18O
\x00\x00)\xa2\x08\x03\x00!\x14\x00']
[2021-06-09 04:59:39][DEBUG] : [0xdccd:38:0x0402] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=79 command_id=Command.Report_Attributes>
[2021-06-09 04:59:39][DEBUG] : [0xdccd:38:0x0402] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=int16s, value=2210>), Attribute(attrid=3, value=<TypeValue type=uint16_t, value=20>)]]
[2021-06-09 04:59:39][INFO] : [00:15:bc:00:36:00:0c:8d][listener.general_command] Cluster: <zigpy.zcl.clusters.measurement.TemperatureMeasurement object at 0x7faed53588> ClusterId: 0x0402 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=False disable_default_response=True> manufacturer=None tsn=79 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=0, value=<TypeValue type=int16s, value=2210>), Attribute(attrid=3, value=<TypeValue type=uint16_t, value=20>)]],)
[2021-06-09 04:59:39][DEBUG] : [0xdccd:38:0x0402] Attribute report received: measured_value=2210, tolerance=20
[2021-06-09 04:59:39][INFO] : [00:15:bc:00:36:00:0c:8d][listener.attribute_updated] Received an attribute update 0=2210 on cluster 1026
[2021-06-09 04:59:39][INFO] : [00:15:bc:00:36:00:0c:8d][listener.attribute_updated] Received an attribute update 3=20 on cluster 1026
[2021-06-09 04:59:39][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (00:15:bc:00:36:00:0c:8d, 38, 1026, 0, 2210))
[2021-06-09 04:59:39][DEBUG] : operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (00:15:bc:00:36:00:0c:8d, 38, 1026, 0, 2210)) completed
[2021-06-09 04:59:39][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>)
[2021-06-09 04:59:39][DEBUG] : operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>) completed
[2021-06-09 04:59:39][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (00:15:bc:00:36:00:0c:8d, 38, 1026, 3, 20))
[2021-06-09 04:59:39][DEBUG] : operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (00:15:bc:00:36:00:0c:8d, 38, 1026, 3, 20)) completed
[2021-06-09 04:59:39][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>)
[2021-06-09 04:59:39][DEBUG] : operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>) completed
[2021-06-09 04:59:39][DEBUG] : Send to jeedom : {'devices': {'00:15:bc:00:36:00:0c:8d': {'38': {'1026': {'0': {'value': '2210', 'cluster_name': 'Temperature Measurement'}, '3': {'value': '20', 'cluster_name': 'Temperature Measurement'}}}}}}
[2021-06-09 04:59:39][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-06-09 04:59:39][DEBUG] : http://127.0.0.1:80 "POST /plugins/zigbee/core/php/jeeZigbee.php?apikey=N1lXfJXHKQZXvpW7OXx9i6WCI2rPeU2m HTTP/1.1" 200 0
[2021-06-09 04:59:47][DEBUG] : Send command nop: ()
[2021-06-09 04:59:47][DEBUG] : Sending: b'41d921a9512a646f7e'
[2021-06-09 04:59:47][DEBUG] : Data frame: b'15d9a1a9512acf627e'
[2021-06-09 04:59:47][DEBUG] : Sending: b'82503a7e'
[2021-06-09 04:59:47][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 04:59:57][DEBUG] : Send command nop: ()
[2021-06-09 04:59:57][DEBUG] : Sending: b'52de21a9512ad7df7e'
[2021-06-09 04:59:57][DEBUG] : Data frame: b'26dea1a9512a49da7e'
[2021-06-09 04:59:57][DEBUG] : Sending: b'83401b7e'
[2021-06-09 04:59:57][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 05:00:07][DEBUG] : Send command nop: ()
[2021-06-09 05:00:07][DEBUG] : Sending: b'63df21a9512a17a27e'
[2021-06-09 05:00:07][DEBUG] : Data frame: b'37dfa1a9512abcaf7e'
[2021-06-09 05:00:07][DEBUG] : Sending: b'8430fc7e'
[2021-06-09 05:00:07][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 05:00:09][DEBUG] : [DeviceHandler.prepare] Json arg : None
[2021-06-09 05:00:09][DEBUG] : [80:4b:50:ff:fe:30:3a:b6][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [84:71:27:ff:fe:be:0e:45][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0x1311:1] Manufacturer: _TZ3000_bi6lpsew
[2021-06-09 05:00:09][DEBUG] : [0x1311:1] Model: TS0043
[2021-06-09 05:00:09][DEBUG] : [00:0d:6f:ff:fe:1a:a3:8c][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0x63a6:1] Manufacturer: IKEA of Sweden
[2021-06-09 05:00:09][DEBUG] : [0x63a6:1] Model: TRADFRI remote control
[2021-06-09 05:00:09][DEBUG] : [84:71:27:ff:fe:fe:62:7a][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:09][DEBUG] : [0xb411:1] Manufacturer: _TZ2000_a476raq2
[2021-06-09 05:00:09][DEBUG] : [0xb411:1] Model: TS0201
[2021-06-09 05:00:09][DEBUG] : [00:15:bc:00:36:00:0c:8d][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:10][DEBUG] : [0xdccd:38] Manufacturer: frient A/S
[2021-06-09 05:00:10][DEBUG] : [0xdccd:38] Model: AQSZB-110
[2021-06-09 05:00:10][DEBUG] : [84:fd:27:ff:fe:39:e3:9e][zdevices.serialize] Serialize device with attributes : 1
[2021-06-09 05:00:10][DEBUG] : [0xe7f9:1] Manufacturer: _TZ3000_8nkb7mof
[2021-06-09 05:00:10][DEBUG] : [0xe7f9:1] Model: TS0121
[2021-06-09 05:00:10][INFO] : 200 GET /device/all (127.0.0.1) 207.94ms
[2021-06-09 05:00:10][DEBUG] : Data frame: b'47dfb1a9112a15b65897b603ab5593499cb6a31620129874f2da7699ad743fa7cae5de6c8fdec6db84e87e'
[2021-06-09 05:00:10][DEBUG] : Sending: b'8520dd7e'
[2021-06-09 05:00:10][DEBUG] : Application frame 69 (incomingMessageHandler) received: b'00040103fc260100010000f884bdcddcffff0f1c1510510a00002128000300210100'
[2021-06-09 05:00:10][DEBUG] : Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=64515, sourceEndpoint=38, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_ENABLE_ROUTE_DISCOVERY: 256>, groupId=0, sequence=248), 132, -67, 0xdccd, 255, 255, b'\x1c\x15\x10Q
\x00\x00!(\x00\x03\x00!\x01\x00']
[2021-06-09 05:00:10][DEBUG] : [0xdccd:38:0xfc03] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=True is_reply=True disable_default_response=True> manufacturer=4117 tsn=81 command_id=Command.Report_Attributes>
[2021-06-09 05:00:10][DEBUG] : [0xdccd:38:0xfc03] ZCL request 0x000a: [[Attribute(attrid=0, value=<TypeValue type=uint16_t, value=40>), Attribute(attrid=3, value=<TypeValue type=uint16_t, value=1>)]]
[2021-06-09 05:00:10][INFO] : [00:15:bc:00:36:00:0c:8d][listener.general_command] Cluster: <specifics.frient.details.JeedomFrientVOCCluster object at 0x7fac483860> ClusterId: 0xfc03 command_id: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=True is_reply=False disable_default_response=True> manufacturer=4117 tsn=81 command_id=Command.Report_Attributes> args: ([[Attribute(attrid=0, value=<TypeValue type=uint16_t, value=40>), Attribute(attrid=3, value=<TypeValue type=uint16_t, value=1>)]],)
[2021-06-09 05:00:10][DEBUG] : [0xdccd:38:0xfc03] Attribute report received: measured_value=40, resolution=1
[2021-06-09 05:00:10][INFO] : [00:15:bc:00:36:00:0c:8d][listener.attribute_updated] Received an attribute update 0=40 on cluster 64515
[2021-06-09 05:00:10][INFO] : [00:15:bc:00:36:00:0c:8d][listener.attribute_updated] Received an attribute update 3=1 on cluster 64515
[2021-06-09 05:00:10][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (00:15:bc:00:36:00:0c:8d, 38, 64515, 0, 40))
[2021-06-09 05:00:10][DEBUG] : operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (00:15:bc:00:36:00:0c:8d, 38, 64515, 0, 40)) completed
[2021-06-09 05:00:10][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>)
[2021-06-09 05:00:10][DEBUG] : operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>) completed
[2021-06-09 05:00:10][DEBUG] : executing functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (00:15:bc:00:36:00:0c:8d, 38, 64515, 3, 1))
[2021-06-09 05:00:10][DEBUG] : operation functools.partial(<built-in method execute of sqlite3.Connection object at 0x7faf5a5810>, 'INSERT OR REPLACE INTO attributes VALUES (?, ?, ?, ?, ?)', (00:15:bc:00:36:00:0c:8d, 38, 64515, 3, 1)) completed
[2021-06-09 05:00:10][DEBUG] : executing functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>)
[2021-06-09 05:00:10][DEBUG] : Send to jeedom : {'devices': {'00:15:bc:00:36:00:0c:8d': {'38': {'64515': {'0': {'value': '40', 'cluster_name': 'Jeedom - Frient Voc Measurement'}, '3': {'value': '1', 'cluster_name': 'Jeedom - Frient Voc Measurement'}}}}}}
[2021-06-09 05:00:10][DEBUG] : operation functools.partial(<built-in method commit of sqlite3.Connection object at 0x7faf5a5810>) completed
[2021-06-09 05:00:10][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-06-09 05:00:10][DEBUG] : http://127.0.0.1:80 "POST /plugins/zigbee/core/php/jeeZigbee.php?apikey=N1lXfJXHKQZXvpW7OXx9i6WCI2rPeU2m HTTP/1.1" 200 0
[2021-06-09 05:00:17][DEBUG] : Send command nop: ()
[2021-06-09 05:00:18][DEBUG] : Sending: b'75dc21a9512a6e157e'
[2021-06-09 05:00:18][DEBUG] : Data frame: b'50dca1a9512ac5247e'
[2021-06-09 05:00:18][DEBUG] : Sending: b'8610be7e'
[2021-06-09 05:00:18][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 05:00:28][DEBUG] : Send command nop: ()
[2021-06-09 05:00:28][DEBUG] : Sending: b'06dd21a9512a4f387e'
[2021-06-09 05:00:28][DEBUG] : Data frame: b'61dda1a9512a05597e'
[2021-06-09 05:00:28][DEBUG] : Sending: b'87009f7e'
[2021-06-09 05:00:28][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 05:00:38][DEBUG] : Send command nop: ()
[2021-06-09 05:00:38][DEBUG] : Sending: b'17e221a9512a790b7e'
[2021-06-09 05:00:38][DEBUG] : Data frame: b'72e2a1a9512ab82a7e'
[2021-06-09 05:00:38][DEBUG] : Sending: b'8070787e'
[2021-06-09 05:00:38][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 05:00:48][DEBUG] : Send command nop: ()
[2021-06-09 05:00:48][DEBUG] : Sending: b'20e321a9512a34977e'
[2021-06-09 05:00:48][DEBUG] : Data frame: b'03e3a1a9512a12477e'
[2021-06-09 05:00:48][DEBUG] : Sending: b'8160597e'
[2021-06-09 05:00:48][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 05:00:58][DEBUG] : Send command nop: ()
[2021-06-09 05:00:58][DEBUG] : Sending: b'31e021a9512a85617e'
[2021-06-09 05:00:58][DEBUG] : Data frame: b'14e0a1a9512a2e507e'
[2021-06-09 05:00:58][DEBUG] : Sending: b'82503a7e'
[2021-06-09 05:00:58][DEBUG] : Application frame 5 (nop) received: b''
[2021-06-09 05:01:01][DEBUG] : Signal 15 caught, exiting...
[2021-06-09 05:01:01][DEBUG] : Shutdown
[2021-06-09 05:01:01][DEBUG] : Signal 15 caught, exiting...
[2021-06-09 05:01:01][DEBUG] : Shutdown
[2021-06-09 05:01:03][DEBUG] : Removing PID file /tmp/jeedom/zigbee/deamon_2.pid
[2021-06-09 05:01:03][DEBUG] : Exit 0

Bon après investigation, le stop des daemon zigbee, cela venait d’un script perso qui se lance à la même heure :roll_eyes:
J’ai un script qui clone la partition de la carte sd avec fsarchiver et je fais un stop des apache/cron/mariadb pour avoir des données consistantes, backup et puis start des 3.

Ce qui n’a jamais posé de problème avec le plugin zigate, ni avec z-wave d’ailleurs. Mais apparemment avec le plugin zigbee oui :thinking:

A défaut de trouver poourquoi, il faut que je revois ma méthode de DRP, car même si la restauration à partir d’un backup fait tout, je perds quelques heures d’installation de MaJ et surtout dépendance de plugins :expressionless:
Me faut une autre méthode et je me vois pas extraire la micro sd tous les 6mois pour la cloner et actualiser ma système… J’ai la flemme pour les actions manuelles :smiley:

Je clôture donc, même si pour moi un stop d’apache stopperait les daemon zigbee, un start d’apache devraient donc les redémarrer…

Salut collègue,

Amanda, Bacula, BackupPC y’a le choix :), rsync c’est la vie

Bacula c’est un peu gros pour cela, tu ne trouves pas :wink: et si tu veux faire à froid tu as aussi des scripts pré-backup à mettre.

J’utilise déjà rsnapshot pour les data, même avantage que bacula du fait que c’est le backup qui vient cherché (en cas de serveur truandé), et versioning avec lien en dur. Plus simple à mettre en place pour des petites infra :wink:

Ici le principe c’était la restauration rapide du rpi de par le temps que prennent les dépendances.
C’est un script que j’ai modifié que j’utilise pour l’autres apps rpi et qui n’ont déjà sauvés d’une microSD qui a claqué. Sauvegarde du partitionnement et filesystem. Et un script de restauration.

Je le mets ici.

#!/bin/bash

backup_dir=/fsarchiver
disk=/dev/disk/by-id/mmc-SC32G_0x4c6c398a


/sbin/sfdisk -d $disk > $backup_dir/partitions.sfdisk \
&& dd bs=2k count=1 if=$disk | /bin/gzip -3 > $backup_dir/first2k.dd.gz \
&& dd bs=1M if=$disk-part1 | /bin/gzip -3 > $backup_dir/part1.dd.gz \
&& /sbin/dumpe2fs -h $disk-part2 | grep '^Filesystem UUID' \
&& time ( systemctl stop apache2.service \
&& systemctl stop cron.service \
&& systemctl stop mariadb.service \
&& /usr/sbin/fsarchiver savefs -o -j 3 -Z 3 -A $backup_dir/part2_root.fsa $disk-part2)
returnCode=$?
#restart in any case
systemctl start mariadb.service \
&& systemctl start cron.service \
&& systemctl start apache2.service

exit $returnCode

C’est pas le même type de backup :wink:

Amanda je m’y suis jamais mis, mais c’est pour la data aussi non ? C’était pour la sauvegarde de mon média que j’avais besoin de cela.

ouais je vois ou tu veux en venir, bah par defaut une sd c’est zero trust … msata/ssd min
avant jeedom j’utilisais déjà backuppc pour mon infra maison et ça prend de tout, pas été tester la restauration full (flemme), par contre pls fois la restauration de jeedom et ça fonctionne meme mieux que certain produit, et puis y’a certaines taches systèmes d’automatisation (pourquoi ne faire qu’une restauration quand on peut faire plus compliqué), j’aurai l’impression d’être au boulot comme style partir sur du pxe, du playbook ansible / un repo local / avec une remise en etat en qq min … je laisse faire un peu plus la nature chez moi, ça me change :slight_smile:

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.