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

Deconz would not start #4291

Closed
WernerSch opened this issue Jan 28, 2021 · 15 comments
Closed

Deconz would not start #4291

WernerSch opened this issue Jan 28, 2021 · 15 comments

Comments

@WernerSch
Copy link

Describe the question or issue you are having

i install deconz on a Raspberry Pi where iobroker runs on it. When i use the command "systemctl status deconz" i get always this

● deconz.service - deCONZ: ZigBee gateway -- REST API
Loaded: loaded (/lib/systemd/system/deconz.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2021-01-28 08:47:52 CET; 2s ago
Process: 2555 ExecStart=/usr/bin/deCONZ -platform minimal --http-port=80 (code=exited, status=217/USER)
Main PID: 2555 (code=exited, status=217/USER)

Jan 28 08:47:52 raspberrypi systemd[1]: deconz.service: Failed with result 'exit-code'.

Screenshots

Environment

Its a Raspberry Pi with
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

  • Host system: (Raspberry Pi / PC / NAS)
  • Running method: (Raspbian / Ubuntu / Home Assistent deCONZ Add-on / Marthoc Docker container / Windows / Virtual Machine)
  • Firmware version: (26xxyy00)
  • deCONZ version: (2.xx.yy)
  • Device: (ConBee I / ConBee II / RaspBee I / RaspBee II)
  • Do you use an USB extension cable: (yes / no) -- only relevant for ConBee I/II
  • Is there any other USB or serial devices connected to the host system? If so: Which?

deCONZ Logs

Jan 28 19:55:25 raspberrypi systemd[1]: Stopped deCONZ: ZigBee gateway -- REST API.
Jan 28 19:55:25 raspberrypi systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Jan 28 19:55:25 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:55:25 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:55:25 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:55:25 raspberrypi systemd[22656]: deconz.service: Failed to determine user credentials: No such process
Jan 28 19:55:25 raspberrypi systemd[22656]: deconz.service: Failed at step USER spawning /usr/bin/deCONZ: No such process
Jan 28 19:55:25 raspberrypi systemd[1]: deconz.service: Main process exited, code=exited, status=217/USER
Jan 28 19:55:25 raspberrypi systemd[1]: deconz.service: Failed with result 'exit-code'.
Jan 28 19:55:25 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:55:25 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:55:25 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:55:55 raspberrypi systemd[1]: deconz.service: Service RestartSec=30s expired, scheduling restart.
Jan 28 19:55:55 raspberrypi systemd[1]: deconz.service: Scheduled restart job, restart counter is at 1337.
Jan 28 19:55:55 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:55:55 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:55:55 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:55:55 raspberrypi systemd[1]: Stopped deCONZ: ZigBee gateway -- REST API.
Jan 28 19:55:55 raspberrypi systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Jan 28 19:55:55 raspberrypi systemd[22705]: deconz.service: Failed to determine user credentials: No such process
Jan 28 19:55:55 raspberrypi systemd[22705]: deconz.service: Failed at step USER spawning /usr/bin/deCONZ: No such process
Jan 28 19:55:55 raspberrypi systemd[1]: deconz.service: Main process exited, code=exited, status=217/USER
Jan 28 19:55:55 raspberrypi systemd[1]: deconz.service: Failed with result 'exit-code'.
Jan 28 19:55:55 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:55:55 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:55:55 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:56:25 raspberrypi systemd[1]: deconz.service: Service RestartSec=30s expired, scheduling restart.
Jan 28 19:56:25 raspberrypi systemd[1]: deconz.service: Scheduled restart job, restart counter is at 1338.
Jan 28 19:56:25 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:56:25 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:56:25 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:56:25 raspberrypi systemd[1]: Stopped deCONZ: ZigBee gateway -- REST API.
Jan 28 19:56:25 raspberrypi systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Jan 28 19:56:25 raspberrypi systemd[22762]: deconz.service: Failed to determine user credentials: No such process
Jan 28 19:56:25 raspberrypi systemd[22762]: deconz.service: Failed at step USER spawning /usr/bin/deCONZ: No such process
Jan 28 19:56:25 raspberrypi systemd[1]: deconz.service: Main process exited, code=exited, status=217/USER
Jan 28 19:56:25 raspberrypi systemd[1]: deconz.service: Failed with result 'exit-code'.
Jan 28 19:56:25 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:56:25 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:56:25 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:56:56 raspberrypi systemd[1]: deconz.service: Service RestartSec=30s expired, scheduling restart.
Jan 28 19:56:56 raspberrypi systemd[1]: deconz.service: Scheduled restart job, restart counter is at 1339.
Jan 28 19:56:56 raspberrypi systemd[1]: Stopped deCONZ: ZigBee gateway -- REST API.
Jan 28 19:56:56 raspberrypi systemd[22822]: deconz.service: Failed to determine user credentials: No such process
Jan 28 19:56:56 raspberrypi systemd[22822]: deconz.service: Failed at step USER spawning /usr/bin/deCONZ: No such process
Jan 28 19:56:56 raspberrypi systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Jan 28 19:56:56 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:56:56 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:56:56 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:56:56 raspberrypi systemd[1]: deconz.service: Main process exited, code=exited, status=217/USER
Jan 28 19:56:56 raspberrypi systemd[1]: deconz.service: Failed with result 'exit-code'.
Jan 28 19:56:56 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:56:56 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:56:56 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:57:26 raspberrypi systemd[1]: deconz.service: Service RestartSec=30s expired, scheduling restart.
Jan 28 19:57:26 raspberrypi systemd[1]: deconz.service: Scheduled restart job, restart counter is at 1340.
Jan 28 19:57:26 raspberrypi systemd[1]: Stopped deCONZ: ZigBee gateway -- REST API.
Jan 28 19:57:26 raspberrypi systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Jan 28 19:57:26 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:57:26 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:57:26 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:57:26 raspberrypi systemd[22884]: deconz.service: Failed to determine user credentials: No such process
Jan 28 19:57:26 raspberrypi systemd[22884]: deconz.service: Failed at step USER spawning /usr/bin/deCONZ: No such process
Jan 28 19:57:26 raspberrypi systemd[1]: deconz.service: Main process exited, code=exited, status=217/USER
Jan 28 19:57:26 raspberrypi systemd[1]: deconz.service: Failed with result 'exit-code'.
Jan 28 19:57:26 raspberrypi systemd[1]: deconz-init.service: Start request repeated too quickly.
Jan 28 19:57:26 raspberrypi systemd[1]: deconz-init.service: Failed with result 'start-limit-hit'.
Jan 28 19:57:26 raspberrypi systemd[1]: Failed to start deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:57:36 raspberrypi systemd[1]: Reloading.
Jan 28 19:57:45 raspberrypi systemd[1]: Starting deCONZ: ZigBee gateway -- Initialisation...
Jan 28 19:57:45 raspberrypi systemd[1]: deconz-init.service: Succeeded.
Jan 28 19:57:45 raspberrypi systemd[1]: Started deCONZ: ZigBee gateway -- Initialisation.
Jan 28 19:57:56 raspberrypi systemd[1]: deconz.service: Service RestartSec=30s expired, scheduling restart.
Jan 28 19:57:56 raspberrypi systemd[1]: deconz.service: Scheduled restart job, restart counter is at 1341.
Jan 28 19:57:56 raspberrypi systemd[1]: Starting deCONZ: ZigBee gateway -- Initialisation...
Jan 28 19:57:56 raspberrypi systemd[1]: Stopped deCONZ: ZigBee gateway -- REST API.
Jan 28 19:57:56 raspberrypi systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Jan 28 19:57:56 raspberrypi systemd[22982]: deconz.service: Failed to determine user credentials: No such process
Jan 28 19:57:56 raspberrypi systemd[22982]: deconz.service: Failed at step USER spawning /usr/bin/deCONZ: No such process
Jan 28 19:57:56 raspberrypi systemd[1]: deconz.service: Main process exited, code=exited, status=217/USER
Jan 28 19:57:56 raspberrypi systemd[1]: deconz.service: Failed with result 'exit-code'.
Jan 28 19:57:56 raspberrypi systemd[1]: deconz-init.service: Succeeded.
Jan 28 19:57:56 raspberrypi systemd[1]: Started deCONZ: ZigBee gateway -- Initialisation.

Additional context

@Smanar
Copy link
Collaborator

Smanar commented Jan 28, 2021

Hello, wich one guide have you followed to install deconz ( https://phoscon.de/en/conbee2/install#raspbian ) ? Have you headless or desktop OS ?

Try before

$sudo systemctl stop deconz
$sudo systemctl stop deconz-gui

@WernerSch
Copy link
Author

Hello

i have no desktop OS.
i follow this ( https://phoscon.de/en/conbee2/install#raspbian )
But i forget a important point. On the raspberry Pi iobroker is running

Disable the gui doesnt help.

best regards
Werner

@Smanar
Copy link
Collaborator

Smanar commented Jan 29, 2021

Ok so try to run deconz using debug mode > https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/deCONZ-debug-flags

$sudo systemctl stop deconz
$sudo systemctl stop deconz-gui
$/usr/bin/deCONZ -platform minimal --dbg-info=2 --dbg-error=2 

@WernerSch
Copy link
Author

Hello
in the Attachnemt there is the debug info from putty terminal.
But i see that there is no folder deconz in /usr/bin

best reagrds
debug.txt

@Smanar
Copy link
Collaborator

Smanar commented Jan 29, 2021

For me it s look like a communication problem beetween the app and the key.

Can you check
ls -l /dev/ttyACM*
crw-rw---- 1 root dialout 166, 0 27. Jun 11:39 /dev/ttyACM0

wich one installation procedure have you followed ? You have not skipped
sudo gpasswd -a $USER dialout

@WernerSch
Copy link
Author

Hello

i checked it and it looks the same.

No i have not skipped the installation.

on a helpfull page there are two steps which have be to do
can this be the problem?

1 | sudo nano /boot/config.txt
1 | enable_uart=1

1 | sudo nano /boot/cmdline.txt
delete console=serial0

best regards

@Smanar
Copy link
Collaborator

Smanar commented Jan 30, 2021

This concern only Raspbee, not conbee.

Can you try to close all deconz instances again, and use
ps ax | grep deCONZ

It will display if you have another one somewhere

Do you have other USB plug ? can you make a try without them ?

You can make a test on another machine (a PC ?) to be sure it s not from the conbee ?

@WernerSch
Copy link
Author

Hello

i try to close all deconz but there is a password needed. The password from iobroker does not work. Then i get this

$ ps ax | grep deCONZ
380 ? Ss 0:56 /bin/bash /usr/bin/deCONZ-WIFI2.sh
384 ? Ss 0:49 /bin/bash /usr/bin/deCONZ-update2.sh
17225 pts/0 S+ 0:00 grep --color=auto deCONZ

Yes i have an rflink Adapter with an Arduino Mega plugged. I disable the Adapter in iobroker and unplug the Arduino.
But its the same

sudo systemctl status deconz
● deconz.service - deCONZ: ZigBee gateway -- REST API
Loaded: loaded (/lib/systemd/system/deconz.service; enabled; vendor preset: e
Active: activating (auto-restart) (Result: exit-code) since Sat 2021-01-30 10
Process: 2607 ExecStart=/usr/bin/deCONZ -platform minimal --http-port=80 (code
Main PID: 2607 (code=exited, status=217/USER)

Jan 30 10:52:51 raspberrypi systemd[1]: deconz.service: Failed with result 'exit

best regards

@WernerSch
Copy link
Author

Hello

i checked now the Conbee II adapter on a raspberry Pi 2 wirh Raspbian Buster light
There its works

sudo systemctl status deconz
● deconz.service - deCONZ: ZigBee gateway -- REST API
Loaded: loaded (/lib/systemd/system/deconz.service; enabled; vendor preset: e
Active: active (running) since Sat 2021-01-30 10:39:27 GMT; 5s ago
Main PID: 528 (deCONZ)
Tasks: 4 (limit: 2063)
CGroup: /system.slice/deconz.service
└─528 /usr/bin/deCONZ -platform minimal --http-port=80

Jan 30 10:39:27 raspberrypi systemd[1]: Started deCONZ: ZigBee gateway -- REST A
Jan 30 10:39:28 raspberrypi deCONZ[528]: QStandardPaths: XDG_RUNTIME_DIR not set
Jan 30 10:39:29 raspberrypi deCONZ[528]: libpng warning: iCCP: known incorrect s

best regards

@Smanar
Copy link
Collaborator

Smanar commented Jan 30, 2021

Os so probably from iobroker, but I don't know how it work ...
What is this story with password ?

Can you try to disable all services and run deconz with command line

$sudo systemctl disable deconz
$sudo systemctl disable deconz-gui
$sudo systemctl stop deconz
$sudo systemctl stop deconz-gui
$/usr/bin/deCONZ -platform minimal --http-port=80

@WernerSch
Copy link
Author

WernerSch commented Jan 30, 2021

Hello

i do your test. Here is the result shown in putty

/usr/bin/deCONZ -platform minimal --http-port=80
QCoreApplication::arguments: Please instantiate the QApplication object first
libpng warning: iCCP: known incorrect sRGB profile
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()

Maybe this is interesting too. I found this in the log of iobroker signed as a Info

2021-01-30 17:31:21.813 | info | (1513) Connected
2021-01-30 17:31:21.725 | info | (1513) Serial port opened
2021-01-30 17:31:19.718 | info | (1513) disconnected
2021-01-30 17:30:41.539 | info | (1513) List of port: [{"path":"/dev/ttyAMA0"},{"path":"/dev/ttyS0"},{"manufacturer":"dresden elektronik ingenieurtechnik GmbH","serialNumber":"DE2414879","pnpId":"usb-dresden_elektronik_ingenieurtech
2021-01-30 17:30:40.822 | info | (1513) List of port: [{"path":"/dev/ttyAMA0"},{"path":"/dev/ttyS0"},{"manufacturer":"dresden elektronik ingenieurtechnik GmbH","serialNumber":"DE2414879","pnpId":"usb-dresden_elektronik_ingenieurtech

the whole Line of the log

2021-01-30 17:30:41.539 - info: rflink.0 (1513) List of port: [{"path":"/dev/ttyAMA0"},{"path":"/dev/ttyS0"},{"manufacturer":"dresden elektronik ingenieurtechnik GmbH","serialNumber":"DE2414879","pnpId":"usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2414879-if00","vendorId":"1cf1","productId":"0030","path":"/dev/ttyACM0"},{"manufacturer":"1a86","pnpId":"usb-1a86_USB2.0-Serial-if00-port0","vendorId":"1a86","productId":"7523","path":"/dev/ttyUSB0"}]

The RFLink Adapter with the Arduino Mega is configured for "dev/ttyUSB0" in iobroker

best regards

@github-actions
Copy link
Contributor

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Feb 24, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2021

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

@watho
Copy link

watho commented Oct 16, 2021

I just want provide my solution for this problem.

Jan 28 19:55:25 raspberrypi systemd[22656]: deconz.service: Failed to determine user credentials: No such process Jan 28 19:55:25 raspberrypi systemd[22656]: deconz.service: Failed at step USER spawning /usr/bin/deCONZ: No such process

In the system service file is the running user defined as User=1000 However due to previous configuration errors on my machine i did not have a user with this uid and had to change it to a available user.

@ricariel
Copy link

I just want provide my solution for this problem.

Jan 28 19:55:25 raspberrypi systemd[22656]: deconz.service: Failed to determine user credentials: No such process Jan 28 19:55:25 raspberrypi systemd[22656]: deconz.service: Failed at step USER spawning /usr/bin/deCONZ: No such process

In the system service file is the running user defined as User=1000 However due to previous configuration errors on my machine i did not have a user with this uid and had to change it to a available user.

Thank you! I always delete the pi user in the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants