No cron-apt since upgrade

    • OMV 4.x
    • Resolved
    • Upgrade 3.x -> 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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 :)
    • omv-mkconf cron-apt should recreate the cron job and the config file. Then there should be output from cron-apt -s.
      omv 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • lu6fer wrote:

      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.

      lu6fer wrote:

      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 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      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)

      Source Code

      1. #apt-get update
      2. Get:1 file:/var/cache/openmediavault/archives InRelease
      3. Ign:1 file:/var/cache/openmediavault/archives InRelease
      4. Get:2 file:/var/cache/openmediavault/archives Release
      5. Ign:2 file:/var/cache/openmediavault/archives Release
      6. Get:3 file:/var/cache/openmediavault/archives Packages
      7. Ign:3 file:/var/cache/openmediavault/archives Packages
      8. ...
      9. Get:3 file:/var/cache/openmediavault/archives Packages
      10. Ign:3 file:/var/cache/openmediavault/archives Packages
      11. ...
      12. Get:3 file:/var/cache/openmediavault/archives Packages
      13. Ign:3 file:/var/cache/openmediavault/archives Packages
      14. ...
      15. Get:3 file:/var/cache/openmediavault/archives Packages
      16. Ign:3 file:/var/cache/openmediavault/archives Packages
      17. ...
      18. Get:3 file:/var/cache/openmediavault/archives Packages
      19. Ign:3 file:/var/cache/openmediavault/archives Packages
      20. ...
      21. Get:3 file:/var/cache/openmediavault/archives Packages [1099 B]
      22. ...
      23. Ign:6 http://ftp.fr.debian.org/debian stretch InRelease
      24. Hit:7 http://security.debian.org stretch/updates InRelease
      25. Hit:8 http://ftp.fr.debian.org/debian stretch-updates InRelease
      26. Hit:9 http://packages.openmediavault.org/public arrakis InRelease
      27. Hit:10 http://ftp.fr.debian.org/debian stretch Release
      28. Hit:12 https://download.docker.com/linux/debian stretch InRelease
      29. Hit:11 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
      30. Hit:13 https://openmediavault.github.io/packages arrakis InRelease
      31. Ign:14 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch InRelease
      32. Ign:15 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch InRelease
      33. Ign:17 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-docker stretch InRelease
      34. Hit:18 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release
      35. Hit:19 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch Release
      36. Hit:22 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-docker stretch Release
      37. Reading package lists... Done
      Display All


      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 :)
    • lu6fer wrote:

      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

      lu6fer wrote:

      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 - github.com/OpenMediaVault/openmediavault/issues
      omv 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!