12-23-2018, 06:29 PM
in may you gave me the hint :
in the home directory of user "pi" you'll find the script srestart.sh. It restarts moOde including mpd.
when I try this I am getting lots of root Password requests and authorization errors...
Is it possible the I have switched some tasks to run with the wrong user (root instead of pi?)
how to fix this?
pi@moode:~ $ ./srestart.sh
worker.php: no process found
watchdog.sh: no process found
rm: remove write-protected regular file '/run/worker.pid'? yes
rm: cannot remove '/run/worker.pid': Permission denied
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'php7.0-fpm.service'.
Authenticating as: root
Password: Failed to restart php7.0-fpm.service: Method call timed out
See system logs and 'systemctl status php7.0-fpm.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'memcached.service'.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to restart memcached.service: Access denied
See system logs and 'systemctl status memcached.service' for details.
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'nginx.service'.
Authenticating as: root
Password: Failed to restart nginx.service: Connection timed out
See system logs and 'systemctl status nginx.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to stop 'mpd.service'.
Authenticating as: root
in the home directory of user "pi" you'll find the script srestart.sh. It restarts moOde including mpd.
when I try this I am getting lots of root Password requests and authorization errors...
Is it possible the I have switched some tasks to run with the wrong user (root instead of pi?)
how to fix this?
pi@moode:~ $ ./srestart.sh
worker.php: no process found
watchdog.sh: no process found
rm: remove write-protected regular file '/run/worker.pid'? yes
rm: cannot remove '/run/worker.pid': Permission denied
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'php7.0-fpm.service'.
Authenticating as: root
Password: Failed to restart php7.0-fpm.service: Method call timed out
See system logs and 'systemctl status php7.0-fpm.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'memcached.service'.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to restart memcached.service: Access denied
See system logs and 'systemctl status memcached.service' for details.
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'nginx.service'.
Authenticating as: root
Password: Failed to restart nginx.service: Connection timed out
See system logs and 'systemctl status nginx.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to stop 'mpd.service'.
Authenticating as: root