boinccmd --read_cc_config -> retval 0 -> Proxy settings not loaded!

Questions and Answers : Unix/Linux : boinccmd --read_cc_config -> retval 0 -> Proxy settings not loaded!
Message board moderation

To post messages, you must log in.

AuthorMessage
UdoVR
Volunteer tester

Send message
Joined: 27 Apr 15
Posts: 6
Credit: 172,260
RAC: 0
Belgium
Message 1671163 - Posted: 28 Apr 2015, 14:09:06 UTC
Last modified: 28 Apr 2015, 14:29:57 UTC

Please forgive me if there is already a post about it on the BOINC page, couldn't find any....


I have just installed the BOINC client (apt-get install boinc-client).

I'm running it on Linux (Debian Wheezy 3.2.0-4-amd64) which by itself is run from a Virtual Box (4.3.20) on Windows 7 (64 bit)

Getting the installation was no problem as I have a http_proxy set up
so it downloaded and installed the files perfectly.

However, the BOINC client is not able to connect.

I updated the cc_config.xml to below:

<cc_config>
  <log_flags>
    <task>1</task>
    <file_xfer>1</file_xfer>
    <sched_ops>1</sched_ops>
  </log_flags>
 <options>
<proxy_info>
     <http_server_name>theserverwithouthttpprefix</http_server_name>
     <http_server_port>3128</http_server_port>
     <http_user_name>myusername</http_user_name>
     <http_user_passwd>mypassword</http_user_passwd>
     <socks_version>5</socks_version>
     <socks_server_name>theserverwithouthttpprefix</socks_server_name>
     <socks_server_port>80</socks_server_port>
     <socks5_user_name>myusername</socks5_user_name>
     <socks5_user_passwd>mypassword</socks5_user_passwd>
     <no_proxy>list of hostnames for which proxy not used</no_proxy>
</proxy_info>
</options>
</cc_config>


However, when I run
boinccmd --read_cc_config

it returns retval 0

Checking stdoutdae.txt:
(always these 2 lines when I try to read the cc_config.xml file)
28-Apr-2015 15:57:10 [---] Config: GUI RPC allowed from:
28-Apr-2015 15:57:10 [---] log flags: file_xfer, sched_ops, task

(stderrdae.txt is empty)

and of course, boinccmd --get_proxy_settings results to:
HTTP server name: 
HTTP server port: 0
HTTP user name: 
SOCKS server name: 
SOCKS server port: 0
SOCKS5 user name: 
no proxy hosts: 



Just some side notes and questions:
* Tried adding "http://" in the proxy server name, no luck.

* Does the SOCKS have to be exactly the same as HTTP?

* or can it be left out?

* Yes, our proxy uses port 3128 iso 80 and i tried to set the SOCKS to the same port but same result.

* A project has been loaded using "boinccmd --project-attach ..." although it did not return me any comment to say it's ok or not.

get_project_status:

1) -----------
   name: 
   master URL: http://setiathome.berkeley.edu/
   user_name: 
   team_name: 
   resource share: 100.000000
   user_total_credit: 0.000000
   user_expavg_credit: 0.000000
   host_total_credit: 0.000000
   host_expavg_credit: 0.000000
   nrpc_failures: 1
   master_fetch_failures: 3
   master fetch pending: yes
   scheduler RPC pending: yes
   trickle upload pending: no
   attached via Account Manager: no
   ended: no
   suspended via GUI: no
   don't request more work: no
   disk usage: 0.000000
   last RPC: 0.000000
   project files downloaded: 0.000000



PS: no suggestions about graphical interfaces please! I will be running BOINC on another server later, that will have command line access only!

Thank you!
ID: 1671163 · Report as offensive
UdoVR
Volunteer tester

Send message
Joined: 27 Apr 15
Posts: 6
Credit: 172,260
RAC: 0
Belgium
Message 1671180 - Posted: 28 Apr 2015, 14:54:38 UTC - in response to Message 1671163.  
Last modified: 28 Apr 2015, 14:55:07 UTC

Some more info:

I managed to enter the proxy through the command line so now it's this:

HTTP server name: <the proxy server>
HTTP server port: 3128
HTTP user name: <myusername>
SOCKS server name: none
SOCKS server port: 0
SOCKS5 user name: none
no proxy hosts: none



I dettached
 boinccmd --project http://setiathome.berkeley.edu/ detach_when_done 

and re-attached the project (a "SETI at home" one)
boinccmd --project_attach http://setiathome.berkeley.edu <MyverylongKeycode>

but no luck.

the --get_state still shows this:
  nrpc_failures: 1
  master_fetch_failures: 1


I'm sure it's all related to BOINC not able to connect and fetch it's data but I'm lost where.
ID: 1671180 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 1671222 - Posted: 28 Apr 2015, 16:21:57 UTC

In which directory did you store cc_config.xml?
ID: 1671222 · Report as offensive
UdoVR
Volunteer tester

Send message
Joined: 27 Apr 15
Posts: 6
Credit: 172,260
RAC: 0
Belgium
Message 1671400 - Posted: 29 Apr 2015, 8:52:17 UTC - in response to Message 1671222.  

I opened it from /var/lib/boinc-client/cc_config.xml which is a link to /etc/boinc-client/cc_config.xml
ID: 1671400 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 1672222 - Posted: 30 Apr 2015, 20:25:32 UTC - in response to Message 1671400.  

So it's a simlink to the other directory? What if you edit the cc_config.xml file in /etc/boinc-client/ directly?

Checking the documentation, I can only find that the cc_config.xml file must be in /etc/boinc-client/, not in /var/lib/boinc-client/
ID: 1672222 · Report as offensive

Questions and Answers : Unix/Linux : boinccmd --read_cc_config -> retval 0 -> Proxy settings not loaded!


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.