[*### Installation/removal and other issues
Process sequence:
-) Create new VM (4CPU) for better control of parameters on test
or
-) save /etc/fahclient
-) uninstall client with:
# uninstall packages but not dependencies
$ rpm -e --nodeps fahviewer fahcontrol fahclient
### WARNING: components not removed on uninstall
# search remaining
$ find / -iname "*fah*"
# When the VM is ready:
-) disabled internet connectivity
1) client fresh install
[root@gm-srv-fah-004 7.6.13]# dnf install fahclient-7.6.13-1.x86_64.rpm fahcontrol-7.6.13-1.noarch.rpm fahviewer-7.6.13-1.x86_64.rpm
Last metadata expiration check: 1:23:39 ago on Mon 18 May 2020 12:51:31 PM CEST.
Dependencies resolved.
==============================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================
Installing:
fahclient x86_64 7.6.13-1 @commandline 3.5 M
fahcontrol noarch 7.6.13-1 @commandline 209 k
fahviewer x86_64 7.6.13-1 @commandline 4.4 M
Transaction Summary
==============================================================================================================================================================
Install 3 Packages
Total size: 8.1 M
Installed size: 24 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : fahviewer-7.6.13-1.x86_64 1/3
Installing : fahcontrol-7.6.13-1.noarch 2/3
Installing : fahclient-7.6.13-1.x86_64 3/3
Running scriptlet: fahclient-7.6.13-1.x86_64 3/3
Starting fahclient ... FAIL
Verifying : fahclient-7.6.13-1.x86_64 1/3
Verifying : fahcontrol-7.6.13-1.noarch 2/3
Verifying : fahviewer-7.6.13-1.x86_64 3/3
Installed:
fahclient-7.6.13-1.x86_64 fahcontrol-7.6.13-1.noarch fahviewer-7.6.13-1.x86_64
Complete!
## ERROR-01: Starting fahclient ... FAIL
#
# process control return error also if successful.
# The problem is present also in normal operations mode after the complete configuration
[root@gm-srv-fah-004 7.6.13]# /etc/init.d/FAHClient status
fahclient is running with PID 1287
[root@gm-srv-fah-004 ~]# service --status-all
fahclient is running with PID 1287
### ERROR-02: systemctl unit created but not working
#
#
http://pedroivanlopez.com/install-fahcl ... vice-unit/
#
https://apuntesderootblog.wordpress.com ... in-fedora/
#
https://gist.github.com/lopezpdvn/81c8bb867c51292045c6
#
$ systemctl -a | grep -i fah
● FAHClient.service loaded failed failed LSB: Folding@home Client
### ERROR-03: after installation FAHclient start with default config & error
#
# After command line installation program start running with a default configuration
#
# Note: this can be also a security issue: a fake package can be installed and start doing anything.
#
[fedora@gm-srv-fah-004 ~]$ ps -eaf | grep -i fah
root 1287 1 0 14:15 ? 00:00:01 /usr/bin/FAHClient /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/run/fahclient.pid --daemon
fahclie+ 1289 1287 0 14:15 ? 00:00:03 /usr/bin/FAHClient --child /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/run/fahclient.pid --daemon
[root@gm-srv-fah-004 init.d]# cd /etc/fahclient
[root@gm-srv-fah-004 fahclient]# cat config.xml
<config>
<!-- Folding Slot Configuration -->
<gpu v='false'/>
<!-- Slot Control -->
<power v='light'/>
<!-- User Information -->
<user v='anonymous'/>
<!-- Folding Slots -->
<slot id='0' type='CPU'/>
### ERROR-04 - after 1st installation process start attempting downloads
#
# with default attempt download/connection at start
#
Reference log:
20200518-log-01.txt
12:15:25:Downloading GPUs.txt from assign1.foldingathome.org:80
12:15:25:Connecting to assign1.foldingathome.org:80
12:15:28:WARNING:While updating GPUs.txt from assign1.foldingathome.org:80: Failed to connect to assign1.foldingathome.org:80: No route to host
12:15:28:Downloading GPUs.txt from assign2.foldingathome.org:80
12:15:28:Connecting to assign2.foldingathome.org:80
...
### ISSUE-01: client must be configure by hand on systems without gui
#
# with default config FAHControl can access only localhost but if you don´t have a GUI is a problem
# you can configure the client only manually
#
### ISSUE-02: missed text configuration
#
# Fedora/CentOS: missed text/bash based config wizard.
# Ubuntu: Wizard implemented on install but if you make a typo not easy to come-back:
# No summary, no confirmation to save config.
#
### ERROR-03 - execution of /usr/bin/FAHclient
#
# direct call of binary /usr/bin/FAHclient start also if already running:
# no command line required.
# return error for socket in use and doesn't exit
## Effect with default config:
#
# return error and exit
[root@gm-srv-fah-004 fahclient]# /usr/bin/FAHClient
13:58:12:Trying to access database...
13:58:42:ERROR:Exception: Error executing: 'PRAGMA synchronous=NORMAL': database is locked
## with configured client:
#
# display client info
# display configuration
# display: socket already in use error
# start looping attemption connection to various servers on port 80
Reference log:
20200518-log-02.txt
WARNING:WU00:FS00:Failed to get ID from 'assign1.foldingathome.org:80': Failed to connect to assign1.foldingathome.org:80: No route to host
12:16:29:WU00:FS00:Connecting to assign2.foldingathome.org:80
12:16:32:WARNING:WU00:FS00:Failed to get ID from 'assign2.foldingathome.org:80': Failed to connect to assign2.foldingathome.org:80: No route to host
12:16:32:WU00:FS00:Connecting to assign3.foldingathome.org:80
12:16:35:WARNING:WU00:FS00:Failed to get ID from 'assign3.foldingathome.org:80': Failed to connect to assign3.foldingathome.org:80: No route to host
12:16:35:WU00:FS00:Connecting to assign4.foldingathome.org:80
12:16:38:WARNING:WU00:FS00:Failed to get ID from 'assign4.foldingathome.org:80': Failed to connect to assign4.foldingathome.org:80: No route to host
### ISSUE-04 - unreferenced error
#
# /usr/bin/FAHClient return error if executed as unpriviledged user
[fedora@gm-srv-fah-004 fahclient]$ /usr/bin/FAHClient
13:41:25:ERROR:Exception: Failed to create directory 'logs': boost::filesystem::create_directory: Permission denied: "logs"
### ISSUE-05 - undocumented features
#
# /usr/bin/FAHclient --help return 489 text lines with many unrerefenced options
### ISSUE-06 - no man pages
[root@gm-srv-fah-004 fahclient]# man FAHClient
No manual entry for FAHClient
[root@gm-srv-fah-004 fahclient]# man FAHControl
No manual entry for FAHControl
[root@gm-srv-fah-004 fahclient]# man FAHViewer
No manual entry for FAHViewer
[root@gm-srv-fah-004 fahclient]# man FAHCoreWrapper
No manual entry for FAHCoreWrapper
### INFO-07 - manual execution of corewrapper
#
# unknown command action /usr/bin/FAHCoreWrapper
#
[root@gm-srv-fah-002 fahclient]# /usr/bin/FAHCoreWrapper
14:19:35:ERROR:Exception: Missing arguments
[root@gm-srv-fah-002 fahclient]# /usr/bin/FAHCoreWrapper --help
Started core on PID 34947
### INFO-00 - process function(s)s not documented
#
# Missed process explanation
[root@gm-srv-fah-002 fahclient]# ps -eaf | grep -i fah
root 26742 1 0 May13 ? 00:01:32 /usr/bin/FAHClient /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/run/fahclient.pid --daemon
fahclie+ 26745 26742 0 May13 ? 00:08:17 /usr/bin/FAHClient --child /etc/fahclient/config.xml --run-as fahclient --pid-file=/var/run/fahclient.pid --daemon
fahclie+ 34017 26745 0 10:22 ? 00:00:02 /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/v7/lin/64bit/avx/Core_a7.fah/FahCore_a7 -dir 01 -suffix 01 -version 706 -lifeline 26745 -checkpoint 15 -np 3
fahclie+ 34021 34017 99 10:22 ? 11:53:51 /var/lib/fahclient/cores/cores.foldingathome.org/v7/lin/64bit/avx/Core_a7.fah/FahCore_a7 -dir 01 -suffix 01 -version 706 -lifeline 34017 -checkpoint 15 -np 3
### ISSUE-00 - non standard logging
#
# log file unreferenced on standard location
# custom log rotation
#
# /var/lib/fahclient/log.txt
# /var/lib/fahclient/logs
#
### ISSUE-007 error on start/restart
#
[root@gm-srv-fah-004 /etc/fahclient]$ /etc/init.d/FAHClient start
Starting fahclient ... FAIL
[root@gm-srv-fah-004 /etc/fahclient]$ /etc/init.d/FAHClient start
Starting fahclient ... FAILED
fahclient seems to be already running with PID 3346
[root@gm-srv-fah-004 /etc/fahclient]$ vi config.xml
[root@gm-srv-fah-004 /etc/fahclient]$ /etc/init.d/FAHClient restart
Stopping fahclient ... OK
Starting fahclient ... FAIL
[root@gm-srv-fah-004 /etc/fahclient]$ /etc/init.d/FAHClient status
fahclient is running with PID 1277
]