Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bumblebeee19 opened this issue Nov 5, 2024 · 3 comments

Comments

@Bumblebeee19
Copy link

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
Copy link

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

@Bumblebeee19
Copy link
Author

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants