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

Can't start netdata in Amazon Linux #6522

Closed
cuongtv-0172 opened this issue Jul 23, 2019 · 20 comments
Closed

Can't start netdata in Amazon Linux #6522

cuongtv-0172 opened this issue Jul 23, 2019 · 20 comments
Assignees
Labels
area/packaging Packaging and operating systems support bug

Comments

@cuongtv-0172
Copy link

Bug report summary

Hello, i can't start netdata with 'memory mode = dbengine'.
Screenshot_59

This is log:

2019-07-23 09:33:12: netdata INFO  : MAIN : NETDATA_SYSTEM_OS_DETECTION=/etc/os-release
2019-07-23 09:33:12: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_NAME=Linux
2019-07-23 09:33:12: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_VERSION=4.14.123-86.109.amzn1.x86_64
2019-07-23 09:33:12: netdata INFO  : MAIN : NETDATA_SYSTEM_ARCHITECTURE=x86_64
2019-07-23 09:33:12: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRTUALIZATION=hypervisor
2019-07-23 09:33:12: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRT_DETECTION=/proc/cpuinfo
2019-07-23 09:33:12: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER=unknown
2019-07-23 09:33:12: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER_DETECTION=none
2019-07-23 09:33:12: netdata ERROR : MAIN : Cannot open the file /var/lib/netdata/health.silencers.json (errno 2, No such file or directory)
2019-07-23 09:33:12: netdata INFO  : MAIN : CONFIG: cannot load user config '/etc/netdata/stream.conf'. Will try stock config.
2019-07-23 09:33:12: netdata FATAL : MAIN :RRD_MEMORY_MODE_DBENGINE is not supported in this platform. # : No such file or directory

2019-07-23 09:33:12: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'FATAL' 'netdata:MAIN' '0258@database/r:rrdhost_create /2'
2019-07-23 09:33:13: netdata INFO  : MAIN : EXIT: netdata prepares to exit with code 1...
2019-07-23 09:33:13: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'EXIT' 'ERROR' '-'
2019-07-23 09:33:13: netdata INFO  : MAIN : EXIT: cleaning up the database...
2019-07-23 09:33:13: netdata INFO  : MAIN : Cleaning up database [0 hosts(s)]...
2019-07-23 09:33:13: netdata ERROR : MAIN : RW_LOCK: failed to obtain read lock (code 35)
2019-07-23 09:33:13: netdata INFO  : MAIN : EXIT: removing netdata PID file '/var/run/netdata/netdata.pid'...
2019-07-23 09:33:13: netdata INFO  : MAIN : EXIT: all done - netdata is now exiting - bye bye...

I install with command:

