Cannot start netdata agent

Problem/Question

I am not able to start netdata after installing it with:

wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --claim-token <TOKEN> --claim-rooms <TOKEN> --claim-url https://app.netdata.cloud --disable-telemetry

during install i get a some errors/warnings:

Root privileges required to run env apt-get install /tmp/netdata-kickstart-ZHqK3GAnBg/netdata-repo_3-2+ubuntu_all.deb
[/tmp/netdata-kickstart-ZHqK3GAnBg]$ sudo env apt-get install /tmp/netdata-kickstart-ZHqK3GAnBg/netdata-repo_buntu20.04_all.deb
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Hinweis: »netdata-repo« wird an Stelle von »/tmp/netdata-kickstart-ZHqK3GAnBg/netdata-repo_3-2+ubuntu20.04_al« gewählt.
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 netdata-repo : Hängt ab von: debian-keyring ist aber nicht installierbar
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
 FAILED

 WARNING  Failed to install repository configuration package.

 WARNING  Could not install native binary packages, falling back to alternative installation method.

I tried to unistall and reinstall but the problem persists.

Environment/Browser/Agent’s version etc


USER:~$ sudo systemctl status netdata
● netdata.service - Real time performance monitoring
     Loaded: loaded (/lib/systemd/system/netdata.service; enabled; vendor preset: enabled)
     Active: deactivating (stop-sigterm) (Result: signal) since Sun 2024-09-29 12:34:08 CEST; 8s ago
    Process: 6560 ExecStartPre=/bin/mkdir -p /opt/netdata/var/cache/netdata (code=exited, status=0/SUCCESS)
    Process: 6562 ExecStartPre=/bin/chown -R netdata /opt/netdata/var/cache/netdata (code=exited, status=0/SUCCESS)
    Process: 6563 ExecStartPre=/bin/mkdir -p /run/netdata (code=exited, status=0/SUCCESS)
    Process: 6564 ExecStartPre=/bin/chown -R netdata /run/netdata (code=exited, status=0/SUCCESS)
    Process: 6565 ExecStart=/opt/netdata/usr/sbin/netdata -P /run/netdata/netdata.pid -D (code=killed, signal=ABRT)
   Main PID: 6565 (code=killed, signal=ABRT)
     CGroup: /system.slice/netdata.service

Sep 29 12:34:06 h2893404.stratoserver.net systemd[1]: Starting Real time performance monitoring...
Sep 29 12:34:07 h2893404.stratoserver.net systemd[1]: Started Real time performance monitoring.
Sep 29 12:34:08 h2893404.stratoserver.net systemd[1]: netdata.service: Main process exited, code=killed, status=6/ABRT

USER:~$ /opt/netdata/bin/netdata -v
netdata v1.47.2
USER:~$ /opt/netdata/bin/netdata -W buildinfo
time=2024-09-29T12:21:30.517+02:00 comm=netdata source=daemon level=error errno="13, Permission denied" tid=4866  msg="Cannot open log file '/opt/netdata/var/log/netdata/collectors.log'. Leaving fd 2 as-is."
time=2024-09-29T12:21:30.518+02:00 comm=netdata source=daemon level=error errno="13, Permission denied" tid=4866  msg="Cannot open log file '/opt/netdata/var/log/netdata/daemon.log'. Falling back to stderr."
Packaging:
    Netdata Version ____________________________________________ : v1.47.2
    Installation Type __________________________________________ : kickstart-static
    Package Architecture _______________________________________ : x86_64
    Package Distro _____________________________________________ : unknown
    Configure Options __________________________________________ : dummy-configure-command
