Fedora 31 problems

Moderators: Site Moderators, FAHC Science Team

Post Reply
Neill
Posts: 2
Joined: Wed Feb 11, 2015 6:34 pm

Fedora 31 problems

Post by Neill »

Upgraded from fedora 30 to fedora 31 with the following problems:

1. FAHClient failed to start
2. FAHControl failed with

File "/usr/bin/FAHControl", line 58
if sock.recv(1024).strip() == 'OK': print 'Ok'
^
SyntaxError: invalid syntax

I was running version fah 7.4.4.1
Thanks - any help is appreciated.
MeeLee
Posts: 1375
Joined: Tue Feb 19, 2019 10:16 pm

Re: Fedora 31 problems

Post by MeeLee »

Current versions is 7.5.1
Install that one and report back.
Neill
Posts: 2
Joined: Wed Feb 11, 2015 6:34 pm

Re: Fedora 31 problems

Post by Neill »

Thanks, I installed 7.5.1 and got the same problem. Then I found out that Fedora 31 had switched to python 3 as the default. To fix the problem change the 1st line of /usr/lib/FAHControl from
#!/usr/bin/env python to #!/usr/bin/env python2
Thanks for your help, Neill.
JimboPalmer
Posts: 2573
Joined: Mon Feb 16, 2009 4:12 am
Location: Greenwood MS USA

Re: Fedora 31 problems

Post by JimboPalmer »

I thank you for reporting back what worked, our help improves if we know what works to fix issues!
Tsar of all the Rushers
I tried to remain childlike, all I achieved was childish.
A friend to those who want no friends
MeeLee
Posts: 1375
Joined: Tue Feb 19, 2019 10:16 pm

Re: Fedora 31 problems

Post by MeeLee »

Please elaborate on what file you've changed?
FahControl does need Python 2 dependencies, which also are installed, but somehow not called upon in Ubuntu.
However, Python 3 has some different syntaxis, so there might be some issues with bugs.
If your solution works, let us know which files you've changed, and I'll see if the same is true for Ubuntu and it's variants.
PS, if it's true for Ubuntu, the same will be true for Debian.
Then those users who're still running Debian 8 (Jessie) or Stretch (9), can update to Buster (10) ; or those running Ubuntu variants based on Bionic Beaver (18.04), could update to Disco Dingo (19.04) or Eoan Ermine (19.10).
MeeLee
Posts: 1375
Joined: Tue Feb 19, 2019 10:16 pm

Re: Fedora 31 problems

Post by MeeLee »

I have been playing around with Ubuntu 19, and the solution offered doesn't work.
The location of FAHControl here, is in /usr/bin instead of /usr/lib.

What I think is happening, is what happened to me, when I updated Lubunu 18.04 (or 18.10) to 19.04.
right after the update procedure, it was possible to run FahControl.
However, as soon as more system updates were done (I presume dpkg decided that a python package was no longer needed) it broke compatibility, and FAHControl no loner worked.

That being said, I can run FAHClient (CPU) very nicely on Ubuntu, so I would presume it would work the same for Fedora/Redhat/CentOs/Debian/Mint.
I haven't tried GPU, since I have no access to that yet.
I presume as soon as you do a full upgrade, your system will do the same as mine, and break compatibility.
wdanwatts
Posts: 65
Joined: Wed Oct 22, 2008 4:46 pm

Re: Fedora 31 problems

Post by wdanwatts »

On my Fedora system, after upgrading to 31 from 30 the FAHControl icon wouldn't bring up the GUI.

I changed the first line of /usr/bin/FAHControl from:
#!/usr/bin/python

to

#!/usr/bin/python2

and then the icon worked again.
giuliohome
Posts: 3
Joined: Sat Mar 28, 2020 10:53 am

Re: Fedora 31 problems

Post by giuliohome »

Thank you! That worked for me, I had the exact same problem.
Now please, help me for my next issue please

Code: Select all

Connection Error: 111: Connection refused
ERROR on connection to 127.0.0.1:36330: [Errno 111] Connection refused
I think I added the port to the firewall (not 100% sure I did it well): which are the correct instructions? (for Fedora 31)
Notice that I also stopped the firewall momentarily just to check: so I'm pretty sure it isn't the cause.
Thank you again!
Last edited by giuliohome on Sat Mar 28, 2020 2:02 pm, edited 1 time in total.
giuliohome
Posts: 3
Joined: Sat Mar 28, 2020 10:53 am

Re: Fedora 31 problems

Post by giuliohome »

