gravity-sync icon indicating copy to clipboard operation
gravity-sync copied to clipboard

Sync does not work on Alpine

Open gravufo opened this issue 1 year ago โ€ข 3 comments

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!

gravufo avatar Aug 31 '22 14:08 gravufo

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...

gravufo avatar Aug 31 '22 16:08 gravufo

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...

gravufo avatar Aug 31 '22 21:08 gravufo

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?

appuchias avatar Oct 19 '22 20:10 appuchias