Error during daily cron job

  • Hello


    I an getting there following error and am unsure how to correct it.


    /etc/cron.daily/logrotate:error: error creating output file /var/log/nginx/owncloud_access.log.1.gz: File existsrun-parts: /etc/cron.daily/logrotate exited with return code 1


    I gather from the error that if I delete the file in question, the next time the cron job is run it will recreate the file. The thing i am not sure of is how to find and delete the offending file.


    Any suggestions would be appreciated


    Thanks

    OMV 4.1.8.2-1 (Arrakis)
    Kernel Linux 4.9.0-0.bpo.4-amd64
    AMD Athlon(tm)II X4 645 Processor
    Biostar N68SB-M3S_100521 Motherboard
    8Gb DDR3 Ram
    4 2Tb SATA Hard Drives in RAID 5 total storage available 5.41Tb
    320Gb SATA HD for OS
    PCI-Express 4 port SATA III Controller Card
    Intel 1 Gb NIC

    • Offizieller Beitrag

    Yep, just delete it. As root: rm -f /var/log/nginx/owncloud_access.log.1.gz

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Yep, just delete it. As root: rm -f /var/log/nginx/owncloud_access.log.1.gz

    Thanks
    I just did now the wait. Is there a way to force the cron job now?
    Sorry for the questions but my cmd line skills are not what they should be for dealing with linux

    OMV 4.1.8.2-1 (Arrakis)
    Kernel Linux 4.9.0-0.bpo.4-amd64
    AMD Athlon(tm)II X4 645 Processor
    Biostar N68SB-M3S_100521 Motherboard
    8Gb DDR3 Ram
    4 2Tb SATA Hard Drives in RAID 5 total storage available 5.41Tb
    320Gb SATA HD for OS
    PCI-Express 4 port SATA III Controller Card
    Intel 1 Gb NIC

    • Offizieller Beitrag

    sudo logrotate -f /etc/logrotate.d/nginx

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks again
    All fixed
    8o

    OMV 4.1.8.2-1 (Arrakis)
    Kernel Linux 4.9.0-0.bpo.4-amd64
    AMD Athlon(tm)II X4 645 Processor
    Biostar N68SB-M3S_100521 Motherboard
    8Gb DDR3 Ram
    4 2Tb SATA Hard Drives in RAID 5 total storage available 5.41Tb
    320Gb SATA HD for OS
    PCI-Express 4 port SATA III Controller Card
    Intel 1 Gb NIC

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!