Please follow the below template, it will help us to help you!
Expected Behaviour:
new install, expect it to run
Actual Behaviour:
[✓] DNS service is running
[✓] Pi-hole blocking is Enabled /opt/pihole/updatecheck.sh: line 56: /usr/bin/pihole-FTL: Operation not permitted
/opt/pihole/updatecheck.sh: line 62: /usr/bin/pihole-FTL: Operation not permitted
[i] The install log is located at: /etc/pihole/install.log
Update Complete!
Current Pi-hole version is v4.0
Current AdminLTE version is v4.0 /opt/pihole/version.sh: line 19: /usr/bin/pihole-FTL: Operation not permitted
Invalid Option! Try 'pihole -v --help' for more information.
Debug Token:
pm3ey5zw4y
reinstalled several times, no effect.
Also have to manaully start dnsmasq
When i manually start pihole-FTL:
root@vps4:~# /etc/init.d/pihole-FTL start
Not running
chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory
sh: 1: /usr/bin/pihole-FTL: Operation not permitted
root@vps4:~#
root@vps4:~# service pihole-FTL status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
Active: active (exited) since Sun 2018-08-19 14:45:18 UTC; 2min 52s ago
Docs: man:systemd-sysv-generator(8)
Aug 19 14:45:18 vps4 systemd[1]: pihole-FTL.service: Failed to set invocation ID on control group /system.slice/pihole-FTL.servi
Aug 19 14:45:18 vps4 systemd[1]: Starting LSB: pihole-FTL daemon...
Aug 19 14:45:18 vps4 pihole-FTL[2432]: Not running
Aug 19 14:45:18 vps4 su[2455]: Successful su for pihole by root
Aug 19 14:45:18 vps4 su[2455]: + ??? root:pihole
Aug 19 14:45:18 vps4 su[2455]: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory
Aug 19 14:45:18 vps4 su[2455]: pam_unix(su:session): session opened for user pihole by (uid=0)
Aug 19 14:45:18 vps4 pihole-FTL[2432]: sh: 1: /usr/bin/pihole-FTL: Operation not permitted
Aug 19 14:45:18 vps4 systemd[1]: Started LSB: pihole-FTL daemon.
lines 1-14/14 (END)
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
Active: active (exited) since Sun 2018-08-19 14:45:18 UTC; 2min 52s ago
Docs: man:systemd-sysv-generator(8)
Aug 19 14:45:18 vps4 systemd[1]: pihole-FTL.service: Failed to set invocation ID on control group /system.slice/pihole-FTL.service, ignoring: Operation not permitted
Aug 19 14:45:18 vps4 systemd[1]: Starting LSB: pihole-FTL daemon...
Aug 19 14:45:18 vps4 pihole-FTL[2432]: Not running
Aug 19 14:45:18 vps4 su[2455]: Successful su for pihole by root
Aug 19 14:45:18 vps4 su[2455]: + ??? root:pihole
Aug 19 14:45:18 vps4 su[2455]: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory
Aug 19 14:45:18 vps4 su[2455]: pam_unix(su:session): session opened for user pihole by (uid=0)
Aug 19 14:45:18 vps4 pihole-FTL[2432]: sh: 1: /usr/bin/pihole-FTL: Operation not permitted
Aug 19 14:45:18 vps4 systemd[1]: Started LSB: pihole-FTL daemon.
~
Noticed the same on a 4.0 installing running in a Debian VM. Would run for approx ~24 hours or, then WenUI shows "Lost connection......". Restarting FTL fixes it temporarily.
when i manually start pihole-FTL as root its starting normally
its some user rights thing i think?
i now see this:
> ● pihole-FTL.service - LSB: pihole-FTL daemon
> Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
> Active: active (exited) since Sun 2018-08-19 16:49:24 UTC; 15min ago
> Docs: man:systemd-sysv-generator(8)
> Process: 183 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
> CGroup: /system.slice/pihole-FTL.service
>
> Aug 19 16:49:23 vps4 systemd[1]: Starting LSB: pihole-FTL daemon...
> Aug 19 16:49:23 vps4 pihole-FTL[183]: Not running
> Aug 19 16:49:24 vps4 su[267]: Successful su for pihole by root
> Aug 19 16:49:24 vps4 su[267]: + ??? root:pihole
> Aug 19 16:49:24 vps4 su[267]: pam_unix(su:session): session opened for user pihole by (uid=0)
> Aug 19 16:49:24 vps4 pihole-FTL[183]: sh: 1: /usr/bin/pihole-FTL: Operation not permitted
> Aug 19 16:49:24 vps4 systemd[1]: Started LSB: pihole-FTL daemon.
> Aug 19 16:49:29 vps4 systemd[1]: pihole-FTL.service: Failed to set invocation ID on control group /system.slice/pihole-FTL.service, ignoring: Operation not permitted
> root@vps4:/usr/bin#
[✗] DNS service is NOT running
/opt/pihole/updatecheck.sh: line 56: /usr/bin/pihole-FTL: Operation not permitted
/opt/pihole/updatecheck.sh: line 62: /usr/bin/pihole-FTL: Operation not permitted
[i] The install log is located at: /etc/pihole/install.log
Update Complete!
Current Pi-hole version is v4.0
Current AdminLTE version is v4.0
/opt/pihole/version.sh: line 19: /usr/bin/pihole-FTL: Operation not permitted
Invalid Option! Try 'pihole -v --help' for more information.
root@vps4:~#
@sander_kerkhoff I know, I forgot to point out that I wanted to explicitly ask @cybrnook2002 about the software he's using. Unfortunately, he deleted his post already...
Anyway, I assume my proposed fix should be working for both of you. Please tell me if you see any issues (or if it works, of course ).
No worries, I just didn't want to give the impression I am trying to high jack the thread. I am a debian 9 based VM running on Unraid. In my case, pihole starts and runs for some time, however eventually FTL comes down.
When I restart FTL, my log looks similar. I am setting up a fresh VM now, and will install based on your branch with the above fix.
If I want to download the latest basic-install.sh from your branch "pihole-FTL-no-caps", I assume I can just modify a few lines to have the install script do it's install directly from this branch. Instead of having to install 4.0, then switching branches?
pihole@pi-hole:/etc/init.d$ sudo service pihole-FTL restart
Warning: pihole-FTL.service changed on disk. Run 'systemctl daemon-reload' to reload units.
pihole@pi-hole:/etc/init.d$ sudo service pihole-FTL restart
pihole@pi-hole:/etc/init.d$ sudo service pihole-FTL status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
Active: active (exited) since Sun 2018-08-19 15:19:13 EDT; 8s ago
Docs: man:systemd-sysv-generator(8)
Process: 11428 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
Process: 11459 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
Aug 19 15:19:13 pi-hole systemd[1]: Starting LSB: pihole-FTL daemon...
Aug 19 15:19:13 pi-hole pihole-FTL[11459]: Not running
Aug 19 15:19:13 pi-hole pihole-FTL[11459]: chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory
Aug 19 15:19:13 pi-hole su[11502]: Successful su for pihole by root
Aug 19 15:19:13 pi-hole su[11502]: + ??? root:pihole
Aug 19 15:19:13 pi-hole su[11502]: pam_unix(su:session): session opened for user pihole by (uid=0)
Aug 19 15:19:13 pi-hole pihole-FTL[11459]: FTL started!
Aug 19 15:19:13 pi-hole systemd[1]: Started LSB: pihole-FTL daemon.
root@vps4:~# sudo service pihole-FTL restart
root@vps4:~# sudo service pihole-FTL status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
Active: active (exited) since Mon 2018-08-20 10:03:12 UTC; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 19514 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUC
Process: 19520 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/S
Aug 20 10:03:11 vps4 systemd[1]: pihole-FTL.service: Failed to set invocation ID
Aug 20 10:03:11 vps4 systemd[1]: Starting LSB: pihole-FTL daemon...
Aug 20 10:03:11 vps4 pihole-FTL[19520]: Not running
Aug 20 10:03:11 vps4 su[19543]: Successful su for pihole by root
Aug 20 10:03:11 vps4 su[19543]: + ??? root:pihole
Aug 20 10:03:11 vps4 su[19543]: pam_unix(su:session): session opened for user pi
Aug 20 10:03:12 vps4 pihole-FTL[19520]: sh: 1: /usr/bin/pihole-FTL: Operation no
Aug 20 10:03:12 vps4 systemd[1]: Started LSB: pihole-FTL daemon.
lines 1-15/15 (END)
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
Active: active (exited) since Mon 2018-08-20 10:03:12 UTC; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 19514 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
Process: 19520 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
Aug 20 10:03:11 vps4 systemd[1]: pihole-FTL.service: Failed to set invocation ID on control group /system.slice/pihole-FTL.service, ignoring: Ope
Aug 20 10:03:11 vps4 systemd[1]: Starting LSB: pihole-FTL daemon...
Aug 20 10:03:11 vps4 pihole-FTL[19520]: Not running
Aug 20 10:03:11 vps4 su[19543]: Successful su for pihole by root
Aug 20 10:03:11 vps4 su[19543]: + ??? root:pihole
Aug 20 10:03:11 vps4 su[19543]: pam_unix(su:session): session opened for user pihole by (uid=0)
Aug 20 10:03:12 vps4 pihole-FTL[19520]: sh: 1: /usr/bin/pihole-FTL: Operation not permitted
Aug 20 10:03:12 vps4 systemd[1]: Started LSB: pihole-FTL daemon.
when i stop it:
Aug 20 10:06:00 vps4 pihole-FTL[19712]: Not running
Aug 20 10:06:00 vps4 su[19751]: Successful su for pihole by root
Aug 20 10:06:00 vps4 su[19751]: + ??? root:pihole
Aug 20 10:06:00 vps4 su[19751]: pam_unix(su:session): session opened for user pihole by (uid=0)
Aug 20 10:06:00 vps4 pihole-FTL[19712]: sh: 1: /usr/bin/pihole-FTL: Operation not permitted
Aug 20 10:06:00 vps4 systemd[1]: Started LSB: pihole-FTL daemon.
Aug 20 10:07:00 vps4 systemd[1]: pihole-FTL.service: Failed to set invocation ID on control group /system.slice/pihole-FTL.service, ignoring: Operation not permitted
Aug 20 10:07:00 vps4 systemd[1]: Stopping LSB: pihole-FTL daemon...
Aug 20 10:07:00 vps4 pihole-FTL[19812]: Not running
Aug 20 10:07:00 vps4 systemd[1]: Stopped LSB: pihole-FTL daemon.
even starting the binary as root doesn't work:
root@vps4:~# sudo /usr/bin/pihole-FTL
sudo: unable to execute /usr/bin/pihole-FTL: Operation not permitted