◄ ► | Muuda | Home | Admin | en de fr et | Sign in

#5897 (cron job not running as root after dist-upgrade?)

by Luc Saffre · in Hosting (system administration) · assigned to hannes

Kokkuvõte

cron job reports an error:

/usr/local/lino/shared/env/master/bin/pull.sh: line 49: service: command not found

Children

Kommentaarid

  • 1 aasta, 8 kuud ago by Luc Saffre about #5897 (cron job not running as root after dist-upgrade?) (4 replies) : The AttributeError 'Plugin' object has no attribute 'style' is *still* there, although I installed the repository version of lino_react yesterday. I now guess that the "pip install -U" in the pull.sh script replaces the editable version by the PyPI version.
  • 1 aasta, 8 kuud ago by Luc Saffre about #5897 (cron job not running as root after dist-upgrade?) (2 replies) : Now it works (more precisely it fails with AttributeError: 'Plugin' object has no attribute 'style', which is caused by a simple bug that is already fixed). So it seems that the job *is* running as root, but "service supervisor status" doesn't work any more in the new Debian. It had been kept for ba...
  • 1 aasta, 8 kuud ago by Luc Saffre about #5897 (cron job not running as root after dist-upgrade?) : @hannes had the idea of replacing "service supervisor start" by the newer "systemctl start supervisor" in our pull.sh script. Tomorrow we will see.
  • 1 aasta, 8 kuud ago by Luc Saffre about #5897 (cron job not running as root after dist-upgrade?) : This morning, as expected, same error again. Seems the cron job is NOT running as root even though /etc/cron.d/pull_demos says that it should. Why? @hannes please investigate.
  • 1 aasta, 8 kuud ago by Luc Saffre about #5897 (cron job not running as root after dist-upgrade?) : service mysql status said: Active: failed (Result: oom-kill) since Wed 2025-01-29 13:51:25 UTC; 20h ago
  • 1 aasta, 8 kuud ago by Luc Saffre about #5897 (cron job not running as root after dist-upgrade?) : I said "sudo su" and "/usr/local/bin/pull_demos.sh", and in another terminal "tail -f /var/log/lino/pull_demos.log". Everything seems to work nicely in the beginning (no "service unkonwn command" error as when run in the cron job). But then it failed in "manage.py prep --noinput --keepmedia (using l...
  • 1 aasta, 8 kuud ago by Luc Saffre about #5897 (cron job not running as root after dist-upgrade?) : The job is defined in /etc/cron.d/pull_demos
  • 1 aasta, 8 kuud ago by Luc Saffre about #5897 (cron job not running as root after dist-upgrade?) : The daily cron job fails with this error message: /usr/local/lino/shared/env/master/bin/pull.sh: line 49: service: command not found
    This seems to indicate that it is not running as root. Is this new after the dist-upgrade?
  • 1 aasta, 8 kuud ago by Luc Saffre about #5897 (cron job not running as root after dist-upgrade?) : Created new Ticket #5897 (cron job not running as root after dist-upgrade?).