Page 2 of 2
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Tue Jul 11, 2023 8:53 pm
by calxalot
How do you manually start it?
What user does it run as?
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Tue Jul 11, 2023 9:06 pm
by DocJonz
calxalot wrote: ↑Tue Jul 11, 2023 8:53 pm
How do you manually start it?
What user does it run as?
I start Firefox, enter the url for the webclient (app.foldingathome.org) and when it comes up, I hit Start Folding.
There is only one account/user of the machine, and that's me.
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Thu Jul 13, 2023 6:24 pm
by toTOW
I guess the client require sudo or something like this to gain access to the GPU drivers ...
Doesn't the v8 client have a shortcut or some service script to start it properly ?
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Thu Jul 13, 2023 6:49 pm
by Joe_H
The installer by default starts a fat-client process in the background, check to se what user it is running under. The web client for v8 only starts and stops WU processing, it doesn't stop the background process. The install can inherit a paused on start setting from the v7 config.xml file read at installation and startup times.
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Thu Jul 13, 2023 7:14 pm
by DocJonz
GPU drivers (and CUDA/OpenCL) are installed - no issues with those. The problem is the v8 client not detecting them following a machine restart.
If I re-install the v8 client on re-starting the machine (without adding info or changing any Folding settings), it Folds just fine on the GPU.
Note: v7 has never been on this machine.
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Thu Jul 13, 2023 9:39 pm
by calxalot
An aside: v8 does not support pause-on-start of v7
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Thu Jul 13, 2023 9:42 pm
by calxalot
That it works on reinstall, but not on restart, indicates to me that the systemd service is not running the fah-client process as the correct user “fah-client”.
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Thu Jul 13, 2023 9:43 pm
by calxalot
Or that some other group is needed for GPU access.
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Thu Jul 13, 2023 9:45 pm
by calxalot
I don’t think v8 inherits the v7 pause state either.
I had to use cpus 0 for a new v8 install to be paused until a wait for configuration was implemented.
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Thu Jul 13, 2023 10:32 pm
by calxalot
You might be having a race condition, where the client starts before another service is ready.
Maybe try
Restart system
Verify GPU is disabled
Run shell commands
Code: Select all
sudo systemctl stop fah-client
sudo systemctl start fah-client
See if GPU works now
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Fri Jul 14, 2023 6:20 am
by DocJonz
@calxalot - Thanks. I'll give that a try over the weekend ...
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Fri Jul 14, 2023 4:49 pm
by toTOW
calxalot wrote: ↑Thu Jul 13, 2023 9:42 pm
That it works on reinstall, but not on restart, indicates to me that the systemd service is not running the fah-client process as the correct user “fah-client”.
Or the fah-client process is starting too early before everything is correctly initialized ...
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Sat Jul 15, 2023 11:52 am
by DocJonz
calxalot wrote: ↑Thu Jul 13, 2023 10:32 pm
You might be having a race condition, where the client starts before another service is ready.
Maybe try
Restart system
Verify GPU is disabled
Run shell commands
Code: Select all
sudo systemctl stop fah-client
sudo systemctl start fah-client
See if GPU works now
I did a general software update today. After, on opening webclient and checking the settings, the GPU part was not enbled (same issue as before).
So, I closed Firefox, then ran your two lines of code, and re-opened the webclient - this time, checking the settings, the GPU part was enabled
Next question is, how can I make that fix automatic and permanent?
Re: v8.1.18 - frequent re-installs required (Ubuntu 22.04)
Posted: Sun Jul 16, 2023 1:20 am
by calxalot
You might try editing the service file
Code: Select all
sudo nano /etc/systemd/system/fah-client.service
After
Add
Code: Select all
After=network-online.target
Wants=network-online.target
I’m not an expert. This suggestion is derived from a v7 service:
viewtopic.php?p=359791#p359791