Default Directories:
    User Configurations ________________________________________ : /opt/netdata/etc/netdata
    Stock Configurations _______________________________________ : /opt/netdata/usr/lib/netdata/conf.d
    Ephemeral Databases (metrics data, metadata) _______________ : /opt/netdata/var/cache/netdata
    Permanent Databases ________________________________________ : /opt/netdata/var/lib/netdata
    Plugins ____________________________________________________ : /opt/netdata/usr/libexec/netdata/plugins.d
    Static Web Files ___________________________________________ : /opt/netdata/usr/share/netdata/web
    Log Files __________________________________________________ : /opt/netdata/var/log/netdata
    Lock Files _________________________________________________ : /opt/netdata/var/lib/netdata/lock
    Home _______________________________________________________ : /opt/netdata/var/lib/netdata
Operating System:
    Kernel _____________________________________________________ : Linux
    Kernel Version _____________________________________________ : 4.15.0
    Operating System ___________________________________________ : unknown
    Operating System ID ________________________________________ : unknown
    Operating System ID Like ___________________________________ : unknown
    Operating System Version ___________________________________ : unknown
    Operating System Version ID ________________________________ : 20.04
    Detection __________________________________________________ : unknown
Hardware:
    CPU Cores __________________________________________________ : 1
    CPU Frequency ______________________________________________ : 1999000000
    RAM Bytes __________________________________________________ : 536870912
    Disk Capacity ______________________________________________ : 0
    CPU Architecture ___________________________________________ : x86_64
    Virtualization Technology __________________________________ : none
    Virtualization Detection ___________________________________ : systemd-detect-virt
Container:
    Container __________________________________________________ : openvz
    Container Detection ________________________________________ : systemd-detect-virt
    Container Orchestrator _____________________________________ : none
    Container Operating System _________________________________ : Ubuntu
    Container Operating System ID ______________________________ : ubuntu
    Container Operating System ID Like _________________________ : debian
    Container Operating System Version _________________________ : 20.04.6 LTS (Focal Fossa)
    Container Operating System Version ID ______________________ : 20.04
    Container Operating System Detection _______________________ : /etc/os-release
Features:
    Built For __________________________________________________ : Linux
    Netdata Cloud ______________________________________________ : YES
    Health (trigger alerts and send notifications) _____________ : YES
    Streaming (stream metrics to parent Netdata servers) _______ : YES
    Back-filling (of higher database tiers) ____________________ : YES
    Replication (fill the gaps of parent Netdata servers) ______ : YES
    Streaming and Replication Compression ______________________ : YES (zstd lz4 gzip)
    Contexts (index all active and archived metrics) ___________ : YES
    Tiering (multiple dbs with different metrics resolution) ___ : YES (5)
    Machine Learning ___________________________________________ : YES
Database Engines:
    dbengine (compression) _____________________________________ : YES (zstd lz4)
    alloc ______________________________________________________ : YES
    ram ________________________________________________________ : YES
    none _______________________________________________________ : YES
Connectivity Capabilities:
    ACLK (Agent-Cloud Link: MQTT over WebSockets over TLS) _____ : YES
    static (Netdata internal web server) _______________________ : YES
    h2o (web server) ___________________________________________ : YES
    WebRTC (experimental) ______________________________________ : NO
    Native HTTPS (TLS Support) _________________________________ : YES
    TLS Host Verification ______________________________________ : YES
Libraries:
    LZ4 (extremely fast lossless compression algorithm) ________ : YES
    ZSTD (fast, lossless compression algorithm) ________________ : YES
    zlib (lossless data-compression library) ___________________ : YES
    Brotli (generic-purpose lossless compression algorithm) ____ : NO
    protobuf (platform-neutral data serialization protocol) ____ : YES (system)
    OpenSSL (cryptography) _____________________________________ : YES
    libdatachannel (stand-alone WebRTC data channels) __________ : NO
    JSON-C (lightweight JSON manipulation) _____________________ : YES
    libcap (Linux capabilities system operations) ______________ : NO
    libcrypto (cryptographic functions) ________________________ : YES
    libyaml (library for parsing and emitting YAML) ____________ : YES
    libmnl (library for working with netfilter) ________________ : YES
