Jump to content

Terminal can't find command "FAHClient"

So, I am trying to automate F@H as well as the debian PC it's running on to only fold during the day, because it runs in my bedroom and I can't sleep with the fan noise.

After doing research I found the best way to automatically pause/unpause the client before the PC goes into suspension/after it wakes up again, is to edit the crontab file.

Before doing that, I wanted to test if the commands in the guide I found actually worked, and inconveniently, they don't (See picture).

20231222_154126.thumb.jpg.5ef6ed071509dc41bb7cdeb364410fa3.jpg

 

What am I doing wrong?

Side note: F@H was running during my tests.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

I haven't run F@H on Linux yet but from their Official web page it looks like the command to launch it should be 

sudo /etc/init.d/FAHClient start

so the command probably can't be found as you are not in the correct directory. Here's the full page for more info.

Command Line Only Options – Folding@home (foldingathome.org)

It looks like there is a seperate command for stopping it so you might need 2 cronjobs to get it working correctly, but that shouldn't be an issue.

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Dreckssackblase said:

It looks like there is a seperate command for stopping it so you might need 2 cronjobs to get it working correctly, but that shouldn't be an issue.

Yeah the guide mentioned that as well.

5 minutes ago, Dreckssackblase said:

I haven't run F@H on Linux yet but from their Official web page it looks like the command to launch it should be 

sudo /etc/init.d/FAHClient start

20231222_160451.thumb.jpg.c66a1102ba0f51fcf5825eab6d22948a.jpg

It can't find this one either.

Running it as root doesn't work either.

Edited by Average Nerd

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

So are the files not even in the directory ?

cd ./etc/init.d/

and then

dir

how did you install the client. Via the manual installation instructions on their site ?

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Dreckssackblase said:

how did you install the client. Via the manual installation instructions on their site ?

I used a snap package because the files in the guide were outdated, so depenencies were missing, and the new files just weren't found by the Terminal.

4 minutes ago, Dreckssackblase said:

So are the files not even in the directory ?

20231222_162424.thumb.jpg.19290e4fd9647d4c07ec500bce2c0552.jpg

There is no directory, it seems.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, htimsenyawed said:

Can you do an ls after doing a cd ./etc/ and post results.

20231222_164400.thumb.jpg.2bdac75078130127a9842ce7d3fc54e9.jpg

Is that correct or did you mean something else?

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, htimsenyawed said:

 

That's what I meant, but you're still receiving an error when trying to cd. 

 

Remove the period from your directory - I just tested this on Ubuntu server.

 

So do cd /etc and then ls

Well i guess it worked, but I have no idea what to do with all this information.20231222_165135.thumb.jpg.e98b2eacd47eda35278e00f7f1445d4c.jpg

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, htimsenyawed said:

Now, cd init.d and when you have changed to that directory, run ls again and post results.

 

20231222_165610.jpg

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, htimsenyawed said:

have you tried installing F@H without using Snap packages? 

Yes, it didn't work at all.

The packages are simply the remnants of a lot of struggling that didn't lead anywhere.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, htimsenyawed said:

 

If you're comfortable using Docker, I would use linuxserver/foldingathome to get my instance started.

Is there any way to make the existing client run as a service?

Because most of the things described on the website you linked are way beyond my extremely basic understanding of Linux.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

Here is my Kubuntu setup I go through to make it work on my machine.

 

Download the client software:  fahclient_7.6.21_amd64.deb

 

Get the python3 unofficial control software.  If you are OK running with the web control, then you don't need anything else.

unofficial control python3 software: Github link for Python3 FAH-control

On the GitHub page it will give you some dependencies you need to load up to make the software work but it is all in the repositories. 

 

Install the client first, then install the control.  That should get you up and running but it not here are some things I have made notes for because one of my systems I have played with so much I should reload but have not taken the time.   You shouldn't need this, this is for my self induced issues.

 

#start and stop folding at home
sudo systemctl stop FAHClient
sudo systemctl start FAHClient

#edit folding at home config file
sudo nano /etc/fahclient/config.xml  

#FAH log files and core location
/var/lib/fahclient

#when the GPU can't find the opencl library in the directory:

cd /usr/lib/x86_64-linux-gnu
sudo ln -s libOpenCL.so.1 libOpenCL.so


#make sure there are not a ton of FAHClients all trying to run at the same time. (an issue I have on one machine after a reboot) 
ps -e | grep FAHClient

#if a lot are running, kill them all and manually start one up.
sudo killall FAHClient


With the control software I have it running a couple of different machines and they all are running a single control program.

 

I hope this helps.
 

Link to comment
Share on other sites

Link to post
Share on other sites

24 minutes ago, vsteel said:

Here is my Kubuntu setup I go through to make it work on my machine.

 

Download the client software:  fahclient_7.6.21_amd64.deb

 

Get the python3 unofficial control software.  If you are OK running with the web control, then you don't need anything else.

unofficial control python3 software: Github link for Python3 FAH-control

On the GitHub page it will give you some dependencies you need to load up to make the software work but it is all in the repositories. 

 

Install the client first, then install the control.  That should get you up and running but it not here are some things I have made notes for because one of my systems I have played with so much I should reload but have not taken the time.   You shouldn't need this, this is for my self induced issues.

 

#start and stop folding at home
sudo systemctl stop FAHClient
sudo systemctl start FAHClient

#edit folding at home config file
sudo nano /etc/fahclient/config.xml  

#FAH log files and core location
/var/lib/fahclient

#when the GPU can't find the opencl library in the directory:

cd /usr/lib/x86_64-linux-gnu
sudo ln -s libOpenCL.so.1 libOpenCL.so


#make sure there are not a ton of FAHClients all trying to run at the same time. (an issue I have on one machine after a reboot) 
ps -e | grep FAHClient

#if a lot are running, kill them all and manually start one up.
sudo killall FAHClient


With the control software I have it running a couple of different machines and they all are running a single control program.

 

I hope this helps.
 

I appreciate your help, but I don't want to reinstall everything, since I ran into some weird issues when I tried this the first time, the most annoying one being that the downloaded packages were nowhere to be found except in the file manager thing. Terminal didn't find them and neither did the preinstalled packet manager. So by using the snap package I just avoided all of this nonsense entirely, which has now come back to bite me, apparently.

 

Long story short, can't I just somehow force the client to run as a service?

 

Update: By digging around in the files I found the correct directory, now it works.

 

20231222_182149.jpg

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

57 minutes ago, Average Nerd said:

Update: By digging around in the files I found the correct directory, now it works

Well, kind of at least. It's still missing the "send" command as well as the options "pause", "unpause" and "finish" for some reason. I have no idea where they are, entering them just yields a "invalid argument" error.

Also it claims FAHClient isn't running, so now I am even more confused because it has been completing WUs for around 2 days now.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

11 hours ago, htimsenyawed said:

 

Open terminal and list all of your Snap packs with snap list - find your F@H installation and use sudo snap remove (Snap pack name here) to remove the Snap from your installation. 

 

Once that's done, you can either try reusing the Snap packs installer (I would not) or using a manual installation method or using Docker to create a F@H container. 

 

I lean heavily toward the third option, because once you install Docker you can install the container from linuxserver/foldingathome by following this guide step by step.

Will I lose the progress I already made? Because it is as of now still working on a big WU, and will be for probably the rest of the day.

Also, sorry for the late response, I had everything off for the night already and when I woke up the VGA interface on one of my monitors said no, so I had to troubleshoot that.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, htimsenyawed said:

 

Yes, it'll be like starting over from the beginning.

 

Edit: but anything your account is tied to is still there, this is just the application.

Okay, so the credit I got for the completed WU's will not be erased?

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

On 12/22/2023 at 10:04 PM, htimsenyawed said:

Docker to create a F@H container. 

Problem: Docker can't start for some reason.

20231224_184947.thumb.jpg.cc6ca9896e321d3b6999190bf4af8629.jpg

What steps do I need to take to fix that?

Rebooting did nothing.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

48 minutes ago, htimsenyawed said:


What’s the results of journalctl -xe?

20231224_205106.thumb.jpg.1dcfac080a511816e8defbb7be4db234.jpg

Whatever all this means.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

On 12/24/2023 at 8:00 PM, htimsenyawed said:


What’s the results of journalctl -xe?

Okay, so, I tried again today, it didn't work, but journalctl -xe now gives a different result:

 

20231226_131503.jpg

 

Edit: I fixed it, during the downloading of the files from this gigantic list I accidentally downloaded a outdated version of containerd.io, so now that this is up to date, all is well. For the most part.

In the time it took me to figure that out, I had tried to manually install F@H, the client works and so do the commands, but FAHControl doesn't install properly because of missing dependencies that I tried to get from a guide in this post on the folding forum, but I can't download them, all I get is error 404 when trying to download the last two things.

 

Edit 2: The OS completely died. Had to reinstall it. Great.

But now at least FAHClient is back, even though all I have to control it is the very stripped down web control and the command line.

Edited by Average Nerd
Some things are fixed, others still broken.

English is not my first language, so please excuse any confusion or misunderstandings on my end.

I like to edit my posts a lot.

 

F@H-Stats

The Folding rig:

CPU: Core i7 4790K

RAM: 16 8GB (2x4GB) DDR3-1600

GPU 1: RTX 2070 Super

GPU 2: GTX 1060 3GB

PSU: Gigabyte P450B EVGA 600BR EVGA 750BR

OS: Windows 11 Home

 

Linux let me down.

.- -- --- --. ..- ...         

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×