Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled reboot fails due to missing shutdown binary #150

Open
markozajc opened this issue Feb 29, 2024 · 2 comments
Open

Scheduled reboot fails due to missing shutdown binary #150

markozajc opened this issue Feb 29, 2024 · 2 comments

Comments

@markozajc
Copy link

markozajc commented Feb 29, 2024

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
Copy link
Member

tech234a commented Mar 1, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants