[Bug]: centos7 support is broken
Open
@Ferroin is already working on this.
Since Oct 23, 2024.
area/packaging
bug
- Dominant language
- Go
- Stars
- 80.6k
- Forks
- 6.6k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 304
Description
Bug description
curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 87954 0 87954 0 0 206k 0 --:--:-- --:--:-- --:--:-- 206k
--- Using /tmp/netdata-kickstart-tgSKymrW0F 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... ---
--- Repository configuration is already present, attempting to install netdata. ---
--- EPEL is required on this system, checking if it’s available. ---
--- EPEL is available, attempting to install so that required dependencies are available. ---
[/tmp/netdata-kickstart-tgSKymrW0F]# env yum install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 33 kB 00:00:00
* base: ftp.cc.uoc.gr
* epel: fedora.ipacct.com
* extras: ftp.cc.uoc.gr
* updates: ftp.cc.uoc.gr
base | 3.6 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
netdata-edge/7/x86_64/signature | 687 B 00:00:00
netdata-edge/7/x86_64/signature | 3.0 kB 00:00:00 !!!
netdata-repoconfig/7/x86_64/signature | 687 B 00:00:00
netdata-repoconfig/7/x86_64/signature | 3.0 kB 00:00:00 !!!
updates | 2.9 kB 00:00:00
(1/4): epel/x86_64/group_gz | 100 kB 00:00:00
(2/4): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(3/4): netdata-edge/7/x86_64/primary_db | 168 kB 00:00:00
(4/4): epel/x86_64/primary_db | 7.0 MB 00:00:00
Package epel-release-7-14.noarch already installed and latest version
Nothing to do
OK
[/tmp/netdata-kickstart-tgSKymrW0F]# env yum install netdata
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.cc.uoc.gr
* epel: fedora.ipacct.com
* extras: ftp.cc.uoc.gr
* updates: ftp.cc.uoc.gr
Resolving Dependencies
--> Running transaction check
---> Package netdata.x86_64 0:1.44.1-1.el7 will be installed
--> Processing Dependency: netdata-conf = 1.44.1-1.el7 for package: netdata-1.44.1-1.el7.x86_64
--> Processing Dependency: netdata-data = 1.44.1-1.el7 for package: netdata-1.44.1-1.el7.x86_64
--> Processing Dependency: nc for package: netdata-1.44.1-1.el7.x86_64
--> Processing Dependency: nodejs for package: netdata-1.44.1-1.el7.x86_64
--> Processing Dependency: protobuf for package: netdata-1.44.1-1.el7.x86_64
--> Processing Dependency: protobuf-c for package: netdata-1.44.1-1.el7.x86_64
--> Running transaction check
---> Package netdata-conf.noarch 0:1.44.1-1.el7 will be installed
---> Package netdata-data.noarch 0:1.44.1-1.el7 will be installed
---> Package nmap-ncat.x86_64 2:6.40-19.el7 will be installed
--> Processing Dependency: libpcap.so.1()(64bit) for package: 2:nmap-ncat-6.40-19.el7.x86_64
---> Package nodejs.x86_64 1:16.20.2-1.el7 will be installed
--> Processing Dependency: nodejs-libs(x86-64) = 1:16.20.2-1.el7 for package: 1:nodejs-16.20.2-1.el7.x86_64
--> Processing Dependency: openssl11 >= 1:1.1.1 for package: 1:nodejs-16.20.2-1.el7.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: 1:nodejs-16.20.2-1.el7.x86_64
--> Processing Dependency: libnode.so.93()(64bit) for package: 1:nodejs-16.20.2-1.el7.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: 1:nodejs-16.20.2-1.el7.x86_64
---> Package protobuf.x86_64 0:2.5.0-8.el7 will be installed
---> Package protobuf-c.x86_64 0:1.0.2-3.el7 will be installed
--> Running transaction check
---> Package libpcap.x86_64 14:1.5.3-13.el7_9 will be installed
---> Package nodejs-libs.x86_64 1:16.20.2-1.el7 will be installed
---> Package openssl11.x86_64 1:1.1.1k-6.el7 will be installed
---> Package openssl11-libs.x86_64 1:1.1.1k-6.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================================================================================================================================================================================================
Installing:
netdata x86_64 1.44.1-1.el7 epel 3.9 M
Installing for dependencies:
libpcap x86_64 14:1.5.3-13.el7_9 updates 139 k
netdata-conf noarch 1.44.1-1.el7 epel 162 k
netdata-data noarch 1.44.1-1.el7 epel 11 M
nmap-ncat x86_64 2:6.40-19.el7 base 206 k
nodejs x86_64 1:16.20.2-1.el7 epel 96 k
nodejs-libs x86_64 1:16.20.2-1.el7 epel 13 M
openssl11 x86_64 1:1.1.1k-6.el7 epel 693 k
openssl11-libs x86_64 1:1.1.1k-6.el7 epel 1.5 M
protobuf x86_64 2.5.0-8.el7 base 338 k
protobuf-c x86_64 1.0.2-3.el7 base 28 k
Transaction Summary
===========================================================================================================================================================================================================================================================================================================================================
Install 1 Package (+10 Dependent packages)
Total download size: 31 M
Installed size: 111 M
Is this ok [y/d/N]: y
Downloading packages:
(1/11): libpcap-1.5.3-13.el7_9.x86_64.rpm | 139 kB 00:00:00
(2/11): netdata-1.44.1-1.el7.x86_64.rpm | 3.9 MB 00:00:00
(3/11): netdata-conf-1.44.1-1.el7.noarch.rpm | 162 kB 00:00:00
(4/11): nmap-ncat-6.40-19.el7.x86_64.rpm | 206 kB 00:00:00
(5/11): netdata-data-1.44.1-1.el7.noarch.rpm | 11 MB 00:00:00
(6/11): nodejs-16.20.2-1.el7.x86_64.rpm | 96 kB 00:00:00
(7/11): nodejs-libs-16.20.2-1.el7.x86_64.rpm | 13 MB 00:00:01
(8/11): openssl11-1.1.1k-6.el7.x86_64.rpm | 693 kB 00:00:00
(9/11): protobuf-2.5.0-8.el7.x86_64.rpm | 338 kB 00:00:00
(10/11): openssl11-libs-1.1.1k-6.el7.x86_64.rpm | 1.5 MB 00:00:00
(11/11): protobuf-c-1.0.2-3.el7.x86_64.rpm | 28 kB 00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 9.4 MB/s | 31 MB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:openssl11-libs-1.1.1k-6.el7.x86_64 1/11
Installing : 1:openssl11-1.1.1k-6.el7.x86_64 2/11
Installing : 1:nodejs-libs-16.20.2-1.el7.x86_64 3/11
Installing : 1:nodejs-16.20.2-1.el7.x86_64 4/11
Installing : protobuf-2.5.0-8.el7.x86_64 5/11
Installing : 14:libpcap-1.5.3-13.el7_9.x86_64 6/11
Installing : 2:nmap-ncat-6.40-19.el7.x86_64 7/11
Installing : netdata-conf-1.44.1-1.el7.noarch 8/11
Installing : protobuf-c-1.0.2-3.el7.x86_64 9/11
Installing : netdata-data-1.44.1-1.el7.noarch 10/11
Installing : netdata-1.44.1-1.el7.x86_64 11/11
Netdata config should be edited with /usr/libexec/netdata/edit-config
Netdata go plugin can be easily installed with /usr/sbin/netdata-install-go-plugins.sh script
Verifying : netdata-data-1.44.1-1.el7.noarch 1/11
Verifying : protobuf-c-1.0.2-3.el7.x86_64 2/11
Verifying : netdata-conf-1.44.1-1.el7.noarch 3/11
Verifying : 1:openssl11-1.1.1k-6.el7.x86_64 4/11
Verifying : 14:libpcap-1.5.3-13.el7_9.x86_64 5/11
Verifying : 1:openssl11-libs-1.1.1k-6.el7.x86_64 6/11
Verifying : protobuf-2.5.0-8.el7.x86_64 7/11
Verifying : 2:nmap-ncat-6.40-19.el7.x86_64 8/11
Verifying : 1:nodejs-16.20.2-1.el7.x86_64 9/11
Verifying : 1:nodejs-libs-16.20.2-1.el7.x86_64 10/11
Verifying : netdata-1.44.1-1.el7.x86_64 11/11
Installed:
netdata.x86_64 0:1.44.1-1.el7
Dependency Installed:
libpcap.x86_64 14:1.5.3-13.el7_9 netdata-conf.noarch 0:1.44.1-1.el7 netdata-data.noarch 0:1.44.1-1.el7 nmap-ncat.x86_64 2:6.40-19.el7 nodejs.x86_64 1:16.20.2-1.el7 nodejs-libs.x86_64 1:16.20.2-1.el7 openssl11.x86_64 1:1.1.1k-6.el7 openssl11-libs.x86_64 1:1.1.1k-6.el7
protobuf.x86_64 0:2.5.0-8.el7 protobuf-c.x86_64 0:1.0.2-3.el7
Complete!
OK
[/tmp/netdata-kickstart-tgSKymrW0F]# test -x //usr/libexec/netdata/netdata-updater.sh
FAILED
[/tmp/netdata-kickstart-tgSKymrW0F]# test -x //netdata/usr/libexec/netdata/netdata-updater.sh
FAILED
WARNING Could not find netdata-updater.sh. This means that auto-updates cannot (currently) be enabled on this system. See https://learn.netdata.cloud/docs/agent/packaging/installer/update for more information about updating Netdata.
Successfully installed the Netdata Agent.
The following non-fatal warnings or errors were encountered:
- Command "test -x //usr/libexec/netdata/netdata-updater.sh" failed with exit code 1.
- Command "test -x //netdata/usr/libexec/netdata/netdata-updater.sh" failed with exit code 1.
- Could not find netdata-updater.sh. This means that auto-updates cannot (currently) be enabled on this system. See https://learn.netdata.cloud/docs/agent/packaging/installer/update for more information about updating Netdata.
To view your system's real-time performance metrics, open your web browser and enter http://NODE:19999.
Replace NODE with the IP address or hostname of your Netdata server to access the dashboard.
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]# rm -rf /tmp/netdata-kickstart-tgSKymrW0F
OK
Expected behavior
- find the updater
- install go.d.plugin
- install systemd-journal.plugin
- running the kickstart again, says it is a custom install:
# curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 87954 0 87954 0 0 337k 0 --:--:-- --:--:-- --:--:-- 338k
--- Using /tmp/netdata-kickstart-HvEAqvbgGW as a temporary directory. ---
--- Checking for existing installations of Netdata... ---
ABORTED Found an existing netdata install at /, but the install type is 'custom', which is not supported by this script, refusing to proceed.
For community support, you can connect with us on:
- GitHub: https://github.com/netdata/netdata/discussions
- Discord: https://discord.gg/5ygS846fR6
- Our community forums: https://community.netdata.cloud/
[/root]# rm -rf /tmp/netdata-kickstart-HvEAqvbgGW
OK
Steps to reproduce
Just install on centos 7 using kickstart
Installation method
kickstart.sh
System info
Linux centos7 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
/etc/centos-release:CentOS Linux release 7.9.2009 (Core)
/etc/os-release:NAME="CentOS Linux"
/etc/os-release:VERSION="7 (Core)"
/etc/os-release:ID="centos"
/etc/os-release:ID_LIKE="rhel fedora"
/etc/os-release:VERSION_ID="7"
/etc/os-release:PRETTY_NAME="CentOS Linux 7 (Core)"
/etc/os-release:ANSI_COLOR="0;31"
/etc/os-release:CPE_NAME="cpe:/o:centos:centos:7"
/etc/os-release:
/etc/os-release:CENTOS_MANTISBT_PROJECT="CentOS-7"
/etc/os-release:CENTOS_MANTISBT_PROJECT_VERSION="7"
/etc/os-release:REDHAT_SUPPORT_PRODUCT="centos"
/etc/os-release:REDHAT_SUPPORT_PRODUCT_VERSION="7"
/etc/os-release:
/etc/redhat-release:CentOS Linux release 7.9.2009 (Core)
/etc/system-release:CentOS Linux release 7.9.2009 (Core)
Netdata build info
Packaging:
Netdata Version ____________________________________________ : v1.44.1
Installation Type __________________________________________ : custom
Package Architecture _______________________________________ : unknown
Package Distro _____________________________________________ : unknown
Configure Options __________________________________________ : '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-plugin-freeipmi' '--with-bundled-protobuf' '--with-zlib' '--with-math' '--with-user=netdata' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'
Default Directories:
User Configurations ________________________________________ : /etc/netdata
Stock Configurations _______________________________________ : /usr/lib64/netdata/conf.d
Ephemeral Databases (metrics data, metadata) _______________ : /var/cache/netdata
Permanent Databases ________________________________________ : /var/lib/netdata
Plugins ____________________________________________________ : /usr/libexec/netdata/plugins.d
Static Web Files ___________________________________________ : /usr/share/netdata/web
Log Files __________________________________________________ : /var/log/netdata
Lock Files _________________________________________________ : /var/lib/netdata/lock
Home _______________________________________________________ : /var/lib/netdata
Operating System:
Kernel _____________________________________________________ : Linux
Kernel Version _____________________________________________ : 3.10.0-1160.102.1.el7.x86_64
Operating System ___________________________________________ : CentOS Linux
Operating System ID ________________________________________ : centos
Operating System ID Like ___________________________________ : rhel fedora
Operating System Version ___________________________________ : 7 (Core)
Operating System Version ID ________________________________ : none
Detection __________________________________________________ : /etc/os-release
Hardware:
CPU Cores __________________________________________________ : 8
CPU Frequency ______________________________________________ : 3187000000
RAM Bytes __________________________________________________ : 3972145152
Disk Capacity ______________________________________________ : 21474836480
CPU Architecture ___________________________________________ : x86_64
Virtualization Technology __________________________________ : kvm
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
Back-filling (of higher database tiers) ____________________ : YES
Replication (fill the gaps of parent Netdata servers) ______ : YES
Streaming and Replication Compression ______________________ : YES (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 ___________________________________________________ : 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) ___________________________________________ : 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) ________________ : NO
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 (bundled)
OpenSSL (cryptography) _____________________________________ : YES
libdatachannel (stand-alone WebRTC data channels) __________ : NO
JSON-C (lightweight JSON manipulation) _____________________ : YES
libcap (Linux capabilities system operations) ______________ : YES
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) ___________________ : YES
nfacct (gather netfilter accounting) _______________________ : NO
perf (collect kernel performance events) ___________________ : YES
slabinfo (monitor kernel object caching) ___________________ : YES
Xen ________________________________________________________ : NO
Xen VBD Error Tracking _____________________________________ : NO
Logs Management ____________________________________________ : 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
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.