Closed CHDAFNI-MSFT closed 4 months ago
(I didn't try to reproduce this) But, are you having permission issues with the config.xml
file (or the folder)?
FAH v8 doesn't work unless the Owner/Group permissions are set to the fah-client
user, like:
Maybe try adding commands to change the file and folder permissions with that install script order before the FAH installation.
Or, change the script order to run the FAH installer first to make the /etc/fah-client/
folder and config.xml
file, then afterwards rewrite the config XML settings to what you want them to be. Where you you might need to stop FAH and restart it with the new config settings at the end with: sudo systemctl restart fah-client
.
Optionally creating config.xml
before installing is the intended means of pre-configuring a new install.
The post install script will try to set owner and permissions. https://github.com/FoldingAtHome/fah-client-bastet/blob/master/install/debian/postinst.in
The pre install script tries to create the user and group.
Try the latest alpha, it's about to go beta anyway: https://foldingathome.org/alpha/
The question is why fah-client
user did not exist when postinst ran (failed at install -d
). Should be created by preinst...
https://github.com/FoldingAtHome/fah-client-bastet/blob/master/install/debian/preinst
Can you purge fah-client and try again?
postinst will only change ownership of /etc/fah-client/config.xml
when it does not exist (importing from v7, from /var/lib/fah-client
or creating an empty config). Perhaps we could move down the chown
/chmod
calls to always run... Edit: but in this case it would need to fix /etc/fah-client/
directory ownership too I think. 😞
Please reopen if you can reproduce this on the latest client version.
headless install on Ubuntu 18_04-lts
I'm used to using the latest stable release - I'm now trying out the 8.x version so my modified install code is likely poor.
Error msg:
On at least 1 occasion, I did see a group called 'fah-client' - but not the user didn't exist
-- Install script --