Control Web Panel

Developers => Scripts => Topic started by: Sina on May 31, 2023, 11:17:44 AM

Title: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: Sina on May 31, 2023, 11:17:44 AM
Hi Team,
unfortunately, the latest version of Netdata is not installed
I was able to check the log file and this information is there
https://github.com/netdata/netdata/issues/15079

I have done this many times before, but in the latest version, after clicking on NetData installation, the page refreshes, and the software is not installed.
FYI:
Only the NetData folder is created in the following two directories
/run/netdata
/usr/local/src/netdata
BR

Code: [Select]
System Info:
Linux localhost.localdomain 3.10.0-1160.90.1.el7.x86_64 0000001 SMP Thu May 4 15:21:22 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)

Code: [Select]
Log File:
# Fri May 19 23:47:50 +0330 2023
CFLAGS="-O2 -pipe" LDFLAGS="" ./netdata-installer.sh--disable-cloud--dont-wait
[root /usr/local/src/netdata]# /usr/bin/curl -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-protobuf-yCLH2G/protobuf-cpp-3.19.4.tar.gz https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protobuf-cpp-3.19.4.tar.gz ... OK
[root /usr/local/src/netdata]# tar --no-same-owner -xf /tmp/netdata-protobuf-yCLH2G/protobuf-cpp-3.19.4.tar.gz -C /tmp/netdata-protobuf-yCLH2G ... OK
[root /usr/local/src/netdata]# mkdir -p /usr/local/src/netdata/externaldeps/protobuf ... OK
[root /usr/local/src/netdata]# cp -a /tmp/netdata-protobuf-yCLH2G/protobuf-3.19.4/src /usr/local/src/netdata/externaldeps/protobuf ... OK
[root /usr/local/src/netdata]# /usr/bin/curl -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-libbpf-ZX7cGg/v0.0.9_netdata-1.tar.gz https://github.com/netdata/libbpf/archive/v0.0.9_netdata-1.tar.gz ... OK
[root /usr/local/src/netdata]# tar --no-same-owner -xf /tmp/netdata-libbpf-ZX7cGg/v0.0.9_netdata-1.tar.gz -C /tmp/netdata-libbpf-ZX7cGg ... OK
[root /usr/local/src/netdata]# mkdir -p /usr/local/src/netdata/externaldeps/libbpf ... OK
[root /usr/local/src/netdata]# cp /tmp/netdata-libbpf-ZX7cGg/libbpf-0.0.9_netdata-1/usr/lib64/libbpf.a /usr/local/src/netdata/externaldeps/libbpf/libbpf.a ... OK
[root /usr/local/src/netdata]# cp -r /tmp/netdata-libbpf-ZX7cGg/libbpf-0.0.9_netdata-1/usr/include /usr/local/src/netdata/externaldeps/libbpf ... OK
[root /usr/local/src/netdata]# cp -r /tmp/netdata-libbpf-ZX7cGg/libbpf-0.0.9_netdata-1/include/uapi /usr/local/src/netdata/externaldeps/libbpf/include ... OK
[root /usr/local/src/netdata]# /usr/bin/curl -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-ebpf-co-re-zHj15y/netdata-ebpf-co-re-glibc-v1.1.2.tar.xz https://github.com/netdata/ebpf-co-re/releases/download/v1.1.2/netdata-ebpf-co-re-glibc-v1.1.2.tar.xz ... OK
[root /usr/local/src/netdata]# tar --no-same-owner -xf /tmp/netdata-ebpf-co-re-zHj15y/netdata-ebpf-co-re-glibc-v1.1.2.tar.xz -C /tmp/netdata-ebpf-co-re-zHj15y ... OK
[root /usr/local/src/netdata]# git fetch -t ... OK
[root /usr/local/src/netdata]# autoreconf -ivf ... OK
[root /usr/local/src/netdata]# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/libexec --libdir=/usr/lib --with-zlib --with-math --with-user=netdata --disable-cloud --with-bundled-protobuf CFLAGS=-O2 -pipe LDFLAGS= ... OK
[root /usr/local/src/netdata]# make clean ... FAILED with exit code 2
[root /usr/local/src/netdata]# make -j32 ... FAILED with exit code 2

Log File When Run Is scripts:
/scripts/install_netdata


