Re: Error folding on GPU [OpenSUSE]
Posted: Sun Apr 24, 2016 9:32 pm
If OpenSUSE favors systemd services, you might convert to that and share your work.
Community driven support forum for Folding@home
https://foldingforum.org/
Does not look like it. It is a utility mostly seen on Debian/Ubuntu. However looks like Fedora does have it.calxalot wrote:Does OpenSUSE have the start-stop-daemon command?
That is true, but it can also run init scripts such as /etc/init.d/FAHClient. I believe Fedora also uses systemd now, but I am not so sure about RedHat or CentOS which I believe still uses init. Though the latest SUSE Linux Enterprise 12 has moved to systemd too, so perhaps the latest RedHat/CentOS also have. Edit: It seems RedHat 7 does use systemd.calxalot wrote:If OpenSUSE favors systemd services, you might convert to that and share your work.
Code: Select all
/usr/bin/FAHClient /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/run/fahclient.pid --daemon
Code: Select all
[Unit]
Description=Folding@Home V7 Client
Documentation=https://folding.stanford.edu/home/the-software/
After=network.target
[Service]
PIDFile=/var/lib/fahclient/fahclient.pid
User=fahclient
Group=users
ExecStart=/etc/init.d/FAHClient start
ExecStop=/etc/init.d/FAHClient stop
ExecReload=/etc/init.d/FAHClient reload
KillMode=process
[Install]
WantedBy=multi-user.target
Code: Select all
mintaka:/ # systemctl status fahclient.service
fahclient.service - Folding@Home V7 Client
Loaded: loaded (/etc/systemd/system/fahclient.service; enabled)
Active: active (running) since ma. 2016-04-25 20:10:38 CEST; 8min ago
Docs: https://folding.stanford.edu/home/the-software/
Main PID: 2740 (FAHClient)
CGroup: /system.slice/fahclient.service
├─2740 /usr/bin/FAHClient /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/lib/fahclient/fahclient.pid --daemon
└─2742 /usr/bin/FAHClient --child --lifeline 2740 /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/lib/fahclient/fa...
mintaka:/ # ps -C FAHClient -o user,group,comm
USER GROUP COMMAND
fahclie+ users FAHClient
fahclie+ users FAHClient
Code: Select all
[Unit]
Description=Folding@Home V7 Client
Documentation=https://folding.stanford.edu/home/the-software/
After=network.target
[Service]
User=fahclient
Group=users
ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml
Restart=always
KillMode=process
[Install]
WantedBy=multi-user.target
Code: Select all
ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/lib/fahclient/fahclient.pid --daemon
Code: Select all
/usr/bin/FAHClient /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/lib/fahclient/fahclient.pid --daemon
Code: Select all
sverrem@mintaka:~> ps -aux | grep FAH
fahclie+ 2740 0.0 0.0 21097356 6916 ? Ssl 20:10 0:02 /usr/bin/FAHClient /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/lib/fahclient/fahclient.pid --daemon
fahclie+ 2742 0.1 0.2 21687552 22576 ? Sl 20:10 0:10 /usr/bin/FAHClient --child --lifeline 2740 /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/lib/fahclient/fahclient.pid --daemon
Code: Select all
mintaka:/etc/systemd/system # systemctl start fahclient.service
mintaka:/etc/systemd/system # systemctl status fahclient.service
fahclient.service - Folding@Home V7 Client
Loaded: loaded (/etc/systemd/system/fahclient.service; enabled)
Active: failed (Result: start-limit) since ma. 2016-04-25 23:03:43 CEST; 2s ago
Docs: https://folding.stanford.edu/home/the-software/
Process: 12464 ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml (code=exited, status=1/FAILURE)
Main PID: 12464 (code=exited, status=1/FAILURE)
april 25 23:03:43 mintaka systemd[1]: fahclient.service start request repeated too quickly, refusing to start.
april 25 23:03:43 mintaka systemd[1]: Failed to start Folding@Home V7 Client.
Code: Select all
mintaka:/etc/systemd/system # systemctl start fahclient.service
mintaka:/etc/systemd/system # systemctl status fahclient.service
fahclient.service - Folding@Home V7 Client
Loaded: loaded (/etc/systemd/system/fahclient.service; enabled)
Active: failed (Result: exit-code) since ma. 2016-04-25 23:07:05 CEST; 2s ago
Docs: https://folding.stanford.edu/home/the-software/
Process: 12710 ExecStart=/usr/bin/FAHClient /etc/fahclient/config.xml (code=exited, status=1/FAILURE)
Main PID: 12710 (code=exited, status=1/FAILURE)
april 25 23:07:05 mintaka FAHClient[12710]: 21:07:05:ERROR:Exception: Failed to open 'log.txt': Failed to open 'log.txt': Permission denied: Permission denied
That worked, and folding on the GPU works.calxalot wrote:Likely just a permissions problem with the fahclient home folder, or log.txt.
It might be that the working directory is not correct.
Try adding
WorkingDirectory=/var/lib/fahclient
to the service.
Code: Select all
mintaka:/etc/systemd/system # systemctl start fahclient.service
mintaka:/etc/systemd/system # systemctl status fahclient.service
fahclient.service - Folding@Home V7 Client
Loaded: loaded (/etc/systemd/system/fahclient.service; enabled)
Active: active (running) since ma. 2016-04-25 23:15:06 CEST; 1s ago
Docs: https://folding.stanford.edu/home/the-software/
Main PID: 13279 (FAHClient)
CGroup: /system.slice/fahclient.service
└─13279 /usr/bin/FAHClient /etc/fahclient/config.xml
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Started thread 1 on PID 13279
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Successfully acquired database lock
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Enabled folding slot 00: PAUSED gpu:0:GK106 [GeForce GTX 650 Ti] (by user)
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Enabled folding slot 01: PAUSED cpu:1 (by user)
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Started thread 8 on PID 13279
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Started thread 5 on PID 13279
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Started thread 6 on PID 13279
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Started thread 10 on PID 13279
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Started thread 9 on PID 13279
april 25 23:15:06 mintaka FAHClient[13279]: 21:15:06:Started thread 7 on PID 13279