Strange error at head of a client's log files

Moderators: Site Moderators, FAHC Science Team

Post Reply
Schrödinger's cat
Posts: 120
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
20 x Raspberry Pi 5 Model B 2GB RAM
Location: VIC, Australia

Strange error at head of a client's log files

Post 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
Image
toTOW
Site Moderator
Posts: 6459
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

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

Post by toTOW »

Do you have non-alphanumeric characters in your Username ?
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
Schrödinger's cat
Posts: 120
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
20 x Raspberry Pi 5 Model B 2GB RAM
Location: VIC, Australia

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

Post 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.
Image
calxalot
Site Moderator
Posts: 1569
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

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

Post 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.
Schrödinger's cat
Posts: 120
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
20 x Raspberry Pi 5 Model B 2GB RAM
Location: VIC, Australia

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

Post 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?
Image
calxalot
Site Moderator
Posts: 1569
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

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

Post by calxalot »

I think
sudo apt install python3-websocket

Or
pip3 install websocket-client
You might need sudo for that
Schrödinger's cat
Posts: 120
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
20 x Raspberry Pi 5 Model B 2GB RAM
Location: VIC, Australia

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

Post 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?
Image
calxalot
Site Moderator
Posts: 1569
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

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

Post by calxalot »

Yes, that was the thought.
Make sure the account token is in config.xml
Schrödinger's cat
Posts: 120
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
20 x Raspberry Pi 5 Model B 2GB RAM
Location: VIC, Australia

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

Post 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?
Image
calxalot
Site Moderator
Posts: 1569
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

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

Post by calxalot »

No, it cannot.
calxalot
Site Moderator
Posts: 1569
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

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

Post by calxalot »

You need to use systemctl commands
calxalot
Site Moderator
Posts: 1569
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

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

Post by calxalot »

fahctl -h
Shows all it can do
calxalot
Site Moderator
Posts: 1569
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

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

Post 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.
calxalot
Site Moderator
Posts: 1569
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

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

Post 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.
Schrödinger's cat
Posts: 120
Joined: Mon Jan 30, 2023 10:43 am
Hardware configuration: NVIDIA RTX 4070
20 x Raspberry Pi 5 Model B 2GB RAM
Location: VIC, Australia

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

Post 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
Image
Post Reply