Code: [Select]
--- Cleanup compilation directory ---
[/usr/local/src/netdata]# make clean
Makefile:6085: httpd/h2o/deps/cloexec/.deps/libh2o_a-cloexec.Po: No such file or directory
Makefile:6086: httpd/h2o/deps/libgkc/.deps/libh2o_a-gkc.Po: No such file or directory
Makefile:6087: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-close.Po: No such file or directory
Makefile:6088: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-connect.Po: No such file or directory
Makefile:6089: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-recv.Po: No such file or directory
Makefile:6090: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-send.Po: No such file or directory
Makefile:6091: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-send_text.Po: No such file or directory
Makefile:6092: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-socket.Po: No such file or directory
Makefile:6093: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-strerror.Po: No such file or directory
Makefile:6094: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-text_mode.Po: No such file or directory
Makefile:6095: httpd/h2o/deps/picohttpparser/.deps/libh2o_a-picohttpparser.Po: No such file or directory
Makefile:6096: httpd/h2o/lib/.deps/libh2o_a-http1.Po: No such file or directory
Makefile:6097: httpd/h2o/lib/.deps/libh2o_a-tunnel.Po: No such file or directory
Makefile:6098: httpd/h2o/lib/common/.deps/libh2o_a-cache.Po: No such file or directory
Makefile:6099: httpd/h2o/lib/common/.deps/libh2o_a-file.Po: No such file or directory
Makefile:6100: httpd/h2o/lib/common/.deps/libh2o_a-filecache.Po: No such file or directory
Makefile:6101: httpd/h2o/lib/common/.deps/libh2o_a-hostinfo.Po: No such file or directory
Makefile:6102: httpd/h2o/lib/common/.deps/libh2o_a-http1client.Po: No such file or directory
Makefile:6103: httpd/h2o/lib/common/.deps/libh2o_a-memcached.Po: No such file or directory
Makefile:6104: httpd/h2o/lib/common/.deps/libh2o_a-memory.Po: No such file or directory
Makefile:6105: httpd/h2o/lib/common/.deps/libh2o_a-multithread.Po: No such file or directory
Makefile:6106: httpd/h2o/lib/common/.deps/libh2o_a-serverutil.Po: No such file or directory
Makefile:6107: httpd/h2o/lib/common/.deps/libh2o_a-socket.Po: No such file or directory
Makefile:6108: httpd/h2o/lib/common/.deps/libh2o_a-socketpool.Po: No such file or directory
Makefile:6109: httpd/h2o/lib/common/.deps/libh2o_a-string.Po: No such file or directory
Makefile:6110: httpd/h2o/lib/common/.deps/libh2o_a-time.Po: No such file or directory
Makefile:6111: httpd/h2o/lib/common/.deps/libh2o_a-timeout.Po: No such file or directory
Makefile:6112: httpd/h2o/lib/common/.deps/libh2o_a-url.Po: No such file or directory
Makefile:6113: httpd/h2o/lib/core/.deps/libh2o_a-config.Po: No such file or directory
Makefile:6114: httpd/h2o/lib/core/.deps/libh2o_a-configurator.Po: No such file or directory
Makefile:6115: httpd/h2o/lib/core/.deps/libh2o_a-context.Po: No such file or directory
Makefile:6116: httpd/h2o/lib/core/.deps/libh2o_a-headers.Po: No such file or directory
Makefile:6117: httpd/h2o/lib/core/.deps/libh2o_a-logconf.Po: No such file or directory
Makefile:6118: httpd/h2o/lib/core/.deps/libh2o_a-proxy.Po: No such file or directory
Makefile:6119: httpd/h2o/lib/core/.deps/libh2o_a-request.Po: No such file or directory
Makefile:6120: httpd/h2o/lib/core/.deps/libh2o_a-token.Po: No such file or directory
Makefile:6121: httpd/h2o/lib/core/.deps/libh2o_a-util.Po: No such file or directory
Makefile:6122: httpd/h2o/lib/handler/.deps/libh2o_a-access_log.Po: No such file or directory
Makefile:6123: httpd/h2o/lib/handler/.deps/libh2o_a-chunked.Po: No such file or directory
Makefile:6124: httpd/h2o/lib/handler/.deps/libh2o_a-compress.Po: No such file or directory
Makefile:6125: httpd/h2o/lib/handler/.deps/libh2o_a-errordoc.Po: No such file or directory
Makefile:6126: httpd/h2o/lib/handler/.deps/libh2o_a-expires.Po: No such file or directory
Makefile:6127: httpd/h2o/lib/handler/.deps/libh2o_a-fastcgi.Po: No such file or directory
Makefile:6128: httpd/h2o/lib/handler/.deps/libh2o_a-file.Po: No such file or directory
Makefile:6129: httpd/h2o/lib/handler/.deps/libh2o_a-headers.Po: No such file or directory
Makefile:6130: httpd/h2o/lib/handler/.deps/libh2o_a-headers_util.Po: No such file or directory
Makefile:6131: httpd/h2o/lib/handler/.deps/libh2o_a-http2_debug_state.Po: No such file or directory
Makefile:6132: httpd/h2o/lib/handler/.deps/libh2o_a-mimemap.Po: No such file or directory
Makefile:6133: httpd/h2o/lib/handler/.deps/libh2o_a-proxy.Po: No such file or directory
Makefile:6134: httpd/h2o/lib/handler/.deps/libh2o_a-redirect.Po: No such file or directory
Makefile:6135: httpd/h2o/lib/handler/.deps/libh2o_a-reproxy.Po: No such file or directory
Makefile:6136: httpd/h2o/lib/handler/.deps/libh2o_a-status.Po: No such file or directory
Makefile:6137: httpd/h2o/lib/handler/.deps/libh2o_a-throttle_resp.Po: No such file or directory
Makefile:6138: httpd/h2o/lib/handler/compress/.deps/libh2o_a-gzip.Po: No such file or directory
Makefile:6139: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-access_log.Po: No such file or directory
Makefile:6140: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-compress.Po: No such file or directory
Makefile:6141: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-errordoc.Po: No such file or directory
Makefile:6142: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-expires.Po: No such file or directory
Makefile:6143: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-fastcgi.Po: No such file or directory
Makefile:6144: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-file.Po: No such file or directory
Makefile:6145: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-headers.Po: No such file or directory
Makefile:6146: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-headers_util.Po: No such file or directory
Makefile:6147: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-http2_debug_state.Po: No such file or directory
Makefile:6148: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-proxy.Po: No such file or directory
Makefile:6149: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-redirect.Po: No such file or directory
Makefile:6150: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-reproxy.Po: No such file or directory
Makefile:6151: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-status.Po: No such file or directory
Makefile:6152: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-throttle_resp.Po: No such file or directory
Makefile:6153: httpd/h2o/lib/handler/status/.deps/libh2o_a-durations.Po: No such file or directory
Makefile:6154: httpd/h2o/lib/handler/status/.deps/libh2o_a-events.Po: No such file or directory
Makefile:6155: httpd/h2o/lib/handler/status/.deps/libh2o_a-requests.Po: No such file or directory
Makefile:6156: httpd/h2o/lib/http2/.deps/libh2o_a-cache_digests.Po: No such file or directory
Makefile:6157: httpd/h2o/lib/http2/.deps/libh2o_a-casper.Po: No such file or directory
Makefile:6158: httpd/h2o/lib/http2/.deps/libh2o_a-connection.Po: No such file or directory
Makefile:6159: httpd/h2o/lib/http2/.deps/libh2o_a-frame.Po: No such file or directory
Makefile:6160: httpd/h2o/lib/http2/.deps/libh2o_a-hpack.Po: No such file or directory
Makefile:6161: httpd/h2o/lib/http2/.deps/libh2o_a-http2_debug_state.Po: No such file or directory
Makefile:6162: httpd/h2o/lib/http2/.deps/libh2o_a-scheduler.Po: No such file or directory
Makefile:6163: httpd/h2o/lib/http2/.deps/libh2o_a-stream.Po: No such file or directory
make: *** No rule to make target `httpd/h2o/lib/http2/.deps/libh2o_a-stream.Po'.  Stop.
 FAILED  ''

 --- Compile netdata ---
[/usr/local/src/netdata]# make -j32
Makefile:6085: httpd/h2o/deps/cloexec/.deps/libh2o_a-cloexec.Po: No such file or directory
Makefile:6086: httpd/h2o/deps/libgkc/.deps/libh2o_a-gkc.Po: No such file or directory
Makefile:6087: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-close.Po: No such file or directory
Makefile:6088: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-connect.Po: No such file or directory
Makefile:6089: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-recv.Po: No such file or directory
Makefile:6090: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-send.Po: No such file or directory
Makefile:6091: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-send_text.Po: No such file or directory
Makefile:6092: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-socket.Po: No such file or directory
Makefile:6093: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-strerror.Po: No such file or directory
Makefile:6094: httpd/h2o/deps/libyrmcds/.deps/libh2o_a-text_mode.Po: No such file or directory
Makefile:6095: httpd/h2o/deps/picohttpparser/.deps/libh2o_a-picohttpparser.Po: No such file or directory
Makefile:6096: httpd/h2o/lib/.deps/libh2o_a-http1.Po: No such file or directory
Makefile:6097: httpd/h2o/lib/.deps/libh2o_a-tunnel.Po: No such file or directory
Makefile:6098: httpd/h2o/lib/common/.deps/libh2o_a-cache.Po: No such file or directory
Makefile:6099: httpd/h2o/lib/common/.deps/libh2o_a-file.Po: No such file or directory
Makefile:6100: httpd/h2o/lib/common/.deps/libh2o_a-filecache.Po: No such file or directory
Makefile:6101: httpd/h2o/lib/common/.deps/libh2o_a-hostinfo.Po: No such file or directory
Makefile:6102: httpd/h2o/lib/common/.deps/libh2o_a-http1client.Po: No such file or directory
Makefile:6103: httpd/h2o/lib/common/.deps/libh2o_a-memcached.Po: No such file or directory
Makefile:6104: httpd/h2o/lib/common/.deps/libh2o_a-memory.Po: No such file or directory
Makefile:6105: httpd/h2o/lib/common/.deps/libh2o_a-multithread.Po: No such file or directory
Makefile:6106: httpd/h2o/lib/common/.deps/libh2o_a-serverutil.Po: No such file or directory
Makefile:6107: httpd/h2o/lib/common/.deps/libh2o_a-socket.Po: No such file or directory
Makefile:6108: httpd/h2o/lib/common/.deps/libh2o_a-socketpool.Po: No such file or directory
Makefile:6109: httpd/h2o/lib/common/.deps/libh2o_a-string.Po: No such file or directory
Makefile:6110: httpd/h2o/lib/common/.deps/libh2o_a-time.Po: No such file or directory
Makefile:6111: httpd/h2o/lib/common/.deps/libh2o_a-timeout.Po: No such file or directory
Makefile:6112: httpd/h2o/lib/common/.deps/libh2o_a-url.Po: No such file or directory
Makefile:6113: httpd/h2o/lib/core/.deps/libh2o_a-config.Po: No such file or directory
Makefile:6114: httpd/h2o/lib/core/.deps/libh2o_a-configurator.Po: No such file or directory
Makefile:6115: httpd/h2o/lib/core/.deps/libh2o_a-context.Po: No such file or directory
Makefile:6116: httpd/h2o/lib/core/.deps/libh2o_a-headers.Po: No such file or directory
Makefile:6117: httpd/h2o/lib/core/.deps/libh2o_a-logconf.Po: No such file or directory
Makefile:6118: httpd/h2o/lib/core/.deps/libh2o_a-proxy.Po: No such file or directory
Makefile:6119: httpd/h2o/lib/core/.deps/libh2o_a-request.Po: No such file or directory
Makefile:6120: httpd/h2o/lib/core/.deps/libh2o_a-token.Po: No such file or directory
Makefile:6121: httpd/h2o/lib/core/.deps/libh2o_a-util.Po: No such file or directory
Makefile:6122: httpd/h2o/lib/handler/.deps/libh2o_a-access_log.Po: No such file or directory
Makefile:6123: httpd/h2o/lib/handler/.deps/libh2o_a-chunked.Po: No such file or directory
Makefile:6124: httpd/h2o/lib/handler/.deps/libh2o_a-compress.Po: No such file or directory
Makefile:6125: httpd/h2o/lib/handler/.deps/libh2o_a-errordoc.Po: No such file or directory
Makefile:6126: httpd/h2o/lib/handler/.deps/libh2o_a-expires.Po: No such file or directory
Makefile:6127: httpd/h2o/lib/handler/.deps/libh2o_a-fastcgi.Po: No such file or directory
Makefile:6128: httpd/h2o/lib/handler/.deps/libh2o_a-file.Po: No such file or directory
Makefile:6129: httpd/h2o/lib/handler/.deps/libh2o_a-headers.Po: No such file or directory
Makefile:6130: httpd/h2o/lib/handler/.deps/libh2o_a-headers_util.Po: No such file or directory
Makefile:6131: httpd/h2o/lib/handler/.deps/libh2o_a-http2_debug_state.Po: No such file or directory
Makefile:6132: httpd/h2o/lib/handler/.deps/libh2o_a-mimemap.Po: No such file or directory
Makefile:6133: httpd/h2o/lib/handler/.deps/libh2o_a-proxy.Po: No such file or directory
Makefile:6134: httpd/h2o/lib/handler/.deps/libh2o_a-redirect.Po: No such file or directory
Makefile:6135: httpd/h2o/lib/handler/.deps/libh2o_a-reproxy.Po: No such file or directory
Makefile:6136: httpd/h2o/lib/handler/.deps/libh2o_a-status.Po: No such file or directory
Makefile:6137: httpd/h2o/lib/handler/.deps/libh2o_a-throttle_resp.Po: No such file or directory
Makefile:6138: httpd/h2o/lib/handler/compress/.deps/libh2o_a-gzip.Po: No such file or directory
Makefile:6139: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-access_log.Po: No such file or directory
Makefile:6140: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-compress.Po: No such file or directory
Makefile:6141: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-errordoc.Po: No such file or directory
Makefile:6142: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-expires.Po: No such file or directory
Makefile:6143: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-fastcgi.Po: No such file or directory
Makefile:6144: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-file.Po: No such file or directory
Makefile:6145: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-headers.Po: No such file or directory
Makefile:6146: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-headers_util.Po: No such file or directory
Makefile:6147: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-http2_debug_state.Po: No such file or directory
Makefile:6148: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-proxy.Po: No such file or directory
Makefile:6149: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-redirect.Po: No such file or directory
Makefile:6150: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-reproxy.Po: No such file or directory
Makefile:6151: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-status.Po: No such file or directory
Makefile:6152: httpd/h2o/lib/handler/configurator/.deps/libh2o_a-throttle_resp.Po: No such file or directory
Makefile:6153: httpd/h2o/lib/handler/status/.deps/libh2o_a-durations.Po: No such file or directory
Makefile:6154: httpd/h2o/lib/handler/status/.deps/libh2o_a-events.Po: No such file or directory
Makefile:6155: httpd/h2o/lib/handler/status/.deps/libh2o_a-requests.Po: No such file or directory
Makefile:6156: httpd/h2o/lib/http2/.deps/libh2o_a-cache_digests.Po: No such file or directory
Makefile:6157: httpd/h2o/lib/http2/.deps/libh2o_a-casper.Po: No such file or directory
Makefile:6158: httpd/h2o/lib/http2/.deps/libh2o_a-connection.Po: No such file or directory
Makefile:6159: httpd/h2o/lib/http2/.deps/libh2o_a-frame.Po: No such file or directory
Makefile:6160: httpd/h2o/lib/http2/.deps/libh2o_a-hpack.Po: No such file or directory
Makefile:6161: httpd/h2o/lib/http2/.deps/libh2o_a-http2_debug_state.Po: No such file or directory
Makefile:6162: httpd/h2o/lib/http2/.deps/libh2o_a-scheduler.Po: No such file or directory
Makefile:6163: httpd/h2o/lib/http2/.deps/libh2o_a-stream.Po: No such file or directory
make: *** No rule to make target `httpd/h2o/lib/http2/.deps/libh2o_a-stream.Po'.  Stop.
 FAILED  ''

 ABORTED  Failed to build Netdata.

sed: can't read /usr/lib/netdata/conf.d/python.d/apache.conf: No such file or directory
sed: can't read /usr/lib/netdata/conf.d/python.d/apache.conf: No such file or directory
Redirecting to /bin/systemctl reload nginx.service
gpasswd: user 'netdata' does not exist
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'netdata'@'localhost'
sed: can't read /etc/netdata/netdata.conf: No such file or directory
Redirecting to /bin/systemctl restart netdata.service
Failed to restart netdata.service: Unit not found.
Redirecting to /bin/systemctl reload cwpsrv.service
You have mail in /var/spool/mail/root

Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: TheQuantumPharaoh on July 15, 2023, 06:24:51 PM
Im having the same problem. Tried installing from the CWP UI but not working. I then used the recommended script form Netdata (wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --disable-telemetry) and it successfully installed but when I go to the installed address I get a 502 Bad Gateway error. Any help?
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on August 29, 2023, 04:29:08 AM
There are dependencies missing from the original CWP "install_netdata" installation script. Geeee.....that's surprising. Okay, so the code below will add the dependencies needed so the installation is successful. It adds a line to the script so that they are installed.

!!!BE SURE TO BACKUP THE FILE BEFORE YOU RUN THIS & BE SURE TO REMOVE THE SPACES FROM "/ scripts / install_netdata" BEFORE YOU PRESS ENTER IN THE SSH TERMINAL!!!

Here is the fix:
Code: [Select]
sed -ie '/\tyum -y install libmnl-devel libuv-devel --enablerepo=epel/a \\tyum -y install json-c-devel libatomic libyaml-devel lz4-devel systemd-devel' / scripts / install_netdata
if everything went fine then you will just come back to a prompt after pressing enter.

Here is the original code:
Code: [Select]
        # new centos 8 stream
        cd / usr / local / src
        wget https://github.com/libuv/libuv/archive/refs/tags/v1.41.0.zip
        unzip v1.41.0.zip
        cd libuv-1.41.0
        ## important to run 2 times:
        sh autogen.sh
        sh autogen.sh
        . / configure
        make
        make install
else
        yum -y install curl gcc make autoconf autoconf-archive autogen automake --enablerepo=epel
        yum -y install MySQL-python python python-yaml python-psycopg2 nodejs lm_sensors --enablerepo=epel
        yum -y install nmap-ncat git zlib-devel libuuid-devel --enablerepo=epel
        yum -y install libmnl-devel libuv-devel --enablerepo=epel
fi

Here is the new code with the added line marked:
Code: [Select]
        # new centos 8 stream
        cd / usr / local / src
        wget https://github.com/libuv/libuv/archive/refs/tags/v1.41.0.zip
        unzip v1.41.0.zip
        cd libuv-1.41.0
        ## important to run 2 times:
        sh autogen.sh
        sh autogen.sh
        . / configure
        make
        make install
