# Running docker image of deCONZ on Raspi4 with RaspBee failed

**URL:** <https://forum.phoscon.de/t/running-docker-image-of-deconz-on-raspi4-with-raspbee-failed/4942>\
**Category:** Setup Support\
**Created:** [June 19, 2024, 9:34am UTC](https://forum.phoscon.de/t/running-docker-image-of-deconz-on-raspi4-with-raspbee-failed/4942 "2024-06-19T09:34:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnurps](https://forum.phoscon.de/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@gnurps](https://forum.phoscon.de/u/gnurps)\
**Post date:** [June 19, 2024, 9:34am UTC](https://forum.phoscon.de/t/running-docker-image-of-deconz-on-raspi4-with-raspbee-failed/4942/1 "2024-06-19T09:34:53Z")

</div>

I am trying to update my already running Docker instance of deCONZ on a Raspi4 with RaspBee. I have installed a new SD card from scratch. I followed the instructions at [[RaspBee Installation](https://phoscon.de/en/raspbee/install)]([https://RaspBee](https://RaspBee) documentation) and [[GitHub - deconz-community/deconz-docker](https://github.com/deconz-community/deconz-docker#readme)]([https://deCONZ](https://deCONZ) docker readme).

My docker-compose.yml looks like this:

```auto
version: '3.6'
services:
  deconz:
    image: deconzcommunity/deconz
    container_name: deconz
    network_mode: host
    restart: always
    privileged: true # This is important! Without it, the deCONZ image won't be able to connect to Raspbee!
    ports:
      - 80:80
      - 443:443
    volumes:
      - /opt/deconz:/opt/deCONZ
      - /etc/localtime:/etc/localtime:ro
    devices:
      - /dev/ttyAMA0
    environment:
      - DECONZ_WEB_PORT=80
      - DECONZ_WS_PORT=443
      - DEBUG_INFO=2
      - DEBUG_ERROR=2
      - DEBUG_APS=2
      - DEBUG_ZCL=0
      - DEBUG_ZDP=0
      - DEBUG_OTAU=0
      - TZ=Germany/Berlin
      - DECONZ_VNC_MODE=0
      - DECONZ_DEVICE=/dev/ttyAMA0

```

But according to the repeated logging, the connection to the RaspBee via /dev/ttyAMA0 seems to fail:

```auto
09:01:25:926 failed open com status: (-3), path: /dev/ttyAMA0
09:01:26:901 wait reconnect 5 seconds
09:01:26:963 COM: /dev/ttyAMA0 : : (0x0000/0x0000)
09:01:26:963 dev /dev/ttyAMA0
09:01:26:963 COM: /dev/ttyAMA0 / serialno: , RaspBee
09:01:27:901 wait reconnect 4 seconds
09:01:28:901 wait reconnect 3 seconds
09:01:29:900 wait reconnect 2 seconds
09:01:30:901 wait reconnect 1 seconds
09:01:30:926 COM: /dev/ttyAMA0 : : (0x0000/0x0000)
09:01:30:926 dev /dev/ttyAMA0
09:01:30:926 COM: /dev/ttyAMA0 / serialno: , RaspBee
09:01:30:926 failed open com status: (-3), path: /dev/ttyAMA0

```

On the same hardware, deCONZ runs without any problems when I put the old SD card back in. The docker-compose.yml file differs there of course because of the old version (e.g. image marthoc/deconz).
