Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug]: fail on logrotate, permission denied #12520

Closed
rogeriojlle opened this issue Mar 25, 2022 · 2 comments
Closed

[Bug]: fail on logrotate, permission denied #12520

rogeriojlle opened this issue Mar 25, 2022 · 2 comments
Assignees
Labels
area/packaging Packaging and operating systems support bug needs triage Issues which need to be manually labelled

Comments

@rogeriojlle
Copy link

Bug description

10:35 Failed to start Rotate log files. systemd
10:35 logrotate.service: Failed with result 'exit-code'. systemd
10:35 logrotate.service: Main process exited, code=exited, status=1/FAILURE systemd
10:35 error: failed to rename /opt/netdata/var/log/netdata/access.log to /opt/netdata/var/log/netdata/access.log-20220325: Permissão negada logrotate
10:35 Starting Rotate log files...

Expected behavior

no error on logrotate

Steps to reproduce

system logrotate run

Installation method

kickstart-static64.sh

System info

Linux fedora 5.16.16-200.fc35.x86_64 #1 SMP PREEMPT Sat Mar 19 13:52:41 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
/etc/fedora-release:Fedora release 35 (Thirty Five)
/etc/os-release:NAME="Fedora Linux"
/etc/os-release:VERSION="35 (Server Edition)"
/etc/os-release:ID=fedora
/etc/os-release:VERSION_ID=35
/etc/os-release:VERSION_CODENAME=""
/etc/os-release:PLATFORM_ID="platform:f35"
/etc/os-release:PRETTY_NAME="Fedora Linux 35 (Server Edition)"
/etc/os-release:ANSI_COLOR="0;38;2;60;110;180"
/etc/os-release:LOGO=fedora-logo-icon
/etc/os-release:CPE_NAME="cpe:/o:fedoraproject:fedora:35"
/etc/os-release:REDHAT_BUGZILLA_PRODUCT="Fedora"
/etc/os-release:REDHAT_BUGZILLA_PRODUCT_VERSION=35
/etc/os-release:REDHAT_SUPPORT_PRODUCT="Fedora"
/etc/os-release:REDHAT_SUPPORT_PRODUCT_VERSION=35
/etc/os-release:VARIANT="Server Edition"
/etc/os-release:VARIANT_ID=server
/etc/redhat-release:Fedora release 35 (Thirty Five)
/etc/system-release:Fedora release 35 (Thirty Five)

Netdata build info

ersion: netdata v1.33.1-216-g4f98e9d46
Configure options:  '--prefix=/opt/netdata/usr' '--sysconfdir=/opt/netdata/etc' '--localstatedir=/opt/netdata/var' '--libexecdir=/opt/netdata/usr/libexec' '--libdir=/opt/netdata/usr/lib' '--with-zlib' '--with-math' '--with-user=netdata' '--enable-cloud' '--without-bundled-protobuf' '--with-bundled-libJudy' 'CFLAGS=-static -O3 -I/openssl-static/include' 'LDFLAGS=-static -L/openssl-static/lib' 'PKG_CONFIG_PATH=/openssl-static/lib/pkgconfig'
Install type: kickstart-static
    Binary architecture: x86_64
Features:
    dbengine:                   YES
    Native HTTPS:               YES
    Netdata Cloud:              YES 
    ACLK Next Generation:       YES
    ACLK-NG New Cloud Protocol: YES
    ACLK Legacy:                NO
    TLS Host Verification:      YES
    Machine Learning:           YES
    Stream Compression:         YES
Libraries:
    protobuf:                YES (system)
    jemalloc:                NO
    JSON-C:                  YES
    libcap:                  NO
    libcrypto:               YES
    libm:                    YES
    tcalloc:                 NO
    zlib:                    YES
Plugins:
    apps:                    YES
    cgroup Network Tracking: YES
    CUPS:                    NO
    EBPF:                    YES
    IPMI:                    NO
    NFACCT:                  NO
    perf:                    YES
    slabinfo:                YES
    Xen:                     NO
    Xen VBD Error Tracking:  NO
Exporters:
    AWS Kinesis:             NO
    GCP PubSub:              NO
    MongoDB:                 NO
    Prometheus Remote Write: YES

Additional info

No response

@rogeriojlle rogeriojlle added bug needs triage Issues which need to be manually labelled labels Mar 25, 2022
@ilyam8 ilyam8 added the area/packaging Packaging and operating systems support label Mar 25, 2022
@ReifiedException
Copy link
Contributor

# /etc/cron.daily/netdata-updater
Mon Mar 28 12:43:05 PM EEST 2022 : ERROR:  FAILED TO UPDATE NETDATA : You are running this script as user with uid 0. We recommend to run this script as root (user with uid 0)

“Curiouser and curiouser!” Cried Alice

@rogeriojlle
Copy link
Author

rogeriojlle commented Mar 28, 2022

this solved for me

#2794 (comment)

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 needs triage Issues which need to be manually labelled
Projects
None yet
Development

No branches or pull requests

5 participants