else
        yum -y install curl gcc make autoconf autoconf-archive autogen automake --enablerepo=epel
        yum -y install MySQL-python python python-yaml python-psycopg2 nodejs lm_sensors --enablerepo=epel
        yum -y install nmap-ncat git zlib-devel libuuid-devel --enablerepo=epel
        yum -y install libmnl-devel libuv-devel --enablerepo=epel
        yum -y install json-c-devel libatomic libyaml-devel lz4-devel systemd-devel    <-----------HERE
fi

After you have ran the above one-liner fix or corrected the script yourself. Just start the install from the Web Dashboard again and wait for the page to refresh. It can take quite a while to install so be patient and wait for it to refresh.
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on August 29, 2023, 06:24:04 AM
I found another problem here I'm working on now. Apparently when the server is restarted the netdata service is not able to start due to a missing directory it can't create for the socket file. I will report back when I have a solution for it. It looks like the directory is deleted each reboot so it needs a little help.
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on August 29, 2023, 06:48:39 AM
okay here is the second piece of code needed to keep netdata running after reboots.

Code: [Select]
echo 'd /var/run/netdata 0755 root root' > /usr/lib/tmpfiles.d/netdata.conf
this will make systemd create the directory /var/run/netdata on each reboot so the netdata service can use it for the socket file.