Plugins:
    apps (monitor processes) ___________________________________ : YES
    cgroups (monitor containers and VMs) _______________________ : YES
    cgroup-network (associate interfaces to CGROUPS) ___________ : YES
    proc (monitor Linux systems) _______________________________ : YES
    tc (monitor Linux network QoS) _____________________________ : YES
    diskspace (monitor Linux mount points) _____________________ : YES
    freebsd (monitor FreeBSD systems) __________________________ : NO
    macos (monitor MacOS systems) ______________________________ : NO
    statsd (collect custom application metrics) ________________ : YES
    timex (check system clock synchronization) _________________ : YES
    idlejitter (check system latency and jitter) _______________ : YES
    bash (support shell data collection jobs - charts.d) _______ : YES
    debugfs (kernel debugging metrics) _________________________ : YES
    cups (monitor printers and print jobs) _____________________ : NO
    ebpf (monitor system calls) ________________________________ : YES
    freeipmi (monitor enterprise server H/W) ___________________ : NO
    nfacct (gather netfilter accounting) _______________________ : YES
    perf (collect kernel performance events) ___________________ : YES
    slabinfo (monitor kernel object caching) ___________________ : YES
    Xen ________________________________________________________ : NO
    Xen VBD Error Tracking _____________________________________ : NO
Exporters:
    AWS Kinesis ________________________________________________ : NO
    GCP PubSub _________________________________________________ : NO
    MongoDB ____________________________________________________ : NO
    Prometheus (OpenMetrics) Exporter __________________________ : YES
    Prometheus Remote Write ____________________________________ : YES
    Graphite ___________________________________________________ : YES
    Graphite HTTP / HTTPS ______________________________________ : YES
    JSON _______________________________________________________ : YES
    JSON HTTP / HTTPS __________________________________________ : YES
    OpenTSDB ___________________________________________________ : YES
    OpenTSDB HTTP / HTTPS ______________________________________ : YES
    All Metrics API ____________________________________________ : YES
    Shell (use metrics in shell scripts) _______________________ : YES
Debug/Developer Features:
    Trace All Netdata Allocations (with charts) ________________ : NO
    Developer Mode (more runtime checks, slower) _______________ : NO

create a bash script and put the install in it.

wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --claim-token <TOKEN> --claim-rooms <TOKEN> --claim-url https://app.netdata.cloud --disable-telemetry

Then chmod +x the file you just created.

Then sudo run the file… This will get you all the commands in the original install to have sudo permissions. you can’t simply run sudo on the original code as it has multiple commands in it (the && shows this) and only the first command will run under the sudo elevation (the wget command in this case).

Thanks for the suggestion.
I tried but without luck.
Also tried executing everything after su, but still resulting in the same error.

I didn’t notice at first but you are trying to install this on Ubuntu 20.04? This is 2 LTS versions behind the current (24.04) and may be the issue. Let me spin up a 20.04 system and test.

Not the issue - it worked fine for me.

Uninstall everything that you did and use this for your install instead of what you pasted in the thread:

wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --disable-telemetry

This will install with automatic updates and will not contribute anonymous statistics.

This will not connect it to Netdata cloud but this can be done after the fact.

Thanks, still no luck. Same issue.

Setup stuck for some minutes at this point:

Configure TLS certificate paths (mode: check)
Testing /etc/ssl for TLS configuration and certificates
Successfully connected to https://app.netdata.cloud using certificates
Using /etc/ssl for TLS configuration and certificates
Save install options
 --- starting netdata ---
 --- Restarting netdata instance ---

Stopping all netdata threads
[/opt/netdata]# stop_all_netdata
 OK  ''

Starting netdata using command 'systemctl start netdata'
[/opt/netdata]# systemctl start netdata
 OK  ''

Ooops! it seems netdata is not started.
Attempting another netdata start using command 'systemctl start netdata'
[/opt/netdata]# systemctl start netdata

Hm... it seems netdata is still not started.
 WARNING  Netdata service still not started, attempting another forced restart by running '/opt/netdata/bin/netdata 

Any ideas on how to debug this further?