BOINC can't connect to localhost on Fedora. Again!

Message boards : Questions and problems : BOINC can't connect to localhost on Fedora. Again!
Message board moderation

To post messages, you must log in.

AuthorMessage
Joe Zeff
Avatar

Send message
Joined: 4 Apr 13
Posts: 14
United States
Message 76706 - Posted: 22 Mar 2017, 21:50:52 UTC

I just had to do a clean installation of Fedora 25, and I've installed BOINC, version 7.6.22 (X64). I'm trying to connect to my machine so that I can add projects, but can't. This isn't unusual for me, either, because every time I have to install BOINC I go through the same problem. Alas, I haven't had to do it for several years, so I don't remember the magic incantation. Please help, as I've been a member for years and want to keep contributing.
ID: 76706 · Report as offensive
Joe Zeff
Avatar

Send message
Joined: 4 Apr 13
Posts: 14
United States
Message 76709 - Posted: 22 Mar 2017, 22:43:12 UTC

Something else that may be significant is that when I have boincmgr open, I keep getting notices that the client has restarted 3 times in the last two minutes. As I'm only using 845MB out of 8GB, memory isn't an issue.
ID: 76709 · Report as offensive
Joe Zeff
Avatar

Send message
Joined: 4 Apr 13
Posts: 14
United States
Message 76715 - Posted: 23 Mar 2017, 7:26:33 UTC - in response to Message 76709.  

I got it! As I use Fedora, I did a search on the Fedora Forum and found this: http://forums.fedoraforum.org/showthread.php?t=313161&highlight=BOINC As I ran boincmgr from ~/.boinc I didn't need to enter the password, it just came right up! Hope this helps others trying to get reconnected.
ID: 76715 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 76742 - Posted: 24 Mar 2017, 7:23:24 UTC

I just want to add that Fedora in particular sets up the BOINC Client and Manager in a particular way to make it secure. The instructions you linked to undo this. Just so any future reader is aware of that.
ID: 76742 · Report as offensive
Joe Zeff
Avatar

Send message
Joined: 4 Apr 13
Posts: 14
United States
Message 76743 - Posted: 24 Mar 2017, 7:33:09 UTC - in response to Message 76742.  

Really? How? It's not like it's disabling SELinux, or running the program as root. If there's a security issue, please explain.
ID: 76743 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 76747 - Posted: 24 Mar 2017, 11:45:47 UTC

Access to the content of gui_rpc_auth.cfg allows anyone to control your locally installed BOINC client. Anyone with read access to client_state.xml can read your authenticator and login with your account at your projects. Securing the client directory and presetting a password was done intentionally by the Fedora packager. This error report comes up from time to time and it's not something BOINC has control over directly.
ID: 76747 · Report as offensive
Joe Zeff
Avatar

Send message
Joined: 4 Apr 13
Posts: 14
United States
Message 76755 - Posted: 24 Mar 2017, 20:08:26 UTC - in response to Message 76747.  
Last modified: 24 Mar 2017, 20:22:24 UTC

I'm not saying that this is a bug, or that BOINC should do anything about it. It is, however, a workaround, and the only one I could find that works. I think that I even tried running boincmgr in the same directory as the key and it failed. If you have a safer method, please tell me and I'll post it at the fedoraforum as an addition to that thread.

And, btw, I didn't mention Fedora in the thread's title because I didn't think (and still don't) that either the issue or the workaround was distro-specific. I'll not change it back, but I did want to comment.

Edit:

On further thought, it's trivially easy to remove even read access for all but you and members of your group after you've got BOINC running and that would make sure that other users of that box, if any, wouldn't be able to access it.
ID: 76755 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 76869 - Posted: 26 Mar 2017, 9:09:35 UTC - in response to Message 76755.  
Last modified: 26 Mar 2017, 9:13:06 UTC

On further thought, it's trivially easy to remove even read access for all but you and members of your group after you've got BOINC running and that would make sure that other users of that box, if any, wouldn't be able to access it.

That would be my safer way too. Allow group read access to gui_rpc_auth.cfg and add yourself to the boinc group. That should make it possible for any member of the group to control the client as long as the manager is started within the client directory. Either cd into this before starting the manager or use the commandline argument -d and specify the /var/lib directory.

Fedora is the only distribution (I know of) that by default sets a password. On Debian where the file is also protected in a similar way they don't set a password so users don't experience this problem until they set a password but then they usually already added themself to the boinc group.
ID: 76869 · Report as offensive
David Ocame

Send message
Joined: 16 May 17
Posts: 4
United States
Message 77963 - Posted: 17 May 2017, 14:55:06 UTC - in response to Message 76715.  

I wish I could say this worked for me on F25, but it did not. Other ideas? Thanks!
ID: 77963 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 77967 - Posted: 17 May 2017, 15:50:43 UTC

Group changes take effect after the next login. Did you restart after making the changes? What changes did you make from the linked article? How do you start the BOINC Manager (if you added your user to the boinc group and made the file in question group readable the menu link provided by fedora should work, if not we need to know how things look like on your system)?
ID: 77967 · Report as offensive
MarkJ
Volunteer tester
Help desk expert

Send message
Joined: 5 Mar 08
Posts: 272
Australia
Message 78037 - Posted: 20 May 2017, 3:16:31 UTC

On Debian I have a password in the gui_rpc_auth.cfg. In order to run the manager locally I added a desktop launcher but set the properties to "boincmgr --password xxx" where xxx is the password. Its able to connect to the BOINC core client. Without the password it won't.
MarkJ
ID: 78037 · Report as offensive
Joe Zeff
Avatar

Send message
Joined: 4 Apr 13
Posts: 14
United States
Message 78337 - Posted: 28 May 2017, 21:02:26 UTC - in response to Message 77967.  

Group changes take effect after the next login. Did you restart after making the changes?

This is Linux we're talking about, ChristianB, not Windows. You don't need to restart to make changes like this take effect, just log out and back in again. Just thought I'd mention it.
ID: 78337 · Report as offensive

Message boards : Questions and problems : BOINC can't connect to localhost on Fedora. Again!

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.