Failed to connect to https://app.netdata.cloud, return code 6

I am currently deploying netdata on 4 mostly similar docker hosts. 3 of them worked fine.
The last one fails to connect and doesn’t even start.

Debian 11
Docker 20.10.18

Any help would be appreciated

Netdata detected docker.sock
Creating docker group 1000
addgroup: group 'docker' in use
Could not add group docker with ID 1000, its already there probably
Assign netdata user to docker group 1000
Unable to communicate with Netdata daemon, querying config from disk instead.
Unable to communicate with Netdata daemon, querying config from disk instead.
Token: ****************
Base URL: https://app.netdata.cloud
Id: XXXXX
Rooms: 
Hostname: XXXXX
Proxy: 
Netdata user: netdata
Failed to connect to https://app.netdata.cloud, return code 6
Connection attempt 1 failed. Retry in 1s.
Failed to connect to https://app.netdata.cloud, return code 6
Connection attempt 2 failed. Retry in 2s.
Failed to connect to https://app.netdata.cloud, return code 6
Connection attempt 3 failed. Retry in 3s.
grep: /var/lib/netdata/cloud.d/tmpout.txt: No such file or directory
grep: /var/lib/netdata/cloud.d/tmpout.txt: No such file or directory
Failed to claim node with the following error message:"Unknown HTTP error message"
version: '3'
services:
  netdata:
    image: netdata/netdata
    container_name: netdata
    hostname: XXXXX
    ports:
      - 19999:19999
    restart: always
    cap_add:
      - SYS_PTRACE
    security_opt:
      - apparmor:unconfined
    volumes:
      - netdataconfig:/etc/netdata
      - netdatalib:/var/lib/netdata
      - netdatacache:/var/cache/netdata
      - /etc/passwd:/host/etc/passwd:ro
      - /etc/group:/host/etc/group:ro
      - /proc:/host/proc:ro
      - /sys:/host/sys:ro
      - /etc/os-release:/host/etc/os-release:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      NETDATA_CLAIM_TOKEN: 'XXXXX'
      NETDATA_CLAIM_URL: 'https://app.netdata.cloud'

volumes:
  netdataconfig:
  netdatalib:
  netdatacache:

Hi @CHAIN

Welcome to Netdata!

return code 6 (assuming curl was used rather than wget) means that it could not resolve the host app.netdata.cloud.

Can you double check your DNS settings on that host, perhaps try from inside the docker instance to do a simple curl https://app.netdata.cloud ?

DNS resolve on the Docker host (Debian VM) works.
From inside the Docker container it doesn’t work:

XXXXX@XXXXX:~# docker exec -it netdata curl https://app.netdata.cloud
curl: (6) Could not resolve host: app.netdata.cloud

I don’t understand why, because it’s the same network configuration as on the other hosts/containers.

Seemed to be the configuration of my DNS server (running on the same host).
I rebuilt everything and it works now.

Thanks for your help!

Thanks for following up!