Cannot start deconz 2.18.1 without GUI on Ubuntu 22.04.0

After upgrading to 22.04.0 (from 18.04.0) it is no longer possible to start deconz without a GUI.
Works fine starting GUI in VNC.

No other deconz processes are running:

omr@shs2:~$ ps aux | grep -i  deco
omr        25305  0.0  0.0   9076  2316 pts/0    S+   18:36   0:00 grep --color=auto -i deco

Trying to start it in a ssh window:

omr@shs2:~$ /usr/bin/deCONZ -platform minimal -http-port=80
(deCONZ:25358): Gtk-WARNING **: 18:36:20.485: cannot open display:

Which is probably why systemctl fails as well:

omr@shs2:~$ sudo systemctl status deconz

● deconz.service - deCONZ: ZigBee gateway -- REST API
     Loaded: loaded (/lib/systemd/system/deconz.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/deconz.service.d
             └─override.conf
     Active: activating (auto-restart) (Result: exit-code) since Sun 2022-09-11 18:34:34 CEST; 24s ago
   Main PID: 23736 (code=exited, status=1/FAILURE)
        CPU: 35ms

Have tried apt remove deconz and reinstall with apt install deconz:

omr@shs2:~$ sudo apt install deconz
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpython2-dev libpython2.7 libpython2.7-dev python2-dev python2.7-dev
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  deconz
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,863 kB of archives.
After this operation, 43.8 MB of additional disk space will be used.
Get:1 http://phoscon.de/apt/deconz jammy-beta/main amd64 deconz amd64 2.18.01-ubuntu-bionic-beta [6,863 kB]
Fetched 6,863 kB in 1s (11.5 MB/s)
Selecting previously unselected package deconz.
(Reading database ... 290070 files and directories currently installed.)
Preparing to unpack .../deconz_2.18.01-ubuntu-bionic-beta_amd64.deb ...
Unpacking deconz (2.18.01-ubuntu-bionic-beta) ...
Setting up deconz (2.18.01-ubuntu-bionic-beta) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for mate-menus (1.26.0-2ubuntu2) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...

Got it working by changing startup parameter from minimal to offscreen …

sudo nano /etc/systemd/system/deconz.service.d/override.conf

image

Complains a bit, so someone might come up with a better solution since minimal stopped working on 22.04.0

omr@shs2:~$ sudo systemctl status deconz
● deconz.service - deCONZ: ZigBee gateway -- REST API
     Loaded: loaded (/lib/systemd/system/deconz.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/deconz.service.d
             └─override.conf
     Active: active (running) since Mon 2022-09-12 21:53:04 CEST; 1min 40s ago
   Main PID: 979 (deCONZ)
      Tasks: 4 (limit: 4465)
     Memory: 100.8M
        CPU: 4.869s
     CGroup: /system.slice/deconz.service
             └─979 /usr/bin/deCONZ -platform offscreen --http-port=80

Sep 12 21:53:04 shs2 systemd[1]: Started deCONZ: ZigBee gateway -- REST API.
Sep 12 21:53:05 shs2 deCONZ[979]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-omr'
Sep 12 21:53:06 shs2 deCONZ[979]: libpng warning: iCCP: known incorrect sRGB profile
Sep 12 21:53:06 shs2 deCONZ[979]: libpng warning: iCCP: known incorrect sRGB profile
Sep 12 21:53:11 shs2 deCONZ[979]: This plugin does not support propagateSizeHints()
Sep 12 21:53:11 shs2 deCONZ[979]: This plugin does not support propagateSizeHints()
Sep 12 21:53:14 shs2 deCONZ[979]: This plugin does not support propagateSizeHints()

Did you test with --platform minimal (instead of 1 -) According to the git, thats how it should be:

No, but my systemd setting that worked for 2.18.1 on 18.04.0 did not on 22.04.0.
Can try with - - after work… :relaxed:

1 Like

Same:

omr@shs2:~$ /usr/bin/deCONZ --platform minimal -http-port=80

(deCONZ:1169174): Gtk-WARNING **: 20:24:55.135: cannot open display:
omr@shs2:~$

-platform or --platform behaves the same …

@manup can you check?