Questions and Answers : Unix/Linux : CentOS Homepage - Cern
Message board moderation

To post messages, you must log in.

AuthorMessage
maeax

Send message
Joined: 2 May 07
Posts: 2071
Credit: 156,087,548
RAC: 104,107
Message 42379 - Posted: 6 May 2020, 6:32:55 UTC

ID: 42379 · Report as offensive     Reply Quote
djoser
Avatar

Send message
Joined: 30 Aug 14
Posts: 145
Credit: 10,847,070
RAC: 0
Message 43004 - Posted: 10 Jul 2020, 15:40:16 UTC

Hello everyone!
I was curious about CentOS and installed the latest build 8.2-2004 on one of my backup machines.
I never used CentOS before, so i'm a noob regarding this OS.

Now i'm running into problems with the BOINC manager which does not connect to localhost.

I did the following steps to install BOINC on a fresh OS installation:

Installation of CVMFS for native applications:
sudo yum install https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm
sudo yum install -y cvmfs
sudo cvmfs_config setup
sudo wget https://lhcathome.cern.ch/lhcathome/download/default.local -O /etc/cvmfs/default.local
sudo cvmfs_config reload
cvmfs_config probe

Installation of BOINC client and manager:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf config-manager --set-enabled PowerTools
sudo yum install boinc-client boinc-manager

This installed CVMFS (2.7.3) and BOINC 7.16.6. No problems up to here.
When i now start the BOINC manager it tells me "not connected" (to localhost).
I already tried to start the BOINC client manually and afterwards the manager, but i was out of luck so far.

Anyone here who can explain how to get BOINC working?
Thanks in advance and regards,
djoser
Why mine when you can research? - GRIDCOIN - Real cryptocurrency without wasting hashes! https://gridcoin.us
ID: 43004 · Report as offensive     Reply Quote
Henry Nebrensky

Send message
Joined: 13 Jul 05
Posts: 165
Credit: 14,925,288
RAC: 34
Message 43005 - Posted: 10 Jul 2020, 17:07:20 UTC - in response to Message 43004.  

Anyone here who can explain how to get BOINC working?
I did have a CentOS 8 box running for a long time but it's now down for the summer, so I can't easily check details.

The BOINC client from EPEL will install as a daemon in /var/lib/boinc; you then need to do something like a "system boinc-client start" or systemctl equivalent to actually start it. To authenticate as a user and use boinccmd, you need a local copy of a file I forget the name of, which you can (as root) copy from /var/lib/boinc to a suitable local directory.

The first thing to check (with ps) is whether boinc is already running or not.
ID: 43005 · Report as offensive     Reply Quote
djoser
Avatar

Send message
Joined: 30 Aug 14
Posts: 145
Credit: 10,847,070
RAC: 0
Message 43006 - Posted: 10 Jul 2020, 18:03:56 UTC - in response to Message 43005.  

Hello and thanks for your answer!

you then need to do something like a "system boinc-client start" or systemctl equivalent to actually start it.

This is what i did and meant by "trying to start BOINC client manually". That didn't work, probably because of the "missing" file you mentioned. The deamon was not to be found in taskmanager.
Why mine when you can research? - GRIDCOIN - Real cryptocurrency without wasting hashes! https://gridcoin.us
ID: 43006 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2071
Credit: 156,087,548
RAC: 104,107
Message 43007 - Posted: 10 Jul 2020, 18:15:24 UTC - in response to Message 43006.  
Last modified: 10 Jul 2020, 18:15:49 UTC

Have CentOS7:
Starting Boinc with boincmgr -d /var/lib/boinc in Console as root
ID: 43007 · Report as offensive     Reply Quote
djoser
Avatar

Send message
Joined: 30 Aug 14
Posts: 145
Credit: 10,847,070
RAC: 0
Message 43008 - Posted: 10 Jul 2020, 18:22:52 UTC - in response to Message 43007.  

Hello maeax,
trying this gives me:

No protocol specified
Unable to init server: Could not connect: Connection refused
Error: Unable to initialize GTK+, is DISPLAY set properly?
Why mine when you can research? - GRIDCOIN - Real cryptocurrency without wasting hashes! https://gridcoin.us
ID: 43008 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2071
Credit: 156,087,548
RAC: 104,107
Message 43009 - Posted: 10 Jul 2020, 18:41:48 UTC - in response to Message 43008.  
Last modified: 10 Jul 2020, 18:50:06 UTC

