No cron-apt since upgrade

  • Hi all,
    Since upgrading to 4.x, I do not have any upgrade notifications, by the way, all other notifications works fine.
    So I look to the cron-apt log file and it's empty since 15 january.
    I try to execute cron-apt by my self with the -s option. Nothing more.


    Have you any tips/solutions for me ?
    Thanks :)

    • Offizieller Beitrag

    omv-mkconf cron-apt should recreate the cron job and the config file. Then there should be output from cron-apt -s.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    What is the output of: apt-get update

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • No update needed, but the apt command works fine.


    The strace show that cron-apt exit after mailchanges directory read.
    On an other debian server, the strace con-apt does a lot of more things ;)

    • Offizieller Beitrag

    No update needed, but the apt command works fine.

    I wanted to see the output of apt-get update. I was thinking that something failing there would cause cron-apt to fail.

    The strace show that cron-apt exit after mailchanges directory read.
    On an other debian server, the strace con-apt does a lot of more things

    Why use strace on a shell script? sudo sh -x /usr/sbin/cron-apt
    There aren't many occurrences of the mailchanges variable. So, it should be pretty easy to figure out what is going wrong.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Why use strace on a shell script? sudo sh -x /usr/sbin/cron-aptThere aren't many occurrences of the mailchanges variable. So, it should be pretty easy to figure out what is going wrong.

    Of course, .....


    For the apt-get update (I skip the Translation lines to save chars in post)


    Finally I found what's wrong. I don't know how, but there was a refrain file....
    May be the mkconf could delete this file if exist ?
    Thanks for your time :)

    • Offizieller Beitrag

    I skip the Translation lines to save chars in post)

    If you don't need translations, add Acquire::Languages "none"; to /etc/apt/apt.conf.d/00aptitude


    Finally I found what's wrong. I don't know how, but there was a refrain file....
    May be the mkconf could delete this file if exist ?

    Interesting. I have no idea what would add a refrain file. Just did a quick search and there is no code in OMV that would add it. I can't change it myself but you could file an issue here - https://github.com/OpenMediaVault/openmediavault/issues

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

Jetzt mitmachen!

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