Thread 'What does "Authorization failure: -155" mean?'

Message boards : Questions and problems : What does "Authorization failure: -155" mean?
Message board moderation

To post messages, you must log in.

AuthorMessage
Letharion

Send message
Joined: 4 Sep 09
Posts: 12
Sweden
Message 46011 - Posted: 16 Oct 2012, 19:26:38 UTC

$ boinccmd --join_acct_mgr http://bam.boincstats.com [username] [password]
Authorization failure: -155

Running on ubuntu, 12.04

The command finishes so quickly that I doubt it makes any network connection at all. Running "boinc" in another window to see the log doesn't show any activity when running boinccmd.

To my surprise, searching the message board for "Authorization failure: -155" gives nothing.

Any suggestions for how I can get boinc running? :)
ID: 46011 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15573
Netherlands
Message 46012 - Posted: 16 Oct 2012, 20:18:12 UTC - in response to Message 46011.  

The default explanation for error -155 within BOINC is:
ERR_AUTHENTICATOR -155

The scheduler request host ID number doesn't match with the authenticator.
You are missing your authenticator key. Detach from and re-attach to the project.

So...
- is BOINC even running when you try this?
- do you have an account already with BAM?

What if you do boinc --redirectio and check the stderrdae.txt file afterwards, does it have any information in there then?
ID: 46012 · Report as offensive
Letharion

Send message
Joined: 4 Sep 09
Posts: 12
Sweden
Message 46019 - Posted: 17 Oct 2012, 6:51:07 UTC - in response to Message 46012.  

I was certain boinc was running, and restarting it

$ sudo /etc/init.d/boinc-client restart
 * Stopping BOINC core client: boinc
 ... waiting .   ...done.
 * Starting BOINC core client: boinc
   ...done.
 * Setting up scheduling for BOINC core client and children:
   ...done.


seems to confirm that I think, but after restaring, attaching worked well, so perhaps it wasn't after all.

Thank you very much :)
ID: 46019 · Report as offensive
Letharion

Send message
Joined: 4 Sep 09
Posts: 12
Sweden
Message 46203 - Posted: 5 Nov 2012, 12:34:06 UTC
Last modified: 5 Nov 2012, 12:35:32 UTC

So, I tested on a new server, with Ubuntu 12.10, where I installed the boinc-client package.
$ sudo /etc/init.d/boinc-client start
 * Starting BOINC core client: boinc
   ...done.
 * Setting up scheduling for BOINC core client and children:
   ...done.
$ ps fax | grep boinc
10797 pts/1    S+     0:00  |   \_ grep --color=auto boinc
10761 ?        SN     0:00 /usr/bin/boinc --check_all_logins --redirectio --dir /var/lib/boinc-client
$ boinc --no_gui_rpc
05-Nov-2012 12:30:22 [---] No config file found - using defaults
05-Nov-2012 12:30:22 [---] Starting BOINC client version 7.0.27 for x86_64-pc-linux-gnu
05-Nov-2012 12:30:22 [---] log flags: file_xfer, sched_ops, task
05-Nov-2012 12:30:22 [---] Libraries: libcurl/7.27.0 OpenSSL/1.0.1c zlib/1.2.7 libidn/1.25 librtmp/2.3
05-Nov-2012 12:30:22 [---] Data directory: /home/ubuntu/.boinc
05-Nov-2012 12:30:22 [---] Processor: 2 GenuineIntel Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz [Family 6 Model 45 Stepping 7]
05-Nov-2012 12:30:22 [---] Processor: 20.00 MB cache
05-Nov-2012 12:30:22 [---] Processor features: fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes hypervisor lahf_lm
05-Nov-2012 12:30:22 [---] OS: Linux: 3.5.0-17-generic
05-Nov-2012 12:30:22 [---] Memory: 1.65 GB physical, 896.00 MB virtual
05-Nov-2012 12:30:22 [---] Disk: 7.87 GB total, 5.64 GB free
05-Nov-2012 12:30:22 [---] Local time is UTC +0 hours
05-Nov-2012 12:30:22 [---] No usable GPUs found
05-Nov-2012 12:30:22 [---] No general preferences found - using defaults
05-Nov-2012 12:30:22 [---] Preferences:
05-Nov-2012 12:30:22 [---]    max memory usage when active: 846.18MB
05-Nov-2012 12:30:22 [---]    max memory usage when idle: 1523.12MB
05-Nov-2012 12:30:22 [---]    max disk usage: 3.94GB
05-Nov-2012 12:30:22 [---]    don't use GPU while active
05-Nov-2012 12:30:22 [---]    suspend work if non-BOINC CPU load exceeds 25 %
05-Nov-2012 12:30:22 [---]    (to change preferences, visit the web site of an attached project, or select Preferences in the Manager)


