Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Perf-plugin error on systems with no setcap #16556

Closed
KaKi87 opened this issue Dec 6, 2023 · 9 comments · Fixed by #16558
Closed

[Bug]: Perf-plugin error on systems with no setcap #16556

KaKi87 opened this issue Dec 6, 2023 · 9 comments · Fixed by #16558
Assignees
Labels
area/packaging Packaging and operating systems support bug patch-release-candidate Mark a PR as being a candidate for inclusion in a patch release. priority/high Super important issue

Comments

@KaKi87
Copy link

KaKi87 commented Dec 6, 2023

Bug description

One of the dependencies throws an error during installation :

dietpi@DietPi:~$ sudo dpkg --configure -a
Setting up netdata-plugin-perf (1.43.2) ...
Failed to set capabilities on file '/usr/libexec/netdata/plugins.d/perf.plugin': Operation not supported
dpkg: error processing package netdata-plugin-perf (--configure):
 installed netdata-plugin-perf package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 netdata-plugin-perf
dietpi@DietPi:~$

Expected behavior

No error is thrown.

Steps to reproduce

  1. Install Netdata ;
  2. See error ;
  3. Try sudo dpkg --configure -a ;
  4. See error ;
  5. Try sudo apt install -f ;
  6. See error.

Installation method

kickstart.sh

System info

Linux DietPi 6.6.3 #1 SMP PREEMPT Wed Nov 29 19:16:55 UTC 2023 aarch64 GNU/Linux
/etc/os-release:PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
/etc/os-release:NAME="Debian GNU/Linux"
/etc/os-release:VERSION_ID="12"
/etc/os-release:VERSION="12 (bookworm)"
/etc/os-release:VERSION_CODENAME=bookworm
/etc/os-release:ID=debian

Netdata build info

Packaging:
    Netdata Version ____________________________________________ : v1.43.2
    Installation Type __________________________________________ : kickstart-static
    Package Architecture _______________________________________ : aarch64
    Package Distro _____________________________________________ : unknown
    Configure Options __________________________________________ :  '--prefix=/opt/netdata/usr' '--sysconfdir=/opt/netdata/etc' '--localstatedir=/opt/netdata/var' '--libexecdir=/opt/netdata/usr/libexec' '--libdir=/opt/netdata/usr/lib' '--with-math' '--with-user=netdata' '--disable-exporting-mongodb' '--enable-cloud' '--without-bundled-protobuf' '--disable-dependency-tracking' '--enable-lto' 'CFLAGS=-ffunction-sections -fdata-sections -static -O2 -funroll-loops -I/openssl-static/include -I/libnetfilter-acct-static/include/libnetfilter_acct -I/usr/include/libmnl -pipe' 'LDFLAGS=-Wl,--gc-sections -static -L/openssl-static/lib64 -L/libnetfilter-acct-static/lib -lnetfilter_acct -L/usr/lib -lmnl' 'PKG_CONFIG=pkg-config --static' 'PKG_CONFIG_PATH=/openssl-static/lib64/pkgconfig:/libnetfilter-acct-static/lib/pkgconfig:/usr/lib/pkgconfig'
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 _____________________________________________ : 6.6.3
    Operating System ___________________________________________ : Debian GNU/Linux
    Operating System ID ________________________________________ : debian
    Operating System ID Like ___________________________________ : unknown
    Operating System Version ___________________________________ : 12 (bookworm)
    Operating System Version ID ________________________________ : none
    Detection __________________________________________________ : /etc/os-release
Hardware:
    CPU Cores __________________________________________________ : 4
    CPU Frequency ______________________________________________ : 1800000000
    CPU Architecture ___________________________________________ : 8061939712
    RAM Bytes __________________________________________________ : 296363622400
    Disk Capacity ______________________________________________ : aarch64
    Virtualization Technology __________________________________ : none
    Virtualization Detection ___________________________________ : systemd-detect-virt
Container:
    Container __________________________________________________ : none
    Container Detection ________________________________________ : systemd-detect-virt
    Container Orchestrator _____________________________________ : none
    Container Operating System _________________________________ : none
    Container Operating System ID ______________________________ : none
    Container Operating System ID Like _________________________ : none
    Container Operating System Version _________________________ : none
    Container Operating System Version ID ______________________ : none
    Container Operating System Detection _______________________ : none
Features:
    Built For __________________________________________________ : Linux
    Netdata Cloud ______________________________________________ : YES
    Health (trigger alerts and send notifications) _____________ : YES
    Streaming (stream metrics to parent Netdata servers) _______ : YES
    Replication (fill the gaps of parent Netdata servers) ______ : YES
    Streaming and Replication Compression ______________________ : YES (lz4)
    Contexts (index all active and archived metrics) ___________ : YES
    Tiering (multiple dbs with different metrics resolution) ___ : YES (5)
    Machine Learning ___________________________________________ : YES
Database Engines:
    dbengine ___________________________________________________ : YES
    alloc ______________________________________________________ : YES
    ram ________________________________________________________ : YES
    map ________________________________________________________ : YES
    save _______________________________________________________ : YES
    none _______________________________________________________ : YES
Connectivity Capabilities:
    ACLK (Agent-Cloud Link: MQTT over WebSockets over TLS) _____ : YES
    static (Netdata internal web server) _______________________ : YES
    h2o (web server) ___________________________________________ : NO
    WebRTC (experimental) ______________________________________ : NO
    Native HTTPS (TLS Support) _________________________________ : YES
    TLS Host Verification ______________________________________ : YES
Libraries:
    LZ4 (extremely fast lossless compression algorithm) ________ : YES
    zlib (lossless data-compression library) ___________________ : YES
    Judy (high-performance dynamic arrays and hashtables) ______ : YES (bundled)
    dlib (robust machine learning toolkit) _____________________ : YES (bundled)
    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
    libm (mathematical functions) ______________________________ : YES
    jemalloc ___________________________________________________ : NO
    TCMalloc ___________________________________________________ : NO
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) ________________________________ : NO
    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

Additional info

I also tried removing the dependency and disabling o

@KaKi87 KaKi87 added bug needs triage Issues which need to be manually labelled labels Dec 6, 2023
@Ferroin Ferroin self-assigned this Dec 6, 2023
@Ferroin Ferroin added area/packaging Packaging and operating systems support priority/high Super important issue and removed needs triage Issues which need to be manually labelled labels Dec 6, 2023
@tkatsoulas tkatsoulas added the patch-release-candidate Mark a PR as being a candidate for inclusion in a patch release. label Dec 7, 2023
@tkatsoulas tkatsoulas changed the title [Bug]: [Bug]: Perf-plugin is not supported on systems with no setcaps Dec 7, 2023
@tkatsoulas tkatsoulas changed the title [Bug]: Perf-plugin is not supported on systems with no setcaps [Bug]: Perf-plugin error on systems with no setcap Dec 7, 2023
@ilyam8
Copy link
Member

ilyam8 commented Dec 8, 2023

Hey, @KaKi87. You have installed the static version

    Installation Type __________________________________________ : kickstart-static

I am not sure why you did dpkg --configure -a or apt install -f.

Can you show dpkg -l | grep netdata?

@KaKi87
Copy link
Author

KaKi87 commented Dec 8, 2023

You have installed the static version

What does that mean ?

All I did is use the following command from the Install Netdata | Learn Netdata page :

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

Screenshot :

I am not sure why you did dpkg --configure -a or apt install -f.

Because those are the first steps suggested when getting "Errors were encountered while processing" from APT.

Can you show dpkg -l | grep netdata?

ii  netdata                              1.43.2                              arm64        real-time charts for system monitoring
ii  netdata-plugin-apps                  1.43.2                              arm64        The per-application metrics collection plugin for the Netdata Agent
ii  netdata-plugin-chartsd               1.43.2                              all          The charts.d metrics collection plugin for the Netdata Agent
ii  netdata-plugin-debugfs               1.43.2                              arm64        The debugfs metrics collector for the Netdata Agent
ii  netdata-plugin-go                    1.43.2                              arm64        The go.d metrics collection plugin for the Netdata Agent
ii  netdata-plugin-nfacct                1.43.2                              arm64        The NFACCT metrics collection plugin for the Netdata Agent
iF  netdata-plugin-perf                  1.43.2                              arm64        The perf metrics collector for the Netdata Agent
ii  netdata-plugin-pythond               1.43.2                              all          The python.d metrics collection plugin for the Netdata Agent
ii  netdata-plugin-slabinfo              1.43.2                              arm64        The slabinfo metrics collector for the Netdata Agent
ic  netdata-repo                         2-1                                 all          Configuration for the official Netdata Stable package repository.

Thanks

@ilyam8
Copy link
Member

ilyam8 commented Dec 8, 2023

"Netdata build info" says it is static.

We publish pre-built static builds of Netdata for Linux systems. Currently, these are published for 64-bit x86, ARMv7, AArch64, and POWER8+ hardware. These static builds are able to operate in a mostly self-contained manner and only require a POSIX compliant shell and a supported init system. These static builds install under /opt/netdata. If you are on a platform which we provide static builds for but do not provide native packages for, a static build will be used by default for installation.

Show ps faxu | grep [n]etdata.

@KaKi87
Copy link
Author

KaKi87 commented Dec 8, 2023

"Netdata build info" says it is static.

Is it a problem, should I have done something differently ?

Show ps faxu | grep [n]etdata.

Aye aye.

netdata   883171  4.6  1.5 386832 125524 ?       SNsl Dec06 152:54 /opt/netdata/bin/srv/netdata -P /run/netdata/netdata.pid -D
netdata   883175  0.0  0.0  19960  3072 ?        SNl  Dec06   0:00  \_ /opt/netdata/bin/srv/netdata --special-spawn-server
netdata   883386  2.0  0.7 1288912 58936 ?       SNl  Dec06  66:40  \_ /opt/netdata/usr/libexec/netdata/plugins.d/go.d.plugin 1
netdata   883389  0.2  0.3  42944 29484 ?        SNl  Dec06   9:38  \_ /usr/bin/python3 /opt/netdata/usr/libexec/netdata/plugins.d/python.d.plugin 1
netdata   883391  4.1  0.3  52440 27072 ?        SNl  Dec06 135:00  \_ /opt/netdata/usr/libexec/netdata/plugins.d/apps.plugin 1
root     2342662  0.0  0.0    436   256 ?        SN   15:57   0:05  \_ /opt/netdata/usr/libexec/netdata/plugins.d/nfacct.plugin 1
netdata  2523379  0.5  0.0   2104  1408 ?        SN   21:59   0:14  \_ bash /opt/netdata/usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1

@ilyam8
Copy link
Member

ilyam8 commented Dec 8, 2023

The short story is - kickstart.sh is a bash script to install Netdata and its dependencies. It tries to install:

  1. native package (deb, rpm). If there is no native package for the platform =>
  2. static build. If there is no static build for the platform =>
  3. build from source (compile).

1->2 can happen not only if there are no native packages for the platform, but because of some errors (or even bugs). The script doesn't give up and try the next available method (static).

I don't know how you ended up with both 🤷 Also, I am not sure about "systems with no setcap". I believe that deb native package depends on libcap, so if you have it installed - setcap should work. cc @netdata/agent-sre

The static build is fine and you can continue using it. But it doesn't have systemd-journal.

Anyway, I'd suggest removing everything and doing a clean install:

do as root

systemctl stop netdata

# remove static build
rm -rf /opt/netdata

# remove native
apt-get purge netdata -y
apt-get purge netdata-repo -y
rm -rf /var/log/netdata
rm -rf /var/lib/netdata
rm -rf /etc/netdata
rm -rf /var/cache/netdata
rm /etc/cron.daily/netdata-updater

# remove user
userdel -r netdata

After - reinstall.

@KaKi87
Copy link
Author

KaKi87 commented Dec 8, 2023

I am not sure about "systems with no setcap". I believe that deb native package depends on libcap, so if you have it installed - setcap should work

Here's the output of apt search libcap :

libcap-dev/stable 1:2.66-4 arm64
  POSIX 1003.1e capabilities (development)

libcap-ng-dev/stable 0.8.3-1+b3 arm64
  Development and header files for libcap-ng

libcap-ng-utils/stable 0.8.3-1+b3 arm64
  Utilities for analysing and setting file capabilities

libcap-ng0/stable,now 0.8.3-1+b3 arm64 [installed,automatic]
  alternate POSIX capabilities library

libcap2/stable,now 1:2.66-4 arm64 [installed,automatic]
  POSIX 1003.1e capabilities (library)

libcap2-bin/stable,now 1:2.66-4 arm64 [installed,automatic]
  POSIX 1003.1e capabilities (utilities)

libcapi20-3/stable 1:3.27-3+b1 arm64
  ISDN utilities - CAPI support libraries

libcapi20-dev/stable 1:3.27-3+b1 arm64
  ISDN utilities - CAPI development libraries

libcapnp-0.9.2/stable 0.9.2-2 arm64
  Cap'n Proto C++ library

libcapnp-dev/stable 0.9.2-2 arm64
  Cap'n Proto C++ library (development files)

libcapstone-dev/stable 4.0.2-5 arm64
  lightweight multi-architecture disassembly framework - devel files

libcapstone4/stable 4.0.2-5 arm64
  lightweight multi-architecture disassembly framework - library

libcapsule-maven-nextflow-java/stable 1.0.3.1+dfsg-5 all
  packaging tool for Java applications with Maven coordinates

libcaptcha-recaptcha-perl/stable 0.98+ds-3 all
  perl implementation of the reCAPTCHA API

libcapture-tiny-perl/stable 0.48-2 all
  module to capture STDOUT and STDERR

python3-cap-ng/stable 0.8.3-1+b3 arm64
  Python3 bindings for libcap-ng

I'd suggest removing everything and doing a clean install

You mean now, or after the linked PR is merged ?

@ilyam8
Copy link
Member

ilyam8 commented Dec 8, 2023

@KaKi87 I think that PR is wrong. I mean now. And, if possible, share installation (kickstart.sh) logs after reinstalling.

@KaKi87
Copy link
Author

KaKi87 commented Dec 8, 2023

Just in case it's relevant, the userdel -r netdata command returned the following output :

userdel: netdata mail spool (/var/mail/netdata) not found
userdel: netdata home directory (/var/lib/netdata) not found

share installation (kickstart.sh) logs after reinstalling

--2023-12-08 23:27:03--  https://my-netdata.io/kickstart.sh
Resolving my-netdata.io (my-netdata.io)... 188.114.96.2, 188.114.97.2, 2a06:98c1:3120::2, ...
Connecting to my-netdata.io (my-netdata.io)|188.114.96.2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘/tmp/netdata-kickstart.sh’

/tmp/netdata-kickstart.sh       [ <=>                                        ]  85.14K  --.-KB/s    in 0.04s   

2023-12-08 23:27:04 (2.28 MB/s) - ‘/tmp/netdata-kickstart.sh’ saved [87188]


 --- Using /tmp/netdata-kickstart-VyXEEn93Au as a temporary directory. --- 
 --- Checking for existing installations of Netdata... --- 
 --- No existing installations of netdata found, assuming this is a fresh install. --- 
 --- Attempting to install using native packages... --- 
 --- Checking for availability of repository configuration package. --- 
[/tmp/netdata-kickstart-VyXEEn93Au]$ /usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-VyXEEn93Au/netdata-repo_2-1+debian12_all.deb https://repo.netdata.cloud/repos/repoconfig/debian/bookworm/netdata-repo_2-1+debian12_all.deb 
 OK 

Root privileges required to run env apt-get update
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo env apt-get update 
Hit:1 https://linux.teamviewer.com/deb stable InRelease
Hit:2 https://download.docker.com/linux/debian bookworm InRelease                   
Hit:3 https://deb.nodesource.com/node_20.x nodistro InRelease                       
Hit:4 https://deb.debian.org/debian bookworm InRelease        
Get:5 https://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Hit:6 https://deb.debian.org/debian-security bookworm-security InRelease
Get:7 https://deb.debian.org/debian bookworm-backports InRelease [56.5 kB]
Get:8 https://deb.debian.org/debian bookworm-backports/main arm64 Packages.diff/Index [63.3 kB]
Get:9 https://deb.debian.org/debian bookworm-backports/main arm64 Packages T-2023-12-08-1403.55-F-2023-12-08-0205.50.pdiff [9126 B]
Get:9 https://deb.debian.org/debian bookworm-backports/main arm64 Packages T-2023-12-08-1403.55-F-2023-12-08-0205.50.pdiff [9126 B]
Fetched 181 kB in 7s (27.2 kB/s)                                                                               
Reading package lists... Done
 OK 

Root privileges required to run env apt-get install /tmp/netdata-kickstart-VyXEEn93Au/netdata-repo_2-1+debian12_all.deb
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo env apt-get install /tmp/netdata-kickstart-VyXEEn93Au/netdata-repo_2-1+debian12_all.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'netdata-repo' instead of '/tmp/netdata-kickstart-VyXEEn93Au/netdata-repo_2-1+debian12_all.deb'
The following packages were automatically installed and are no longer required:
  libbson-1.0-0 libmongoc-1.0-0 libmongocrypt0 libnetfilter-acct1 libprotobuf32 libuv1
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  netdata-repo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4054 B of archives.
After this operation, 18.4 kB of additional disk space will be used.
Get:1 /tmp/netdata-kickstart-VyXEEn93Au/netdata-repo_2-1+debian12_all.deb netdata-repo all 2-1 [4054 B]
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package netdata-repo.
(Reading database ... 70304 files and directories currently installed.)
Preparing to unpack .../netdata-repo_2-1+debian12_all.deb ...
Unpacking netdata-repo (2-1) ...
Setting up netdata-repo (2-1) ...
N: Download is performed unsandboxed as root as file '/tmp/netdata-kickstart-VyXEEn93Au/netdata-repo_2-1+debian12_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
 OK 

