It would appear as if cron-apt is not working on my system.

    • OMV 4.x
    • It would appear as if cron-apt is not working on my system.

      Something I've noticed over the past couple of months is that cron-apt is not working on my primary NAS (Supermicro X9SCL-F with Core i3-2100). Searching the forums seems to indicate that this is highly unusual, so I started looking deeper, and I'm not finding much of anything.

      By "not running" I mean "I ran it manually four days ago and updated stuff then, and when I look at Updates there's nothing listed, but if I click "Check" then it finds packages to update." It's actually not doing anything at all as far as I can tell, despite packages being available. From the limited logs that cron provides by default, I don't see any errors, and I do see it running as a cron job, but nothing comes of it.

      Anyone seen anything like this before? This is on OMV 4.1.9.
    • Probably the strangest thing is that there's nothing in there. File was created April 23rd, and is completely empty. Last file date before that is April 16th for log.1.gz, and when I open that up it's from updates to Perl.

      I'm not 100% positive, but I think this may have been right around when I upgraded from OMV3 to OMV4. I only mention it because there's tons of things that change in there that could've broken something.

      I did try sudo apt-get install --reinstall cron-apt and it doesn't seem to have done anything useful; similarly I tried running /usr/sbin/cron-apt on the command line and nothing happens, nor are there log entries in syslog.

      I'm kind of stumped.
    • cron-apt won't output anything when run. It should log though. What is the output of: grep -v "^#" /etc/cron-apt/config
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      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!
    • Yeah, I wasn't sure if cron-apt would output anything on the command line, but I figured worth a try. Output below, email masked to protect the guilty:

      Source Code

      1. wolfstar@moonhawk:~$ grep -v "^#" /etc/cron-apt/config
      2. MAILON="upgrade"
      3. SYSLOGON="always"
      4. OPTIONS="-o Acquire::http::Dl-Limit=25"
      5. MAILTO="xxxxxxxxxxx@yyyyyyy.com"
      6. wolfstar@moonhawk:~$
      Display All
    • I'm not sure what else could be wrong. All of your setup is the same as mine. Permissions of the log directory?? Here are mine:

      Display Spoiler

      aaron@omv4dev:/tmp$ ls -al /var/log/cron-apt
      total 20
      drwxr-xr-x 2 root root 140 Aug 19 00:05 .
      drwxr-xr-x 18 root root 1380 Aug 25 00:08 ..
      -rw-r----- 1 root adm 3068 Aug 25 09:38 log
      -rw-r----- 1 root adm 397 Aug 18 04:35 log.1.gz
      -rw-r----- 1 root adm 461 Aug 12 04:06 log.2.gz
      -rw-r----- 1 root adm 802 Aug 4 04:46 log.3.gz
      -rw-r----- 1 root adm 899 Jul 29 04:09 log.4.gz
      aaron@omv4dev:/tmp$ ls -dl /var/log/cron-apt
      drwxr-xr-x 2 root root 140 Aug 19 00:05 /var/log/cron-apt

      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      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!
    • I am having a similar problem. /var/log/cron-apt/log indicates proper operation, but I never get any notifications when there are software updates available.

      Notifications for Software Updates is enabled (as are a few others which do work). Sending a Test Email from the Notifications page works. I am just never notified via email when there are pending software updates.
      OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380
    • wolffstarr wrote:

      Going to try and do a purge and then reinstall, see if that makes a difference.
      Purging cron-apt will uninstall OMV =O
      omv 4.1.14 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      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!