Message boards : Questions and problems : What does "Authorization failure: -155" mean?
Message board moderation
Author | Message |
---|---|
Send message Joined: 4 Sep 09 Posts: 12 |
$ 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? :) |
Send message Joined: 29 Aug 05 Posts: 15573 |
The default explanation for error -155 within BOINC is: ERR_AUTHENTICATOR -155 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? |
Send message Joined: 4 Sep 09 Posts: 12 |
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 :) |
Send message Joined: 4 Sep 09 Posts: 12 |
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. |
Send message Joined: 29 Aug 05 Posts: 15573 |
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 |
Send message Joined: 26 Dec 12 Posts: 9 |
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? |
Send message Joined: 23 Apr 07 Posts: 1112 |
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 |
Send message Joined: 26 Dec 12 Posts: 9 |
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? |
Send message Joined: 23 Apr 07 Posts: 1112 |
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 |
Send message Joined: 26 Dec 12 Posts: 9 |
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 |
Send message Joined: 23 Apr 07 Posts: 1112 |
// also, forcing an update does not work 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 Claggy |
Send message Joined: 6 Jul 10 Posts: 585 |
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 |
Send message Joined: 26 Dec 12 Posts: 9 |
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? |
Send message Joined: 23 Apr 07 Posts: 1112 |
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. 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 |
Send message Joined: 6 Jul 10 Posts: 585 |
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. 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 |
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.