Now in another terminal I run
ubuntu@ip-10-39-6-234:~/.boinc$ boinccmd --get_state
Authorization failure: -155
ubuntu@ip-10-39-6-234:~/.boinc$ boinccmd --quit
Authorization failure: -155
ubuntu@ip-10-39-6-234:~/.boinc$ boinccmd -v
Authorization failure: -155
ubuntu@ip-10-39-6-234:~/.boinc$ boinccmd --join_acct_mgr http://bam.boincstats.com [username] [password]
Authorization failure: -155


And while Ageless helpfully provided more details about the error message, that doesn't tell me anything helpful. Particularly since the solution involves "Detach from and re-attach to the project.", an action that simply doesn't make any sense in my situation.
ID: 46203 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15573
Netherlands
Message 46204 - Posted: 5 Nov 2012, 13:17:43 UTC - in response to Message 46203.  

It's almost as if the boinccmd command runs from a different BOINC directory. Mind checking around if BOINC has multiple (data) directories?

With the repository installed BOINC you should have:
1. the BOINC binaries (boinc, boinccmd and boincmgr) in /usr/bin .
2. a configuration directory /etc/boinc-client containing files cc_config.xml, global_prefs_override.xml, gui_rpc_auth.cfg, and remote_hosts.cfg (It is a Debian convention that such files live under /etc)
3. the working directory /var/lib/boinc-client/ for BOINC data files and the slots and projects directories. Also creates links from this directory to the files in /etc/boinc-client
4. a user named boinc. For improved security, this boinc user owns the BOINC working directory and all the data files and sub-directories created under the working directory.
5. a daemon "init" script, /etc/init.d/boinc-client, and a set of configuration options for the daemon at /etc/default/boinc-client
ID: 46204 · Report as offensive
Lukfi

Send message
Joined: 26 Dec 12
Posts: 9
Czech Republic
Message 49346 - Posted: 26 May 2013, 18:05:37 UTC

1) Sorry for reviving an old thread.
2) I have everything in Ageless' list. What do I have to do now in order to be able to use boinccmd instead of the graphical BOINC Manager?
3) How many goats do I have to sacrifice in the process?
ID: 49346 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 49347 - Posted: 26 May 2013, 18:10:41 UTC - in response to Message 49346.  

2) I have everything in Ageless' list. What do I have to do now in order to be able to use boinccmd instead of the graphical BOINC Manager?

Info on using the boinccmd tool is in the wiki:

Boinccmd tool

Claggy
ID: 49347 · Report as offensive
Lukfi

Send message
Joined: 26 Dec 12
Posts: 9
Czech Republic
Message 49348 - Posted: 26 May 2013, 18:15:38 UTC - in response to Message 49347.  
Last modified: 26 May 2013, 18:17:18 UTC

Wiki says...
If you run boinccmd in the same directory as the BOINC client, you don't need to supply either a host name or a password.

How do I know which directory is boinc-client launched from?
ID: 49348 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 49350 - Posted: 26 May 2013, 18:27:56 UTC - in response to Message 49348.  
Last modified: 26 May 2013, 18:30:02 UTC

How do I know which directory is boinc-client launched from?

What OS is this on?

On Windows it will be from C:\Program Files\BOINC or C:\Program Files (x86)\BOINC depending if you're using 32bit or 64bit Boinc, or a 32bit Boinc on a 64bit OS.

Boinc on Windows has a separate Data directory, i believe Linux runs from the same directory location as the Data directory, so it should be similar to what is posted in it's Startup log (assuming you can run the manager to see it in the first place),
it should be eithier /var/lib/boinc-client or /home/your_user_name depending if you got Boinc from one of the Linux repositories or from here.

Claggy
ID: 49350 · Report as offensive
Lukfi

Send message
Joined: 26 Dec 12
Posts: 9
Czech Republic
Message 49351 - Posted: 26 May 2013, 18:40:15 UTC - in response to Message 49350.  
Last modified: 26 May 2013, 18:44:03 UTC

It's LMDE, so Debian, basically, and BOINC was installed from the repositories.

I have some progress! I don't know what happened, because when fiddling with boinccmd I only got the error, but when I restarted the PC and BOINC Manager started (I have it set to start automatically upon logging in), it could not connect to its client, but a task was happily running in the background.

I SSH'd into the machine, cd'd into /var/lib/boinc-client, ran boinccmd and it seems to be working, it sees the workunits that are there... basically this is what I wanted to do. But, what about when I want to change the settings or attach/detach projects sometime in the future? I'd like to be able to use the BOINC Manager for this instead of the command line utilities.

