macmpi / volumio-plugins

1 stars 2 forks source link

Fails to install #2

Closed arjenpdevries closed 6 years ago

arjenpdevries commented 6 years ago

Relevant portion from log:

2017-12-28T19:58:22.740Z - info: Executing install.sh
2017-12-28T19:58:24.450Z - info: Install script return the error Error: Command failed: echo volumio | sudo -S sh /data/plugins/system_controller/backup_restore/install.sh > /tmp/installog
[sudo] password for volumio: Sorry, try again.
[sudo] password for volumio: 
sudo: 1 incorrect password attempt

2017-12-28T19:58:24.454Z - info: An error occurred installing the plugin. Rolling back config
2017-12-28T19:58:24.454Z - info: Plugin folders cleanup

Volumio version 2.348 (Dec 22nd).

arjenpdevries commented 6 years ago

PS: I added /bin/sh to the volumio NOPASSWD: line in /etc/sudoers (using visudo), which fixes the install issue.

macmpi commented 6 years ago

did you change volumio account password?

arjenpdevries commented 6 years ago

Yes. I am not sure it is a plugin issue - could be something to fix in the Volumio image. But it is clear that without listing /bin/sh in the sudoers file, this does not work. (Maybe adding user volumio to the sudo group also would have solved it?)

macmpi commented 6 years ago

You can expect many sorts of weird problems if you change that password: Volumio dev may allow such change in the future, but until then it is definitely not recommended...