#Zigbee2MQTT not loading after a recent upgrade

1 messages ยท Page 1 of 1 (latest)

potent sparrow
#

The log file shows the following error:

[20:33:54] INFO: Starting Zigbee2MQTT...
node:internal/modules/package_json_reader:92
throw error;
^

SyntaxError: Error parsing /app/package.json: Unexpected end of JSON input
at parse (<anonymous>)
at read (node:internal/modules/package_json_reader:79:16)
at readPackage (node:internal/modules/package_json_reader:140:10)
at readPackageScope (node:internal/modules/package_json_reader:157:19)
at shouldUseESMLoader (node:internal/modules/run_main:77:15)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:122:24)
at node:internal/main/run_main_module:28:49 {
path: '/app/package.json'
}

Node.js v18.20.1

Does anyone know what could be the problem?

Core 2024.9.2
Supervisor 2024.09.1
Operating System 13.1
Frontend 20240909.1

agile sail
#

Did re-installing or restoring it from a backup help? Note that you should reboot (not restart) after restoring a backup.

potent sparrow
#

I just finished trying that

#

I went back to 1.39.1-1 and it complained that it could not load the herdsman module. I tried upgrading again, and it looks like it is magically loading again.

#

I am not certain what caused it to start working again ๐Ÿ™‚

agile sail
#

The package.json is a part of the container's file system and it seems like it was corrupt somehow.

potent sparrow
#

I see. Could it be a sign of bad blocks on the SD card or wear leveling gone wrong?

agile sail
#

Maybe. We usually recommend SSDs. SD Cards can corrupt easily but if it caused this I cannot tell you.

potent sparrow
#

ACK. I currently run it on an RPi - hence the SD card. Thank you so much for the help!

vast ermine
#

SSDs work on the Pi ๐Ÿ˜‰

#

The downside is that on the Pi4 and older they're USB connected, and you have to use an externally powered hub

potent sparrow
#

Right. I think I also used to turn off the USB port to make it run as low power as possible before I just went with HAOS. Presumably a case of pre-mature optimization. I will look into getting and SSD addon for the rpi.