[SOLVED] OFFLINE (COMMUNICATION_ERROR) : Destroyed container cannot be restarted

I have problem with deconz binding! Bought a Conbee 2 usb stick.
After generating API key and put it in the things file i get this error:

Status: OFFLINE (COMMUNICATION_ERROR): Destroyed container cannot be restarted

UID: deconz:deconz:homeserver
Type: deconz:deconz
Label: Deconz
Status: OFFLINE (COMMUNICATION_ERROR): Destroyed container cannot be restarted

Properties:
ipaddress : 192.168.20.50
fwversion : 0x264a0700
zigbeechannel : 15
apiversion : 1.16.0
swversion : 2.5.67
uuid : b2ce7511-921e-40ee-b397-133e83756728

Configuration parameters:
apikey : xxxxxxx
host : localhost:8090

No channels

Does anyone know a solution for this? I dont use docker and just followed install instruction but get stuck that i cant get deconz bridge to get online in openhab. Tried diffrent ipadress and hostname but then i get some other error:

Status: OFFLINE (COMMUNICATION_ERROR): java.lang.IllegalStateException: Unknown status code for authorisation request

UID: deconz:deconz:homeserver
Type: deconz:deconz
Label: Deconz
Status: OFFLINE (COMMUNICATION_ERROR): java.lang.IllegalStateException: Unknown status code for authorisation request

No properties

Configuration parameters:
apikey : xxxxxxxx
host : 192.168.20.50

No channels

Can someone plz help me.

My deconz.things file is just:

Bridge deconz:deconz:homeserver [ host=“192.168.20.50”, apikey=“xxxxxx” ]

also tried:

Bridge deconz:deconz:homeserver [ host=“localhost:8090”, apikey=“xxxxxx” ]
Bridge deconz:deconz:homeserver [ host=“127.0.0.1”, apikey=“xxxxx” ]
Bridge deconz:deconz:homeserver [ host=“127.0.0.1:8090”, apikey=“xxxxxx” ]

Seems to be a port problem. I have the same software for deconz on a raspberry pi and also openhab software…it seems that the deconz software wants to start the server on port 80 and i have the apache server at port 80 so i changed the port in deconz.service and also in deconz-gui.service and then it came online in openhab. Hope that could help someone.

Any chance you or someone else can explain how to do this? Everything is working fine on the deconz end (accessable via 192.168.178.4:80, can add sensors and lights…) but I’m getting the same error when connecting it to openhab.

On the instance of deCONZ installation i modified the ‘–http-port’ parameter from ‘80’ to ‘8090’ in the files ‘deconz.service’ and ‘deconz-gui.service’. In my case on a raspberry a connected via ‘ssh’ and used ‘vi’ to edit.

sudo vi /lib/systemd/system/deconz-gui.service
sudo vi /lib/systemd/system/deconz-gui.service

Than the Phoscon web-interface is accessible via ‘http://ip-raspberry:8090/pwa/login.html’ in browser. But in my case, the original problem as described in the ticket.still occur.

After restarting the deCONZ service via

sudo systemctl restart deconz

… the status of the service shows the desired port change

