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

Netdata on FreeBSD 14 does not start or shutdown by system service #16511

Closed
rsyncOSX opened this issue Nov 30, 2023 · 1 comment · Fixed by #16548
Closed

Netdata on FreeBSD 14 does not start or shutdown by system service #16511

rsyncOSX opened this issue Nov 30, 2023 · 1 comment · Fixed by #16548
Assignees
Labels
area/packaging Packaging and operating systems support bug os/bsd bsd os related issues

Comments

@rsyncOSX
Copy link

rsyncOSX commented Nov 30, 2023

Bug description

Fresh vanilla installation of FreeBSD 14, Netdata source compiles with no problems but the netdata agent either stop or start by system services even if /etc/rc.conf contains record netdata_enable="YES". The tail of netdata-installer.log is like this:

[root /root/netdata/netdata-v1.43.2]# stop_all_netdata  ... [root /root/netdata/netdata-v1.43.2]# /usr/sbin/service netdata stop  ... FAILED with exit code 1
OK
[root /root/netdata/netdata-v1.43.2]# service netdata onestart  ... [root /root/netdata/netdata-v1.43.2]# /usr/sbin/service netdata onestart  ... FAILED with exit code 1
FAILED with exit code 1
[root /root/netdata/netdata-v1.43.2]# service netdata onestart  ... [root /root/netdata/netdata-v1.43.2]# /usr/sbin/service netdata onestart  ... FAILED with exit code 1
FAILED with exit code 1
[root /root/netdata/netdata-v1.43.2]# stop_all_netdata  ... [root /root/netdata/netdata-v1.43.2]# /usr/sbin/service netdata stop  ... FAILED with exit code 1
OK
[root /root/netdata/netdata-v1.43.2]# /usr/sbin/netdata  ... OK
[root /root/netdata/netdata-v1.43.2]# chmod 0644 /etc/netdata/netdata.conf  ... OK
[root /root/netdata/netdata-v1.43.2]# chmod 0644 /etc/netdata/.environment  ... OK

and either commands (as root) service netdata start or service netdata stop fails. And netdata does not autostart as well when server is reboot.

Expected behavior

Netdata agent should stop and start by system services.

Steps to reproduce

  1. Install netdata by source (netdata-installer.sh)
  2. Try to stop and restart netdata agent by system service service netdata stop or service netdata start after compile and installing netdata by installer script
    ...

Installation method

from source

System info

FreeBSD backup 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 08:59:18 UTC 2023     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
1400097

Netdata build info

Packaging:
    Netdata Version ____________________________________________ : v1.43.2
    Installation Type __________________________________________ : custom
    Package Architecture _______________________________________ : unknown
    Package Distro _____________________________________________ : unknown
    Configure Options __________________________________________ :  '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/libexec' '--libdir=/usr/lib' '--with-math' '--with-user=netdata' '--disable-dependency-tracking' '--with-bundled-protobuf' 'CFLAGS=-O2 -pipe' 'LDFLAGS='
Default Directories:
    User Configurations ________________________________________ : /etc/netdata
    Stock Configurations _______________________________________ : /usr/lib/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 _____________________________________________________ : FreeBSD
    Kernel Version _____________________________________________ : 1400097
    Operating System ___________________________________________ : FreeBSD
    Operating System ID ________________________________________ : FreeBSD
    Operating System ID Like ___________________________________ : FreeBSD
    Operating System Version ___________________________________ : 14.0-RELEASE
    Operating System Version ID ________________________________ : none
    Detection __________________________________________________ : uname
Hardware:
    CPU Cores __________________________________________________ : 4
    CPU Frequency ______________________________________________ : unknown
    CPU Architecture ___________________________________________ : 8419999744
    RAM Bytes __________________________________________________ : 2582311714816
    Disk Capacity ______________________________________________ : arm64
    Virtualization Technology __________________________________ : none
    Virtualization Detection ___________________________________ : sysctl
