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

SyntaxError: Invalid or unexpected token with v9.2.3 #3376

Closed
3 tasks done
gonzo09 opened this issue Oct 23, 2023 · 7 comments
Closed
3 tasks done

SyntaxError: Invalid or unexpected token with v9.2.3 #3376

gonzo09 opened this issue Oct 23, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@gonzo09
Copy link

gonzo09 commented Oct 23, 2023

Checklist

  • I am not using Home Assistant. Or: a developer has told me to come here.
  • I have checked the troubleshooting section and my problem is not described there.
  • I have read the changelog and my problem is not mentioned there.

Deploy method

Docker

Z-Wave JS UI version

No idea (as it won't start)

ZwaveJS version

9.2.2

Describe the bug

SyntaxError: Invalid or unexpected token at container startup
See stacktrace below.

To Reproduce

Pull image 9.2.3 and start zwave js container

Expected behavior

Startup sucessfully

Additional context

Zwave JS container won't start with 9.2.3 version (tag latest). Therefore, the UI is not accessible.
There is no problem with the 9.2.2 version.
Here is all the logs I got when starting the container:

pi@raspberrypi:/home/domotique $ sudo docker-compose up zwavejs2mqtt
Recreating zwavejs2mqtt ... done
Attaching to zwavejs2mqtt
zwavejs2mqtt     | /usr/src/app/node_modules/fast-deep-equal/index.js:1
zwavejs2mqtt     | 
zwavejs2mqtt     | 
zwavejs2mqtt     | 
zwavejs2mqtt     | SyntaxError: Invalid or unexpected token
zwavejs2mqtt     |     at internalCompileFunction (node:internal/vm:73:18)
zwavejs2mqtt     |     at wrapSafe (node:internal/modules/cjs/loader:1176:20)
zwavejs2mqtt     |     at Module._compile (node:internal/modules/cjs/loader:1218:27)
zwavejs2mqtt     |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
zwavejs2mqtt     |     at Module.load (node:internal/modules/cjs/loader:1117:32)
zwavejs2mqtt     |     at Function.Module._load (node:internal/modules/cjs/loader:958:12)
zwavejs2mqtt     |     at Module.require (node:internal/modules/cjs/loader:1141:19)
zwavejs2mqtt     |     at require (node:internal/modules/cjs/helpers:110:18)
zwavejs2mqtt     |     at Object.<anonymous> (/usr/src/app/node_modules/@homebridge/ciao/src/coder/records/NSECRecord.ts:2:1)
zwavejs2mqtt     |     at Module._compile (node:internal/modules/cjs/loader:1254:14)
pi@raspberrypi:/home/domotique $ 
@gonzo09 gonzo09 added the bug Something isn't working label Oct 23, 2023
@robertsLando
Copy link
Member

It works on my side. Could you tell me the output of uname -a command?

@gonzo09
Copy link
Author

gonzo09 commented Oct 23, 2023

Sure:
Linux raspberrypi 5.10.103-v8+ #1530 SMP PREEMPT Tue Mar 8 13:06:35 GMT 2022 aarch64 GNU/Linux

@robertsLando
Copy link
Member

Could be that docker arm64 container is bugged. I only have docker x64, I would need some other user to tell me if they have problems with that too

@robertsLando
Copy link
Member

@gonzo09 could it be that your sd card is corrupted maybe? Could you try with another device? Or could you try to pull another image maybe by using master tag instead?

@gonzo09
Copy link
Author

gonzo09 commented Oct 24, 2023

@robertsLando I'm on SSD and everything else works fine. I rollbacked to 9.2.2 and it's working too (so no hurry for me).
I just saw that image zwavejs/zwavejs2mqtt is deprecated but still maintain. I'll try to switch to zwavejs/zwave-js-ui image and/or master tag.

@robertsLando
Copy link
Member

OK let me know so

@robertsLando
Copy link
Member

Closing, feel free to reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants