Problem/Question
It’s the first time I installed netdata - I wanted to test it as it seems great on paper. However, while I can successfully put a parent online and access its data from https://xxx.xxx.xxx.xxx:19999, there is no way I can get streaming working. I set up two different machines as child, but I always get the error "“API KEY DISABLED PERMISSION DENIED” and “API KEY DISABLED PERMISSION DENIED”. Like the API key was wrong.
This is a little excerpt from the logs:
time=2024-07-01T21:02:30.737+02:00 comm=netdata source=access level=debug tid=166614 thread=WEB[3] src_transport=http src_ip=192.XXX.X.XXX src_port=43704 conn=0 msg="[192.168.2.189]:43704 CONNECTED"
time=2024-07-01T21:02:30.742+02:00 comm=netdata source=access level=warning tid=166614 thread=WEB[3] msg_id=ed4cdb8f1beb4ad3b57cb3cae2d162fa node=XXXXXXXXXXXXXX src_transport=http role=none permissions=0x0 src_i
p=192.168.2.189 src_port=43704 req_method=GET code="API KEY DISABLED PERMISSION DENIED" conn=0 transaction=1c52117400ed42008b90f17595beef63 request="key=xxxxxxxxxxxxxxxxxxxxxxxxx&hostname=XXXXXXXXXX®istry_hostname=XXXXXXXXXXX&machine_guid=e9facdea-371c-11ef-81bc-dca632c7c21c&update_every=1&os=linux&timezone=Europe/Madrid&abbrev_timezone=CEST&utc_offset=7200&hops=1&ml_capable=1&ml_enabled=1&mc_versi
on=1&ver=14548984&NETDATA_INSTANCE_CLOUD_TYPE=unknown&NETDATA_INSTANCE_CLOUD_INSTANCE_TYPE=unknown&NETDATA_INSTANCE_CLOUD_INSTANCE_REGION=unknown&NETDATA_SYSTEM_OS_NAME=Debian+GNU%2fLinux&NETDATA_SYSTEM_OS_ID=d
ebian&NETDATA_SYSTEM_OS_ID_LIKE=unknown&NETDATA_SYSTEM_OS_VERSION=11+%28bullseye%29&NETDATA_SYSTEM_OS_VERSION_ID=11&NETDATA_SYSTEM_OS_DETECTION=/etc/os-release&NETDATA_HOST_IS_K8S_NODE=false&NETDATA_SYSTEM_KERN
EL_NAME=Linux&NETDATA_SYSTEM_KERNEL_VERSION=5.10.103-v8%2b&NETDATA_SYSTEM_ARCHITECTURE=aarch64&NETDATA_SYSTEM_VIRTUALIZATION=none&NETDATA_SYSTEM_VIRT_DETECTION=systemd-detect-virt&NETDATA_SYSTEM_CONTAINER=none&
NETDATA_SYSTEM_CONTAINER_DETECTION=systemd-detect-virt&NETDATA_CONTAINER_OS_NAME=none&NETDATA_CONTAINER_OS_ID=none&NETDATA_CONTAINER_OS_ID_LIKE=none&NETDATA_CONTAINER_OS_VERSION=none&NETDATA_CONTAINER_OS_VERSIO
N_ID=none&NETDATA_CONTAINER_OS_DETECTION=none&NETDATA_SYSTEM_CPU_LOGICAL_CPU_COUNT=4&NETDATA_SYSTEM_CPU_FREQ=1500000000&NETDATA_SYSTEM_TOTAL_RAM=8192532480&NETDATA_SYSTEM_TOTAL_DISK_SIZE=255988948992&NETDATA_PR
OTOCOL_VERSION=1.1" msg="api_key:'xxxxxxxxxxxxxxxxxxxxxxxxxxx' machine_guid:'e9facdea-371c-11ef-81bc-dca632c7c21c' msg:'API key is not enabled'"
time=2024-07-01T21:02:30.742+02:00 comm=netdata source=access level=debug tid=166614 thread=WEB[3] src_transport=http src_ip=192.XXX.X.XXX src_port=43704 conn=0 msg="
[192.168.2.189]:43704 DISCONNECTED"
time=2024-07-01T21:02:30.742+02:00 comm=netdata source=access level=warning tid=166614 thread=WEB[3] role=none permissions=0x0 src_ip=192.XXX.X.XXX src_port=43704 req_method=STREAM code=401 conn=0 transaction=1
c52117400ed42008b90f17595beef63 sent_bytes=67 size_bytes=67 prep_ut=0 sent_ut=0 total_ut=442 request="key=xxxxxxxxxxxxxxxxxxxxx&hostname=xxxxxxxxxxx®istry_hostname=xxxxxxxxxxx&machine_guid
=e9facdea-371c-11ef-81bc-dca632c7c21c&update_every=1&os=linux&timezone=Europe/Madrid&abbrev_timezone=CEST&utc_offset=7200&hops=1&ml_capable=1&ml_enabled=1&mc_version=1&ver=14548984&NETDATA_INSTANCE_CLOUD_TYPE=u
nknown&NETDATA_INSTANCE_CLOUD_INSTANCE_TYPE=unknown&NETDATA_INSTANCE_CLOUD_INSTANCE_REGION=unknown&NETDATA_SYSTEM_OS_NAME=Debian+GNU%2fLinux&NETDATA_SYSTEM_OS_ID=debian&NETDATA_SYSTEM_OS_ID_LIKE=unknown&NETDATA
_SYSTEM_OS_VERSION=11+%28bullseye%29&NETDATA_SYSTEM_OS_VERSION_ID=11&NETDATA_SYSTEM_OS_DETECTION=/etc/os-release&NETDATA_HOST_IS_K8S_NODE=false&NETDATA_SYSTEM_KERNEL_NAME=Linux&NETDATA_SYSTEM_KERNEL_VERSION=5.1
0.103-v8%2b&NETDATA_SYSTEM_ARCHITECTURE=aarch64&NETDATA_SYSTEM_VIRTUALIZATION=none&NETDATA_SYSTEM_VIRT_DETECTION=systemd-detect-virt&NETDATA_SYSTEM_CONTAINER=none&NETDATA_SYSTEM_CONTAINER_DETECTION=systemd-dete
ct-virt&NETDATA_CONTAINER_OS_NAME=none&NETDATA_CONTAINER_OS_ID=none&NETDATA_CONTAINER_OS_ID_LIKE=none&NETDATA_CONTAINER_OS_VERSION=none&NETDATA_CONTAINER_OS_VERSION_ID=none&NETDATA_CONTAINER_OS_DETECTION=none&N
ETDATA_SYSTEM_CPU_LOGICAL_CPU_COUNT=4&NETDATA_SYSTEM_CPU_FREQ=1500000000&NETDATA_SYSTEM_TOTAL_RAM=8192532480&NETDATA_SYSTEM_TOTAL_DISK_SIZE=255988948992&NETDATA_PROTOCOL_VERSION=1.1"
Relevant docs you followed/actions you took to solve the issue:
Environment/Browser/Agent’s version etc
Parent:
Raspberry PI 4 - 4Gb RAM
OS: Debian Bullseye
Netdata version: netdata v1.46.0-68-nightly (installed via Kickstarter first and then I tried with Debian’s packages)
netdata.conf - all standard values except:
[web]
allow connections from = *
[registry]
enabled = yes
registry to announce = http://192.168.2.11:19999
stream.conf - all standard values except:
[11111111-2222-3333-4444-555555555555]
type = api
enabled = yes
allow from = *
default postpone alarms on connect seconds = 60
Child 1:
Raspberry PI 4 - 8Gb RAM
OS: Debian Bullseye
Netdata version: netdata v1.46.0-68-nightly
netdata.conf - all standard values
stream.conf - all standard values except:
[stream]
enabled = yes
destination = 192.XXX.X.XX
api key = 11111111-2222-3333-4444-555555555555
timeout seconds = 60
default port = 19999
send charts matching = *
buffer size bytes = 1048576
reconnect delay seconds = 5
initial clock resync iterations = 60
Child 2:
Raspberry PI 1 - 256Mb
OS: Debian Bullseye
Netdata version: netdata v1.46.0-34-g2ea4979ec (compiled manually as any other method produced an executable that would fail with “illegal instruction”.
netdata.conf - all standard values except:
[global]
run as user = netdata
web files owner = root
web files group = root
[web]
bind to = *
stream.conf - all standard values except:
[stream]
enabled = yes
destination = 192.XXX.X.XX
api key = 11111111-2222-3333-4444-555555555555
timeout seconds = 60
default port = 19999
send charts matching = *
buffer size bytes = 10485760
reconnect delay seconds = 5
initial clock resync iterations = 60
What I expected to happen
Streaming working properly, with API accepted