Root privileges required to run env apt-get update
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo env apt-get update 
Hit:1 https://linux.teamviewer.com/deb stable InRelease
Hit:2 https://deb.nodesource.com/node_20.x nodistro InRelease                                                  
Hit:3 https://download.docker.com/linux/debian bookworm InRelease                                              
Hit:4 https://deb.debian.org/debian bookworm InRelease                         
Get:5 http://repo.netdata.cloud/repos/stable/debian bookworm/ InRelease [1299 B]
Hit:6 https://deb.debian.org/debian bookworm-updates InRelease
Hit:7 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:8 https://deb.debian.org/debian bookworm-backports InRelease
Get:9 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease [1287 B]
Get:10 http://repo.netdata.cloud/repos/stable/debian bookworm/ Packages [99.2 kB]
Get:11 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ Packages [956 B]                            
Fetched 103 kB in 6s (15.9 kB/s)                                                                               
Reading package lists... Done
 OK 

Root privileges required to run mkdir -p /etc/netdata
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo mkdir -p /etc/netdata 
 OK 

Root privileges required to run touch /etc/netdata/.opt-out-from-anonymous-statistics
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo touch /etc/netdata/.opt-out-from-anonymous-statistics 
 OK 

Root privileges required to run env apt-get install netdata
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo env apt-get install netdata 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libyaml-0-2 netdata-plugin-apps netdata-plugin-chartsd netdata-plugin-debugfs netdata-plugin-go
  netdata-plugin-nfacct netdata-plugin-perf netdata-plugin-pythond netdata-plugin-slabinfo
Suggested packages:
  netdata-plugin-cups netdata-plugin-freeipmi apcupsd nut nvme-cli
Recommended packages:
  netdata-plugin-systemd-journal netdata-plugin-logs-management
The following NEW packages will be installed:
  libyaml-0-2 netdata netdata-plugin-apps netdata-plugin-chartsd netdata-plugin-debugfs netdata-plugin-go
  netdata-plugin-nfacct netdata-plugin-perf netdata-plugin-pythond netdata-plugin-slabinfo
0 upgraded, 10 newly installed, 0 to remove and 1 not upgraded.
Need to get 24.3 MB of archives.
After this operation, 120 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata-plugin-apps 1.44.0 [226 kB]
Get:2 https://deb.debian.org/debian bookworm/main arm64 libyaml-0-2 arm64 0.2.5-1 [50.4 kB]         
Get:3 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata-plugin-pythond 1.44.0 [215 kB]
Get:4 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata-plugin-go 1.44.0 [10.4 MB]
Get:5 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata-plugin-debugfs 1.44.0 [198 kB]
Get:6 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata-plugin-nfacct 1.44.0 [197 kB]
Get:7 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata-plugin-chartsd 1.44.0 [19.4 kB]
Get:8 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata-plugin-slabinfo 1.44.0 [195 kB]
Get:9 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata-plugin-perf 1.44.0 [196 kB]
Get:10 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata 1.44.0 [12.5 MB]
Fetched 24.3 MB in 3s (9425 kB/s)  
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libyaml-0-2:arm64.
(Reading database ... 70310 files and directories currently installed.)
Preparing to unpack .../0-libyaml-0-2_0.2.5-1_arm64.deb ...
Unpacking libyaml-0-2:arm64 (0.2.5-1) ...
Selecting previously unselected package netdata-plugin-apps.
Preparing to unpack .../1-netdata-plugin-apps_1.44.0_arm64.deb ...
Unpacking netdata-plugin-apps (1.44.0) ...
Selecting previously unselected package netdata-plugin-pythond.
Preparing to unpack .../2-netdata-plugin-pythond_1.44.0_all.deb ...
Unpacking netdata-plugin-pythond (1.44.0) ...
Selecting previously unselected package netdata-plugin-go.
Preparing to unpack .../3-netdata-plugin-go_1.44.0_arm64.deb ...
Unpacking netdata-plugin-go (1.44.0) ...
Selecting previously unselected package netdata-plugin-debugfs.
Preparing to unpack .../4-netdata-plugin-debugfs_1.44.0_arm64.deb ...
Unpacking netdata-plugin-debugfs (1.44.0) ...
Selecting previously unselected package netdata-plugin-nfacct.
Preparing to unpack .../5-netdata-plugin-nfacct_1.44.0_arm64.deb ...
Unpacking netdata-plugin-nfacct (1.44.0) ...
Selecting previously unselected package netdata-plugin-chartsd.
Preparing to unpack .../6-netdata-plugin-chartsd_1.44.0_all.deb ...
Unpacking netdata-plugin-chartsd (1.44.0) ...
Selecting previously unselected package netdata-plugin-slabinfo.
Preparing to unpack .../7-netdata-plugin-slabinfo_1.44.0_arm64.deb ...
Unpacking netdata-plugin-slabinfo (1.44.0) ...
Selecting previously unselected package netdata-plugin-perf.
Preparing to unpack .../8-netdata-plugin-perf_1.44.0_arm64.deb ...
Unpacking netdata-plugin-perf (1.44.0) ...
Selecting previously unselected package netdata.
Preparing to unpack .../9-netdata_1.44.0_arm64.deb ...
Unpacking netdata (1.44.0) ...
Setting up libyaml-0-2:arm64 (0.2.5-1) ...
Setting up netdata-plugin-slabinfo (1.44.0) ...
Failed to set capabilities on file '/usr/libexec/netdata/plugins.d/slabinfo.plugin': Operation not supported
Setting up netdata (1.44.0) ...
Created symlink /etc/systemd/system/multi-user.target.wants/netdata.service → /lib/systemd/system/netdata.service.
Setting up netdata-plugin-pythond (1.44.0) ...
Setting up netdata-plugin-debugfs (1.44.0) ...
Failed to set capabilities on file '/usr/libexec/netdata/plugins.d/debugfs.plugin': Operation not supported
Setting up netdata-plugin-perf (1.44.0) ...
Failed to set capabilities on file '/usr/libexec/netdata/plugins.d/perf.plugin': Operation not supported
dpkg: error processing package netdata-plugin-perf (--configure):
 installed netdata-plugin-perf package post-installation script subprocess returned error exit status 1
