Page 1 of 1

FAHclient won't start, Debian on Dell Studio

PostPosted: Fri Mar 27, 2020 3:48 am
by wjr1995
Hi all,
Code: Select all
 sudo /etc/init.d/FAHClient start
Starting fahclient ... FAIL

Installed successfully, but won't start and FAHControl obviously can't connect since the client won't start. There are no error codes to chase here, the verbosity is atrocious. What do I do, in simple steps?

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Sat Mar 28, 2020 1:25 am
by Joe_H
Depending on your version of Debian, you may need to install some dependencies, or make some other changes. The current client was released 2 years ago, some of the default packages installed have changed.

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Sat Mar 28, 2020 5:32 am
by Revenant
I installed within the past few days on Debian Buster and managed to get folding fairly painlessly. Can probably try to help out.

wjr1995, it would be helpful if you specified what version of Debian you’re running, since a lot of things can very between versions.

For starters, since you're probably using systemd, try running the following command and see what it says:
Code: Select all
sudo systemctl status FAHClient

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Sat Mar 28, 2020 6:03 pm
by wjr1995
That command gives
Code: Select all
● FAHClient.service - LSB: Folding@home Client
   Loaded: loaded (/etc/init.d/FAHClient; generated)
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)

Code: Select all
lsb_release -a
gives Debian 10, Buster.

To make sure I was able to get all necessary dependencies this is my sources.list:
Code: Select all
deb http://ftp.debian.org/debian/ buster main contrib non-free
deb http://security.debian.org/ buster/updates main contrib non-free
deb http://ftp.debian.org/debian/ buster-updates main contrib non-free

# Uncomment lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://ftp.debian.org/debian/ buster main contrib non-free
#deb-src http://security.debian.org/ buster/updates main contrib non-free
#deb-src http://ftp.debian.org/debian/ buster-updates main contrib non-free
deb http://deb.debian.org/debian buster main contrib non-free

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Sun Mar 29, 2020 6:17 am
by Revenant
OK. I am also running Debian Buster, so in theory this should be pretty doable. Let’s see how we go, shall we? :)

Let’s start with the basics. I’m not sure which installation method you used, but as far as I can tell the basic installation method for FAH on Linux is, “here are the debs, you figure it out.” If you were able to just download, click, and install using a graphical installer, hopefully dependency issues are not something we have to worry about.

The advanced installation FAQ, on the other hand, recommends using dpkg with --force-depends. I'm not sure why it does this, since this is a recipe for broken dependencies!

If you installed using this method, there are a couple of ways to fix any problems this might have caused. The first one is:
Code: Select all
 apt-get --fix-broken install

I personally installed with gdebi, which will resolve dependencies for you on install. (I’d definitely recommend using it in future when installing debs.)

e.g.
Code: Select all
sudo apt-get install gdebi
sudo gdebi fahclient_7.5.1_amd64.deb

When I first installed FAH on this machine, I noticed I wasn’t able to connect to the client or start the service. This was because the installer had somehow started a rogue copy of FAHClient, and the solution was to kill it and start the service myself, like so:

Code: Select all
ps aux | grep FAHClient
sudo pkill FAHClient
sudo systemctl start FAHClient

The first step is how I found the rogue running copy, so that might be worth doing just to check if this is a problem for you as well.

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Mon Mar 30, 2020 7:15 pm
by wjr1995
Hi Revenant, thanks for taking me under your wing. Just like you I used GDebi after I added the right repos to my sources.list. Right now the package manager is happy.
Code: Select all
ps aux | grep FAHClient
gives
Code: Select all
pi       18205  0.0  0.0   7848   616 pts/2    S+   11:11   0:00 grep --color=auto FAHClient
. pkill ran fine, then the last command gave
Code: Select all
Job for FAHClient.service failed because the control process exited with error code.
See "systemctl status FAHClient.service" and "journalctl -xe" for details.

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Thu Apr 02, 2020 4:20 am
by ipkh
I don't think you can start fahclient as a service on buster.
You should still be able to start fahclient manually by navigating to /usr/bin in a terminal and run FAHClient.

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Tue Apr 07, 2020 6:17 am
by wjr1995
Upon following that instruction, terminal gives
Code: Select all
/usr/bin/FAHClient: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Tue Apr 07, 2020 3:51 pm
by kostuek
Try

Code: Select all
sudo apt-get install libbz2-1.0

first.

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Wed Apr 08, 2020 11:45 pm
by wjr1995
libbz2-1.0 is already the newest version (1.0.6-9.2~deb10u1).

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Sun Apr 12, 2020 8:14 pm
by mat2
This is weird. The library should be in the correct location, see: https://packages.debian.org/buster/amd6 ... 0/filelist

Please attach output of
Code: Select all
dpkg -L libbz2-1.0:amd64

and
Code: Select all
grep -r . /etc/ld.so.conf.d/


Are you using the amd64 architecture?

It is possible to specify the library path manually, like
Code: Select all
export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu/

(see `man ld.so` ) but this should not be needed.

I'm still on Ubuntu 16.04, in my case
Code: Select all
mateusz@mateusz-ubuntu:~$ dpkg -L libbz2-1.0:amd64
/.
/lib
/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu/libbz2.so.1.0.4
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libbz2-1.0
/usr/share/doc/libbz2-1.0/copyright
/usr/share/doc/libbz2-1.0/changelog.Debian.gz
/lib/x86_64-linux-gnu/libbz2.so.1
/lib/x86_64-linux-gnu/libbz2.so.1.0
mateusz@mateusz-ubuntu:~$

Re: FAHclient won't start, Debian on Dell Studio

PostPosted: Fri Apr 24, 2020 6:41 pm
by wjr1995
Code: Select all
 dpkg -L libbz2-1.0:amd64
dpkg-query: package 'libbz2-1.0:amd64' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

Code: Select all
 grep -r . /etc/ld.so.conf.d/
/etc/ld.so.conf.d/libc.conf:# libc default configuration
/etc/ld.so.conf.d/libc.conf:/usr/local/lib
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:# Multiarch support
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:/usr/local/lib/x86_64-linux-gnu
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:/lib/x86_64-linux-gnu
/etc/ld.so.conf.d/x86_64-linux-gnu.conf:/usr/lib/x86_64-linux-gnu
/etc/ld.so.conf.d/i386-linux-gnu.conf:# Multiarch support
/etc/ld.so.conf.d/i386-linux-gnu.conf:/usr/local/lib/i386-linux-gnu
/etc/ld.so.conf.d/i386-linux-gnu.conf:/lib/i386-linux-gnu
/etc/ld.so.conf.d/i386-linux-gnu.conf:/usr/lib/i386-linux-gnu
/etc/ld.so.conf.d/i386-linux-gnu.conf:/usr/local/lib/i686-linux-gnu
/etc/ld.so.conf.d/i386-linux-gnu.conf:/lib/i686-linux-gnu
/etc/ld.so.conf.d/i386-linux-gnu.conf:/usr/lib/i686-linux-gnu
/etc/ld.so.conf.d/fakeroot-i386-linux-gnu.conf:/usr/lib/i386-linux-gnu/libfakerot


I'm running 64 bit but some packages may be i386 for compatibility/availability. Lemme know if you want me to check a specific one as well as how to do so. Also what did my output tell us from those two commands?
Since it wasn't installed, I took the liberty of installing libbz2-1.0:amd64 but I don't know what to do next