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

Z-Wave JS Add-on crashes while booting with RangeError: Index out of range #3129

Closed
wisskid opened this issue Jul 8, 2023 · 4 comments
Closed
Labels

Comments

@wisskid
Copy link

wisskid commented Jul 8, 2023

Describe the issue you are experiencing

After removing, reinstalling, configuring and starting the Z-Wave JS Add-on, it crashes with the following error:

node:buffer:652
    slice: (buf, start, end) => buf.utf8Slice(start, end),
                                    ^
RangeError: Index out of range
    at Object.slice (node:buffer:652:37)
    at Buffer.toString (node:buffer:871:14)
    at Object.readFileSync (node:fs:513:41)
    at Module._extensions..js (node:internal/modules/cjs/loader:1271:18)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'ERR_OUT_OF_RANGE'
}
Node.js v18.16.0
[15:52:02] WARNING: Halt add-on

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Which add-on are you reporting an issue with?

Z-Wave JS

What is the version of the add-on?

0.1.84

Steps to reproduce the issue

  1. Start the Z-Wave JS Add-on
  2. Inspect the log
  3. Observe crash
    ...

System Health information

System Information

version core-2023.7.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.4
os_name Linux
os_version 6.1.34
arch x86_64
timezone Europe/Amsterdam
config_dir /config
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 5000
Installed Version 1.18.0
Stage running
Available Repositories 1265
Installed Repositories 1
Home Assistant Supervisor
host_os Home Assistant OS 10.3
update_channel stable
supervisor_version supervisor-2023.07.1
agent_version 1.5.1
docker_version 23.0.6
disk_total 30.8 GB
disk_used 17.2 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Duck DNS (1.15.0), Terminal & SSH (9.7.1), Samba share (10.0.2), Z-Wave JS (0.1.84)
Dashboards
dashboards 1
resources 2
views 6
mode storage
Recorder
oldest_recorder_run 7 juli 2023 om 11:07
current_recorder_run 7 juli 2023 om 18:31
estimated_db_size 388.42 MiB
database_engine sqlite
database_version 3.41.2

Anything in the Supervisor logs that might be useful for us?

23-07-08 09:48:14 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DOCKER_CONFIG/ContextType.SYSTEM
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAILED/ContextType.DNS_SERVER
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.MULTIPLE_DATA_DISKS/ContextType.SYSTEM
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.IPV4_CONNECTION_PROBLEM/ContextType.SYSTEM
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-07-08 10:08:03 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
23-07-08 10:08:04 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-07-08 10:08:04 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
23-07-08 10:08:04 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-07-08 10:12:17 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-07-08 10:12:17 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-07-08 10:12:17 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-07-08 10:12:57 INFO (MainThread) [supervisor.store] Loading add-ons from store: 71 all - 0 new - 0 remove
23-07-08 10:12:57 INFO (MainThread) [supervisor.store] Loading add-ons from store: 71 all - 0 new - 0 remove
23-07-08 10:15:55 INFO (MainThread) [supervisor.host.info] Updating local host information
23-07-08 10:16:00 INFO (MainThread) [supervisor.host.services] Updating service information
23-07-08 10:16:01 INFO (MainThread) [supervisor.host.network] Updating local network information
23-07-08 10:16:02 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-07-08 10:16:02 INFO (MainThread) [supervisor.host.manager] Host information reload completed
23-07-08 10:18:17 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-07-08 10:48:20 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DOCKER_CONFIG/ContextType.SYSTEM
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAILED/ContextType.DNS_SERVER
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.MULTIPLE_DATA_DISKS/ContextType.SYSTEM
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.IPV4_CONNECTION_PROBLEM/ContextType.SYSTEM
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-07-08 11:08:05 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
23-07-08 11:08:06 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-07-08 11:08:06 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
23-07-08 11:08:06 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-07-08 11:08:09 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-07-08 11:18:24 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-07-08 11:48:26 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-07-08 12:08:06 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
23-07-08 12:08:06 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DOCKER_CONFIG/ContextType.SYSTEM
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAILED/ContextType.DNS_SERVER
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.MULTIPLE_DATA_DISKS/ContextType.SYSTEM
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.IPV4_CONNECTION_PROBLEM/ContextType.SYSTEM
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-07-08 12:08:07 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
23-07-08 12:08:08 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-07-08 12:08:08 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
23-07-08 12:08:08 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-07-08 12:18:29 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-07-08 12:22:42 INFO (MainThread) [supervisor.host.info] Updating local host information
23-07-08 12:22:48 INFO (MainThread) [supervisor.host.services] Updating service information
23-07-08 12:22:48 INFO (MainThread) [supervisor.host.network] Updating local network information
23-07-08 12:22:50 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-07-08 12:22:50 INFO (MainThread) [supervisor.host.manager] Host information reload completed

Anything in the add-on logs that might be useful for us?

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/config.sh
[17:51:45] INFO: Both 'network_key' and 's0_legacy_key' are set and match. All ok.
[17:51:53] INFO: Virtual Machine detected, disabling soft-reset
cont-init: info: /etc/cont-init.d/config.sh exited 0
cont-init: info: running /etc/cont-init.d/structure.sh
cont-init: info: /etc/cont-init.d/structure.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun zwave_js (no readiness notification)
s6-rc: info: service legacy-services successfully started
node:buffer:652
    slice: (buf, start, end) => buf.utf8Slice(start, end),
                                    ^
RangeError: Index out of range
    at Object.slice (node:buffer:652:37)
    at Buffer.toString (node:buffer:871:14)
    at Object.readFileSync (node:fs:513:41)
    at Module._extensions..js (node:internal/modules/cjs/loader:1271:18)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'ERR_OUT_OF_RANGE'
}
Node.js v18.16.0
[15:52:02] WARNING: Halt add-on
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Additional information

No response

@wisskid
Copy link
Author

wisskid commented Jul 12, 2023

I found this thread on the community server, that lists the same error message and a possible fix: https://community.home-assistant.io/t/node-red-wont-start-after-moving-to-new-hardware/183358/5

I'll see if I can update BIOS.

Update: I enabled virtualization in BIOS, but the same error persists.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 11, 2023
@wisskid
Copy link
Author

wisskid commented Aug 11, 2023

It would be very nice if someone could help me zoom in on what might be causing this error. 🥺

@github-actions github-actions bot removed the stale label Aug 12, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 11, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant