ArchiveTeam / seesaw-kit

Making a reusable toolkit for writing seesaw scripts
Other
69 stars 30 forks source link

Scheduled reboot fails due to missing shutdown binary #150

Open markozajc opened 7 months ago

markozajc commented 7 months ago

System information

Host distribution: Debian Trixie Seesaw version: 0.10.3 Python version: 3.9.18 (main, Nov 29 2023, 05:59:34) [GCC 12.2.0] Installation method: Docker, image b4becc328563 from atdr.meo.ws/archiveteam/warrior-dockerfile

Expected behaviour

After a week of uptime AT warrior restarts itself.

Actual behaviour

After a week of uptime AT warrior shuts itself down, but does not come back up. Logs show a failed attempt to run shutdown, which might be what causes this.

Logs

-- snip --
2024-02-29 01:26:49,213 - seesaw.warrior - INFO - Running for more than 7 days. Time to schedule a reboot.
2024-02-29 01:26:49,263 - seesaw.warrior - DEBUG - Update warrior hq.
2024-02-29 01:26:49,264 - seesaw.warrior - DEBUG - Warrior ID ''.
2024-02-29 01:26:49,267 - seesaw.warrior - DEBUG - Update project.
2024-02-29 01:26:49,267 - seesaw.warrior - DEBUG - Check project has update telegram
2024-02-29 01:26:49,272 - seesaw.warrior - DEBUG - git fetch
2024-02-29 01:26:49,410 - seesaw.warrior - DEBUG - Select project telegram
2024-02-29 01:26:49,726 - seesaw.warrior - DEBUG - False
2024-02-29 01:34:30,152 - seesaw.warrior - INFO - Runner has finished.
sudo: shutdown: command not found
tech234a commented 7 months ago

Did you include --restart=on-failure in the creation command?

See https://wiki.archiveteam.org/index.php/ArchiveTeam_Warrior#Installing_and_running_with_Docker

markozajc commented 7 months ago

I did, here is my full docker run command:

docker run --detach --name archiveteam-warrior --label=com.centurylinklabs.watchtower.enable=true --restart=on-failure -v /var/cache/warrior-projects:/home/warrior/data/projects -e CONCURRENT_ITEMS=1 -e DOWNLOADER=mzajc -e SELECTED_PROJECT=auto --publish 10084:8001 atdr.meo.ws/archiveteam/warrior-dockerfile