zigbee2mqtt / hassio-zigbee2mqtt

Official Zigbee2MQTT Home Assistant add-on
https://www.zigbee2mqtt.io
Apache License 2.0
1.17k stars 425 forks source link

Update 1.41.0-1: SyntaxError: /app/package.json parsing error: Unexpected end of JSON entry #656

Open Bumblebeee19 opened 1 week ago

Bumblebeee19 commented 1 week ago

Description of the issue

Hello everyone, after updating from 1.40-2-1 to 1.41.0-1, Z2M no longer starts.

Thanks for your help.

Addon version

1.41.0-1

Platform

Core 2024.10.4 Supervisor 2024.10.3 Operating System 13.2 Interface utilisateur 20241002.4

Logs of the issue (if applicable)

at node:internal/main/run_main_module:28:49 { path: '/app/package.json' }

Node.js v20.15.1 [11:09:15] INFO: Preparing to start... [11:09:15] INFO: Socat not enabled [11:09:16] INFO: Starting Zigbee2MQTT... node:internal/modules/package_json_reader:93 throw error; ^

SyntaxError: Error parsing /app/package.json: Unexpected end of JSON input at parse () at read (node:internal/modules/package_json_reader:80:16) at readPackage (node:internal/modules/package_json_reader:141:10) at readPackageScope (node:internal/modules/package_json_reader:164:19) at shouldUseESMLoader (node:internal/modules/run_main:81:15) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:161:24) at node:internal/main/run_main_module:28:49 { path: '/app/package.json' }

Node.js v20.15.1 [11:09:19] INFO: Preparing to start... [11:09:19] INFO: Socat not enabled [11:09:20] INFO: Starting Zigbee2MQTT... node:internal/modules/package_json_reader:93 throw error; ^

SyntaxError: Error parsing /app/package.json: Unexpected end of JSON input at parse () at read (node:internal/modules/package_json_reader:80:16) at readPackage (node:internal/modules/package_json_reader:141:10) at readPackageScope (node:internal/modules/package_json_reader:164:19) at shouldUseESMLoader (node:internal/modules/run_main:81:15) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:161:24) at node:internal/main/run_main_module:28:49 { path: '/app/package.json' }

Node.js v20.15.1 [11:09:22] INFO: Preparing to start... [11:09:22] INFO: Socat not enabled [11:09:23] INFO: Starting Zigbee2MQTT... node:internal/modules/package_json_reader:93 throw error; ^

SyntaxError: Error parsing /app/package.json: Unexpected end of JSON input at parse () at read (node:internal/modules/package_json_reader:80:16) at readPackage (node:internal/modules/package_json_reader:141:10) at readPackageScope (node:internal/modules/package_json_reader:164:19) at shouldUseESMLoader (node:internal/modules/run_main:81:15) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:161:24) at node:internal/main/run_main_module:28:49 { path: '/app/package.json' }

Node.js v20.15.1 [11:09:26] INFO: Preparing to start... [11:09:26] INFO: Socat not enabled [11:09:27] INFO: Starting Zigbee2MQTT... node:internal/modules/package_json_reader:93 throw error; ^

SyntaxError: Error parsing /app/package.json: Unexpected end of JSON input at parse () at read (node:internal/modules/package_json_reader:80:16) at readPackage (node:internal/modules/package_json_reader:141:10) at readPackageScope (node:internal/modules/package_json_reader:164:19) at shouldUseESMLoader (node:internal/modules/run_main:81:15) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:161:24) at node:internal/main/run_main_module:28:49 { path: '/app/package.json' }

Node.js v20.15.1 [11:09:29] INFO: Preparing to start... [11:09:30] INFO: Socat not enabled [11:09:30] INFO: Starting Zigbee2MQTT... node:internal/modules/package_json_reader:93 throw error; ^

SyntaxError: Error parsing /app/package.json: Unexpected end of JSON input at parse () at read (node:internal/modules/package_json_reader:80:16) at readPackage (node:internal/modules/package_json_reader:141:10) at readPackageScope (node:internal/modules/package_json_reader:164:19) at shouldUseESMLoader (node:internal/modules/run_main:81:15) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:161:24) at node:internal/main/run_main_module:28:49 { path: '/app/package.json' }

Node.js v20.15.1

mironBit commented 2 days ago

Hi. I have the same problem. Is there a solution?

Bumblebeee19 commented 1 day ago

I was able to cancel the installation via the backup made just before installation. But my system is very unstable and freezes as soon as the Z2M module starts up. I'm still looking, as there seem to be several problems, but I haven't yet been able to isolate exactly where they're coming from.

mironBit commented 1 day ago

I don't know if this solved the problem forever. But I managed to reinstall the plugin. Just in case, I made a full backup. I saved the files from the /homeassistant/zigbee2mqtt/ directory. Then I deleted and reinstalled zigbee2mqtt.