If you want to edit the "install_netdata" script file here is the code that will make the script do this automatically from the start.
Code: [Select]
sed -ie '/# restart netdata/a echo "d /var/run/netdata 0755 root root" > /usr/lib/tmpfiles.d/netdata.conf' /scripts/install_netdata
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on August 29, 2023, 07:01:36 AM
So just to make some things easier I'm posting a link to my Github with a working netdata installer as of 8/29/23. This would be a drop-in replacement for the script already in the server at
Code: [Select]
/scripts/install_netdataIf you just replace the scripts and then run the netdata installer from the Web GUI Dashboard it should install and work correctly.

https://raw.githubusercontent.com/LPJon/cwpfixes/main/install_netdata (https://raw.githubusercontent.com/LPJon/cwpfixes/main/install_netdata)
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: overseer on August 29, 2023, 02:32:39 PM
This is great -- your contributions seem valuable, resolving longstanding little niggling bugs. Please contribute your code directly to the devs, as they may miss your forum posts and Github code repository. They do appreciate code like this -- they accepted my patch script back in my early days of CWP where I fixed post-migration issues with the cPanel -> CWP migration routine (basic functionality worked, but some cleanup was needed).
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on August 29, 2023, 10:17:11 PM
This is great -- your contributions seem valuable, resolving longstanding little niggling bugs. Please contribute your code directly to the devs, as they may miss your forum posts and Github code repository. They do appreciate code like this -- they accepted my patch script back in my early days of CWP where I fixed post-migration issues with the cPanel -> CWP migration routine (basic functionality worked, but some cleanup was needed).

Where and how do I submit the code to them? Is there a specific place to do that?
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: overseer on August 30, 2023, 02:03:00 AM
I opened a support ticket about my migration issues and I included my cleanup script there.

Here's the bugs link on the newer Control Web Panel site: https://bugs.control-webpanel.com/login_page.php (https://bugs.control-webpanel.com/login_page.php)
(Seems as though the CentOS branding is going to die off -- makes sense to abstract it for all EL8/EL9 distributions.)

There's also the bug forum that they may tend to peruse more than the overall board generally:
https://forum.centos-webpanel.com/index.php?board=19.0 (https://forum.centos-webpanel.com/index.php?board=19.0)
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on August 30, 2023, 03:17:51 AM
I opened a support ticket about my migration issues and I included my cleanup script there.

Here's the bugs link on the newer Control Web Panel site: https://bugs.control-webpanel.com/login_page.php (https://bugs.control-webpanel.com/login_page.php)
(Seems as though the CentOS branding is going to die off -- makes sense to abstract it for all EL8/EL9 distributions.)

There's also the bug forum that they may tend to peruse more than the overall board generally:
https://forum.centos-webpanel.com/index.php?board=19.0 (https://forum.centos-webpanel.com/index.php?board=19.0)

Well...I tried to setup an account at bugs.control-webpanel.com with the link you gave me above. Turns out I can't get a confirmation email for the account. So I submitted a support ticket instead informing them of it there and posted it in the bugs section of the forum you suggested above at the link below. Just cross referencing it everywhere so it's all linked together for anyone looking into it.

Bugs report section of this forum:
https://forum.centos-webpanel.com/index.php?topic=13060.0 (https://forum.centos-webpanel.com/index.php?topic=13060.0)
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: Dutch_Mike on June 26, 2024, 11:45:28 PM
Hi  LPjon,

I have replaced the code in the script on my server with the code you offered there on git hub. select all, copy , select all on my scipt and paste and save

Then i rund the the installer as suggested from the webgui. it doesnt work i check the box that i confirm, bla bla, press install and the page returns right away with the box again unchecked.