// also, forcing an update does not work
boinccmd --project http://www.worldcommunitygrid.org/ update
Error -155: authentication error
ID: 49351 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 49352 - Posted: 26 May 2013, 18:58:12 UTC - in response to Message 49351.  
Last modified: 26 May 2013, 19:33:43 UTC

// also, forcing an update does not work
boinccmd --project http://www.worldcommunitygrid.org/ update
Error -155: authentication error

Try without the last /

Using the following caused Seti to update O.K:

C:\Program Files\BOINC>boinccmd --project http://setiathome.berkeley.edu update

C:\Program Files\BOINC>


26/05/2013 19:50:35 | SETI@home | update requested by user
26/05/2013 19:50:35 | SETI@home | [sched_op] Starting scheduler request
26/05/2013 19:50:35 | SETI@home | Sending scheduler request: Requested by user.
26/05/2013 19:50:35 | SETI@home | Requesting new tasks for NVIDIA and ATI
26/05/2013 19:50:35 | SETI@home | [sched_op] CPU work request: 0.00 seconds; 0.00 devices
26/05/2013 19:50:35 | SETI@home | [sched_op] NVIDIA work request: 55698.64 seconds; 0.00 devices
26/05/2013 19:50:35 | SETI@home | [sched_op] ATI work request: 70382.26 seconds; 1.00 devices
26/05/2013 19:50:41 | SETI@home | Scheduler request completed: got 0 new tasks
26/05/2013 19:50:41 | SETI@home | [sched_op] Server version 701
26/05/2013 19:50:41 | SETI@home | Project requested delay of 303 seconds
26/05/2013 19:50:41 | SETI@home | [sched_op] Deferring communication for 5 min 3 sec
26/05/2013 19:50:41 | SETI@home | [sched_op] Reason: requested by project


Claggy
ID: 49352 · Report as offensive
SekeRob2

Send message
Joined: 6 Jul 10
Posts: 585
Italy
Message 49354 - Posted: 26 May 2013, 19:17:06 UTC - in response to Message 49352.  

To check just entered from the BOINC program folder

boinccmd --project www.worldcommunitygrid.org update

No errors and this was logged by the client:

143 World Community Grid 26-05-2013 21:06 update requested by user
144 World Community Grid 26-05-2013 21:06 Sending scheduler request: Requested by user.
145 World Community Grid 26-05-2013 21:06 Not requesting tasks: don't need
146 World Community Grid 26-05-2013 21:06 Scheduler request completed

Did you visit the WCG forums for the -155 error... it looks familiar. On Linux suggest you put sudo before boinccmd
Coelum Non Animum Mutant, Qui Trans Mare Currunt
ID: 49354 · Report as offensive
Lukfi

Send message
Joined: 26 Dec 12
Posts: 9
Czech Republic
Message 49362 - Posted: 27 May 2013, 11:45:48 UTC - in response to Message 49354.  

It doesn't work on my linux machine. With sudo, there's no output whatsoever, without sudo it's error -155. Removing the last / doesn't help either.

Anyway, I don't need to force an update that often. But I want to be able to switch back and forth between command line and BOINC Manager, can it be done?
ID: 49362 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 49363 - Posted: 27 May 2013, 12:13:24 UTC - in response to Message 49362.  

It doesn't work on my linux machine. With sudo, there's no output whatsoever, without sudo it's error -155. Removing the last / doesn't help either.

Anyway, I don't need to force an update that often. But I want to be able to switch back and forth between command line and BOINC Manager, can it be done

Try the following, replacing the hostname with the actual host name, and the passwd with the actual password (that's stored in it's gui_rpc_auth.cfg file):

boinccmd --host hostname --passwd passwd --project www.worldcommunitygrid.org update

Claggy
ID: 49363 · Report as offensive
SekeRob2

Send message
Joined: 6 Jul 10
Posts: 585
Italy
Message 49364 - Posted: 27 May 2013, 12:14:57 UTC - in response to Message 49362.  

It doesn't work on my linux machine. With sudo, there's no output whatsoever, without sudo it's error -155. Removing the last / doesn't help either.

Anyway, I don't need to force an update that often. But I want to be able to switch back and forth between command line and BOINC Manager, can it be done?

That's correct, no output to the screen, but stdoutdae.txt does catch it though, at least in my case.
Coelum Non Animum Mutant, Qui Trans Mare Currunt
ID: 49364 · Report as offensive

Message boards : Questions and problems : What does "Authorization failure: -155" mean?

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.