Page 1 of 1

Running F@H on a server

Posted: Thu Mar 26, 2020 8:25 pm
by Kanjias
Is it possible/useful in any way to run folding@home on a server and accessing the Webinterface remotely? If there is a solution where I need an reverse proxy, this is not a problem and also the authentication could I enable self with the use of the Reverse Proxy.

I've tried to use the forum search, but I couldn't find anything about that...

Re: Running F@H on a server

Posted: Fri Mar 27, 2020 2:05 am
by Jesse_V
Hi and welcome to the forum.

This is possible, actually. First, install the FAHClient software on the server. It should prompt you for the username, team ID, and passkey, so you can put that all in. Once FAHClient is running and the folding has started as you want, stop the service with "sudo service FAHClient stop" and edit /etc/fahclient/config.xml. Add the following two lines:

<allow v='10.0.0.0/8 127.0.0.1'/>
<password v='PASSWORD_GOES_HERE''/>

Where the subnet is the external IP address or subnet, and the password is custom of course. Then restart FAHClient with "sudo service FAHClient start" and it should start folding again. From there, on your main computer, install the FAHControl package, which is a front-end to FAHClient. In the bottom-left corner, click "Add" and put in the server's IP address and the password you chose. FAHControl should connect and you should be able to control F@h on the server. This link won't be encrypted, but should work. The default port is TCP 36330.

Re: Running F@H on a server

Posted: Fri Mar 27, 2020 2:14 am
by Yujah
... and you can also in fact open up the web-interface for remote access. For that, you on the server in Advanced Control -> Configure -> Expert add a new client option "web-allow" with value again e.g. "10.0.0.0/8 127.0.0.1". I believe I've noticed that that option must be space-seperated (i.e., as displayed) if the server is Windows, comma-seperated ("127.0.0.1,192.168.1.0/24") if the sever is Linux. Also in this case restart FAHClient on the server. The (default) port to access is 7396.

Re: Running F@H on a server

Posted: Fri Mar 27, 2020 9:12 am
by Kanjias
Hmm, obviously the FAHClient won't start. Also with standard configuration it won't start :-(

Is there something like a log file where I can get more information about what the problem is?

I'am running Debian on my server and of course there is no desktop environment (I think this shouldn't be a problem because the FAHClient has no GUI, except for the Web-Interface)...

Re: Running F@H on a server

Posted: Fri Mar 27, 2020 9:31 am
by Kanjias
It looks like it has seen an old process, that is already stopped... I try rebooting the server...

Edit: Rebooting works

Re: Running F@H on a server

Posted: Fri Mar 27, 2020 10:04 am
by Kanjias
Now it seems to be working, but it shows "Ready" and doesn't start. What should I do?

Ah Screenshot can be found here: https://tmp.kanjias.de/Screenshot_2020- ... -42-57.png (Note: Server saves logfiles, that would be automatically deleted maximum all 2 weeks if there is no VERY GOOD reason to keep them (known attack for example))

Re: Running F@H on a server

Posted: Fri Mar 27, 2020 10:12 am
by Kanjias
Now it's working ^^

Re: Running F@H on a server

Posted: Fri Mar 27, 2020 10:16 am
by Neil-B
It was simply waiting for a WU assignment I guess … looking at the FAH log would confirm what the delay was but most likely just a busy assignment server.

Re: Running F@H on a server

Posted: Fri Mar 27, 2020 10:35 am
by Kanjias
Ah ok. Good to know.