Closed macmpi closed 7 years ago
Actually it seemed that /data/configuration/miscellanea/gpio-buttons/config.json
was empty and enclosing folder was root:root
Something wrong probably happened in the install process.
install.sh
is run as root now, so this creates issues as config can not be saved anymore.
You would need to chown volumio:volumio
/data/configuration/miscellanea/gpio-buttons
and /data/configuration/miscellanea/gpio-buttons/config.json
Thanks for the pointers, looking at it now
Should be fixed in c45ad83. Could not reproduce crash but did notice permission problems - added chown in install script. Can you confirm it no longer crashes?
Yes fixes it.
I think if you had pre-existing config files, you would not see the bug, as they are not cleared with uninstall.
Indeed, you may want to have an uninstall.sh
that removes configuration folder on script uninstall for complete cleanup.
Hi,
Installed latest gpio-buttons on rpi0 running Volumio 2.016. When editing settings, Volumio fails and restarts, as per below:
Thought config.json may not have proper rights as error message suggests, indeed:
-rwxr-xr-x 1 volumio volumio 796 Nov 15 17:11 config.json
but chmoding it 777 did not fix the issue. Thanks for any tip.