Posts by Grove

1) Message boards : Questions and problems : Authentication error when suspending/resuming with boinccmd (Message 105689)
Posted 7 Oct 2021 by Grove
Post:
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.
2) Message boards : Questions and problems : Authentication error when suspending/resuming with boinccmd (Message 105681)
Posted 7 Oct 2021 by Grove
Post:
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




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