Setup on Linux -- Headless

Moderators: Site Moderators, FAHC Science Team

Post Reply
trleith
Posts: 14
Joined: Tue Mar 24, 2020 7:19 pm

Setup on Linux -- Headless

Post by trleith »

I got a new computer and thought I'd make Folding@Home the first service I'd get going on it because (as I recall from the other one) getting the NVIDIA software to work was painful and, well, let's get it over with.

I see that a great deal has changed.

Here's where I'm at. I have it running, and by golly it sees me try to open the web control and redirects me, but the whatever it is at https://v8-3.foldingathome.org/machines says "No folding machines found"

I think possibly this might have something to do with allowed-origins but I'm not sure I'd expect anything at foldingathome.org to get through my firewall and I thought the point of the instructions here was to not require that.

What am I missing?

Thanks,
t

PS: I've been folding on the old machine a few years now. Is the F@H ID = [***really long string***] my passkey?

Code: Select all

root@homeserver:~# /usr/bin/fah-client --config=/etc/fah-client/config.xml
16:51:25:I1:*********************** Folding@home Client ***********************
16:51:25:I1:    Version: 8.3.18
16:51:25:I1:     Author: Joseph Coffland <[email protected]>
16:51:25:I1:        Org: foldingathome.org
16:51:25:I1:  Copyright: 2023-2024, foldingathome.org
16:51:25:I1:   Homepage: https://foldingathome.org/
16:51:25:I1:    License: GPL-3.0-or-later
16:51:25:I1:        URL: https://v8-3.foldingathome.org/
16:51:25:I1:       Date: Jul 12 2024
16:51:25:I1:       Time: 13:26:31
16:51:25:I1:   Revision: 99ae953ee7b1c0b3070161cfcf9150184f76bd96
16:51:25:I1:     Branch: master
16:51:25:I1:   Compiler: GNU 8.3.0
16:51:25:I1:    Options: -Wsuggest-override -faligned-new -std=c++17 -fsigned-char
16:51:25:I1:             -ffunction-sections -fdata-sections -O3 -funroll-loops -fno-pie
16:51:25:I1:   Platform: linux 4.19.0-26-cloud-amd64
16:51:25:I1:       Bits: 64
16:51:25:I1:       Mode: Release
16:51:25:I1:       Args: --config=/etc/fah-client/config.xml
16:51:25:I1:     Config: /etc/fah-client/config.xml
16:51:25:I1:****************************** CBang ******************************
16:51:25:I1:    Version: 1.7.2
16:51:25:I1:     Author: Joseph Coffland <[email protected]>
16:51:25:I1:        Org: Cauldron Development
16:51:25:I1:  Copyright: Cauldron Development, 2003-2024
16:51:25:I1:   Homepage: https://cauldrondevelopment.com/
16:51:25:I1:    License: LGPL-2.1-or-later
16:51:25:I1:       Date: Jun 24 2024
16:51:25:I1:       Time: 13:29:44
16:51:25:I1:   Revision: 1b05ea96f0ed3043c32b78a66dbf50a9b2002289
16:51:25:I1:     Branch: master
16:51:25:I1:   Compiler: GNU 8.3.0
16:51:25:I1:    Options: -Wsuggest-override -faligned-new -std=c++17 -fsigned-char
16:51:25:I1:             -ffunction-sections -fdata-sections -O3 -funroll-loops -fno-pie
16:51:25:I1:             -fPIC
16:51:25:I1:   Platform: linux 4.19.0-26-cloud-amd64
16:51:25:I1:       Bits: 64
16:51:25:I1:       Mode: Release
16:51:25:I1:***************************** System ******************************
16:51:25:I1:        CPU: Intel(R) Xeon(R) CPU E5-2440 v2 @ 1.90GHz
16:51:25:I1:     CPU ID: GenuineIntel Family 6 Model 62 Stepping 4
16:51:25:I1:       CPUs: 32
16:51:25:I1:     Memory: 94.34GiB
16:51:25:I1:Free Memory: 92.71GiB
16:51:25:I1: OS Version: 6.8
16:51:25:I1:Has Battery: false
16:51:25:I1: On Battery: false
16:51:25:I1:   Hostname: homeserver
16:51:25:I1: UTC Offset: -5
16:51:25:I1:        PID: 5270
16:51:25:I1:        CWD: /root
16:51:25:I1:       Exec: /usr/bin/fah-client
16:51:25:I1:*******************************************************************
16:51:25:I2:<config>
16:51:25:I2:  <!-- HTTP Server -->
16:51:25:I2:  <http-addresses v='0.0.0.0:7396'/>
16:51:25:I2:
16:51:25:I2:  <!-- Resource Settings -->
16:51:25:I2:  <cpus v='4'/>
16:51:25:I2:
16:51:25:I2:  <!-- Server -->
16:51:25:I2:  <allow v='127.0.0.1 192.168.0.0/24'/>
16:51:25:I2:
16:51:25:I2:  <!-- User Information -->
16:51:25:I2:  <team v='40211'/>
16:51:25:I2:  <user v='trleith'/>
16:51:25:I2:</config>
16:51:25:I1:Opening Database
16:51:25:I1:F@H ID = [***really long string***
16:51:25:I3:Loading default group
16:51:25:I3:Loading default resource group
16:51:25:I1:Listening for HTTP on 0.0.0.0:7396
16:51:25:I3:Loaded 0 wus.
16:51:25:W :OpenCL not supported: clGetPlatformIDs() returned -1001
16:51:25:W :CUDA not supported: Failed to open dynamic library 'libcuda.so': libcuda.so: cannot open shared object file: No such file or directory
16:53:09:I1:REQ1:< GET / HTTP/1.1
16:53:09:I1:REQ1:> HTTP/1.1 307 HTTP_TEMPORARY_REDIRECT
Joe_H
Site Admin
Posts: 7937
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: Setup on Linux -- Headless

Post by Joe_H »

At the end of those instructions, the local URL to use is shown - http://localhost:7396/machines, not the foldingathome.org address.

Your passkey is your passkey, not your F@H ID. The F@H ID is used by the optional login you can create on foldingathome.org for monitoring systems either locally or remotely.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

F@H ID is a unique identifier for a client. It is not your account. Nor is it a passkey token.
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

Note that Safari cannot access the local client from the https page.
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

For linux headless install, see also

https://github.com/FoldingAtHome/fah-cl ... ssions/214
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

To see a remote client, it needs to be linked to your web control account.
Or you need to use a ssh tunnel to the remote machine.

Remote access to a local web control for 8.3 is a bit dodgy to configure, and will not work with 8.4.
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

You should not be running the client as root.
Please use the installer package and systemd service.
trleith
Posts: 14
Joined: Tue Mar 24, 2020 7:19 pm

Re: Setup on Linux -- Headless

Post by trleith »

Thanks for the replies.

This works, sort of.

The most obvious problem it seems to ignore <cpus v='12'/> or <cpus v=12/> with or without the tick marks. It uses 31 of my 32 cores.
I don't understand something about allowed-origins -- I should think it could accept a CIDR mask like 192.168.0.0/24 instead of making me explicitly name my laptop's IP address. I didn't try using its DNS hostname (I register hostnames for DHCP assigned addresses). Why does it make me name a protocol (http or https)? Something else I don't think I tried was http://192.168.0.0/24.

What happed to the slot definitions?

It's great having a way to see the protein like the workstation clients.

Thanks again,
t

Code: Select all

<config>
 <!-- Account -->
 <account-token v='---redacted---'/>
 <machine-name v='HomeServer'/>

 <!-- Client -->
 <allowed-origins v='https://app.foldingathome.org http://192.168.0.81'/>

 <!-- HTTP Server -->
 <http-addresses v='0.0.0.0:7396'/>

 <!-- Resource Settings -->
 <cpus v='12'/>

 <!-- Server -->
 <allow v='127.0.0.1 192.168.0.0/16'/>

 <!-- User Information -->
 <team v='40211'/>
 <user v='trleith'/>
</config>
Last edited by trleith on Fri Oct 11, 2024 3:52 pm, edited 1 time in total.
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

Anything exposed in web control is stored in client.db. For those things, config.xml is only relevant on first run.

There are no slots.

Please read the guide
https://foldingathome.org/v8-3-client-guide/
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

You need to include port number in allowed origins if it is not the standard http/https port.
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

A local web control is served by the client, so the allowed origin needs to include the host that is running the client.

Like I said. Dodgy.

Example origin
http://homeserver.local:7396/

PS don’t share your account token unless you want other people to join your account.
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

The directory fah-web-control needs to be in the client data directory, which is its current working directory when it runs.

You honestly should not use the local web control. There is no need when you have the client linked to your account.
trleith
Posts: 14
Joined: Tue Mar 24, 2020 7:19 pm

Re: Setup on Linux -- Headless

Post by trleith »

> Please read the guide

That is what I needed, thanks. I think the difference between "Without an Account" and "With an Account" is one thing that was throwing me.

> Anything exposed in web control is stored in client.db. For those things, config.xml is only relevant on first run.

That's not very Unix-y. Likely to cause support problems. FWIW.

I notice when https://beta.foldingathome.org/machines is open on Edge on my laptop, not the server runing fah-client, the browser becomes very slow with a jerky cursor. As soon as I close the tab, it all goes back to normal

It's folding away now, on 24/32 cores. After it finishes up this work unit tomorrow, I'll move the GPU from the old machine to the new machine and start in on NVIDIA .
calxalot
Site Moderator
Posts: 1115
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Setup on Linux -- Headless

Post by calxalot »

The url for 8.3 is v8-3.foldingathome.org
You can also use v8-4.foldingathome.org which is backwards compatible

The beta web control url is very old.
Post Reply