Have a CentOS77 also:
sudo systemctl start boinc-client
before this boincmgr -d /var/lib/boinc
ID: 43009 · Report as offensive     Reply Quote
djoser
Avatar

Send message
Joined: 30 Aug 14
Posts: 145
Credit: 10,847,070
RAC: 0
Message 43010 - Posted: 10 Jul 2020, 18:46:21 UTC - in response to Message 43009.  
Last modified: 10 Jul 2020, 18:49:22 UTC

Gives me the same error message.

Interestingly command "systemctl status boinc-client.service" gives me:

boinc-client.service - Berkeley Open Infrastructure Network Computing Client
Loaded: loaded (/usr/lib/systemd/system/boinc-client.service; enabled; vendo>
Active: active (running) since Fri 2020-07-10 20:20:33 CEST; 15min ago
Docs: man:boinc(1)
Main PID: 1425 (boinc)
Tasks: 2 (limit: 46092)
Memory: 29.3M
CGroup: /system.slice/boinc-client.service
└─1425 /usr/bin/boinc

I can see it now it the taskmanager, but manager does not connect to it.
Why mine when you can research? - GRIDCOIN - Real cryptocurrency without wasting hashes! https://gridcoin.us
ID: 43010 · Report as offensive     Reply Quote
maeax

Send message
Joined: 2 May 07
Posts: 2071
Credit: 156,087,548
RAC: 104,107
Message 43011 - Posted: 10 Jul 2020, 18:49:45 UTC - in response to Message 43009.  

When you have a Account for WCG
in Download -> Fedora Linux is a good help
how to install boinc for Fedora/CentOS.
ID: 43011 · Report as offensive     Reply Quote
djoser
Avatar

Send message
Joined: 30 Aug 14
Posts: 145
Credit: 10,847,070
RAC: 0
Message 43012 - Posted: 10 Jul 2020, 18:52:05 UTC - in response to Message 43011.  

I found this and will try step by step:

https://boinc.berkeley.edu/wiki/Installing_BOINC_on_Fedora
Why mine when you can research? - GRIDCOIN - Real cryptocurrency without wasting hashes! https://gridcoin.us
ID: 43012 · Report as offensive     Reply Quote
djoser
Avatar

Send message
Joined: 30 Aug 14
Posts: 145
Credit: 10,847,070
RAC: 0
Message 43013 - Posted: 10 Jul 2020, 19:10:52 UTC

Okay, finally i got it working :-)

My mistake was to believe that BOINC manager would connect itself to the client, but with CentOS you have to do this manually.
I was not aware of that, because in every other OS i tried the BOINC manager did this automatically.
I successfully connected to LHC project now...let's see what other problems occur :-)

Greetings, djoser
Why mine when you can research? - GRIDCOIN - Real cryptocurrency without wasting hashes! https://gridcoin.us
ID: 43013 · Report as offensive     Reply Quote
Henry Nebrensky

Send message
Joined: 13 Jul 05
Posts: 165
Credit: 14,925,288
RAC: 34
Message 43017 - Posted: 10 Jul 2020, 22:46:42 UTC - in response to Message 43006.  
Last modified: 10 Jul 2020, 22:51:47 UTC

Hello and thanks for your answer!

you then need to do something like a "system boinc-client start" or systemctl equivalent to actually start it.

This is what i did and meant by "trying to start BOINC client manually". That didn't work, probably because of the "missing" file you mentioned. The deamon was not to be found in taskmanager.
The file I was thinking of was gui_rpc_auth.cfg, which gets created automatically once the daemon first starts (and which boinccmd uses to connect to the daemon).
ID: 43017 · Report as offensive     Reply Quote
djoser
Avatar

Send message
Joined: 30 Aug 14
Posts: 145
Credit: 10,847,070
RAC: 0
Message 43025 - Posted: 11 Jul 2020, 8:12:54 UTC - in response to Message 43017.  

The file I was thinking of was gui_rpc_auth.cfg, which gets created automatically once the daemon first starts (and which boinccmd uses to connect to the daemon).

Thanks for looking it up for me!
Yes, it's the file that contains the password for connecting the manager to localhost.

I already had successful native Theory tasks on CentOs 8, so everything is fine for me now and i gained some experience :-)
Why mine when you can research? - GRIDCOIN - Real cryptocurrency without wasting hashes! https://gridcoin.us
ID: 43025 · Report as offensive     Reply Quote

Questions and Answers : Unix/Linux : CentOS Homepage - Cern


©2024 CERN