Fedora 31 problems

Moderators: Site Moderators, FAHC Science Team

Fedora 31 problems

Postby Neill » Wed Oct 30, 2019 6:35 pm

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.
Neill
 
Posts: 2
Joined: Wed Feb 11, 2015 7:34 pm

Re: Fedora 31 problems

Postby MeeLee » Thu Oct 31, 2019 6:47 am

Current versions is 7.5.1
Install that one and report back.
MeeLee
 
Posts: 714
Joined: Tue Feb 19, 2019 11:16 pm

Re: Fedora 31 problems

Postby Neill » Thu Oct 31, 2019 4:45 pm

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.
Neill
 
Posts: 2
Joined: Wed Feb 11, 2015 7:34 pm

Re: Fedora 31 problems

Postby JimboPalmer » Thu Oct 31, 2019 5:18 pm

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
JimboPalmer
 
Posts: 1780
Joined: Mon Feb 16, 2009 5:12 am
Location: Greenwood MS USA

Re: Fedora 31 problems

Postby MeeLee » Fri Nov 01, 2019 7:59 am

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: 714
Joined: Tue Feb 19, 2019 11:16 pm

Re: Fedora 31 problems

Postby MeeLee » Sat Nov 02, 2019 6:52 am

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.
MeeLee
 
Posts: 714
Joined: Tue Feb 19, 2019 11:16 pm

Re: Fedora 31 problems

Postby wdanwatts » Tue Dec 03, 2019 2:15 am

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.
wdanwatts
 
Posts: 32
Joined: Wed Oct 22, 2008 5:46 pm

Re: Fedora 31 problems

Postby giuliohome » Sat Mar 28, 2020 12:01 pm

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 3:02 pm, edited 1 time in total.
giuliohome
 
Posts: 3
Joined: Sat Mar 28, 2020 11:53 am

Re: Fedora 31 problems

Postby giuliohome » Sat Mar 28, 2020 2:56 pm

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 11:53 am

Re: Fedora 31 problems

Postby giuliohome » Sat Mar 28, 2020 4:22 pm

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
giuliohome
 
Posts: 3
Joined: Sat Mar 28, 2020 11:53 am


Return to Discussions of General-FAH topics

Who is online

Users browsing this forum: No registered users and 3 guests

cron