When i use the cli and go to the scrips folder, doing
Code: [Select]
sh install_netdata it gives me errors back
Code: [Select]
sh install_netdata
install_netdata: line 3: $'\r': command not found
install_netdata: line 6: $'\r': command not found
install_netdata: line 9: $'\r': command not found
install_netdata: line 17: $'\r': command not found
install_netdata: line 18: syntax error near unexpected token `$'{\r''
'nstall_netdata: line 18: `function getsystemnodeversion {

So any idea what goes wrong ? server is uptodate, still on centos 8 stream, using apache 2.4.58, have more then sufficient RAM available.

Hope to hear soon from you,
Regards,
Mike
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on June 27, 2024, 10:15:16 AM
You need to download the script from my github. Then upload it to your server for it to work properly.

To solve your issue and to also understand it. The "\r" (its whats placed a the end of every line when you press enter in a Windows text editor) is a windows return carriage, and Linux HATES those in scripting. This is caused by copying and pasting from Windows Based text editors like Notepad but can also happen when copying from a web browser. When you see that kind of error with the "\r" you can try running the following commands to fix it "In Place" but first you need to install dos2unix in your server. If you are running CentOS then run following command to install it.
Code: [Select]
yum install -y dos2unix
Once that is installed run the following....be sure to put in the full file path including the file name.
Code: [Select]
dos2unix /scripts/install_netdata
Also, running bash scripts is usually executed as the following, but you need to be in the files directory
Code: [Select]
./<filename>
If the above does not work reply here and I will try to workout a solution for you. The easiest way to do this though is to download the file raw from github onto your computer and use winscp to upload and overwrite the original. Be sure to make a copy of the original file first. Copy and paste always goes wrong with Linux....especially when working on bash scripting with Windows.

NOTE: CentOS Web Panel frequently overwrites these files and will overwrite the code you are changing. They have still not implemented this fix as of 6/27/24 even though I have submitted the code to them. Once netdata is installed it will just work....until you uninstall it and try to re-install it again. Please keep that in mind.

THE BELOW PERTAINS TO THE "Immutable" FILE ATTRIBUTE. THIS FORBIDS ANY CHANGES TO THE FILE AT ALL UNTIL THE ATTRIBUTE IS REMOVED.

To make the change permanent run the following to make the file uneditable including "delete" and "overwrite":
Code: [Select]
chattr +i /scripts/install_netdata
To make the file editable again run the following:
Code: [Select]
chattr -i /scripts/install_netdata
To look at the "Immutable" or "i" attribute run the following:
Code: [Select]
lsattr /scripts/install_netdata
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: Dutch_Mike on July 04, 2024, 05:26:20 PM
Hi LP Jon,

Thanks for the clarification. I didn't knew that during copy and paste, scripts were being screwed up.
I downloaded your file and uploaded it to my server. i executed it... through the web gui and the cli,
 but the results the same.  this time it installs but gives a lot of errors at the end and there for its not working.

i have an install log with the errors . https://gofile.io/d/PenG4t (https://gofile.io/d/PenG4t)

hope you can find out what is going wrong.

Regards,

Mike
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on July 05, 2024, 11:09:44 PM
Dutch_Mike,

Well...I missed something very important. This forum is for the CentOS 7 OS. You stated earlier that you are using CentOS 8 Stream. I only repaired the CentOS 7 Code part of the script as I was unaware that the CentOS 8 part had any errors in it. As it looks from your log, the only real issues are that several packages needed by Netdata are not (or no longer) available with CentOS 8 Stream. I don't currently have a TESTED fix for that OS just yet. I will need to setup a CentOS 8 Stream DEV VM and see if it can't be fixed or not. I know CentOS 7 just went EOL on June 20th 2024. So I will see what I can come up with and try to push an update for it to work. Fair warning though. I have to reference many sources in order to find a working install environment for CentOS 8 Stream. So this might take a little time. I would recommend that you run the uninstall command from the script to undo changes made as an attempted install.

The following code should do that for you:
Code: [Select]
/usr/local/src/netdata/packaging/installer/./netdata-uninstaller.sh --yes
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7/8
Post by: LPJon on July 06, 2024, 12:49:13 AM
For thread reference

CentOS 8 Stream Missing or uninstallable packages are required by CWP "install_netdata.sh":
MySQL-python
python
python-yaml
python-psycopg2
libuv(x86-64) = 1:1.23.1-1.el8 needed by libuv-devel-1:1.23.1-1.el8.x86_64

The above was provided by Dutch_Mike and is from the install log for "install_netdata.sh" by the following sections:
Code: [Select]
No match for argument: MySQL-python
No match for argument: python
There are following alternatives for "python": python2, python3.11, python3.12, python36, python38, python39
No match for argument: python-yaml
No match for argument: python-psycopg2
Error: Unable to find a match: MySQL-python python python-yaml python-psycopg2
and
Code: [Select]
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides libuv(x86-64) = 1:1.23.1-1.el8 needed by libuv-devel-1:1.23.1-1.el8.x86_64 from cwp
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Please note the above is for thread tracking only.....and to help me stay with the errors without cluttering up my own system.
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on July 06, 2024, 12:59:48 AM
CentOS 8 Stream EOL: May 31st 2024
Title: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7/8 Stream
Post by: LPJon on July 07, 2024, 09:09:02 AM
Hi LP Jon,

Thanks for the clarification. I didn't knew that during copy and paste, scripts were being screwed up.
I downloaded your file and uploaded it to my server. i executed it... through the web gui and the cli,
 but the results the same.  this time it installs but gives a lot of errors at the end and there for its not working.

i have an install log with the errors . https://gofile.io/d/PenG4t (https://gofile.io/d/PenG4t)

hope you can find out what is going wrong.

Regards,

Mike

Alright! I have a working script but I want to do a few more tests with it. I have some questions for you before I publish it on github.
1. Are you using the "vault.centos.org" repos since CentOS 8 Stream is EOL as of May this year.
2. Do you have issues with installing a few packages from the CentOS 9 Stream Repo? (Not available anywhere else)
3. Can you snapshot your server before trying to install with this. I'm hoping you have it running in a Virtual Machine.
4. If you are not using the "vault" repo...what repo are you using?

I'll report back with more after a few more tests.
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on July 07, 2024, 07:29:48 PM
Okay! Before you use this I have to make some disclaimers...lol. So here they are:

1. !!!YOU ARE USING THIS AT YOUR OWN RISK!!!
2. Two packages are from the CentOS 9 Stream Repo (lz4-libs-1.9.3-5.el9.x86_64.rpm lz4-devel-1.9.3-5.el9.x86_64.rpm) and may cause issues later on since they are not officially for CentOS 8 Stream. They are required for Netdata so there is no getting around this on CentOS 8 Stream as it is EOL.
3. This will remove the old failed install of Netdata before trying to install it again.
4. This fixes the automatic start issue of Netdata on reboot
5. I have NO IDEA the long term effect this install could have because of the CentOS 9 Stream packages.

All that said, all tests on a vanilla CWP install on CentOS 8 Stream show good.

If you still want to try this then run the one liner command below:
Code: [Select]
cd /scripts && cp install_netdata install_netdata.orig && wget -O install_netdata https://github.com/LPJon/cwpfixes/raw/main/install_netdata && /scripts/./install_netdata
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on July 08, 2024, 04:43:52 AM
Also if anyone is having issues with yum and being able to run updates you will need to switch over to the vault.cento.org repo. You can reference the following link in order to do so if needed. This script does NOT account for this issue.

Forum link to describe how to switch to vault repo:
https://forum.logik.tv/t/yum-failing-on-centos-8/5225 (https://forum.logik.tv/t/yum-failing-on-centos-8/5225)

If you don't understand what is going on in that post then please leave me a message here and I will try to provide a one liner to get you converted over to the vault repos.

For anyone who doesn't know, the "vault" repo is an archive repo for CentOS versions that are EOL and can be found at: https://vault.centos.org/ (https://vault.centos.org/)
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: Starburst on July 08, 2024, 05:58:10 PM
Also not allot of 3rd part repo are just disabling & deleting repos for EL7.

So yes, for now, Red Hat has the CentOS 7 Archive going, but given their history, who knows for how long.

I know some mirrors, who are just removing the CentOS 7 repos all together to save space for other active projects.

Best bet is to switch over to AlmaLinux 8 to avoid any security breaches due to unpatched servers.
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on July 09, 2024, 06:34:31 PM
Code updated to support CentOS 7 and 9 Stream
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: Dutch_Mike on July 11, 2024, 12:25:43 AM
HI LPJon.

Sorry for the late response, been hectic past week.

1. Are you using the "vault.centos.org" repos since CentOS 8 Stream is EOL as of May this year.
-  Yes cwp was automatic updated
2. Do you have issues with installing a few packages from the CentOS 9 Stream Repo? (Not available anywhere else)
-  No issues with other software installations
3. Can you snapshot your server before trying to install with this. I'm hoping you have it running in a Virtual Machine.
-  Its on a bare metal machine. I do make images from it so i can go back if needed.
4. If you are not using the "vault" repo...what repo are you using?
-  all the repo's that cwp changed during their updates. i have to open all the repo's 1 by 1 to see. but the main ones are set to vault.

I have used your script, and it is working flawless. thank you for that. It took some time to install, even i do have a pretty fast machine.. but then it works as i remember from before. I seen a few times error during the install and things that could not be found. but in the end its working on CWP stream.

I do know centos 8 stream is eol but i dont know what  to do yet. if its possible to do an online inline upgrade or if i have to do a complete new setup with 9.

Anyways netdata is working awesome. thank you so much for this.

Best regards,
Mike
Title: Re: Faild Install last Version Netdata in CWP (Control Web Pannel) Centos 7
Post by: LPJon on July 11, 2024, 07:59:46 AM
Dutch_Mike,
     Thanks for reporting back on this. Glad it's working as expected. It does take several minutes to compile and install.

Please do remember that CWP will overwrite the "install_netdata" script every 24hrs unless you make it "immutable". This won't have any effect unless you uninstall netdata and try to reinstall it.

The truth is that CentOS 9 Stream isn't doing so well either. Stream versions of CentOS are beta versions of Red Hat. AlmaLinux is looking better moving into the future according to most. However, the next mainstream generation of CWP is going to be supported on CentOS 9 Stream or Rocky Linux I think as this is what it looks like from their website.

To very shortly describe the upgrade process to CentOS 9 Stream, you need to setup another server with CentOS 9 Stream minimal install on it. Then run the CWP installer script provided on their website. Then setup an API key between the servers and migrate from one server into another.

Here is a link to their instructions on how to accomplish this:
https://docs.control-webpanel.com/docs/admin-guide/user-accounts/cwp-to-cwp-migration (https://docs.control-webpanel.com/docs/admin-guide/user-accounts/cwp-to-cwp-migration)

Please note that this should work with any version of Linux that CWP supports but I have not tested any of them.