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

After Update: Error: ENOENT: no such file or directory, open '/opt/zigbee2mqtt/data/configuration.yaml' #25865

Open
crizex opened this issue Jan 17, 2025 · 2 comments
Labels
problem Something isn't working

Comments

@crizex
Copy link

crizex commented Jan 17, 2025

What happened?

I updated zigbee2mqtt and now when it's trying to start I get the following log:
Starting Zigbee2MQTT without watchdog.
Jan 17 09:07:35 zigbee npm[17828]: Error: ENOENT: no such file or directory, open '/opt/zigbee2mqtt/data/configuration.yaml'
Jan 17 09:07:35 zigbee npm[17828]: at readFileSyncUtf8 (node:internal/fs/read/utf8:20:3)
Jan 17 09:07:35 zigbee npm[17828]: at Object.readFileSync (node:fs:467:12)
Jan 17 09:07:35 zigbee npm[17828]: at Object.read (/opt/zigbee2mqtt/lib/util/yaml.ts:23:37)
Jan 17 09:07:35 zigbee npm[17828]: at read (/opt/zigbee2mqtt/lib/util/settings.ts:277:20)
Jan 17 09:07:35 zigbee npm[17828]: at getPersistedSettings (/opt/zigbee2mqtt/lib/util/settings.ts:393:21)
Jan 17 09:07:35 zigbee npm[17828]: at Object.reRead (/opt/zigbee2mqtt/lib/util/settings.ts:640:5)
Jan 17 09:07:35 zigbee npm[17828]: at start (/opt/zigbee2mqtt/index.js:130:14)
Jan 17 09:07:35 zigbee npm[17828]: at processTicksAndRejections (node:internal/process/task_queues:95:5)
Jan 17 09:07:35 zigbee systemd[1]: zigbee2mqtt.service: Main process exited, code=exited, status=1/FAILURE
Jan 17 09:07:35 zigbee systemd[1]: zigbee2mqtt.service: Failed with result 'exit-code'.
Jan 17 09:07:35 zigbee systemd[1]: zigbee2mqtt.service: Consumed 7.328s CPU time.
Jan 17 09:07:45 zigbee systemd[1]: zigbee2mqtt.service: Scheduled restart job, restart counter is at 3.
Jan 17 09:07:45 zigbee systemd[1]: Stopped zigbee2mqtt.

What did you expect to happen?

I expect thats it's tarting and no file is missing :D

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

2.0

Adapter firmware version

Adapter

Setup

Pi and Linux

Debug log

No response

@crizex crizex added the problem Something isn't working label Jan 17, 2025
@Webserve
Copy link

Did you check if the file exists in /opt/zigbee2mqtt/data/ ?

@crizex
Copy link
Author

crizex commented Jan 17, 2025

Nope no configuration.yaml in there.... Should i just copy the configuration.yaml frin the data-backup folder?

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

No branches or pull requests

2 participants