Bug#919457: [kthresher] cron job ERROR: No argument used

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#919457: [kthresher] cron job ERROR: No argument used

Leandro Penz-2
Package: kthresher
Version: 1.3.1-2
Severity: important

--- Please enter the report below this line. ---

Cron job output received by email:
/etc/cron.daily/kthresher:
ERROR: No argument used.
usage: kthresher [-h] [-c FILE] [-d] [-H] [-k [N]] [-p] [-s] [-v] [-V]

Purge Unused Kernels.

optional arguments:
  -h, --help            show this help message and exit
  -c FILE, --config FILE
                        Config file, default is /etc/kthresher.conf
  -d, --dry-run         List unused kernel images available to purge(dry run).
                        Is always verbose.
  -H, --headers         Include the search for kernel headers.
  -k [N], --keep [N]    Number of kernels to keep, default 1.
  -p, --purge           Purge Unused Kernels.
  -s, --show-autoremoval
                        Show kernel packages available for autoremoval.
  -v, --verbose         Be verbose.
  -V, --version         Print version.
run-parts: /etc/cron.daily/kthresher exited with return code 1

Package was just installed. Looks like there's something missing in the cron job.

--- System information. ---
Architecture:
Kernel:       Linux 4.19.0-1-amd64

Debian Release: buster/sid
  520 testing         ftp.debian.org
  510 stable          security.debian.org
  510 stable          repository.spotify.com
  510 stable          ftp.debian.org
  510 stable          dl.google.com
  500 stretch         packagecloud.io
  500 jessie          package.perforce.com
  500 jessie          linux.dropbox.com
  150 unstable        ftp.debian.org
  120 experimental    ftp.debian.org

--- Package information. ---
Depends                   (Version) | Installed
===================================-+-===========
python-apt                          | 1.7.0
python-pkg-resources                | 40.6.2-1
python:any                 (<< 2.8) |
python:any                (>= 2.7~) |


Package's Recommends field is empty.

Package's Suggests field is empty.
Reply | Threaded
Open this post in threaded view
|

Bug#919457: [kthresher] cron job ERROR: No argument used

Darshaka Pathirana-2
Hi Leandro,

On 1/16/19 10:19 AM, Leandro Penz wrote:

> Package: kthresher
> Version: 1.3.1-2
> Severity: important
>
> --- Please enter the report below this line. ---
>
> Cron job output received by email:
> /etc/cron.daily/kthresher:
> ERROR: No argument used.
> usage: kthresher [-h] [-c FILE] [-d] [-H] [-k [N]] [-p] [-s] [-v] [-V]
>
> Purge Unused Kernels.
>
> optional arguments:
>   -h, --help            show this help message and exit
>   -c FILE, --config FILE
>                         Config file, default is /etc/kthresher.conf
>   -d, --dry-run         List unused kernel images available to
> purge(dry run).
>                         Is always verbose.
>   -H, --headers         Include the search for kernel headers.
>   -k [N], --keep [N]    Number of kernels to keep, default 1.
>   -p, --purge           Purge Unused Kernels.
>   -s, --show-autoremoval
>                         Show kernel packages available for autoremoval.
>   -v, --verbose         Be verbose.
>   -V, --version         Print version.
> run-parts: /etc/cron.daily/kthresher exited with return code 1
>
> Package was just installed. Looks like there's something missing in
> the cron job.
Thank you for your feedback.

I am in contact with upstream and we are talking about how the default
behavior should look like and he is currently working on a solution
for this.

Apart from that, the usage description looks like every argument is
optional, so kthresher should at least do "something" without an
argument or the usage description should be updated to reflect that.

Regards,
 - Darsha


signature.asc (849 bytes) Download Attachment