Anyway a positive news is that (except for the error above if I run FAHControl..) I have started the client and the viewer and all the rest seems fine: my cpu is working at 99% for Folding@Home already since some hours ago... (we all hope it might contribute to finding something against covid19 asap)
giuliohome
Posts: 3
Joined: Sat Mar 28, 2020 10:53 am

Re: Fedora 31 problems

Post by giuliohome »

Ok, :D solved the problem of "connection refused" from FAHControl: somehow I had set the wrong number, now it runs and looks much better.
FYI I still see an error in the console, don't know if it is important

Code: Select all

[giuliohome@localhost ~]$ FAHControl
Loading theme Default
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fah/Client.py", line 352, in update
    self.process_message(app, type, data)
  File "/usr/lib/python2.7/site-packages/fah/Client.py", line 336, in process_message
    elif type == 'units': self.process_units(app, data)
  File "/usr/lib/python2.7/site-packages/fah/Client.py", line 287, in process_units
    if self.selected: self.config.update_status_ui(app)
  File "/usr/lib/python2.7/site-packages/fah/ClientConfig.py", line 534, in update_status_ui
    self.update_status_slots(app)
  File "/usr/lib/python2.7/site-packages/fah/ClientConfig.py", line 435, in update_status_slots
    app.slot_status_tree.get_selection().select_iter(selected_row)
TypeError: iter should be a GtkTreeIter
wdanwatts
Posts: 65
Joined: Wed Oct 22, 2008 4:46 pm

Re: Fedora 31 problems

Post by wdanwatts »

After my last update in Fedora 32, I again had to change the first line in /usr/bin/FAHControl from:
#!/usr/bin/python

to

#!/usr/bin/python2

and then the icon worked again.
However, my gpu won't run. The log shows:

Code: Select all

02:42:46:WU00:FS00:Starting
02:42:46:WU00:FS00:Removing old file 'work/00/logfile_01-20201025-021043.txt'
02:42:46:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/lin/64bit/22-0.0.13/Core_22.fah/FahCore_22 -dir 00 -suffix 01 -version 706 -lifeline 1045 -checkpoint 30 -gpu-vendor nvidia -opencl-platform 0 -opencl-device 0 -cuda-device 0 -gpu 0
02:42:46:WU00:FS00:Started FahCore on PID 214269
02:42:46:WU00:FS00:Core PID:214273
02:42:46:WU00:FS00:FahCore 0x22 started
02:42:46:WU00:FS00:0x22:*********************** Log Started 2020-10-25T02:42:46Z ***********************
02:42:46:WU00:FS00:0x22:*************************** Core22 Folding@home Core ***************************
02:42:46:WU00:FS00:0x22:       Core: Core22
02:42:46:WU00:FS00:0x22:       Type: 0x22
02:42:46:WU00:FS00:0x22:    Version: 0.0.13
02:42:46:WU00:FS00:0x22:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
02:42:46:WU00:FS00:0x22:  Copyright: 2020 foldingathome.org
02:42:46:WU00:FS00:0x22:   Homepage: https://foldingathome.org/
02:42:46:WU00:FS00:0x22:       Date: Sep 19 2020
02:42:46:WU00:FS00:0x22:       Time: 01:10:35
02:42:46:WU00:FS00:0x22:   Revision: 571cf95de6de2c592c7c3ed48fcfb2e33e9ea7d3
02:42:46:WU00:FS00:0x22:     Branch: core22-0.0.13
02:42:46:WU00:FS00:0x22:   Compiler: GNU 4.8.2 20140120 (Red Hat 4.8.2-15)
02:42:46:WU00:FS00:0x22:    Options: -std=c++11 -fsigned-char -ffunction-sections -fdata-sections -O3
02:42:46:WU00:FS00:0x22:             -funroll-loops -DOPENMM_GIT_HASH="\"189320d0\""
02:42:46:WU00:FS00:0x22:   Platform: linux2 4.19.76-linuxkit
02:42:46:WU00:FS00:0x22:       Bits: 64
02:42:46:WU00:FS00:0x22:       Mode: Release
02:42:46:WU00:FS00:0x22:Maintainers: John Chodera <john.chodera@choderalab.org> and Peter Eastman
02:42:46:WU00:FS00:0x22:             <peastman@stanford.edu>
02:42:46:WU00:FS00:0x22:       Args: -dir 00 -suffix 01 -version 706 -lifeline 214269 -checkpoint 30
02:42:46:WU00:FS00:0x22:             -gpu-vendor nvidia -opencl-platform 0 -opencl-device 0 -cuda-device
02:42:46:WU00:FS00:0x22:             0 -gpu 0
02:42:46:WU00:FS00:0x22:************************************ libFAH ************************************
02:42:46:WU00:FS00:0x22:       Date: Sep 15 2020
02:42:46:WU00:FS00:0x22:       Time: 05:14:43
02:42:46:WU00:FS00:0x22:   Revision: 44301ed97b996b63fe736bb8073f22209cb2b603
02:42:46:WU00:FS00:0x22:     Branch: HEAD
02:42:46:WU00:FS00:0x22:   Compiler: GNU 4.8.2 20140120 (Red Hat 4.8.2-15)
02:42:46:WU00:FS00:0x22:    Options: -std=c++11 -fsigned-char -ffunction-sections -fdata-sections -O3
02:42:46:WU00:FS00:0x22:             -funroll-loops
02:42:46:WU00:FS00:0x22:   Platform: linux2 4.19.76-linuxkit
02:42:46:WU00:FS00:0x22:       Bits: 64
02:42:46:WU00:FS00:0x22:       Mode: Release
02:42:46:WU00:FS00:0x22:************************************ CBang *************************************
02:42:46:WU00:FS00:0x22:       Date: Sep 15 2020
02:42:46:WU00:FS00:0x22:       Time: 05:11:04
02:42:46:WU00:FS00:0x22:   Revision: 33fcfc2b3ed2195a423606a264718e31e6b3903f
02:42:46:WU00:FS00:0x22:     Branch: HEAD
02:42:46:WU00:FS00:0x22:   Compiler: GNU 4.8.2 20140120 (Red Hat 4.8.2-15)
02:42:46:WU00:FS00:0x22:    Options: -std=c++11 -fsigned-char -ffunction-sections -fdata-sections -O3
02:42:46:WU00:FS00:0x22:             -funroll-loops -fPIC
02:42:46:WU00:FS00:0x22:   Platform: linux2 4.19.76-linuxkit
02:42:46:WU00:FS00:0x22:       Bits: 64
02:42:46:WU00:FS00:0x22:       Mode: Release
02:42:46:WU00:FS00:0x22:************************************ System ************************************
02:42:46:WU00:FS00:0x22:        CPU: AMD Phenom(tm) II X2 545 Processor
02:42:46:WU00:FS00:0x22:     CPU ID: AuthenticAMD Family 16 Model 4 Stepping 2
02:42:46:WU00:FS00:0x22:       CPUs: 2
02:42:46:WU00:FS00:0x22:     Memory: 3.83GiB
02:42:46:WU00:FS00:0x22:Free Memory: 149.95MiB
02:42:46:WU00:FS00:0x22:    Threads: POSIX_THREADS
02:42:46:WU00:FS00:0x22: OS Version: 5.8
02:42:46:WU00:FS00:0x22:Has Battery: false
02:42:46:WU00:FS00:0x22: On Battery: false
02:42:46:WU00:FS00:0x22: UTC Offset: -5
02:42:46:WU00:FS00:0x22:        PID: 214273
02:42:46:WU00:FS00:0x22:        CWD: /var/lib/fahclient/work
02:42:46:WU00:FS00:0x22:************************************ OpenMM ************************************
02:42:46:WU00:FS00:0x22:   Revision: 189320d0
02:42:46:WU00:FS00:0x22:********************************************************************************
02:42:46:WU00:FS00:0x22:Project: 14907 (Run 213, Clone 2, Gen 100)
02:42:46:WU00:FS00:0x22:Unit: 0x0000008781d59d695f52602e4bed2dc7
02:42:46:WU00:FS00:0x22:Reading tar file core.xml
02:42:46:WU00:FS00:0x22:Reading tar file integrator.xml
02:42:46:WU00:FS00:0x22:Reading tar file state.xml
02:42:47:WU00:FS00:0x22:Reading tar file system.xml
02:42:48:WU00:FS00:0x22:Digital signatures verified
02:42:48:WU00:FS00:0x22:Folding@home GPU Core22 Folding@home Core
02:42:48:WU00:FS00:0x22:Version 0.0.13
02:42:48:WU00:FS00:FahCore returned: INTERRUPTED (102 = 0x66)
Help!
wdanwatts
Posts: 65
Joined: Wed Oct 22, 2008 4:46 pm

Re: Fedora 31 problems

Post by wdanwatts »

I looked at "Nvidia GPU error INTERRUPTED (102 = 0x66)" and tried what was suggested (commenting out the line in /etc/OpenCL/vendors/pocl.icd) and the GPU is now engaged in calculations again. I'll update more when I can compare output rates.
It LOOKS like the computation rate is the same (Yes. It is fully back as before.)
Post Reply