Closed MarijnO closed 2 years ago
@Larsen-Locke could you please check
could you please check the path of your zigbee-adapter? Try `ls -l /dev/serial/by-id' And then please check if the path of your adapter is correctly inserted in your configuration under /opt/zigbee2mqtt/data/configuration.yaml
openhabian@openhabian:~ $ ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Apr 23 21:38 usb-FTDI_FT232R_USB_UART_AI1X0YQI-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 Apr 24 09:01 usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_e239dc17b812ec11b40221c7bd930c07-if00-port0 -> ../../ttyUSB1
And here's a problem, the content of the configuration.yaml is not correct (wrong USB device, it's a serial-2-usb cable used to read-out my energy meter).
frontend:
port: 8081
homeassistant: false
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://localhost
user: xxxx
password: xxxx
serial:
port: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AI1X0YQI-if00-port0
Adjusting this via running the Openhabian-20-2A install or Update Zigbee2MQTT
doesn't work
There was an error or interruption during the execution of: │
│ "20 | Optional Components"
Adjusting the file directly solved the problem for me!
I'm pretty sure I selected the correct USB device at the initial installation. Do you want me to check any other things? Or should I consider this as a user-error?
I guess you selected the wrong one. Did you press space after selecting the right adapter? Otherwise it's not selected (can't change that. Whiptail works like that). If you could check that again that would be helpfull. This means uninstalling via the option in the menu and installing again.
OK, so this is what I did:
step 1: manually change the USB adaper --> frontend is working
step 2: via openhabian try to update zigmee2mqtt --> still the there was an error or interruption during the execution of: 20 | Optional Components
message
step 3: Use Openhabian to remove zigbee2mqtt
step 4: Use Openhabian to install zigbee2mqtt again
Use arrow to go to the correct adapter.
Then press space (I guess I pressed enter the first time) --> asterix now is in the correct position
Now this throws an error at me
2022-04-24_20:36:35_CEST [openHABian] Updating Linux package information... OK
2022-04-24_20:36:37_CEST [openHABian] Removing Zigbee2MQTT service... OK
2022-04-24_20:36:37_CEST [openHABian] Uninstalling Zigbee2MQTT... OK
2022-04-24_20:37:52_CEST [openHABian] Updating Linux package information... 2022-04-24_20:37:52_CEST [openHABian] Updating Linux package information... OK
2022-04-24_20:40:07_CEST [openHABian] Downloading Zigbee2MQTT... Error: ENOENT: no such file or directory, uv_cwd
at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:130:28)
at process.cwd (/usr/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:10:19)
at Conf.loadPrefix (/usr/lib/node_modules/npm/lib/config/load-prefix.js:46:24)
at load_ (/usr/lib/node_modules/npm/lib/config/core.js:109:8)
at Conf.<anonymous> (/usr/lib/node_modules/npm/lib/config/core.js:96:5)
at Conf.emit (events.js:400:28)
at ConfigChain._resolve (/usr/lib/node_modules/npm/node_modules/config-chain/index.js:281:34)
at ConfigChain.add (/usr/lib/node_modules/npm/node_modules/config-chain/index.js:259:10)
at Conf.add (/usr/lib/node_modules/npm/lib/config/core.js:338:27)
at Conf.<anonymous> (/usr/lib/node_modules/npm/lib/config/core.js:314:25)
internal/bootstrap/switches/does_own_process_state.js:130
cachedCwd = rawMethods.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:130:28)
at process.cwd (/usr/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:10:19)
at process.errorHandler (/usr/lib/node_modules/npm/lib/utils/error-handler.js:183:30)
at process.emit (events.js:400:28)
at process._fatalException (internal/process/execution.js:167:25) {
errno: -2,
code: 'ENOENT',
syscall: 'uv_cwd'
}
FAILED (download)
2022-04-24_20:40:27_CEST [openHABian] Checking for default openHABian username:password combination... OK
2022-04-24_20:40:27_CEST [openHABian] We hope you got what you came for! See you again soon ;)
openhabian@openhabian:~ $
I'll try to reboot and let you know
Update: After reboot installation completed succesfully and frontend is starting.
So it must be that I've selected the correct zigbee adapter using the 'enter' key (and thus not selecting it).
good to hear. So issue can be closed.
Yes, thx!
Issue information:
I tried installing zigbee2mqtt but can't access the frontend on my_ip:8081
zigbee2mqtt is runnig: this is the status:
I think it has something to do with permissions (as suggested in the zigbee2mqtt documentation: this is the content of /var/log/zigbee2mqtt/.../log.txt
But when I try to fix the user-rights via Openhabian-config I get an invalid user error
System information:
I'm using Openhabian MAIN on a RPi4