gravity-sync
gravity-sync copied to clipboard
Sync does not work on Alpine
I tried running a gravity sync pull from Alpine and here is what I get:
โ Performing backup of local Gravity Database
โ Performing backup of remote Gravity Databasetimeout: unrecognized option: preserve-status
BusyBox v1.35.0 (2022-08-01 15:14:44 UTC) multi-call binary.
Usage: timeout [-s SIG] [-k KILL_SECS] SECS PROG ARGS
Run PROG. Send SIG to it if it is not gone in SECS seconds.
Default SIG: TERM.If it still exists in KILL_SECS seconds, send KILL.
โ Performing backup of remote Gravity Database
Is it possible to modify the parameters sent to timeout to support busybox's version? Or is there a workaround I could do on my side to make it work?
Thanks!
Interesting thing, I did a push from the other machine and it worked. Either only the pull is broken, or my setup is not exactly the same on both machines, but they're both on Alpine 3.16...
New info: gravity-sync auto does not work either since it is expecting to have systemd.
$ gravity-sync auto
โ Initializing Gravity Sync (4.0.4)
โ Loading gravity-sync.conf
โ Detecting local Pi-hole installation
โ Detecting remote Pi-hole installation
โ Gravity Sync remote peer is configured
โ Evaluating arguments: AUTOMATE
โ Customizing service file username
โ Customizing service file executable path
โ Randomizing service timers
/usr/local/bin/gravity-sync: line 2265: systemctl: command not found
โ Moving systemd timer into placecp: cannot create regular file '/etc/systemd/system': No such file or directory
โ Moving systemd timer into place
This is kind of unfortunate since version 3.x was working just fine on alpine...
Found this too when trying to install it today:
โ Gravity Sync Installation Script
ยป Validating User Permissions
โ Sudo utility detected
[sudo] password for <user>:
โ appu has sudo powers
ยป Validating Install of Required Components
โ SSH has been detected
โ GIT has been detected
โ RSYNC has been detected
โ Systemctl not detected on this system
! This is required to automate and monitor Pi-hole replication
ยป Performing Warp Core Diagnostics
โ Docker installation has been detected
โ Docker container of Pi-hole has been detected
ยป Status Report
โ 1 critical issue(s) prevent successful deployment
Please manually compensate for the failures and re-execute
ยป Exiting Gravity Sync Installer
I had previous versions working well a few months ago. I'm using Alpine Linux 3.15.6 with Pi-Hole running on docker.
As it seems related to timers and automating replications, could cron be an alternative for systems without systemd?