Thread 'RPC connection to core client. (local)'

Message boards : BOINC client : RPC connection to core client. (local)
Message board moderation

To post messages, you must log in.

AuthorMessage
Fred - efmer.com
Avatar

Send message
Joined: 8 Aug 08
Posts: 570
Netherlands
Message 26362 - Posted: 30 Jul 2009, 14:14:35 UTC

I try to do a rpc connection to the core client.

retval = m_rpc.init("localhost", port);

When I do

pcOp = "suspend"
m_rpc.project_op(*m_pProjects->projects[iProjectNr],pcOp);

I get ERR_AUTHENTICATOR

When I do the same with a remote client everything works just fine.

The strange thing is when I do.
retval = m_rpc.init("localhost", port);
retval = m_rpc.authorize(passwd); With the valid password in gui_rpc_auth.cfg.
I get ERR_AUTHENTICATOR
ID: 26362 · Report as offensive
ProfileGundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 26363 - Posted: 30 Jul 2009, 14:33:29 UTC - in response to Message 26362.  

Just guessing, but is your remote_hosts.cfg up to date?

Gruß,
Gundolf
ID: 26363 · Report as offensive
Fred - efmer.com
Avatar

Send message
Joined: 8 Aug 08
Posts: 570
Netherlands
Message 26364 - Posted: 30 Jul 2009, 14:42:11 UTC - in response to Message 26363.  

Just guessing, but is your remote_hosts.cfg up to date?

Gruß,
Gundolf

Yes, I did copy the password from that file, did a reboot...
And it works fine when I do the same with a remote computer, but not for the localhost.
ID: 26364 · Report as offensive
Fred - efmer.com
Avatar

Send message
Joined: 8 Aug 08
Posts: 570
Netherlands
Message 26375 - Posted: 30 Jul 2009, 16:45:05 UTC - in response to Message 26363.  

Just guessing, but is your remote_hosts.cfg up to date?

Gruß,
Gundolf

Yes, I did copy the password from that file, did a reboot...
And it works fine when I do the same with a remote computer, but not for the localhost.
ID: 26375 · Report as offensive
ProfileGundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 26381 - Posted: 30 Jul 2009, 18:11:57 UTC - in response to Message 26375.  

Yes, I did copy the password from that file, did a reboot...
And it works fine when I do the same with a remote computer, but not for the localhost.

The password is in gui_rpc_auth.cfg. I asked about remote_hosts.cfg. Is the local host name/IP address in that file?

Gruß,
Gundolf
ID: 26381 · Report as offensive
Fred - efmer.com
Avatar

Send message
Joined: 8 Aug 08
Posts: 570
Netherlands
Message 26382 - Posted: 30 Jul 2009, 19:55:19 UTC - in response to Message 26381.  

Yes, I did copy the password from that file, did a reboot...
And it works fine when I do the same with a remote computer, but not for the localhost.

The password is in gui_rpc_auth.cfg. I asked about remote_hosts.cfg. Is the local host name/IP address in that file?

Gruß,
Gundolf
the Ip address of the local machine,not the name of the localhost.
ID: 26382 · Report as offensive
ProfileGundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 26383 - Posted: 30 Jul 2009, 20:57:29 UTC - in response to Message 26382.  
Last modified: 30 Jul 2009, 21:46:22 UTC

That sounds okay. Well, it was just a thought.

Gruß,
Gundolf
[edit]Another thought: You could try starting boinc.exe with the
--allow_remote_gui_rpc parameter (just to check it out).[/edit]
ID: 26383 · Report as offensive
Fred - efmer.com
Avatar

Send message
Joined: 8 Aug 08
Posts: 570
Netherlands
Message 26396 - Posted: 31 Jul 2009, 8:03:53 UTC - in response to Message 26383.  

When I delete gui_rpc_auth.cfg. Reboot, the gui_rpc_auth.cfg is not made.
According to the documentation it should be.
ID: 26396 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15575
Netherlands
Message 26398 - Posted: 31 Jul 2009, 9:31:50 UTC - in response to Message 26396.  

Do you only start the client afterwards or also BOINC Manager?
Which version of BOINC? On what OS? Does the account that starts up have write access to the BOINC Data directory?
ID: 26398 · Report as offensive
Fred - efmer.com
Avatar

Send message
Joined: 8 Aug 08
Posts: 570
Netherlands
Message 26399 - Posted: 31 Jul 2009, 10:22:54 UTC - in response to Message 26398.  

Do you only start the client afterwards or also BOINC Manager?
Which version of BOINC? On what OS? Does the account that starts up have write access to the BOINC Data directory?

As always you have the answer.
It was the access. Maybe that also solves the other problems lets see.
But just curious what happens, what is password? if there is none. It is not a blank (empty) one.
ID: 26399 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15575
Netherlands
Message 26400 - Posted: 31 Jul 2009, 10:24:58 UTC - in response to Message 26399.  

But just curious what happens, what is password? if there is none. It is not a blank (empty) one.

The password that is generated is a random 32 character (hexadecimal) key.
So it would be best to change it again to something you can remember much easier, like your phone number. ;-)
ID: 26400 · Report as offensive
Fred - efmer.com
Avatar

Send message
Joined: 8 Aug 08
Posts: 570
Netherlands
Message 26401 - Posted: 31 Jul 2009, 10:29:25 UTC - in response to Message 26400.  

But just curious what happens, what is password? if there is none. It is not a blank (empty) one.

The password that is generated is a random 32 character (hexadecimal) key.
So it would be best to change it again to something you can remember much easier, like your phone number. ;-)

I will do a read of the password in the data directory, from the file, that should always be the right one.
ID: 26401 · Report as offensive
Fred - efmer.com
Avatar

Send message
Joined: 8 Aug 08
Posts: 570
Netherlands
Message 26403 - Posted: 31 Jul 2009, 12:31:41 UTC - in response to Message 26401.  

And guess what it was?
I run the compiler/debugger as admin and the BOINC core client runs as local user.
For some reason this makes it impossible the authenticate.
Running my application as local user and everything works ok.
One problem solved up to the next...
ID: 26403 · Report as offensive

Message boards : BOINC client : RPC connection to core client. (local)

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