Container:
    Container __________________________________________________ : unknown
    Container Detection ________________________________________ : none
    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 __________________________________________________ : FreeBSD
    Netdata Cloud ______________________________________________ : YES
    Health (trigger alerts and send notifications) _____________ : YES
    Streaming (stream metrics to parent Netdata servers) _______ : YES
    Replication (fill the gaps of parent Netdata servers) ______ : YES
    Streaming and Replication Compression ______________________ : YES (lz4)
    Contexts (index all active and archived metrics) ___________ : YES
    Tiering (multiple dbs with different metrics resolution) ___ : YES (5)
    Machine Learning ___________________________________________ : YES
Database Engines:
    dbengine ___________________________________________________ : YES
    alloc ______________________________________________________ : YES
    ram ________________________________________________________ : YES
    map ________________________________________________________ : YES
    save _______________________________________________________ : YES
    none _______________________________________________________ : YES
Connectivity Capabilities:
    ACLK (Agent-Cloud Link: MQTT over WebSockets over TLS) _____ : YES
    static (Netdata internal web server) _______________________ : YES
    h2o (web server) ___________________________________________ : NO
    WebRTC (experimental) ______________________________________ : NO
    Native HTTPS (TLS Support) _________________________________ : YES
    TLS Host Verification ______________________________________ : YES
Libraries:
    LZ4 (extremely fast lossless compression algorithm) ________ : YES
    zlib (lossless data-compression library) ___________________ : YES
    Judy (high-performance dynamic arrays and hashtables) ______ : YES (bundled)
    dlib (robust machine learning toolkit) _____________________ : YES (bundled)
    protobuf (platform-neutral data serialization protocol) ____ : YES (bundled)
    OpenSSL (cryptography) _____________________________________ : YES
    libdatachannel (stand-alone WebRTC data channels) __________ : NO
    JSON-C (lightweight JSON manipulation) _____________________ : YES
    libcap (Linux capabilities system operations) ______________ : NO
    libcrypto (cryptographic functions) ________________________ : YES
    libm (mathematical functions) ______________________________ : YES
    jemalloc ___________________________________________________ : NO
    TCMalloc ___________________________________________________ : NO
Plugins:
    apps (monitor processes) ___________________________________ : YES
    cgroups (monitor containers and VMs) _______________________ : NO
    cgroup-network (associate interfaces to CGROUPS) ___________ : NO
    proc (monitor Linux systems) _______________________________ : NO
    tc (monitor Linux network QoS) _____________________________ : NO
    diskspace (monitor Linux mount points) _____________________ : NO
    freebsd (monitor FreeBSD systems) __________________________ : YES
    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) _________________________ : NO
    cups (monitor printers and print jobs) _____________________ : YES
    ebpf (monitor system calls) ________________________________ : NO
    freeipmi (monitor enterprise server H/W) ___________________ : NO
    nfacct (gather netfilter accounting) _______________________ : NO
    perf (collect kernel performance events) ___________________ : NO
    slabinfo (monitor kernel object caching) ___________________ : NO
    Xen ________________________________________________________ : NO
    Xen VBD Error Tracking _____________________________________ : NO
Exporters:
    AWS Kinesis ________________________________________________ : NO
    GCP PubSub _________________________________________________ : NO
    MongoDB ____________________________________________________ : NO
    Prometheus (OpenMetrics) Exporter __________________________ : YES
    Prometheus Remote Write ____________________________________ : NO
    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

@rsyncOSX rsyncOSX added bug needs triage Issues which need to be manually labelled labels Nov 30, 2023
@Ferroin Ferroin added area/packaging Packaging and operating systems support os/bsd bsd os related issues and removed needs triage Issues which need to be manually labelled labels Dec 1, 2023
@ilyam8
Copy link
Member

ilyam8 commented Dec 6, 2023

Hey, @rsyncOSX, thanks for reporting! Fixed in #16548.

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 os/bsd bsd os related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants