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

Joplin-backup fails to start cron #109

Closed
ilyashupta opened this issue Jan 4, 2025 · 2 comments
Closed

Joplin-backup fails to start cron #109

ilyashupta opened this issue Jan 4, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ilyashupta
Copy link

Container fails with this line in logs:
time="2025-01-04T02:16:21+01:00" level=fatal msg="Failed to fork exec: no such file or directory"

It looks like this line throws it:
exec supercronic -passthrough-logs -quiet "${CRON_CONFIG_FILE}"

If I run manual backup like this docker compose run --rm -it joplin-backup backup - it works successfully, just the cron part is not working when container is being launched from a compose file.

My backup.env file looks like this:

RCLONE_REMOTE_NAME=secret
RCLONE_REMOTE_DIR=secret
CRON=@daily
TIMEZONE=secret
ZIP_PASSWORD=secret
BACKUP_KEEP_DAYS=31
@AdrienPoupa
Copy link
Owner

AdrienPoupa commented Jan 5, 2025

Good catch, thanks for the report! I was able to piece out what happened.

First, this is an upstream bug in supercronic starting from v0.2.33 that prevents it from executing due to paths mismatch.

My backups stopped working from Dec, 9 and that coincides with an automated build here: https://github.com/AdrienPoupa/rclone-backup/actions/runs/12247358086/job/34165041361

The base image changed from Alpine 3.20 to 3.21 (which was released on Dec, 5: https://alpinelinux.org/posts/Alpine-3.21.0-released.html) and that upgraded supercronic from 0.2.29 to 0.2.33, which has the bug.

In rclone-backup, I've now disabled the scheduled publish job so it will only build the latest tag when there's a commit on master, and not overwrite existing tags. I've also changed the base from alpine:latest to rclone/rclone:1.68.2, that still uses Alpine 3.20 and supercronic 0.2.29, I was able to confirm this fixes the bug.

I've published latest and released a new version, hopefully by the time there's a new Rclone release it will use an updated version of supercronic, but there should not be any new automated builds in the meantime.

Can you pull the images again to make sure it works as expected? (docker compose pull && docker compose up -d)

@AdrienPoupa AdrienPoupa self-assigned this Jan 5, 2025
@AdrienPoupa AdrienPoupa added the bug Something isn't working label Jan 5, 2025
@ilyashupta
Copy link
Author

Pulled images and recreated containers - joplin-backup runs fine again. Thank you, really appreciate your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants