boinccmd (--version: boinccmd, built from BOINC 7.2.42) does not works at all (Centos 7)

Message boards : BOINC client : boinccmd (--version: boinccmd, built from BOINC 7.2.42) does not works at all (Centos 7)
Message board moderation

To post messages, you must log in.

AuthorMessage
schernichkin

Send message
Joined: 22 Mar 16
Posts: 4
Message 68468 - Posted: 22 Mar 2016, 21:45:33 UTC

boinccmd --join_acct_mgr [anything] *** ***

will print "Operation failed: Error -1"

Nothing in logs, no chance to figure out what's wrong.
ID: 68468 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 68469 - Posted: 22 Mar 2016, 22:05:05 UTC - in response to Message 68468.  

boinccmd --join_acct_mgr [anything] *** ***

a) is the BOINC binary running when you use boinccmd?
b) which account manager are you trying to add?
c) do you have an account already at that account manager?
ID: 68469 · Report as offensive
schernichkin

Send message
Joined: 22 Mar 16
Posts: 4
Message 68472 - Posted: 23 Mar 2016, 6:24:01 UTC - in response to Message 68469.  
Last modified: 23 Mar 2016, 6:24:23 UTC

a) Sure (if it not running boinccmd will write "can't connect to host" - ok this part works ;)
b) bam.boincstats.com But actual value does not affect behaviour. When it write boinccmd --join_acct_mgr asdfsadf asfasdf asdfasdf the result excatly same.
c) Yes I have. Actually I have boinc client on windows machine connected to this manager, but I used GUI there. My Centos have no GUI installed, so boinccmd is essential.
ID: 68472 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 68475 - Posted: 23 Mar 2016, 12:48:48 UTC - in response to Message 68472.  
Last modified: 23 Mar 2016, 12:49:23 UTC

bam.boincstats.com

I'm pretty sure that the URL needs http:// or https:// in front of it. Have you tried that?

boinccmd --join_acct_mgr https://bam.boincstats.com your account name your account password

BAM is HTTPS these days as well.
ID: 68475 · Report as offensive
schernichkin

Send message
Joined: 22 Mar 16
Posts: 4
Message 68478 - Posted: 23 Mar 2016, 15:30:35 UTC - in response to Message 68475.  

Yes, of course. As I wrote, url format does not affect behaviour at all. I've tried http:// https://, I've tried it with and without trailing slash finally I've tried "asdfasdf".
ID: 68478 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 68479 - Posted: 23 Mar 2016, 15:59:53 UTC - in response to Message 68478.  

The error you get is one you get when the permissions on the BOINC directory aren't correct. Can you do any other commands with boinccmd?
Commands:
 --client_version                   show client version
 --create_account URL email passwd name
 --file_transfer URL filename op    file transfer operation
   op = retry | abort
 --get_cc_status
 --get_daily_xfer_history           show network traffic history
 --get_disk_usage                   show disk usage
 --get_file_transfers               show file transfers
 --get_host_info
 --get_message_count                show largest message seqno
 --get_messages [ seqno ]           show messages > seqno
 --get_notices [ seqno ]            show notices > seqno
 --get_project_config URL
 --get_project_status               show status of all attached projects
 --get_proxy_settings
 --get_simple_gui_info              show status of projects and active tasks
 --get_state                        show entire state
 --get_tasks                        show tasks
 --get_old_tasks                    show reported tasks from last 24 hours
 --join_acct_mgr URL name passwd    attach account manager
 --lookup_account URL email passwd
 --network_available                retry deferred network communication
 --project URL op                   project operation
   op = reset | detach | update | suspend | resume | nomorework | allowmorework
| detach_when_done | dont_detach_when_done
 --project_attach URL auth          attach to project
 --quit                             tell client to exit
 --quit_acct_mgr                    quit current account manager
 --read_cc_config
 --read_global_prefs_override
 --run_benchmarks
 --set_gpu_mode mode duration       set GPU run mode for given duration
   mode = always | auto | never
 --set_host_info product_name
 --set_network_mode mode duration   set network mode for given duration
   mode = always | auto | never
 --set_proxy_settings
 --set_run_mode mode duration       set run mode for given duration
   mode = always | auto | never
 --task url task_name op            task operation
   op = suspend | resume | abort


What if you do?
boinccmd --get_state
Or?
boinccmd --run_benchmarks
ID: 68479 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 68484 - Posted: 23 Mar 2016, 19:11:05 UTC - in response to Message 68468.  

Probably missing password. On Redhat family distros BOINC client is usually set up to require a password when connecting to it. boinccmd tries to read the password from gui_rpc_auth.cfg file in current directory and if the file doesn't exist or can't be read boinccmd tries to connect without password.

gui_rpc_auth.cfg file is located in BOINC's data directory which is usually at /var/lib/boinc-client on Linux distros. If the file is empty then the client does not require password (which means anyone can then e.g. add some rogue project).

You have a few options available.
- add the password on boinccmd command line: boinccmd --passwd abcd
- add your account to boinc group and run boinccmd from /var/lib/boinc-client
- replace gui_rpc_auth.cfg with empty file, restart the client and then run boinccmd from any directory without password
ID: 68484 · Report as offensive
schernichkin

Send message
Joined: 22 Mar 16
Posts: 4
Message 68485 - Posted: 23 Mar 2016, 20:32:11 UTC - in response to Message 68484.  

>- add your account to boinc group and run boinccmd from /var/lib/boinc-client

Thanks that helped. But that was shame. I think if boinccmd can't access file or pass authorization it should clearly state this.
ID: 68485 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 68486 - Posted: 23 Mar 2016, 20:36:50 UTC - in response to Message 68485.  

Later versions are a bit more clear:

Operation failed: authentication error
ID: 68486 · Report as offensive

Message boards : BOINC client : boinccmd (--version: boinccmd, built from BOINC 7.2.42) does not works at all (Centos 7)

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.