boinccmd has authorisation failure 155, but GUI works

Message boards : Questions and problems : boinccmd has authorisation failure 155, but GUI works
Message board moderation

To post messages, you must log in.

AuthorMessage
paatryk

Send message
Joined: 8 Apr 13
Posts: 3
Poland
Message 48556 - Posted: 8 Apr 2013, 11:50:07 UTC

How do I connect a boinccmd (a command-line tool) to my own computer (this same one, which crunches and the same at which I want to call the boinccmd command-line tool)?

- boincmgr graphical tool works fine (???) without anything right arter boot-up as I log-in.
- boinccmd says: Authorisation error: -155. Whatever command I put as a command.
- Ubuntu 12.04 with the latest update.
- boinccmd stoped working after I rebooted after the standard security-only update....

Any ideas?
ID: 48556 · Report as offensive
paatryk

Send message
Joined: 8 Apr 13
Posts: 3
Poland
Message 48557 - Posted: 8 Apr 2013, 12:12:23 UTC

I solved the problem surprisingly quickly in the so-called RTFM-way... Sorry for spamming - hopefully someone finds it useful.

1. I started pinning down the problem from the graph in page 4 (chapter 3: the boinc client, 3.1: applications) in http://www.worldcommunitygrid.org/bg/BOINCMassInstall.pdf. Notice, that in the description of the graph it says that "boinccmd uses TCP/IP to connect" and actually it is equivalent to boincmgr (so if one qorks ok, boinc-crunching actually works, just your monitoring tool sux).

2. I used a link from the above document to find a full text on boinccmd at
http://boinc.berkeley.edu/wiki/Boinccmd_tool where it says that:

3. ...you have to be in the "boinc" (computing core) directory in order to ommit "--host" param (which I always have, before now...). Otherwise you have to know host, and pass (see the above mentioned boinc website).

Final note: In my default Ubuntu 12.04 the boinc computing core's directory is:
/usr/lib/boinc-client
and if I run boinccmd while in this directory, all works fine, no "authentication error 155", e.g.:
boinccmd --get_state
# works as OK.
ID: 48557 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15483
Netherlands
Message 48558 - Posted: 8 Apr 2013, 12:14:48 UTC - in response to Message 48556.  

boinccmd must run in the same directory as the boinc-client binary.
boinccmd must run under the same account that the boinc-client runs under.

But if you can run BOINC Manager, then why the need for the boinccmd tool?
ID: 48558 · Report as offensive
paatryk

Send message
Joined: 8 Apr 13
Posts: 3
Poland
Message 48559 - Posted: 8 Apr 2013, 12:21:46 UTC - in response to Message 48558.  

Thanks for your reply!

I use this computer to crunch 24/7 only, so I access it remotely over ssh. But while updates of this box, I prefer to do it locally, so I can see what is going on at the reboot before sshd strats. And due to this I knew now that the manager worked and boinccmd did not work. Thanks again!
ID: 48559 · Report as offensive
William
Avatar

Send message
Joined: 19 Feb 10
Posts: 97
Message 48563 - Posted: 8 Apr 2013, 13:46:35 UTC - in response to Message 48558.  
Last modified: 8 Apr 2013, 13:48:56 UTC

boinccmd must run in the same directory as the boinc-client binary.
boinccmd must run under the same account that the boinc-client runs under.

But if you can run BOINC Manager, then why the need for the boinccmd tool?

Sorry to contradict, but if you have a dual program/data dir setup (like when you copy a working windows install to a new location and lose all registry entries) you have to run boinccmd out of the data dir or you'll end up with exactly that -155 authorisation error. Or rather more intriguingly with a -112 when you try to --quit. Not to mention that most boinccmd commands do just fine out of the program dir. You just get the odd one that needs to know where the data actually is. Took me a bit to figure out.

Linux of course is a different beast alltogether as it does not use a dual dir setup and data and program dir are the same.
Therefore your assumption of boinccmd having to be run from the directory of the binary is quite correct in that case.
ID: 48563 · Report as offensive

Message boards : Questions and problems : boinccmd has authorisation failure 155, but GUI works

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.