Page 1 of 1

Strange error at head of a client's log files

Posted: Mon Aug 04, 2025 8:48 am
by Schrödinger's cat
I'm really hoping that someone can help me solve this error.

It appears in log files after every reboot, before the client starts folding.

Code: Select all

06:28:11:I2:<config/>
06:28:11:I1:Opening Database
06:28:11:I1:F@H ID = <mind your own business>:28:11:I3:Loading default resource group
06:28:11:I1:Listening for HTTP on 127.0.0.1:7396
06:28:11:E :Exception: Control characters not allowed in JSON strings
06:28:11:E : At: <memory>:59:721

Re: Strange error at head of a client's log files

Posted: Mon Aug 04, 2025 2:21 pm
by toTOW
Do you have non-alphanumeric characters in your Username ?

Re: Strange error at head of a client's log files

Posted: Mon Aug 04, 2025 4:41 pm
by Schrödinger's cat
toTOW wrote: Mon Aug 04, 2025 2:21 pm Do you have non-alphanumeric characters in your Username ?
No. And, it's only happening on one of my 20 RPI 5B's.

Re: Strange error at head of a client's log files

Posted: Mon Aug 04, 2025 5:18 pm
by calxalot
Please try
fahctl state
and look for anything strange in the json printed. Though you probably won’t see control characters.

There is the option of finishing folding, stopping the service, deleting client.db, and restarting the service. You might want to add your account-token to config.xml before restarting the service.

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 5:05 am
by Schrödinger's cat
calxalot wrote: Mon Aug 04, 2025 5:18 pm Please try
fahctl state
and look for anything strange in the json printed. Though you probably won’t see control characters.

There is the option of finishing folding, stopping the service, deleting client.db, and restarting the service. You might want to add your account-token to config.xml before restarting the service.
fahctl state returns :

Code: Select all

Missing python3-websocket library
Please forgive my ignorance, but how do I install the python3-websocket library?

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 5:23 am
by calxalot
I think
sudo apt install python3-websocket

Or
pip3 install websocket-client
You might need sudo for that

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 6:12 am
by Schrödinger's cat
calxalot wrote: Mon Aug 04, 2025 5:18 pm Please try
fahctl state
and look for anything strange in the json printed. Though you probably won’t see control characters.
I looked and didn't see anything that seemed unusual.

I've been messing around with over clocking, and the problem started after that. Note that these are headless machines and the account token must be correct, as I can see it in the web control, even though it's a remote machine.

Do you think I should delete the client.db, as it might have become corrupted?

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 6:34 am
by calxalot
Yes, that was the thought.
Make sure the account token is in config.xml

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 7:02 am
by Schrödinger's cat
calxalot wrote: Tue Aug 05, 2025 6:34 am Yes, that was the thought.
Make sure the account token is in config.xml
I don't see the options of deleting the client.db, stopping or restarting the service in fahctl help.

Did I misunderstand that fahctl can perform these action?

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 7:05 am
by calxalot
No, it cannot.

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 7:06 am
by calxalot
You need to use systemctl commands

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 7:07 am
by calxalot
fahctl -h
Shows all it can do

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 7:12 am
by calxalot
Commands are

Code: Select all

systemctl status --no-pager -l fah-client
sudo systemctl start fah-client
sudo systemctl stop fah-client
sudo systemctl restart fah-client

sudo systemctl daemon-reload
On some linux distributions, you might not need sudo with systemctl.

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 7:15 am
by calxalot
Your config.xml is in /etc/fah-client/
client.db is in /var/lib/fah-client/

All assuming you are using the standard service install of fah.

Re: Strange error at head of a client's log files

Posted: Tue Aug 05, 2025 7:26 am
by Schrödinger's cat
Thanks for all your help calxalot.

I ended up doing:

Code: Select all

sudo nano /etc/fah-client/config.xml
sudo service fah-client stop
sudo rm /var/lib/fah-client/client.db
sudo reboot
Which fixed the error, and after rebooting, I removed the account token from config.xml

Code: Select all

sudo service fah-client stop
sudo nano /etc/fah-client/config.xml
sudo service fah-client start