> bash <(curl -Ss https://my-netdata.io/kickstart.sh)

And install all package requirement in here: https://github.com/netdata/netdata/tree/master/packaging/installer#prepare-your-system

Please check and show me how can i fix it.

OS / Environment

Amazon Linux AMI release 2018.03

Netdata version (ouput of netdata -V)

netdata v1.16.0-70-nightly

Component Name
Steps To Reproduce
Expected behavior
@cuongtv-0172 cuongtv-0172 added bug needs triage Issues which need to be manually labelled labels Jul 23, 2019
@mfundul
Copy link
Contributor

mfundul commented Jul 23, 2019

This means that your system lacks the dbengine package dependencies and did not compile this feature into the binary.

Can you run autoreconf -ivf && ./configure inside the source code directory of netdata and share the output?

@paulkatsoulakis are you familiar with this platform?

@cuongtv-0172
Copy link
Author

@mfundul sorry, but i install with bash script

> bash <(curl -Ss https://my-netdata.io/kickstart.sh)

So i must remove it and reinstall with source ?

@mfundul
Copy link
Contributor

mfundul commented Jul 23, 2019

@mfundul sorry, but i install with bash script

> bash <(curl -Ss https://my-netdata.io/kickstart.sh)

So i must remove it and reinstall with source ?

No need to remove it, the script downloads the source anyway. Those 2 commands will not install netdata, they will just show us what packages you're missing.

You could download the source code from github and run the commands inside the netdata-master folder.

However, I think it will give us even more information if you run bash <(curl -Ss https://my-netdata.io/kickstart.sh) again and share with us the whole output of the installation process.

@paulkatsoulakis paulkatsoulakis self-assigned this Jul 23, 2019
@paulkatsoulakis
Copy link
Contributor

Hello @cuongtv-0172, could you please share your kickstart installation output here?
Just make sure you mask any sensitive information from the log like IPs or usernames or other stuff that are not for public usage

@paulkatsoulakis
Copy link
Contributor

When using kickstart you really don't need to do anything other than having latest BASH and curl or wget available. We 're gonna have to check the log file though, to see what happened with the dependency handling from kickstart. I am suspecting Amazon linux has some deviation on the package names that we didn't catch, the log should give us this info

@cuongtv-0172
Copy link
Author

@paulkatsoulakis Hi Paul, this is output when i run bash script. Can you check it
Screenshot_60
Screenshot_61
Screenshot_62
Screenshot_63

I don't see anything about missing library or dependency

@cuongtv-0172
Copy link
Author

cuongtv-0172 commented Jul 24, 2019

@mfundul here is output when i run autoreconf -ivf && ./configure

[root@ip-10-0-0-9 tmp]# cd netdata-master/
[root@ip-10-0-0-9 netdata-master]# autoreconf -ivf && ./configure
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I build/m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:39: installing './compile'
configure.ac:37: installing './config.guess'
configure.ac:37: installing './config.sub'
configure.ac:33: installing './install-sh'
configure.ac:33: installing './missing'
Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for __attribute__((returns_nonnull))... no
checking for __attribute__((malloc))... yes
checking for __attribute__((noreturn))... yes
checking for __attribute__((noinline))... yes
checking for __attribute__((format))... yes
checking for __attribute__((warn_unused_result))... yes
checking for struct timespec... yes
checking for clockid_t... yes
checking for library containing clock_gettime... none required
checking for clock_gettime... yes
checking for sched_setscheduler... yes
checking for sched_getscheduler... yes
checking for sched_getparam... yes
checking for sched_get_priority_min... yes
checking for sched_get_priority_max... yes
checking for getpriority... yes
checking for setpriority... yes
checking for nice... yes
checking for recvmmsg... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for inline... inline
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for _Generic... no
checking for __atomic... yes
checking size of void *... 8
checking whether sys/types.h defines makedev... yes
checking for sys/types.h... (cached) yes
checking for netinet/in.h... yes
checking for arpa/nameser.h... yes
checking for netdb.h... yes
checking for resolv.h... yes
checking for sys/prctl.h... yes
checking for sys/vfs.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking for sys/mount.h... yes
checking for accept4... yes
checking operating system... linux with id 1
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for sin in -lm... yes
checking if libm should be used... yes
checking for uv_fs_scandir_next in -luv... no
checking for LZ4_decompress_safe in -llz4... yes
checking for JudyLIns in -lJudy... no
checking for ZLIB... yes
checking if zlib should be used... yes
checking for UUID... yes
checking for SHA256_Init in -lcrypto... yes
checking for JSON... no
checking for json_object_get_type in -ljson... no
checking if netdata dbengine should be used... no
checking if netdata https should be used... yes
checking if json-c should be used... no
checking for memory allocator... system
checking for mallopt... yes
checking for mallinfo... yes
checking for LIBCAP... no
checking if libcap should be used... no
checking if apps.plugin should be enabled... yes
checking for IPMIMONITORING... no
checking if freeipmi.plugin should be enabled... no
checking for httpConnect2 in -lcups... no
checking for cups-config... no
checking if cups.plugin should be enabled... no
checking linux/netfilter/nfnetlink_conntrack.h usability... yes
checking linux/netfilter/nfnetlink_conntrack.h presence... yes
checking for linux/netfilter/nfnetlink_conntrack.h... yes
checking whether CTA_STATS_MAX is declared... yes
checking for NFACCT... no
checking for LIBMNL... yes
checking for mnl_socket_open in -lmnl... yes
checking if nfacct.plugin should be enabled... no
checking for YAJL... no
checking for xenstat_init in -lxenstat... no
checking for XENLIGHT... no
checking if xenstat.plugin should be enabled... no
checking linux/perf_event.h usability... yes
checking linux/perf_event.h presence... yes
checking for linux/perf_event.h... yes
checking whether PERF_COUNT_HW_REF_CPU_CYCLES is declared... yes
checking if perf.plugin should be enabled... yes
checking for LIBCRYPTO... yes
checking for CRYPTO_new_ex_data in -lcrypto... yes
checking for LIBSSL... yes
checking for SSL_connect in -lssl... yes
checking for LIBCURL... no
checking for cJSON_free in -laws-cpp-sdk-core... no
checking for Aws::Kinesis::Model::PutRecordRequest in -laws-cpp-sdk-kinesis... no
checking if kinesis backend should be enabled... no
checking for PROTOBUF... no
checking for snappy::RawCompress in -lsnappy... no
checking for protoc... no
checking for g++... no
checking if prometheus remote write backend should be enabled... no
checking for setns... yes
checking if cgroup-network can be enabled... yes
checking whether C compiler accepts -flto... yes
checking if -flto builds executables... yes
checking if LTO should be enabled... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating netdata.spec
config.status: creating backends/graphite/Makefile
config.status: creating backends/json/Makefile
config.status: creating backends/Makefile
config.status: creating backends/opentsdb/Makefile
config.status: creating backends/prometheus/Makefile
config.status: creating backends/prometheus/remote_write/Makefile
config.status: creating backends/aws_kinesis/Makefile
config.status: creating collectors/Makefile
config.status: creating collectors/apps.plugin/Makefile
config.status: creating collectors/cgroups.plugin/Makefile
config.status: creating collectors/charts.d.plugin/Makefile
config.status: creating collectors/checks.plugin/Makefile
config.status: creating collectors/diskspace.plugin/Makefile
config.status: creating collectors/fping.plugin/Makefile
config.status: creating collectors/ioping.plugin/Makefile
config.status: creating collectors/freebsd.plugin/Makefile
config.status: creating collectors/freeipmi.plugin/Makefile
config.status: creating collectors/cups.plugin/Makefile
config.status: creating collectors/idlejitter.plugin/Makefile
config.status: creating collectors/macos.plugin/Makefile
config.status: creating collectors/nfacct.plugin/Makefile
config.status: creating collectors/node.d.plugin/Makefile
config.status: creating collectors/plugins.d/Makefile
config.status: creating collectors/proc.plugin/Makefile
config.status: creating collectors/python.d.plugin/Makefile
config.status: creating collectors/statsd.plugin/Makefile
config.status: creating collectors/tc.plugin/Makefile
config.status: creating collectors/xenstat.plugin/Makefile
config.status: creating collectors/perf.plugin/Makefile
config.status: creating daemon/Makefile
config.status: creating database/Makefile
config.status: creating database/engine/Makefile
config.status: creating diagrams/Makefile
config.status: creating health/Makefile
config.status: creating health/notifications/Makefile
config.status: creating libnetdata/Makefile
config.status: creating libnetdata/adaptive_resortable_list/Makefile
config.status: creating libnetdata/avl/Makefile
config.status: creating libnetdata/buffer/Makefile
config.status: creating libnetdata/clocks/Makefile
config.status: creating libnetdata/config/Makefile
config.status: creating libnetdata/dictionary/Makefile
config.status: creating libnetdata/eval/Makefile
config.status: creating libnetdata/locks/Makefile
config.status: creating libnetdata/log/Makefile
config.status: creating libnetdata/popen/Makefile
config.status: creating libnetdata/procfile/Makefile
config.status: creating libnetdata/simple_pattern/Makefile
config.status: creating libnetdata/socket/Makefile
config.status: creating libnetdata/statistical/Makefile
config.status: creating libnetdata/storage_number/Makefile
config.status: creating libnetdata/threads/Makefile
config.status: creating libnetdata/url/Makefile
config.status: creating libnetdata/json/Makefile
config.status: creating libnetdata/health/Makefile
config.status: creating registry/Makefile
config.status: creating streaming/Makefile
config.status: creating system/Makefile
config.status: creating tests/Makefile
config.status: creating web/Makefile
config.status: creating web/api/Makefile
config.status: creating web/api/badges/Makefile
config.status: creating web/api/exporters/Makefile
config.status: creating web/api/exporters/shell/Makefile
config.status: creating web/api/exporters/prometheus/Makefile
config.status: creating web/api/formatters/Makefile
config.status: creating web/api/formatters/csv/Makefile
config.status: creating web/api/formatters/json/Makefile
config.status: creating web/api/formatters/ssv/Makefile
config.status: creating web/api/formatters/value/Makefile
config.status: creating web/api/queries/Makefile
config.status: creating web/api/queries/average/Makefile
config.status: creating web/api/queries/des/Makefile
config.status: creating web/api/queries/incremental_sum/Makefile
config.status: creating web/api/queries/max/Makefile
config.status: creating web/api/queries/median/Makefile
config.status: creating web/api/queries/min/Makefile
config.status: creating web/api/queries/ses/Makefile
config.status: creating web/api/queries/stddev/Makefile
config.status: creating web/api/queries/sum/Makefile
config.status: creating web/api/health/Makefile
config.status: creating web/gui/Makefile
config.status: creating web/server/Makefile
config.status: creating web/server/static/Makefile
config.status: creating config.h
config.status: executing depfiles commands

I run that command but still fail when start, bro.

2019-07-24 02:50:35: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_NAME=Linux
2019-07-24 02:50:35: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_VERSION=4.14.123-86.109.amzn1.x86_64
2019-07-24 02:50:35: netdata INFO  : MAIN : NETDATA_SYSTEM_ARCHITECTURE=x86_64
2019-07-24 02:50:35: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRTUALIZATION=hypervisor
2019-07-24 02:50:35: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRT_DETECTION=/proc/cpuinfo
2019-07-24 02:50:35: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER=unknown
2019-07-24 02:50:35: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER_DETECTION=none
2019-07-24 02:50:35: netdata ERROR : MAIN : Cannot open the file /var/lib/netdata/health.silencers.json (errno 2, No such file or directory)
2019-07-24 02:50:35: netdata INFO  : MAIN : CONFIG: cannot load user config '/etc/netdata/stream.conf'. Will try stock config.
2019-07-24 02:50:35: netdata FATAL : MAIN :RRD_MEMORY_MODE_DBENGINE is not supported in this platform. # : No such file or directory

2019-07-24 02:50:35: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'FATAL' 'netdata:MAIN' '0258@database/r:rrdhost_create /2'
2019-07-24 02:50:35: netdata INFO  : MAIN : EXIT: netdata prepares to exit with code 1...
2019-07-24 02:50:35: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'EXIT' 'ERROR' '-'
2019-07-24 02:50:35: netdata INFO  : MAIN : EXIT: cleaning up the database...
2019-07-24 02:50:35: netdata INFO  : MAIN : Cleaning up database [0 hosts(s)]...
2019-07-24 02:50:35: netdata ERROR : MAIN : RW_LOCK: failed to obtain read lock (code 35)
2019-07-24 02:50:35: netdata INFO  : MAIN : EXIT: removing netdata PID file '/var/run/netdata/netdata.pid'...
2019-07-24 02:50:35: netdata ERROR : MAIN : EXIT: cannot unlink pidfile '/var/run/netdata/netdata.pid'. (errno 13, Permission denied)
2019-07-24 02:50:35: netdata INFO  : MAIN : EXIT: all done - netdata is now exiting - bye bye...

@paulkatsoulakis
Copy link
Contributor

paulkatsoulakis commented Jul 24, 2019

Ok, you need epel-release or a relevant repository that carries Judy and libuv1 packages.

For judy, if you can't have a repo to fetch it using package manager, you can just make yourself
Here's how:

export JUDY_VER="1.0.5"
wget -O /judy.tar.gz http://downloads.sourceforge.net/project/judy/judy/Judy-${JUDY_VER}/Judy-${JUDY_VER}.tar.gz \
 && cd / && tar -xf judy.tar.gz && rm judy.tar.gz \
 && cd /judy-${JUDY_VER} \
 && CFLAGS="-O2 -s" CXXFLAGS="-O2 -s" ./configure \
 && make \
 && make install; \

of course feel free to adjust the paths and all as you see please on the above.
You can do something similar for libuv1.

Once you have those two packages in, please run again kickstart one-liner and it should give you DB engine.

@paulkatsoulakis paulkatsoulakis added area/packaging Packaging and operating systems support question bug and removed bug needs triage Issues which need to be manually labelled question labels Jul 24, 2019
@cuongtv-0172
Copy link
Author

@paulkatsoulakis i've install libuv and Judy

# rpm -qa |egrep -E 'Judy|libuv'
libuv-devel-0.10.34-1.el6.x86_64
libuv-0.10.34-1.el6.x86_64
Judy-1.0.5-1.el6.x86_64
Judy-devel-1.0.5-1.el6.x86_64

but still can't start it

#6520  service netdata restart
Stopping netdata...                                        [FAILED]
Starting netdata...                                        [  OK  ]
# tail -n 20 /var/log/netdata/error.log 
2019-07-24 03:32:23: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_NAME=Linux
2019-07-24 03:32:23: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_VERSION=4.14.123-86.109.amzn1.x86_64
2019-07-24 03:32:23: netdata INFO  : MAIN : NETDATA_SYSTEM_ARCHITECTURE=x86_64
2019-07-24 03:32:23: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRTUALIZATION=hypervisor
2019-07-24 03:32:23: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRT_DETECTION=/proc/cpuinfo
2019-07-24 03:32:23: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER=unknown
2019-07-24 03:32:23: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER_DETECTION=none
2019-07-24 03:32:23: netdata ERROR : MAIN : Cannot open the file /var/lib/netdata/health.silencers.json (errno 2, No such file or directory)
2019-07-24 03:32:23: netdata INFO  : MAIN : CONFIG: cannot load user config '/etc/netdata/stream.conf'. Will try stock config.
2019-07-24 03:32:23: netdata FATAL : MAIN :RRD_MEMORY_MODE_DBENGINE is not supported in this platform. # : No such file or directory

2019-07-24 03:32:23: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'FATAL' 'netdata:MAIN' '0258@database/r:rrdhost_create /2'
2019-07-24 03:32:23: netdata INFO  : MAIN : EXIT: netdata prepares to exit with code 1...
2019-07-24 03:32:23: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'EXIT' 'ERROR' '-'
2019-07-24 03:32:23: netdata INFO  : MAIN : EXIT: cleaning up the database...
2019-07-24 03:32:23: netdata INFO  : MAIN : Cleaning up database [0 hosts(s)]...
2019-07-24 03:32:23: netdata ERROR : MAIN : RW_LOCK: failed to obtain read lock (code 35)
2019-07-24 03:32:23: netdata INFO  : MAIN : EXIT: removing netdata PID file '/var/run/netdata/netdata.pid'...
2019-07-24 03:32:23: netdata ERROR : MAIN : EXIT: cannot unlink pidfile '/var/run/netdata/netdata.pid'. (errno 13, Permission denied)
2019-07-24 03:32:23: netdata INFO  : MAIN : EXIT: all done - netdata is now exiting - bye bye...

How about another solution?

@mfundul
Copy link
Contributor

mfundul commented Jul 24, 2019

You need libuv version 1. You have version 0.

@mfundul
Copy link
Contributor

mfundul commented Jul 24, 2019

You can try the Okay repository as shown here

@cuongtv-0172
Copy link
Author

@mfundul sorry but still fail

# rpm -qa |egrep -e "Judy|libu"
libuuid-2.23.2-33.28.amzn1.x86_64
libudev-173-4.13.amzn1.x86_64
libutempter-1.1.5-4.1.6.amzn1.x86_64
Judy-devel-1.0.5-1.el6.x86_64
libunistring-0.9.3-6.1.amzn1.x86_64
libuser-0.60-7.23.amzn1.x86_64
libuuid-devel-2.23.2-33.28.amzn1.x86_64
Judy-1.0.5-1.el6.x86_64
libuv1-1.9.1-3.el7.centos.x86_64

# service netdata restart
Stopping netdata...                                        [FAILED]
Starting netdata...                                        [  OK  ]
# tail -n 20 /var/log/netdata/error.log 
2019-07-24 06:13:50: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_NAME=Linux
2019-07-24 06:13:50: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_VERSION=4.14.123-86.109.amzn1.x86_64
2019-07-24 06:13:50: netdata INFO  : MAIN : NETDATA_SYSTEM_ARCHITECTURE=x86_64
2019-07-24 06:13:50: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRTUALIZATION=hypervisor
2019-07-24 06:13:50: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRT_DETECTION=/proc/cpuinfo
2019-07-24 06:13:50: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER=unknown
2019-07-24 06:13:50: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER_DETECTION=none
2019-07-24 06:13:50: netdata ERROR : MAIN : Cannot open the file /var/lib/netdata/health.silencers.json (errno 2, No such file or directory)
2019-07-24 06:13:50: netdata INFO  : MAIN : CONFIG: cannot load user config '/etc/netdata/stream.conf'. Will try stock config.
2019-07-24 06:13:50: netdata FATAL : MAIN :RRD_MEMORY_MODE_DBENGINE is not supported in this platform. # : No such file or directory

2019-07-24 06:13:50: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'FATAL' 'netdata:MAIN' '0258@database/r:rrdhost_create /2'
2019-07-24 06:13:51: netdata INFO  : MAIN : EXIT: netdata prepares to exit with code 1...
2019-07-24 06:13:51: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'EXIT' 'ERROR' '-'
2019-07-24 06:13:51: netdata INFO  : MAIN : EXIT: cleaning up the database...
2019-07-24 06:13:51: netdata INFO  : MAIN : Cleaning up database [0 hosts(s)]...
2019-07-24 06:13:51: netdata ERROR : MAIN : RW_LOCK: failed to obtain read lock (code 35)
2019-07-24 06:13:51: netdata INFO  : MAIN : EXIT: removing netdata PID file '/var/run/netdata/netdata.pid'...
2019-07-24 06:13:51: netdata ERROR : MAIN : EXIT: cannot unlink pidfile '/var/run/netdata/netdata.pid'. (errno 13, Permission denied)
2019-07-24 06:13:51: netdata INFO  : MAIN : EXIT: all done - netdata is now exiting - bye bye...

@mfundul
Copy link
Contributor

mfundul commented Jul 24, 2019

You didn't install libuv devel.

@cuongtv-0172
Copy link
Author

@mfundul i've installed but result as the same

# rpm -qa |egrep -e "libu"
libuuid-2.23.2-33.28.amzn1.x86_64
libudev-173-4.13.amzn1.x86_64
libutempter-1.1.5-4.1.6.amzn1.x86_64
libuv-devel-1.9.1-3.el7.centos.x86_64
libunistring-0.9.3-6.1.amzn1.x86_64
libuser-0.60-7.23.amzn1.x86_64
libuv1-1.9.1-3.el7.centos.x86_64
libuuid-devel-2.23.2-33.28.amzn1.x86_64

@mfundul
Copy link
Contributor

mfundul commented Jul 24, 2019

Can you share the output again? libuv dependency should be good now.

@cuongtv-0172
Copy link
Author

@mfundul
here is log and output:

# service netdata restart
Stopping netdata...                                        [FAILED]
Starting netdata...                                        [  OK  ]

# service netdata status
netdata dead but pid file exists

# tail -n 20 /var/log/netdata/error.log 
2019-07-24 07:10:45: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_NAME=Linux
2019-07-24 07:10:45: netdata INFO  : MAIN : NETDATA_SYSTEM_KERNEL_VERSION=4.14.123-86.109.amzn1.x86_64
2019-07-24 07:10:45: netdata INFO  : MAIN : NETDATA_SYSTEM_ARCHITECTURE=x86_64
2019-07-24 07:10:45: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRTUALIZATION=hypervisor
2019-07-24 07:10:45: netdata INFO  : MAIN : NETDATA_SYSTEM_VIRT_DETECTION=/proc/cpuinfo
2019-07-24 07:10:45: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER=unknown
2019-07-24 07:10:45: netdata INFO  : MAIN : NETDATA_SYSTEM_CONTAINER_DETECTION=none
2019-07-24 07:10:45: netdata ERROR : MAIN : Cannot open the file /var/lib/netdata/health.silencers.json (errno 2, No such file or directory)
2019-07-24 07:10:45: netdata INFO  : MAIN : CONFIG: cannot load user config '/etc/netdata/stream.conf'. Will try stock config.
2019-07-24 07:10:45: netdata FATAL : MAIN :RRD_MEMORY_MODE_DBENGINE is not supported in this platform. # : No such file or directory

2019-07-24 07:10:45: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'FATAL' 'netdata:MAIN' '0258@database/r:rrdhost_create /2'
2019-07-24 07:10:45: netdata INFO  : MAIN : EXIT: netdata prepares to exit with code 1...
2019-07-24 07:10:45: netdata INFO  : MAIN : /usr/libexec/netdata/plugins.d/anonymous-statistics.sh 'EXIT' 'ERROR' '-'
2019-07-24 07:10:45: netdata INFO  : MAIN : EXIT: cleaning up the database...
2019-07-24 07:10:45: netdata INFO  : MAIN : Cleaning up database [0 hosts(s)]...
2019-07-24 07:10:45: netdata ERROR : MAIN : RW_LOCK: failed to obtain read lock (code 35)
2019-07-24 07:10:45: netdata INFO  : MAIN : EXIT: removing netdata PID file '/var/run/netdata/netdata.pid'...
2019-07-24 07:10:45: netdata ERROR : MAIN : EXIT: cannot unlink pidfile '/var/run/netdata/netdata.pid'. (errno 13, Permission denied)
2019-07-24 07:10:45: netdata INFO  : MAIN : EXIT: all done - netdata is now exiting - bye bye...

and this is config:

# cat /etc/netdata/netdata.conf |grep -v "#" |grep -v ^$
[global]
         memory mode = dbengine
[web]
[plugins]
[health]
[registry]
[cloud]
[backend]
[statsd]
[plugin:proc]
.....

@mfundul
Copy link
Contributor

mfundul commented Jul 24, 2019

Sorry, I meant the ./configure output.

@mfundul
Copy link
Contributor

mfundul commented Jul 24, 2019

If your ./configure output is what I expect it to be then reinstalling with bash <(curl -Ss https://my-netdata.io/kickstart.sh) should do the trick.

@paulkatsoulakis
Copy link
Contributor

Hi @cuongtv-0172, as i can see it was already answered but yes i meant libuv version 1 and not 0.*
Also, after the packages are in place, you need to run kickstart again so that the solution is rebuilt.

There is also a BETA solution with pre-compiled binary packages, instructions here. you still need to ensure dependencies are covered of course

@paulkatsoulakis
Copy link
Contributor

I am resolving this for now as i don't see any feedback after ~3 days.
@cuongtv-0172 please do not hesitate to re-open and resume the conversation if your problem is not solved.

Thanks again for reaching out to us and we hope we have been of good help
Cheers!

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
Projects
None yet
Development

No branches or pull requests

3 participants