sudo systemctl status deconz
deconz.service - deCONZ: ZigBee gateway -- REST API
Loaded: loaded (/lib/systemd/system/deconz.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-04-15 22:02:47 CEST; 3 days ago
Main PID: 11667 (deCONZ)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/deconz.service
       └─11667 /usr/bin/deCONZ -platform minimal --http-port=8090

I tried to configure the openHAB deCONZ binding with different settings in ‘deconz.things’ e.g.

Bridge deconz:deconz:homeserver [ host="localhost", port="8090" ]
// Bridge deconz:deconz:homeserver [ host="127.0.0.1:8090"]

but always received errors in openHAB log console:

2020-04-19 14:02:02.859 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'deconz.things'
==> /var/log/openhab2/events.log <==
2020-04-19 14:02:02.895 [hingStatusInfoChangedEvent] - 'deconz:deconz:homeserver' changed from OFFLINE (COMMUNICATION_ERROR): java.net.ConnectException: Connection refused to OFFLINE (CONFIGURATION_PENDING): Requesting API Key
2020-04-19 14:02:02.901 [me.event.ThingUpdatedEvent] - Thing 'deconz:deconz:homeserver' has been updated.
2020-04-19 14:02:02.907 [hingStatusInfoChangedEvent] - 'deconz:deconz:homeserver' changed from OFFLINE (CONFIGURATION_PENDING): Requesting API Key to OFFLINE (COMMUNICATION_ERROR): java.net.ConnectException: Connection refused
==> /var/log/openhab2/openhab.log <==
2020-04-19 14:02:02.905 [WARN ] [internal.handler.DeconzBridgeHandler] - Authorisation failed
java.util.concurrent.CompletionException: java.net.ConnectException: Connection refused

I have the same issue. My phoscon is on a raspberry pi (different than openhab) and running on port 80. Everything is fine. So why should port 80 be blocked?

When I change the port of deconz and deconz-gui I have the problem that the stick seems to be not connected (Firmware: not connected)
I think I already did it in the past, but it was removed after a firmware update of phoscon.

The best solution would be if I could leave it on port 80 but I need to understand why phoscon is running but I receive the destroyed container message.

It also seems to need a long time, until the gateway is recognized with the correct ip address (stays a long time on 127.0.0.1 when I change the port to port 8080 for example.

When I change the port to 8090, Openhab log is flooded with:

2020-11-22 20:51:19.867 [hingStatusInfoChangedEvent] - ‘hue:bridge:00212E03FE4E’ changed from ONLINE to OFFLINE: Hue bridge connection lost.
2020-11-22 20:51:20.367 [hingStatusInfoChangedEvent] - ‘hue:bridge:00212E03FE4E’ changed from OFFLINE: Hue bridge connection lost. to ONLINE
2020-11-22 20:51:20.370 [hingStatusInfoChangedEvent] - ‘hue:bridge:00212E03FE4E’ changed from ONLINE to OFFLINE: Hue bridge connection lost.
2020-11-22 20:51:20.879 [hingStatusInfoChangedEvent] - ‘hue:bridge:00212E03FE4E’ changed from OFFLINE: Hue bridge connection lost. to ONLINE
2020-11-22 20:51:20.883 [hingStatusInfoChangedEvent] - ‘hue:bridge:00212E03FE4E’ changed from ONLINE to OFFLINE: Hue bridge connection lost.
2020-11-22 20:51:21.384 [hingStatusInfoChangedEvent] - ‘hue:bridge:00212E03FE4E’ changed from OFFLINE: Hue bridge connection lost. to ONLINE
2020-11-22 20:51:21.386 [hingStatusInfoChangedEvent] - ‘hue:bridge:00212E03FE4E’ changed from ONLINE to OFFLINE: Hue bridge connection lost.
2020-11-22 20:51:21.891 [hingStatusInfoChangedEvent] - ‘hue:bridge:00212E03FE4E’ changed from OFFLINE: Hue bridge connection lost. to ONLINE

Back to port 80 and back to “OFFLINE (COMMUNICATION_ERROR): Destroyed container cannot be restarted”…

hello i have raspberry pi 4
with OpenHAB 3.0
I have a setting nginx ,symlinks from here

the server IP : 192.168.0.4:8080
nginx IP : MyServer:80
change the port of deconz and deconz-gui : 192.168.0.4:8090
in ip 192.168.0.4:8090 it seems that he does not sacrifice
but in 192.168.0.4:80 there is confusion because it is the same port
in my document shows
with that I could not change it : sudo vi /lib/systemd/system/deconz-gui.service
and I use that : sudo nano /lib/systemd/system/deconz-gui.service

[Unit]
Description=deCONZ: ZigBee gateway – GUI/REST API
Wants=deconz-init.service deconz-update.service
After=lightdm.service vncserver-x11-serviced.service

[Service]
User=1000
Environment=“DISPLAY=:0”
ExecStart=/usr/bin/deCONZ --http-port=8090
Restart=on-failure
StartLimitIntervalSec=0
RestartSec=30
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_KILL CAP_SYS_BOOT CAP_SYS_TIME

[Install]
WantedBy=multi-user.target

sudo systemctl status deconz

openhabian@MyServer:~ $ 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 Sun 2021-01-24 02:27:17 EET; 8h ago
Main PID: 388 (deCONZ)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/deconz.service
└─388 /usr/bin/deCONZ -platform minimal --http-port=80

Jan 24 02:27:17 MyServer systemd[1]: Started deCONZ: ZigBee gateway – REST API.
Jan 24 02:27:17 MyServer deCONZ[388]: QStandardPaths: XDG_RUNTIME_DIR not set, d
Jan 24 02:27:18 MyServer deCONZ[388]: libpng warning: iCCP: known incorrect sRGB
lines 1-11/11 (END)
● deconz.service - deCONZ: ZigBee gateway – REST API
Loaded: loaded (/lib/systemd/system/deconz.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-01-24 02:27:17 EET; 8h ago
Main PID: 388 (deCONZ)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/deconz.service
└─388 /usr/bin/deCONZ -platform minimal --http-port=80

Jan 24 02:27:17 MyServer systemd[1]: Started deCONZ: ZigBee gateway – REST API.
Jan 24 02:27:17 MyServer deCONZ[388]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime
Jan 24 02:27:18 MyServer deCONZ[388]: libpng warning: iCCP: known incorrect sRGB profile
~
~

does not seem to have changed Port
how can i make it work
thanks

Hi,

some minor notes to your configuration.

You are using and restarting the deconz.service but changing unit file of the deconz-gui.service. The file for the deconz.service is /lib/systemd/system/deconz.service. Please adjust the port there.

Cheers,

Simon

Hi,

Your port parameter in Openhab seems to be wrong. Please refer to the docs, but to specify http port you need to provide httpPort="8090". The parameter port also exists and is used for the websocket port, but is not required to be specified.

Cheers,

Simon