Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

service command not found #87

Closed
mabs67 opened this issue Aug 14, 2020 · 7 comments
Closed

service command not found #87

mabs67 opened this issue Aug 14, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@mabs67
Copy link

mabs67 commented Aug 14, 2020

Describe the Issue
while running ./gravity-sync.sh smart command service was not found, but it is available as that user.
"Kommando nicht gefunden" means "command not found"

Screenshots
[ INFO ] Isolating Regeneration Pathways
[ OK ] Updating FTLDNS Configuration
[ OK ] Reloading FTLDNS Services
[ INFO ] Inverting Tachyon Pulses
[ OK ] Updating Remote FTLDNS Configuration
[ EXEC ] Reloading Remote FTLDNS Services [✗] /usr/local/bin/pihole: Zeile 127: service: Kommando nicht gefunden.
[ FAIL ] Reloading Remote FTLDNS Services
osmc@osmc-rpi3:~/gravity-sync$

Configuration:

  • OS for Primary/Secondary: Debian 9.3 (OSMC)
  • Platform for Primary/Secondary: Raspberry Pi 2 and 3 but same OS installation
  • SSH Server/Client: OpenSSH
  • SSH Authentication: Keypair
  • Gravity Sync Version: 2.2.0 (just installed)
  • Pi-hole Versions: v5.1.2 (just installed)

Additional Context
I'm not sure whether the service is actually needed from gravity-sync or from the pihole script

@vmstan
Copy link
Owner

vmstan commented Aug 14, 2020

It looks like it cannot find the pihole binary on the remote host, in the directory /usr/local/bin/. Does that file exist on the remote host?

@mabs67
Copy link
Author

mabs67 commented Aug 14, 2020

Yes the pihole file is in /usr/local/bin in both pi-hole servers. I was also running the gravity-sync using bash -x but could not really see where the service command is called there

@mabs67
Copy link
Author

mabs67 commented Aug 14, 2020

I found the (partly) the issue, I needed to change service in line 120 in /usr/local/bin/pihole to /usr/sbin/service, no idea why it does not takes the $PATH settings, since /usr/sbin is in for the user and root.
So for sure it is not a gravity-sync issue as such.

@vmstan
Copy link
Owner

vmstan commented Aug 14, 2020

That's super strange, are both the Pihole's recently installs, or just the secondary?

@mabs67
Copy link
Author

mabs67 commented Aug 14, 2020

Both.

Before I had also two piholes with keepalived in docker on rockpro64 boxes, but since 5.X (not 100%sure). The web interface is not really working, even without docker on rockpro64. Then I decided to install the two on my OSMC based raspberry Pi2 and and Pi3 ones. There is works now nicely. Except for this issue.

@vmstan
Copy link
Owner

vmstan commented Aug 17, 2020

Would it be helpful if you could specify the binary location of the primary Pihole as part of the advanced configuration?

@vmstan vmstan added the enhancement New feature or request label Aug 17, 2020
@vmstan
Copy link
Owner

vmstan commented Aug 18, 2020

Fixed in 2.2.1

@vmstan vmstan closed this as completed Aug 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants