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 |
 ---------------------------------------------------------------

Reply via email to