Hi Richard Strange!
Can you try to copy cron-apt and comment this: if [ -t 0 ]; then RUNIMMEDIATELY="yes" fi And then run manually. bash -x your-cron-apt-copy It would help to understand what happens. // Ola On Mon, 23 Jan 2023 at 23:30, Richard Rosner <rros...@fsmuw.rwth-aachen.de> wrote: > Hi, > sleep 456 and sleep 1200 work without any problems. Also, I don't have any > special kernel. Currently, Output of uname -a is "Linux ts 6.1.0-1-amd64 #1 > SMP PREEMPT_DYNAMIC Debian 6.1.4-1 (2023-01-07) x86_64 GNU/Linux". I don't > even have any other repository active other than the typical Debian ones > (testing, testing-updates, testing-backports, testing-security). > > Also, I'm noticing cron-apt becoming less reliable in the last weeks (I > actually wanted to report this before Christmas, but something must have > went wrong so I only got the email, but it probably was never sent to the > bugreport mailing list). It used to reliably send mails every day at which > it finds any updates. But in the last weeks, it mostly doesn't do that > anymore. The log in journalctl/syslog always shows the same text (only > difference in the checksum and so on). RUNSLEEP has been commented out for > weeks now. > > Richard > > Am Montag, 23. Januar 2023 22:10 CET, schrieb Ola Lundqvist < > o...@inguza.com>: > > > Hi > > When you run cron-apt from a terminal RUNSLEEP is not used. This is why it > works when running manually. > > Please try running the following in a command > > sleep 456 > > or any large number for sleep. > > Do you have some special kernel? The kernel should not give that problem. > > cron-apt do not do anything magic. It just executes sleep > > It could also be that it is not the sleep command itself. It could be the > random number generation done a few lines earlier in that script. > > // Ola > > On Wed, 18 Jan 2023 at 15:12, Richard Rosner <rros...@fsmuw.rwth-aachen.de> > wrote: > >> Package: cron-apt >> Version: 0.13.0.1 >> Severity: important >> X-Debbugs-Cc: sub...@bugs.debian.org >> >> Dear Maintainer, >> when running cron-apt as shipped it works normal, running at 4 am and >> sending an email when anything can be updated. But when adding the >> recommended RUNSLEEP variable to the config, the only thing that happens is >> throwing a kernel error at 4 am: >> >> 2022-12-19T04:00:01.425628+01:00 ts CRON[75874]: (root) CMD (test -x >> /usr/sbin/cron-apt && /usr/sbin/cron-apt) >> 2022-12-19T04:00:01.468596+01:00 ts kernel: [276052.628108] traps: >> cksum[75885] trap invalid opcode ip:562d9fe03cf5 sp:7ffd9b53fe20 error:0 in >> cksum[562d9fded000+17000] >> 2022-12-19T04:00:02.525060+01:00 ts sSMTP[75887]: Sent mail for >> r...@ts.domain.de (221 mailserver.de) uid=0 username=root outbytes=691 >> >> Even though it says a mail is sent, it's not received. Since cron-apt >> clearly doesn't run at all, that might be the reason. Running cron-apt >> manually with RUNSLEEP set with "cron-apt -s" works without problems. >> >> >> -- System Information: >> Debian Release: bookworm/sid >> APT prefers testing >> APT policy: (500, 'testing') >> Architecture: amd64 (x86_64) >> >> Kernel: Linux 6.0.0-6-amd64 (SMP w/4 CPU threads; PREEMPT) >> Kernel taint flags: TAINT_WARN >> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), >> LANGUAGE=en_US:en >> Shell: /bin/sh linked to /usr/bin/dash >> Init: systemd (via /run/systemd/system) >> LSM: AppArmor: enabled >> >> Versions of packages cron-apt depends on: >> ii apt 2.5.4 >> >> Versions of packages cron-apt recommends: >> ii cron [cron-daemon] 3.0pl1-156 >> ii liblockfile1 1.17-1+b1 >> ii ssmtp [mail-transport-agent] 2.64-11 >> >> cron-apt suggests no packages. >> >> -- Configuration Files: >> /etc/cron-apt/config changed: >> APTCOMMAND=/usr/bin/apt-get >> MAILTO="administra...@fsmuw.rwth-aachen.de" >> MAILON=upgrade >> SYSLOGON=always >> #RUNSLEEP=3600 >> >> -- no debconf information > > > > -- > --- Inguza Technology AB --- MSc in Information Technology ---- > | o...@inguza.com o...@debian.org | > | http://inguza.com/ Mobile: +46 (0)70-332 1551 | > --------------------------------------------------------------- > > > -- --- Inguza Technology AB --- MSc in Information Technology ---- | o...@inguza.com o...@debian.org | | http://inguza.com/ Mobile: +46 (0)70-332 1551 | ---------------------------------------------------------------