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

9.27.0 linux won't start #3995

Closed
3 tasks done
luckyjay opened this issue Nov 12, 2024 · 10 comments · Fixed by #3996
Closed
3 tasks done

9.27.0 linux won't start #3995

luckyjay opened this issue Nov 12, 2024 · 10 comments · Fixed by #3996
Labels
bug Something isn't working

Comments

@luckyjay
Copy link
Contributor

luckyjay commented Nov 12, 2024

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

PKG executable

Z-Wave JS UI version

9.27.0

ZwaveJS version

14.3.1

Describe the bug

Attempting to launch zwave-js-ui-linux throws an error, execution stops:
image

To Reproduce

Download and attempt to run 9.27.0-linux.

Environment is Ubuntu 24 LTS x64 VM on Proxmox, fully patched/updated.

Expected behavior

Normal execution

Additional context

No response

@luckyjay luckyjay added the bug Something isn't working label Nov 12, 2024
@robertsLando
Copy link
Member

robertsLando commented Nov 12, 2024

@AlCalzone seems that latest zwave-js version broke esbuild build :(

I'm able to reproduce this with:

npm run bundle
cd build
node index.js

@rhansma
Copy link

rhansma commented Nov 12, 2024

I can confirm the 9.27 build is broken on Linux. I'm receiving a different error though, not sure if it's related to the broken build @robertsLando is reporting.

2024-11-12 18:17:44.513 ERROR STORE: Unhandled Rejection, reason: RangeError [ERR_ENCODING_NOT_SUPPORTED]: The "windows-1252" encoding is not supported
RangeError: The "windows-1252" encoding is not supported
    at new NodeError (node:internal/errors:405:5)
    at TextDecoder.#prepareConverter (node:internal/encoding:423:15)
    at new TextDecoder (node:internal/encoding:415:31)
    at uint8ArrayToString (/usr/src/app/node_modules/@zwave-js/shared/src/uint8array-extras.ts:312:31)
    at Bytes.toString (/usr/src/app/node_modules/@zwave-js/shared/src/Bytes.ts:136:12)
    at SerialPort.<anonymous> (/usr/src/app/node_modules/@zwave-js/serial/src/serialport/ZWaveSerialPortBase.ts:162:24)
    at SerialPort.emit (node:events:517:28)
    at addChunk (node:internal/streams/readable:368:12)
    at readableAddChunk (node:internal/streams/readable:341:9)
    at SerialPort.Readable.push (node:internal/streams/readable:278:10)
2024-11-12 18:17:50.512 INFO STORE: Restarting client in 15 seconds, retry 243
2024-11-12 18:18:05.526 INFO STORE: Server closed
2024-11-12 18:18:05.528 INFO STORE: Client closed
2024-11-12 18:18:05.537 INFO STORE: Connecting to /dev/zwave

Rolling back to version 9.26 does fix my system.

@AlCalzone
Copy link
Member

I'll try to figure out what's going on.

@AlCalzone
Copy link
Member

And where the heck does that text encoding come from?!

@chrisuthe
Copy link

I can confirm the 9.27 build is broken on Linux. I'm receiving a different error though, not sure if it's related to the broken build @robertsLando is reporting.

2024-11-12 18:17:44.513 ERROR STORE: Unhandled Rejection, reason: RangeError [ERR_ENCODING_NOT_SUPPORTED]: The "windows-1252" encoding is not supported
RangeError: The "windows-1252" encoding is not supported
    at new NodeError (node:internal/errors:405:5)
    at TextDecoder.#prepareConverter (node:internal/encoding:423:15)
    at new TextDecoder (node:internal/encoding:415:31)
    at uint8ArrayToString (/usr/src/app/node_modules/@zwave-js/shared/src/uint8array-extras.ts:312:31)
    at Bytes.toString (/usr/src/app/node_modules/@zwave-js/shared/src/Bytes.ts:136:12)
    at SerialPort.<anonymous> (/usr/src/app/node_modules/@zwave-js/serial/src/serialport/ZWaveSerialPortBase.ts:162:24)
    at SerialPort.emit (node:events:517:28)
    at addChunk (node:internal/streams/readable:368:12)
    at readableAddChunk (node:internal/streams/readable:341:9)
    at SerialPort.Readable.push (node:internal/streams/readable:278:10)
2024-11-12 18:17:50.512 INFO STORE: Restarting client in 15 seconds, retry 243
2024-11-12 18:18:05.526 INFO STORE: Server closed
2024-11-12 18:18:05.528 INFO STORE: Client closed
2024-11-12 18:18:05.537 INFO STORE: Connecting to /dev/zwave

Rolling back to version 9.26 does fix my system.

Receiving same error on 9.27 as a truenas scale app. Dropping to 9.26 fixes the issue as well.

@2Fake
Copy link

2Fake commented Nov 12, 2024

Having the same issue while using docker on debian

@AlCalzone
Copy link
Member

AlCalzone commented Nov 12, 2024

nevermind, I forgot to npm install

@AlCalzone
Copy link
Member

9.27.1 should fix this

@rhansma
Copy link

rhansma commented Nov 12, 2024

9.27.1 should fix this

I can confirm it works with version 9.27.1. Thanks for the quick fix!

@luckyjay
Copy link
Contributor Author

Nice work guys, issue resolved. Thanks!

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

Successfully merging a pull request may close this issue.

6 participants