Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#343 closed Defect (fixed)

Win32 Boinc 5.8 or 5.10 http/https proxy

Reported by: nico4485 Owned by: romw
Priority: Critical Milestone: 5.10
Component: Client - Daemon Version:
Keywords: proxy Cc: Pepo

Description (last modified by Nicolas)

Hi,

Boinc download/upload failed with WCG project when using corporate http proxy. Some files are correctly download for WCG project, for Seti or Rosetta, all is working. At the end of working, impossible to upload results

Someone have a solution ??

WCG client (united device) work correctly

Log file :

2007-07-17 10:46:23 [---] [http_debug] [ID#32] Received header from server: HTTP/1.0 407 Proxy Authentication Required 
2007-07-17 10:46:23 [---] [http_debug] [ID#32] Received header from server: Date: Tue, 17 Jul 2007 08:46:04 GMT 
2007-07-17 10:46:23 [---] [http_debug] [ID#32] Received header from server: Content-Length: 273 
2007-07-17 10:46:23 [---] [http_debug] [ID#32] Received header from server: Content-Type: text/html 
2007-07-17 10:46:23 [---] [http_debug] [ID#32] Received header from server: Server: NetCache? appliance (NetApp/?6.0.5D1) 
2007-07-17 10:46:23 [---] [http_debug] [ID#32] Received header from server: Proxy-Connection: close 
2007-07-17 10:46:23 [---] [http_debug] [ID#32] Received header from server: Proxy-Authenticate: Basic realm="proxy"
2007-07-17 10:46:23 [---] [http_debug] [ID#32] Received header from server: 
2007-07-17 10:46:23 [---] [http_debug] [ID#32] info: Ignore 273 bytes of response-body
2007-07-17 10:46:23 [---] [http_debug] [ID#32] info: Proxy auth using Basic with user 'pgtl097'
2007-07-17 10:46:23 [---] [http_debug] [ID#32] Sent header to server: CONNECT secure.worldcommunitygrid.org:443 HTTP/1.0 
Host: secure.worldcommunitygrid.org:443 
Proxy-Authorization: Basic xxxxxxxxxxxxxxxxxxxx 
User-Agent: BOINC client (windows_intelx86 5.10.13) 
Proxy-Connection: Keep-Alive 
Content-Type: application/x-www-form-urlencoded 
2007-07-17 10:46:23 [---] [http_debug] [ID#32] info: Proxy CONNECT aborted
2007-07-17 10:46:23 [---] [http_debug] [ID#32] info: Expire cleared
2007-07-17 10:46:23 [---] [http_debug] [ID#32] info: Closing connection #0
2007-07-17 10:46:23 [---] [http_debug] HTTP error: failure when receiving data from the peer
2007-07-17 10:46:24 [---] Project communication failed: attempting access to reference site
2007-07-17 10:46:24 [---] [http_debug] HTTP_OP::init_get(): http://www.google.com
2007-07-17 10:46:24 [---] [file_xfer_debug] FILE_XFER_SET::poll(): http op done; retval -184
2007-07-17 10:46:24 [---] [file_xfer_debug] PERS_FILE_XFER::poll(): file transfer status -184
2007-07-17 10:46:24 [World Community Grid] [file_xfer] Temporarily failed upload of le241_00003_2_0: http error
2007-07-17 10:46:24 [World Community Grid] Backing off 2 hr 13 min 15 sec on upload of file le241_00003_2_0 

Change History (22)

comment:1 Changed 17 years ago by KSMarksPsych

Component: Client - BuildClient - Daemon
Owner: changed from romw to davea

comment:2 Changed 17 years ago by nico4485

win32 5.10.16 of BOINC : Same Problem

comment:3 Changed 17 years ago by davea

Please specify the proxy type and authentication method.

comment:4 Changed 17 years ago by nico4485

I use a corporate HTTP Proxy on port 8080 with Boinc

when i use Seti project or rosetta, no problem When i use WCG, download some files (not all) is impossible. I suppose a problem with HTTPS tunnel with HTTP proxy on BOINC

On the same computer, i try to use UD agent of WCG and specify a HTTPS proxy and it's OK, working units are correctly download.

comment:5 Changed 17 years ago by Didactylos

Ignore 273 bytes of response-body

This usually means that the proxy is returning an extended error message - for example, telling you that HTTPS isn't allowed, or that the password is incorrect. I think this should be kicked back to support before being treated as a bug.

Or can the error message be saved somewhere for troubleshooting purposes?

nico4485, you can use wireshark to log the communication and get a low-level view of the problem. If you can't analyse it yourself, create a trace and make it available to the WCG or BOINC support people.

comment:6 Changed 17 years ago by Pepo

Tested from behind NTLM authentication HTTP proxy, port 8080. Win32 Boinc 5.10.20. (Without [http_debug] flag.)

The first connection (a project update) came through, but later nothing: project updates fail with "Scheduler request failed: server returned nothing (no headers, no data)", ref sites checks - all failed, upload/download files - all failed.

I'll try [http_debug] flag and Wireshark sometimes later.

comment:7 Changed 17 years ago by Nicolas

Description: modified (diff)

Formatted log correctly, and removed private information from it (the proxy password).

comment:8 Changed 17 years ago by Nicolas

As reported by Wes_R on #384:

I just wanted to add that it appears to work correctly in release 4.25, but I get proxy authentication failures with release 5.8.16 or 5.10.13.

I also get 'No default network connection' error messages, but I am typically connected via Ethernet and this connection doesn't appear in the list.

comment:9 Changed 17 years ago by Ageless

Adding ticket #429

comment:10 Changed 17 years ago by davea

Owner: changed from davea to romw

libcurl issue. Rom, please investigate

comment:11 in reply to:  10 Changed 17 years ago by darac

Replying to davea:

libcurl issue. Rom, please investigate

Regarding ticket 429 where I have described similar problem and behavior of Boinc.

  1. all yes I'm allowed to use Boinc at work.
  2. I'm using correct HTTP proxy for accessing internet - i know because I'm IT Admin in this company
  3. I have download latest version of Boinc available to day
  4. Also i have received error message No default network connection..... and I'm using LAN network

So i think this is not help i think this is a bug in SW, but of course I could be wrong.

comment:12 Changed 17 years ago by nico4485

Same problem with 5.10.24...

comment:13 in reply to:  6 Changed 16 years ago by Pepo

Replying to Pepo:

Tested from behind NTLM authentication HTTP proxy, port 8080. Win32 Boinc 5.10.20.

Tested again with Win32 Boinc 5.10.30. Project updates fail with "Scheduler request failed: server returned nothing (no headers, no data)", ref sites checks fail too, upload/download files fail too. The description in #107 describes the behavior very good (observed with WireShark?, logs available too).

comment:14 Changed 16 years ago by uhhu

Good day, everyone. Sorry for my English.

I used UD client and it worked good. Now I install Boinc client and recieve proxy errors. In cc_config.xml :

<cc_config> <log_flags> <proxy_debug>1</proxy_debug> <http_debug>1</http_debug> <http_xfer_debug>1</http_xfer_debug> </log_flags> <options> </options> </cc_config>

Error log :

28.11.2007 9:38:15|http://www.worldcommunitygrid.org/|Fetching scheduler list

28.11.2007 9:38:1528.11.2007 9:38:1528.11.2007 9:38:1528.11.2007 9:38:1528.11.2007 9:38:1528.11.2007 9:38:1528.11.2007 9:38:15
[http_debug] [ID#3] info: Examining connection #0 for reuse
[http_debug] [ID#3] info: Connection #0 seems to be dead!
[http_debug] [ID#3] info: Closing connection #0
[http_debug] [ID#3] info: About to connect() to proxy 10.4.1.8 port 80 (#0)
[http_debug] [ID#3] info: Trying 10.4.1.8...
[http_debug] [ID#3] info: Connected to 10.4.1.8 (10.4.1.8) port 80 (#0)
[http_debug] [ID#3] Sent header to server: GET http://www.worldcommunitygrid.org/ HTTP/1.1

User-Agent: BOINC client (windows_intelx86 5.8.16) Host: www.worldcommunitygrid.org Pragma: no-cache Accept: */* Accept-Encoding: deflate, gzip Proxy-Connection: Keep-Alive Content-Type: application/x-www-form-urlencoded

28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: Via:1.1 H099-PRX-001
28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: Proxy-Authenticate: NTLM
28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: Proxy-Authenticate: Kerberos
28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: Proxy-Authenticate: Negotiate
28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: Connection: close
28.11.2007 9:38:1528.11.2007 9:38:15
[http_debug] [ID#3] info: HTTP/1.1 proxy connection set close!
[http_debug] [ID#3] Received header from server: Proxy-Connection: close
28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: Pragma: no-cache
28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: Cache-Control: no-cache
28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: Content-Type: text/html
28.11.2007 9:38:15
[http_debug] [ID#3] Received header from server: Content-Length: 2361
28.11.2007 9:38:15
[http_xfer_debug] HTTP: wrote 2361 bytes

28.11.2007 9:38:20|http://www.worldcommunitygrid.org/|Deferring communication for 1 days 0 hr 0 min 0 sec 28.11.2007 9:38:20|http://www.worldcommunitygrid.org/|Reason: 26 consecutive failures fetching scheduler list

So, I see this - 407 Proxy Authentication Required. What to do? I checking versions :

wcg_boinc_5.10.30_windows_intelx86.exe boinc_5.8.16_windows_intelx86.exe

and have the same error....

comment:15 Changed 16 years ago by mikedapsych

Same issue observed on 5.10.28 running on WinXP x64.

Client downloads over HTTP (via authenticated proxy) without a problem, but appears to be unable to make a proxy connection for HTTPS downloads. Superficially appears to not make any attempt at proxy authentication for HTTPS connections, only HTTP.

comment:16 Changed 16 years ago by Ageless

Cc: Pepo added

comment:17 Changed 16 years ago by nico4485

I'm not a developper but do you think this article can be related to this problem http://curl.haxx.se/mail/tracker-2007-10/0044.html

comment:18 Changed 16 years ago by nico4485

Same issue with 5.10.40 I am not C++ developper but I download sources of boinc and make some tests : In http_curl.c i replace curlErr = curl_easy_setopt(curlEasy, CURLOPT_PROXYAUTH, CURLAUTH_ANY); with curlErr = curl_easy_setopt(curlEasy, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);

With this modification, it's seems to be right.

What do you think about it ???

comment:19 Changed 16 years ago by nico4485

I have compile sources of Boinc 5.10.40 Win32 with with this modification. I have replace boinc.exe with new boinc.exe

Download files from WCG is now possible and i should test upload next days.

comment:20 Changed 16 years ago by nico4485

Boinc 5.10.41 resolve proxy authenticate for me :

Corporate proxy cc_config.xml with force_auth=basic => download/upload files correctly

Personnal proxy (freeproxy) without authentication cc_config.xml with no force_auth => download/upload files correctly

Thanks a lot

nico4485

comment:21 Changed 16 years ago by nico4485

Tested with WCG and rosetta, download/upload OK

Nicolas

comment:22 Changed 16 years ago by romw

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.