Authentication error when suspending/resuming with boinccmd

Message boards : Questions and problems : Authentication error when suspending/resuming with boinccmd
Message board moderation

To post messages, you must log in.

AuthorMessage
Grove

Send message
Joined: 6 Oct 21
Posts: 2
Message 105681 - Posted: 7 Oct 2021, 7:06:47 UTC

I have boinc running and can control it fine with the GUI provided by boindmgr, but I can automate things a bit more if I can figure out how to do (a couple of) things with a cli.

The two main things I want to automate (right now), is suspending/resuming BOINC from doing work.
Whenever I want to do that I press "Suspend"/"Resume" button on the "Projects" tab in boincmgr. (I only contribute to one project - )
Reading the documentation for boinccmd led me to think I needed to use `boinccmd --project <URL> suspend` and `boinccmd --project <URL> resume` - But that is where my confusion starts. What is that <URL>? What I want to do is 100% local, so it shouldn't be necessary to use any url, and using `
boinccmd --get_project_status` the "master URL" is shown as "http://www.primegrid.com/", but when I use that as an argument to `boinccmd` I get "Operation failed: authentication error". (Using that url is also what is done in the example script on
https://boinc.berkeley.edu/wiki/Boinccmd_tool
)

I installed BOINC from the Debian (so this is on Linux) packages so what I'm using is probably not the newest version. but it's version 7.14.2
ID: 105681 · Report as offensive     Reply Quote
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 4635
United Kingdom
Message 105682 - Posted: 7 Oct 2021, 7:43:17 UTC - in response to Message 105681.  

Depends how you (or Debian) have set up your connection between BOINC Manager and the boinc client. It may have a password set.

If there is a password, it will be stored in a file called gui_rpc_auth.cfg in the BOINC data directory. The same password will need to be used on the command line with boinccmd - the 'authentication error' happens when a password is expected, but not given.
ID: 105682 · Report as offensive     Reply Quote
Grove

Send message
Joined: 6 Oct 21
Posts: 2
Message 105689 - Posted: 7 Oct 2021, 10:18:40 UTC - in response to Message 105682.  

Depends how you (or Debian) have set up your connection between BOINC Manager and the boinc client. It may have a password set.

If there is a password, it will be stored in a file called gui_rpc_auth.cfg in the BOINC data directory. The same password will need to be used on the command line with boinccmd - the 'authentication error' happens when a password is expected, but not given.


There is a password set in `gui_rpc_auth.cfg`, but `boinccmd` works fine in several other cases, so I assumed it wasn't necessary to supply hostname and password, but I've just tried and it actually works then.

So now I'm just wondering when I need to supply hostname and password:
`boinccmd --get_project_status` works without.
ID: 105689 · Report as offensive     Reply Quote
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 4635
United Kingdom
Message 105691 - Posted: 7 Oct 2021, 10:39:47 UTC - in response to Message 105689.  

It's explained in the link you gave in your first post:

https://boinc.berkeley.edu/wiki/Boinccmd_tool

or should be. The basic principle is that 'for information' commands (the state queries group) don't need a password, but 'change something' commands (the control operations group) do.
ID: 105691 · Report as offensive     Reply Quote

Message boards : Questions and problems : Authentication error when suspending/resuming with boinccmd

Copyright © 2021 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.