Authentication error

Message boards : BOINC client : Authentication error
Message board moderation

To post messages, you must log in.

AuthorMessage
JWMED

Send message
Joined: 9 Sep 20
Posts: 10
Germany
Message 100663 - Posted: 9 Sep 2020, 9:45:39 UTC
Last modified: 9 Sep 2020, 9:48:36 UTC

I'm running boinccmd, built from BOINC 7.16.6, on a company server (CentOS 7 Core) as a non-root user (I am responsible for the project, but I am not the admin). When trying to connect to an existing account or attach projects, I get an authentication error. The admin added me to the boinc group, which according to https://boinc.berkeley.edu/forum_thread.php?id=10903 should solve the issue, but it doesn't. I can run simple commands like --version or --get_state without problems, and I have confirmed that the client is up and running, and that my working dir is /var/lib/boinc/. But so far, I cannot get it to perform any tasks. Any ideas what the problem could be?
ID: 100663 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15477
Netherlands
Message 100666 - Posted: 9 Sep 2020, 13:12:05 UTC - in response to Message 100663.  

Which command do you use?
ID: 100666 · Report as offensive
JWMED

Send message
Joined: 9 Sep 20
Posts: 10
Germany
Message 100669 - Posted: 9 Sep 2020, 15:29:36 UTC - in response to Message 100666.  

boinccmd --run_benchmarks

boinccmd --project_attach http://worldcommunitygrid.org <my_key>
ID: 100669 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15477
Netherlands
Message 100670 - Posted: 9 Sep 2020, 15:38:40 UTC - in response to Message 100669.  

Try
boinccmd --project_attach http://www.worldcommunitygrid.org/ <your account key>

ID: 100670 · Report as offensive
JWMED

Send message
Joined: 9 Sep 20
Posts: 10
Germany
Message 100671 - Posted: 9 Sep 2020, 15:46:53 UTC - in response to Message 100670.  
Last modified: 9 Sep 2020, 15:47:07 UTC

That is what I did, I forgot to type in the www in my previous post.
ID: 100671 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15477
Netherlands
Message 100672 - Posted: 9 Sep 2020, 16:07:53 UTC - in response to Message 100671.  

Are you using your full account key or the weak account key?
Which directory are you running the command from? Does your BOINC Programs directory have a path into the environment path?

I just tested it for myself, have BOINC Manager open.
Did the command from the BOINC Programs directory (in my case, Windows, C:\Program Files\BOINC)

C:\Program Files\BOINC>boinccmd --project_attach http://www.worldcommunitygrid.org (my-key)


09/09/2020 17:59:00 |  | Setting up GUI RPC socket
09/09/2020 17:59:00 |  | Checking presence of 685 project files
09/09/2020 18:05:36 | http://www.worldcommunitygrid.org/ | [sched_op] Fetching master file
09/09/2020 18:05:36 | http://www.worldcommunitygrid.org/ | Fetching scheduler list
09/09/2020 18:05:38 | http://www.worldcommunitygrid.org/ | [sched_op] Got master file; parsing
09/09/2020 18:05:38 | http://www.worldcommunitygrid.org/ | [sched_op] Found 1 scheduler URLs in master file
09/09/2020 18:05:38 | http://www.worldcommunitygrid.org/ | Master file download succeeded
09/09/2020 18:05:44 | http://www.worldcommunitygrid.org/ | [sched_op] sched RPC pending: Project initialization
09/09/2020 18:05:44 | http://www.worldcommunitygrid.org/ | [sched_op] Starting scheduler request
09/09/2020 18:05:44 | http://www.worldcommunitygrid.org/ | Sending scheduler request: Project initialization.
09/09/2020 18:05:44 | http://www.worldcommunitygrid.org/ | Requesting new tasks for CPU and AMD/ATI GPU
09/09/2020 18:05:44 | http://www.worldcommunitygrid.org/ | [sched_op] CPU work request: 1.00 seconds; 0.00 devices
09/09/2020 18:05:44 | http://www.worldcommunitygrid.org/ | [sched_op] AMD/ATI GPU work request: 1.00 seconds; 0.00 devices

ID: 100672 · Report as offensive
MarkJ
Volunteer tester
Help desk expert

Send message
Joined: 5 Mar 08
Posts: 272
Australia
Message 100675 - Posted: 10 Sep 2020, 5:19:14 UTC

Normally you have to also supply the password (the one in /etc/boinc-client/gui_rpc_auth.cfg) so try this (substituting the password).
boinccmd --passwd PASSWORD --project_attach http://www.worldcommunitygrid.org (my-key)

MarkJ
ID: 100675 · Report as offensive
JWMED

Send message
Joined: 9 Sep 20
Posts: 10
Germany
Message 100676 - Posted: 10 Sep 2020, 8:41:09 UTC - in response to Message 100672.  

I'm using my full account key. I'm on CentOS 7, so I'm running from inside /var/lib/boinc.
ID: 100676 · Report as offensive
JWMED

Send message
Joined: 9 Sep 20
Posts: 10
Germany
Message 100677 - Posted: 10 Sep 2020, 8:41:43 UTC - in response to Message 100675.  
Last modified: 10 Sep 2020, 8:47:59 UTC

There is no password in /etc/boinc-client/gui_rpc_auth.cfg. The owner is root:root though, I'll check if that's the problem.
ID: 100677 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15477
Netherlands
Message 100678 - Posted: 10 Sep 2020, 9:14:01 UTC - in response to Message 100677.  

You can manually add a password into the file, something of your own. Doesn't need to be a whole sentence. No line feed at the end though.
ID: 100678 · Report as offensive
JWMED

Send message
Joined: 9 Sep 20
Posts: 10
Germany
Message 100682 - Posted: 10 Sep 2020, 11:50:03 UTC - in response to Message 100678.  

The problem was the ownership of the files, changing it to boinc:boinc did the trick. Thanks everyone for your support!
ID: 100682 · Report as offensive

Message boards : BOINC client : Authentication error

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.