Setting up netdata-plugin-chartsd (1.44.0) ...
Setting up netdata-plugin-nfacct (1.44.0) ...
Setting up netdata-plugin-apps (1.44.0) ...
Failed to set capabilities on file '/usr/libexec/netdata/plugins.d/apps.plugin': Operation not supported
Setting up netdata-plugin-go (1.44.0) ...
Failed to set capabilities on file '/usr/libexec/netdata/plugins.d/go.d.plugin': Operation not supported
Processing triggers for libc-bin (2.36-9+deb12u3) ...
Errors were encountered while processing:
 netdata-plugin-perf
E: Sub-process /usr/bin/dpkg returned an error code (1)
 FAILED 

 WARNING  Failed to install Netdata package.

 --- Attempting to uninstall repository configuration package. --- 
Root privileges required to run env apt-get purge netdata-repo
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo env apt-get purge netdata-repo 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  netdata-repo*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 18.4 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 72167 files and directories currently installed.)
Removing netdata-repo (2-1) ...
Setting up netdata-plugin-perf (1.44.0) ...
Failed to set capabilities on file '/usr/libexec/netdata/plugins.d/perf.plugin': Operation not supported
dpkg: error processing package netdata-plugin-perf (--configure):
 installed netdata-plugin-perf package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 netdata-plugin-perf
E: Sub-process /usr/bin/dpkg returned an error code (1)
 FAILED 

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

[/tmp/netdata-kickstart-VyXEEn93Au]$ sh -c /usr/bin/curl https://github.com/netdata/netdata/releases/latest -s -L -I -o /dev/null -w '%{url_effective}' | grep -o '[^/]*$' 
 OK 

 --- Attempting to install using static build... --- 
[/tmp/netdata-kickstart-VyXEEn93Au]$ /usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-VyXEEn93Au/netdata-aarch64-latest.gz.run https://github.com/netdata/netdata/releases/download/v1.44.0/netdata-aarch64-latest.gz.run 
 OK 

[/tmp/netdata-kickstart-VyXEEn93Au]$ /usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-VyXEEn93Au/sha256sum.txt https://github.com/netdata/netdata/releases/download/v1.44.0/sha256sums.txt 
 OK 

 --- Installing netdata --- 
Root privileges required to run sh /tmp/netdata-kickstart-VyXEEn93Au/netdata-aarch64-latest.gz.run -- --disable-telemetry
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo sh /tmp/netdata-kickstart-VyXEEn93Au/netdata-aarch64-latest.gz.run -- --disable-telemetry 

  ^
  |.-.   .-.   .-.   .-.   .  netdata
  |   '-'   '-'   '-'   '-'   real-time performance monitoring, done right!
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

  (C) Copyright 2017-2023, Costa Tsaousis
  All rights reserved
  Released under GPL v3+

  You are about to install netdata to this system.
  netdata will be installed at:

                    /opt/netdata

  The following changes will be made to your system:

  # USERS / GROUPS
  User 'netdata' and group 'netdata' will be added, if not present.

  # LOGROTATE
  This file will be installed if logrotate is present.

   - /etc/logrotate.d/netdata

  # SYSTEM INIT
  If a supported init system is detected, appropriate configuration will be
  installed to allow Netdata to run as a system service. We currently support
  systemd, OpenRC, LSB init scripts, and traditional init.d setups, as well as
  having experimental support for runit.


  This package can also update a netdata installation that has been
  created with another version of it.

  Your netdata configuration will be retained.
  After installation, netdata will be (re-)started.

  netdata re-distributes a lot of open source software components.
  Check its full license at:
  https://github.com/netdata/netdata/blob/master/LICENSE

