-
-
Notifications
You must be signed in to change notification settings - Fork 126
Error when running 'gravity-sync auto' #444
Comments
If it helps... This is the system response to trying to run 'push':
And this is the response to 'auto':
|
For anyone else who come across this issue in the future, it seems the Pihole Docker container can not use systemd, which gravity-sync uses to run 'auto'. My solution was to run a cron job on the Docker container every 6hrs with the command 'gravity-sync push' to sync with my bare metal Pihole. |
You shouldn't be installing Gravity Sync inside of the Pi-hole container, but directly on the container host, which it then has logic to manage the container operations. Otherwise whenever you restart/update the image everything about it will be overwritten. |
So you're saying, if I have a Pihole Docker container on a Linux host, Gravity Sync should be installed on the Linux host? Not the Pihole container? |
Yes |
Thank you, I'll try that. |
Just wanted to say thanks again, this absolutely worked. Appreciate your help. |
Looking for advice on how to get 'gravity-sync auto' to work in Pihole Docker instance. I can get 'gravity-sync push' to work but 'auto' throws back 'System has not been booted with systemd as init system (PID 1). Can't operate.' And that's after I've already installed systemd.
Here's my basic setup:
Pihole Docker (Openmediavault (Portainer (Pihole + macvlan))) = Primary 192.168.86.222
Pihole Raspi (bare metal) = Secondary 192.168.86.154
Here is my Docker Compose YAML:
I'm able to install Gravity Sync on the raspi pretty easily using this guide, but installing in the Docker Pihole requires a whole process that involves doing a 'docker exec' into the container and installing the OpenSSH client and systemd, but it eventually worked. I got Gravity Sync to successfully install but I don't want to have to re-do this process everytime I restart the container (suggestions on how to avoid this are welcome).
Per the above guide, I was able to modify the gravity-sync.conf files on each instance as below. I'm not totally confident I've done everything correctly, so these honestly might be my main issue.
Raspi Pihole gravity-sync.conf:
Docker Pihole gravity-sync.conf:
If someone can share how they were able to get this to work or point out what I'm doing wrong, I would be eternally grateful. Thanks in advance =)
The text was updated successfully, but these errors were encountered: