FAH on Ubuntu / Raspberry Pi 4 / 64bit

FAH provides a V7 client installer for Debian / Mint / Ubuntu / RedHat / CentOS / Fedora. Installation on other distros may or may not be easy but if you can offer help to others, they would appreciate it.

Moderators: Site Moderators, FAHC Science Team

cburgdorfer
Posts: 1
Joined: Mon Jan 31, 2022 3:59 pm

FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by cburgdorfer »

Hello,

I've been trying to research if it's possible to install FAH on Raspberry Pi 4 or not. There are some tutorials on Google that claim that it's possible, but when I follow them, I get the error:

Code: Select all

ubuntu@ubuntu:~/fah$ /etc/init.d/FAHClient -v start
Starting fahclient ... 15:54:26:Read GPUs.txt
15:54:26:******************************* libFAH ********************************
15:54:26:       Date: Oct 20 2020
15:54:26:       Time: 20:36:48
15:54:26:   Revision: 5ca109d295a6245e2a2f590b3d0085ad5e567aeb
15:54:26:     Branch: master
15:54:26:   Compiler: GNU 8.3.0
15:54:26:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
15:54:26:             -fdata-sections -O3 -funroll-loops -fno-pie
15:54:26:   Platform: linux2 4.19.0-9-arm64
15:54:26:       Bits: 64
15:54:26:       Mode: Release
15:54:26:****************************** FAHClient ******************************
15:54:26:    Version: 7.6.21
15:54:26:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
15:54:26:  Copyright: 2020 foldingathome.org
15:54:26:   Homepage: https://foldingathome.org/
15:54:26:       Date: Oct 20 2020
15:54:26:       Time: 20:39:10
15:54:26:   Revision: 6efbf0e138e22d3963e6a291f78dcb9c6422a278
15:54:26:     Branch: master
15:54:26:   Compiler: GNU 8.3.0
15:54:26:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
15:54:26:             -fdata-sections -O3 -funroll-loops -fno-pie
15:54:26:   Platform: linux2 4.19.0-9-arm64
15:54:26:       Bits: 64
15:54:26:       Mode: Release
15:54:26:       Args: /etc/fahclient/config.xml --run-as fahclient
15:54:26:             --pid-file=/var/run/fahclient.pid --daemon
15:54:26:     Config: /etc/fahclient/config.xml
15:54:26:******************************** CBang ********************************
15:54:26:       Date: Oct 20 2020
15:54:26:       Time: 18:38:03
15:54:26:   Revision: 7e4ce85225d7eaeb775e87c31740181ca603de60
15:54:26:     Branch: master
15:54:26:   Compiler: GNU 8.3.0
15:54:26:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
15:54:26:             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
15:54:26:   Platform: linux2 4.19.0-9-arm64
15:54:26:       Bits: 64
15:54:26:       Mode: Release
15:54:26:******************************* System ********************************
15:54:26:        CPU: Unknown
15:54:26:     CPU ID: 
15:54:26:       CPUs: 4
15:54:26:     Memory: 3.70GiB
15:54:26:Free Memory: 1.33GiB
15:54:26:    Threads: POSIX_THREADS
15:54:26: OS Version: 5.4
15:54:26:Has Battery: false
15:54:26: On Battery: false
15:54:26: UTC Offset: 8
15:54:26:        PID: 747580
15:54:26:        CWD: /var/lib/fahclient
15:54:26:         OS: Linux 5.4.0-1045-raspi aarch64
15:54:26:    OS Arch: ARM64
15:54:26:       GPUs: 0
15:54:26:       CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
15:54:26:             libcuda.so: cannot open shared object file: No such file or
15:54:26:             directory
15:54:26:     OpenCL: Not detected: clGetPlatformIDs() returned -1001
15:54:26:***********************************************************************
15:54:26:<config>
15:54:26:  <!-- Client Control -->
15:54:26:  <fold-anon v='true'/>
15:54:26:
15:54:26:  <!-- Folding Slot Configuration -->
15:54:26:  <gpu v='false'/>
15:54:26:
15:54:26:  <!-- Process Control -->
15:54:26:  <fork v='true'/>
15:54:26:  <pid v='true'/>
15:54:26:  <respawn v='true'/>
15:54:26:  <service v='true'/>
15:54:26:
15:54:26:  <!-- Slot Control -->
15:54:26:  <power v='light'/>
15:54:26:
15:54:26:  <!-- User Information -->
15:54:26:  <user v='cburgdorfer'/>
15:54:26:
15:54:26:  <!-- Folding Slots -->
15:54:26:  <slot id='0' type='CPU'/>
15:54:26:</config>
15:54:26:Child exited with return code 1
15:54:26:Child exited with return code 1
15:54:26:Child exited with return code 1
15:54:26:Child exited with return code 1
15:54:26:Child exited with return code 1
15:54:26:ERROR:Respawning too fast. Exiting.
FAIL
I'm running a 64 bit Ubuntu on a Raspberry Pi 4

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

Is it possible to overcome these errors or am I stuck in a dead-end?

Thanks!
Christoph
MeeLee
Posts: 1375
Joined: Tue Feb 19, 2019 10:16 pm

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by MeeLee »

I wouldn't pursue this. First of all, ARM CPU WUs are sporadic (I thought in beta?).
Second of all, the Pi4B is not the fastest, not the most efficient.
You'll contribute a lot more running some GPU WUs.
ETA_2025
Posts: 40
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: Intel i7-7700 32GB RAM
20 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by ETA_2025 »

cburgdorfer wrote: Mon Jan 31, 2022 4:09 pm I've been trying to research if it's possible to install FAH on Raspberry Pi 4 or not. There are some tutorials on Google that claim that it's possible, but when I follow them, I get the error:

Code: Select all

ubuntu@ubuntu:~/fah$ /etc/init.d/FAHClient -v start
Starting fahclient ... 15:54:26:Read GPUs.txt
15:54:26:******************************* libFAH ********************************
15:54:26:       Date: Oct 20 2020
15:54:26:       Time: 20:36:48
15:54:26:   Revision: 5ca109d295a6245e2a2f590b3d0085ad5e567aeb
15:54:26:     Branch: master
15:54:26:   Compiler: GNU 8.3.0
15:54:26:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
15:54:26:             -fdata-sections -O3 -funroll-loops -fno-pie
15:54:26:   Platform: linux2 4.19.0-9-arm64
15:54:26:       Bits: 64
15:54:26:       Mode: Release
15:54:26:****************************** FAHClient ******************************
15:54:26:    Version: 7.6.21
15:54:26:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
15:54:26:  Copyright: 2020 foldingathome.org
15:54:26:   Homepage: https://foldingathome.org/
15:54:26:       Date: Oct 20 2020
15:54:26:       Time: 20:39:10
15:54:26:   Revision: 6efbf0e138e22d3963e6a291f78dcb9c6422a278
15:54:26:     Branch: master
15:54:26:   Compiler: GNU 8.3.0
15:54:26:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
15:54:26:             -fdata-sections -O3 -funroll-loops -fno-pie
15:54:26:   Platform: linux2 4.19.0-9-arm64
15:54:26:       Bits: 64
15:54:26:       Mode: Release
15:54:26:       Args: /etc/fahclient/config.xml --run-as fahclient
15:54:26:             --pid-file=/var/run/fahclient.pid --daemon
15:54:26:     Config: /etc/fahclient/config.xml
15:54:26:******************************** CBang ********************************
15:54:26:       Date: Oct 20 2020
15:54:26:       Time: 18:38:03
15:54:26:   Revision: 7e4ce85225d7eaeb775e87c31740181ca603de60
15:54:26:     Branch: master
15:54:26:   Compiler: GNU 8.3.0
15:54:26:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
15:54:26:             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
15:54:26:   Platform: linux2 4.19.0-9-arm64
15:54:26:       Bits: 64
15:54:26:       Mode: Release
15:54:26:******************************* System ********************************
15:54:26:        CPU: Unknown
15:54:26:     CPU ID: 
15:54:26:       CPUs: 4
15:54:26:     Memory: 3.70GiB
15:54:26:Free Memory: 1.33GiB
15:54:26:    Threads: POSIX_THREADS
15:54:26: OS Version: 5.4
15:54:26:Has Battery: false
15:54:26: On Battery: false
15:54:26: UTC Offset: 8
15:54:26:        PID: 747580
15:54:26:        CWD: /var/lib/fahclient
15:54:26:         OS: Linux 5.4.0-1045-raspi aarch64
15:54:26:    OS Arch: ARM64
15:54:26:       GPUs: 0
15:54:26:       CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
15:54:26:             libcuda.so: cannot open shared object file: No such file or
15:54:26:             directory
15:54:26:     OpenCL: Not detected: clGetPlatformIDs() returned -1001
15:54:26:***********************************************************************
15:54:26:<config>
15:54:26:  <!-- Client Control -->
15:54:26:  <fold-anon v='true'/>
15:54:26:
15:54:26:  <!-- Folding Slot Configuration -->
15:54:26:  <gpu v='false'/>
15:54:26:
15:54:26:  <!-- Process Control -->
15:54:26:  <fork v='true'/>
15:54:26:  <pid v='true'/>
15:54:26:  <respawn v='true'/>
15:54:26:  <service v='true'/>
15:54:26:
15:54:26:  <!-- Slot Control -->
15:54:26:  <power v='light'/>
15:54:26:
15:54:26:  <!-- User Information -->
15:54:26:  <user v='cburgdorfer'/>
15:54:26:
15:54:26:  <!-- Folding Slots -->
15:54:26:  <slot id='0' type='CPU'/>
15:54:26:</config>
15:54:26:Child exited with return code 1
15:54:26:Child exited with return code 1
15:54:26:Child exited with return code 1
15:54:26:Child exited with return code 1
15:54:26:Child exited with return code 1
15:54:26:ERROR:Respawning too fast. Exiting.
FAIL
I'm running a 64 bit Ubuntu on a Raspberry Pi 4

Is it possible to overcome these errors or am I stuck in a dead-end?
It's definitely possible to fold on a Pi, because I have 10 Pi's, running 64-bit Raspios lite (Bullseye), which have been folding continuously for more than a year!

And, ignore MeeLee. There are plenty of WU's for ARM processors, and they are doing good work. But, if you have a discrete GPU in another machine, you could consider folding on that for more points, or just to help more.

As per calxalot's reply, you need to use sudo /etc/init.d/FAHClient -v start to run FAHClient. Try that first.

Firstly, set next-unit-percentage to 100(%) in Extra Client options. The default value for next-unit-percentage is 90%. Then get a passkey, otherwise you won't get any bonus points.

Completing 10% of a WU can take more than six and a half hours. You want to return WU's as quickly as possible, to help FAH solve problems as soon as possible. If a WU isn't completed by the Timeout, it will be assigned to another client machine, and you won't get any bonus points (also called quick return bonus). If a WU isn't completed by the Expiration, that WU will be dumped, and you won't get any points (or have helped FAH).

Your System Info is virtually the same as mine.

Regarding your config file options: I've never seen those Process Control options before. You shouldn't have <fold-anon v='true'/>, as it conflicts with <user v='cburgdorfer'/>. Also you don't need <gpu v='false'/>. It's redundant, as there's no GPU to find. The other difference is <power v='light'/>. That needs to be set to 'full' on ARM processors, otherwise you probably won't complete any WU's.

I also have an Extra client option, child, which is set to true, and is the only value missing in Args, listed under FAHClient in your System Info.

Finally, OpenCL returns a different error, but I don't think that matters.

Perhaps, cleaning up your config file will solve your problems.

Using FAH Control. delete <fold-anon v='true'/>, <gpu v='false'/>, <fork v='true'/>, <pid v='true'/>, <respawn v='true'/>, <service v='true'/>, change <power v='light'/> to <power v='full'/>, and add the Extra client option setting child to true, and see if that works. Because it works for me. And, given our System Info is virtually the same, I don't think Ubuntu is the problem.

Refer to Incorrect Slot Options on this page viewtopic.php?p=327416&f=24#p327416 to understand all configure options and their defaults.

Also, I'm wondering why use don't just use Raspios.

Here's my config information (hopefully it's helps you complete your setup, with remote access, for instance, plus it's shows what should happen when it works):

Code: Select all

*********************** Log Started 2023-02-09T16:34:42Z ***********************
16:34:42:******************************* libFAH ********************************
16:34:42:       Date: Oct 20 2020
16:34:42:       Time: 20:36:48
16:34:42:   Revision: 5ca109d295a6245e2a2f590b3d0085ad5e567aeb
16:34:42:     Branch: master
16:34:42:   Compiler: GNU 8.3.0
16:34:42:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
16:34:42:             -fdata-sections -O3 -funroll-loops -fno-pie
16:34:42:   Platform: linux2 4.19.0-9-arm64
16:34:42:       Bits: 64
16:34:42:       Mode: Release
16:34:42:****************************** FAHClient ******************************
16:34:42:    Version: 7.6.21
16:34:42:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
16:34:42:  Copyright: 2020 foldingathome.org
16:34:42:   Homepage: https://foldingathome.org/
16:34:42:       Date: Oct 20 2020
16:34:42:       Time: 20:39:10
16:34:42:   Revision: 6efbf0e138e22d3963e6a291f78dcb9c6422a278
16:34:42:     Branch: master
16:34:42:   Compiler: GNU 8.3.0
16:34:42:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
16:34:42:             -fdata-sections -O3 -funroll-loops -fno-pie
16:34:42:   Platform: linux2 4.19.0-9-arm64
16:34:42:       Bits: 64
16:34:42:       Mode: Release
16:34:42:       Args: --child /etc/fahclient/config.xml --run-as fahclient
16:34:42:             --pid-file=/var/run/fahclient.pid --daemon
16:34:42:     Config: /etc/fahclient/config.xml
16:34:42:******************************** CBang ********************************
16:34:42:       Date: Oct 20 2020
16:34:42:       Time: 18:38:03
16:34:42:   Revision: 7e4ce85225d7eaeb775e87c31740181ca603de60
16:34:42:     Branch: master
16:34:42:   Compiler: GNU 8.3.0
16:34:42:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
16:34:42:             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
16:34:42:   Platform: linux2 4.19.0-9-arm64
16:34:42:       Bits: 64
16:34:42:       Mode: Release
16:34:42:******************************* System ********************************
16:34:42:        CPU: Unknown
16:34:42:     CPU ID: 
16:34:42:       CPUs: 4
16:34:42:     Memory: 1.81GiB
16:34:42:Free Memory: 1.64GiB
16:34:42:    Threads: POSIX_THREADS
16:34:42: OS Version: 5.15
16:34:42:Has Battery: false
16:34:42: On Battery: false
16:34:42: UTC Offset: 11
16:34:42:        PID: 523
16:34:42:        CWD: /var/lib/fahclient
16:34:42:         OS: Linux 5.15.84-v8+ aarch64
16:34:42:    OS Arch: ARM64
16:34:42:       GPUs: 0
16:34:42:       CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
16:34:42:             libcuda.so: cannot open shared object file: No such file or
16:34:42:             directory
16:34:42:     OpenCL: Not detected: Failed to open dynamic library 'libOpenCL.so':
16:34:42:             libOpenCL.so: cannot open shared object file: No such file or
16:34:42:             directory
16:34:42:***********************************************************************
16:34:42:<config>
16:34:42:  <!-- Folding Core -->
16:34:42:  <checkpoint v='30'/>
16:34:42:
16:34:42:  <!-- Folding Slot Configuration -->
16:34:42:  <cause v='CANCER'/>
16:34:42:
16:34:42:  <!-- HTTP Server -->
16:34:42:  <allow v='127.0.0.1 192.168.231.90'/>
16:34:42:
16:34:42:  <!-- Network -->
16:34:42:  <proxy v=':8080'/>
16:34:42:
16:34:42:  <!-- Remote Command Server -->
16:34:42:  <command-allow-no-pass v='127.0.0.1 192.168.231.90'/>
16:34:42:
16:34:42:  <!-- Slot Control -->
16:34:42:  <pause-on-battery v='false'/>
16:34:42:  <power v='full'/>
16:34:42:
16:34:42:  <!-- User Information -->
16:34:42:  <passkey v='passkey'/>
16:34:42:  <team v='team'/>
16:34:42:  <user v='username'/>
16:34:42:
16:34:42:  <!-- Work Unit Control -->
16:34:42:  <next-unit-percentage v='100'/>
16:34:42:
16:34:42:  <!-- Folding Slots -->
16:34:42:  <slot id='0' type='CPU'/>
16:34:42:</config>
16:34:42:Trying to access database...
16:34:42:Successfully acquired database lock
16:34:42:FS00:Initialized folding slot 00: cpu:4
16:34:42:WU00:FS00:Starting
16:34:42:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/lin/64bit-aarch64/a8-0.0.12/Core_a8.fah/FahCore_a8 -dir 00 -suffix 01 -version 706 -lifeline 523 -checkpoint 30 -np 4
16:34:42:WU00:FS00:Started FahCore on PID 533
16:34:42:WU00:FS00:Core PID:537
16:34:42:WU00:FS00:FahCore 0xa8 started
16:34:45:WU00:FS00:0xa8:*********************** Log Started 2023-02-09T16:34:44Z ***********************
16:34:45:WU00:FS00:0xa8:************************** Gromacs Folding@home Core ***************************
16:34:45:WU00:FS00:0xa8:       Core: Gromacs
16:34:45:WU00:FS00:0xa8:       Type: 0xa8
16:34:45:WU00:FS00:0xa8:    Version: 0.0.12
16:34:45:WU00:FS00:0xa8:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
16:34:45:WU00:FS00:0xa8:  Copyright: 2020 foldingathome.org
16:34:45:WU00:FS00:0xa8:   Homepage: https://foldingathome.org/
16:34:45:WU00:FS00:0xa8:       Date: Jan 16 2021
16:34:45:WU00:FS00:0xa8:       Time: 19:29:29
16:34:45:WU00:FS00:0xa8:   Compiler: GNU 8.3.0
16:34:45:WU00:FS00:0xa8:    Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
16:34:45:WU00:FS00:0xa8:             -fdata-sections -O3 -funroll-loops -fno-pie
16:34:45:WU00:FS00:0xa8:   Platform: linux2 4.15.0-128-generic
16:34:45:WU00:FS00:0xa8:       Bits: 64
16:34:45:WU00:FS00:0xa8:       Mode: Release
16:34:45:WU00:FS00:0xa8:       SIMD: arm_neon_asimd
16:34:45:WU00:FS00:0xa8:     OpenMP: ON
16:34:45:WU00:FS00:0xa8:       CUDA: OFF
16:34:45:WU00:FS00:0xa8:       Args: -dir 00 -suffix 01 -version 706 -lifeline 533 -checkpoint 30 -np 4
16:34:45:WU00:FS00:0xa8:************************************ libFAH ************************************
16:34:45:WU00:FS00:0xa8:       Date: Jan 16 2021
16:34:45:WU00:FS00:0xa8:       Time: 19:29:00
16:34:45:WU00:FS00:0xa8:   Compiler: GNU 8.3.0
16:34:45:WU00:FS00:0xa8:    Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
16:34:45:WU00:FS00:0xa8:             -fdata-sections -O3 -funroll-loops -fno-pie
16:34:45:WU00:FS00:0xa8:   Platform: linux2 4.15.0-128-generic
16:34:45:WU00:FS00:0xa8:       Bits: 64
16:34:45:WU00:FS00:0xa8:       Mode: Release
16:34:45:WU00:FS00:0xa8:************************************ CBang *************************************
16:34:45:WU00:FS00:0xa8:       Date: Jan 16 2021
16:34:45:WU00:FS00:0xa8:       Time: 19:28:44
16:34:45:WU00:FS00:0xa8:   Compiler: GNU 8.3.0
16:34:45:WU00:FS00:0xa8:    Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
16:34:45:WU00:FS00:0xa8:             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
16:34:45:WU00:FS00:0xa8:   Platform: linux2 4.15.0-128-generic
16:34:45:WU00:FS00:0xa8:       Bits: 64
16:34:45:WU00:FS00:0xa8:       Mode: Release
16:34:45:WU00:FS00:0xa8:************************************ System ************************************
16:34:45:WU00:FS00:0xa8:        CPU: Cortex-A
16:34:45:WU00:FS00:0xa8:     CPU ID: Arm Family 8 Model 72 Stepping 3
16:34:45:WU00:FS00:0xa8:       CPUs: 4
16:34:45:WU00:FS00:0xa8:     Memory: 1.81GiB
16:34:45:WU00:FS00:0xa8:Free Memory: 1.64GiB
16:34:45:WU00:FS00:0xa8:    Threads: POSIX_THREADS
16:34:45:WU00:FS00:0xa8: OS Version: 5.15
16:34:45:WU00:FS00:0xa8:Has Battery: false
16:34:45:WU00:FS00:0xa8: On Battery: false
16:34:45:WU00:FS00:0xa8: UTC Offset: 11
16:34:45:WU00:FS00:0xa8:        PID: 537
16:34:45:WU00:FS00:0xa8:        CWD: /var/lib/fahclient/work
16:34:45:WU00:FS00:0xa8:********************************************************************************
Good luck.
Last edited by ETA_2025 on Sat Feb 11, 2023 12:16 am, edited 1 time in total.
Image
calxalot
Site Moderator
Posts: 878
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by calxalot »

do not try to delete fork, pid, child, respawn, daemon. Those are internal flags that ideally would not be visible in FAHControl. On Linux, with init.d, the client forks and keeps running a child client which does the job.

You may have trouble with init.d, which has been replaced by systemd.
calxalot
Site Moderator
Posts: 878
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by calxalot »

You can see some of the extra options in the info section of the log. See “Args:”
calxalot
Site Moderator
Posts: 878
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by calxalot »

If you are using the init.d script, use

sudo /etc/init.d/FAHClient -v start
ETA_2025
Posts: 40
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: Intel i7-7700 32GB RAM
20 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by ETA_2025 »

calxalot wrote: Fri Feb 10, 2023 10:00 pm do not try to delete fork, pid, child, respawn, daemon. Those are internal flags that ideally would not be visible in FAHControl. On Linux, with init.d, the client forks and keeps running a child client which does the job.

You may have trouble with init.d, which has been replaced by systemd.
calxalot, it's clear you didn't read my post completely?
  • Raspios is a version of Linux (Debian). And, Debian and Ubuntu use the same FAH software.
  • Wouldn't child (which I said to ADD) replace all of fork, pid, respawn, daemon? If not, why do my Pi's work, but the O.P. Pi doesn't work?
  • Do you know how the internal flags were added? Was it by the O.P. or the software? And, they were in config.xml. Nothing to do with FAH Control!
  • How about trying to solve the problem, rather than just saying don't to this. What's the harm in trying to use the same options, as system that does work, when your system doesn't?
All in all, you posts were completely unhelpful!
Last edited by ETA_2025 on Fri Feb 10, 2023 11:07 pm, edited 1 time in total.
Image
calxalot
Site Moderator
Posts: 878
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by calxalot »

I believe the main problem is not using sudo with the init.d script.

The init d script adds some flags, the client daemonizes and adds more flags when the child is exec’d. If you’re actually using systemd, you likely won’t see all of this, as a normal systemd service does not daemonize.
calxalot
Site Moderator
Posts: 878
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by calxalot »

The flags were almost certainly not in config.xml.

Also, the client removes options that are equal to default when it writes config.xml.
calxalot
Site Moderator
Posts: 878
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by calxalot »

Sorry. I see the options are in config.xml
Edit: well, maybe. I can’t remember if the client presents command line options as part of the config.

I can be more helpful when I’m back to my computer.
ETA_2025
Posts: 40
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: Intel i7-7700 32GB RAM
20 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by ETA_2025 »

calxalot wrote: Fri Feb 10, 2023 11:05 pm I believe the main problem is not using sudo with the init.d script.
But wouldn't it fail to run, rather than running, but failing to fold?

Your probably right about this, but it really should have been installed as a service, rather then being run from the command line.
Image
ETA_2025
Posts: 40
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: Intel i7-7700 32GB RAM
20 x Raspberry Pi 4 Model B 2GB RAM
Location: VIC, Australia

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by ETA_2025 »

calxalot wrote: Fri Feb 10, 2023 11:26 pm Sorry. I see the options are in config.xml
In my system none of the Args options are in my confix.xml file. They are only able to be changed via Configure in FAH Control.

And, I'm at my computer comparing everything to my Pi's System Info and config files.
Image
calxalot
Site Moderator
Posts: 878
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by calxalot »

It would start and daemonize, then the child would fail because it doesn’t have permission to change files owned by user “fahclient”.

Think Ubuntu 22 doesn’t support init.d. In any case the installed ini.d script has been malfunctioning for some time. Things like no pid file, running as root.
calxalot
Site Moderator
Posts: 878
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by calxalot »

It’s supposed to be a service, but it is not auto starting at boot for some people. It’s not going to be fixed. All effort is on v8.
calxalot
Site Moderator
Posts: 878
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: FAH on Ubuntu / Raspberry Pi 4 / 64bit

Post by calxalot »

Anyone willing to be a beta tester is encouraged to try the v8 open beta.

https://foldingathome.org/beta/
Post Reply