Please type y to accept, n otherwise: y
Creating directory /opt/netdata
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing netdata, the real-time performance and health monitoring system  100%  
 --- Attempt to create user/group netdata/netadata --- 
Group 'netdata' already exists.
User 'netdata' already exists.
 --- Add user netdata to required user groups --- 
User 'netdata' is already in group 'docker'.
Group 'nginx' does not exist.
Group 'varnish' does not exist.
Group 'haproxy' does not exist.
User 'netdata' is already in group 'adm'.
Group 'nsd' does not exist.
User 'netdata' is already in group 'proxy'.
Group 'squid' does not exist.
Group 'ceph' does not exist.
Group 'nobody' does not exist.
Group 'I2C' does not exist.
 --- Install logrotate configuration for netdata --- 
[/opt/netdata]# chmod 644 /etc/logrotate.d/netdata 
 OK  ''

 --- Telemetry configuration --- 
[/opt/netdata]# touch /opt/netdata/etc/netdata/.opt-out-from-anonymous-statistics 
 OK  ''

 --- Install netdata at system init --- 
Installing systemd service...
Synchronizing state of netdata.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable netdata
 --- Install (but not enable) netdata updater tool --- 
cat: /system/systemd/netdata-updater.timer: No such file or directory
cat: /system/systemd/netdata-updater.service: No such file or directory
Update script is located at /opt/netdata/usr/libexec/netdata/netdata-updater.sh

 --- creating quick links --- 
[/opt/netdata]# ln -s bin sbin 
 OK  ''

[/opt/netdata/usr]# ln -s ../bin bin 
 OK  ''

[/opt/netdata/usr]# ln -s ../bin sbin 
 OK  ''

[/opt/netdata/usr]# ln -s . local 
 OK  ''

[/opt/netdata]# ln -s etc/netdata netdata-configs 
 OK  ''

[/opt/netdata]# ln -s usr/share/netdata/web netdata-web-files 
 OK  ''

[/opt/netdata]# ln -s usr/libexec/netdata netdata-plugins 
 OK  ''

[/opt/netdata]# ln -s var/lib/netdata netdata-dbs 
 OK  ''

[/opt/netdata]# ln -s var/cache/netdata netdata-metrics 
 OK  ''

[/opt/netdata]# ln -s var/log/netdata netdata-logs 
 OK  ''

[/opt/netdata/etc/netdata]# rm orig 
 OK  ''

[/opt/netdata/etc/netdata]# ln -s ../../usr/lib/netdata/conf.d orig 
 OK  ''

 --- fix permissions --- 
[/opt/netdata]# chmod g+rx,o+rx /opt 
 OK  ''

[/opt/netdata]# find /opt/netdata -type d -exec chmod go+rx {} + 
 OK  ''

[/opt/netdata]# chown -R netdata:netdata /opt/netdata/var 
 OK  ''

 --- changing plugins ownership and permissions --- 
[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/apps.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/perf.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/slabinfo.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/debugfs.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/ioping 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/cgroup-network 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/local-listeners 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/nfacct.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/python.d.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/charts.d.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/go.d.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/ioping.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/cgroup-network-helper.sh 
 OK  ''

[/opt/netdata]# setcap cap_dac_read_search,cap_sys_ptrace=ep usr/libexec/netdata/plugins.d/apps.plugin 
Failed to set capabilities on file 'usr/libexec/netdata/plugins.d/apps.plugin': Operation not supported
 FAILED  ''

[/opt/netdata]# setcap cap_dac_read_search=ep usr/libexec/netdata/plugins.d/slabinfo.plugin 
Failed to set capabilities on file 'usr/libexec/netdata/plugins.d/slabinfo.plugin': Operation not supported
 FAILED  ''

[/opt/netdata]# setcap cap_dac_read_search=ep usr/libexec/netdata/plugins.d/debugfs.plugin 
Failed to set capabilities on file 'usr/libexec/netdata/plugins.d/debugfs.plugin': Operation not supported
 FAILED  ''

[/opt/netdata]# setcap cap_perfmon=ep usr/libexec/netdata/plugins.d/perf.plugin 
Failed to set capabilities on file 'usr/libexec/netdata/plugins.d/perf.plugin': Operation not supported
 FAILED  ''

[/opt/netdata]# setcap cap_net_admin,cap_net_raw=eip usr/libexec/netdata/plugins.d/go.d.plugin 
Failed to set capabilities on file 'usr/libexec/netdata/plugins.d/go.d.plugin': Operation not supported
 FAILED  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/ioping 
 OK  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/cgroup-network 
 OK  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/local-listeners 
 OK  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/nfacct.plugin 
 OK  ''

Configure TLS certificate paths
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  ''

Downloading default configuration from netdata...
[/opt/netdata]# /usr/bin/curl -sSL --connect-timeout 10 --retry 3 http://localhost:19999/netdata.conf 
 OK  ''

[/opt/netdata]# mv /opt/netdata/etc/netdata/netdata.conf.new /opt/netdata/etc/netdata/netdata.conf 
 OK  ''

 OK  New configuration saved for you to edit at /opt/netdata/etc/netdata/netdata.conf


  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata  .-.   .-.   .-.   .-.   .-.   .-
  |   '-'   '-'   '-'   '-'   '-'               '-'   '-'   '-'   '-'   '-'   
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

[/opt/netdata]# chmod 0644 /opt/netdata/etc/netdata/netdata.conf 
 OK  ''

 OK 

Root privileges required to run sh -c cat "/opt/netdata/etc/netdata/.install-type" > "/tmp/netdata-kickstart-VyXEEn93Au/install-type"
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo sh -c cat "/opt/netdata/etc/netdata/.install-type" > "/tmp/netdata-kickstart-VyXEEn93Au/install-type" 
 OK 

Root privileges required to run chown 1000:1000 /tmp/netdata-kickstart-VyXEEn93Au/install-type
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo chown 1000:1000 /tmp/netdata-kickstart-VyXEEn93Au/install-type 
 OK 

Root privileges required to run chown netdata:netdata /tmp/netdata-kickstart-VyXEEn93Au/install-type
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo chown netdata:netdata /tmp/netdata-kickstart-VyXEEn93Au/install-type 
 OK 

Root privileges required to run cp /tmp/netdata-kickstart-VyXEEn93Au/install-type /opt/netdata/etc/netdata/.install-type
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo cp /tmp/netdata-kickstart-VyXEEn93Au/install-type /opt/netdata/etc/netdata/.install-type 
 OK 

Root privileges required to run test -x /opt/netdata/usr/libexec/netdata/netdata-updater.sh
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo test -x /opt/netdata/usr/libexec/netdata/netdata-updater.sh 
 OK 

Root privileges required to run grep -q \-\-enable-auto-updates /opt/netdata/usr/libexec/netdata/netdata-updater.sh
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo grep -q \-\-enable-auto-updates /opt/netdata/usr/libexec/netdata/netdata-updater.sh 
 OK 

Root privileges required to run /opt/netdata/usr/libexec/netdata/netdata-updater.sh --enable-auto-updates 
[/tmp/netdata-kickstart-VyXEEn93Au]$ sudo /opt/netdata/usr/libexec/netdata/netdata-updater.sh --enable-auto-updates  
Fri Dec  8 23:29:58 GMT 2023 : INFO: netdata-updater.sh:  Auto-updating has been ENABLED through cron, updater script linked to /etc/cron.daily/netdata-updater

Fri Dec  8 23:29:58 GMT 2023 : INFO: netdata-updater.sh:  If the update process fails and you have email notifications set up correctly for cron on this system, you should receive an email notification of the failure.
Fri Dec  8 23:29:58 GMT 2023 : INFO: netdata-updater.sh:  Successful updates will not send an email.
 OK 

Successfully installed the Netdata Agent.

The following non-fatal warnings or errors were encountered:

  - Command "sudo env apt-get install netdata" failed with exit code 100.
  - Failed to install Netdata package.
  - Command "sudo env apt-get purge netdata-repo" failed with exit code 100.
  - Could not install native binary packages, falling back to alternative installation method.

Official documentation can be found online at https://learn.netdata.cloud/docs/.

Looking to monitor all of your infrastructure with Netdata? Check out Netdata Cloud at https://app.netdata.cloud.

Join our community and connect with us on:
  - GitHub: https://github.com/netdata/netdata/discussions
  - Discord: https://discord.gg/5ygS846fR6
  - Our community forums: https://community.netdata.cloud/
Root privileges required to run rm -rf /tmp/netdata-kickstart-VyXEEn93Au
[/home/dietpi]$ sudo rm -rf /tmp/netdata-kickstart-VyXEEn93Au 
 OK 

@ilyam8
Copy link
Member

ilyam8 commented Dec 9, 2023

Ok, thanks. We will investigate the issue. You just remove everything again and let's install static build right away.

  1. do the cleanup from my prev post.
  2. install static
wget https://my-netdata.io/kickstart.sh
chmod +x kickstart.sh
sudo ./kickstart.sh --static-only --stable-channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Packaging and operating systems support bug patch-release-candidate Mark a PR as being a candidate for inclusion in a patch release. priority/high Super important issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants