BOINC / boinc

Open-source software for volunteer computing and grid computing.
https://boinc.berkeley.edu
GNU Lesser General Public License v3.0
2.03k stars 449 forks source link

Win32 Boinc 5.8 or 5.10 http/https proxy #326

Closed romw closed 9 years ago

romw commented 9 years ago

Reported by nico4485 on 29 May 37542622 02:40 UTC 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](---]) [Received header from server: HTTP/1.0 407 Proxy Authentication Required 
2007-07-17 10:46:23 [---](ID#32]) [[ID#32](http_debug]) Received header from server: Date: Tue, 17 Jul 2007 08:46:04 GMT 
2007-07-17 10:46:23 [[http_debug](---]) [Received header from server: Content-Length: 273 
2007-07-17 10:46:23 [---](ID#32]) [[ID#32](http_debug]) Received header from server: Content-Type: text/html 
2007-07-17 10:46:23 [[http_debug](---]) [Received header from server: Server: NetCache? appliance (NetApp/?6.0.5D1) 
2007-07-17 10:46:23 [---](ID#32]) [[ID#32](http_debug]) Received header from server: Proxy-Connection: close 
2007-07-17 10:46:23 [[http_debug](---]) [Received header from server: Proxy-Authenticate: Basic realm="proxy"
2007-07-17 10:46:23 [---](ID#32]) [[ID#32](http_debug]) Received header from server: 
2007-07-17 10:46:23 [[http_debug](---]) [info: Ignore 273 bytes of response-body
2007-07-17 10:46:23 [---](ID#32]) [[ID#32](http_debug]) info: Proxy auth using Basic with user 'pgtl097'
2007-07-17 10:46:23 [[http_debug](---]) [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 [---](ID#32]) [[ID#32](http_debug]) info: Proxy CONNECT aborted
2007-07-17 10:46:23 [[http_debug](---]) [info: Expire cleared
2007-07-17 10:46:23 [---](ID#32]) [[ID#32](http_debug]) 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_OP::init_get(): http://www.google.com
2007-07-17 10:46:24 [---](http_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_debug]) [Temporarily failed upload of le241_00003_2_0: http error
2007-07-17 10:46:24 [World Community Grid](file_xfer]) Backing off 2 hr 13 min 15 sec on upload of file le241_00003_2_0 
romw commented 9 years ago

Commented by nico4485 on 11 Oct 37580791 12:00 UTC win32 5.10.16 of BOINC : Same Problem

romw commented 9 years ago

Commented by davea on 13 Oct 37582254 08:26 UTC Please specify the proxy type and authentication method.

romw commented 9 years ago

Commented by nico4485 on 13 Apr 37583277 00:00 UTC 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.

romw commented 9 years ago

Commented by Didactylos on 28 Jun 37633309 21:20 UTC

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.

romw commented 9 years ago

Commented by Pepo on 15 Sep 37649133 19:33 UTC Tested from behind NTLM authentication HTTP proxy, port 8080. Win32 Boinc 5.10.20. (Without [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.

romw commented 9 years ago

Commented by Nicolas on 5 Sep 37664303 09:46 UTC Formatted log correctly, and removed private information from it (the proxy password).

romw commented 9 years ago

Commented by Nicolas on 2 Sep 37664307 17:46 UTC 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.[[BR]] [[BR]] 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.

romw commented 9 years ago

Commented by Ageless on 2 Dec 37762064 21:46 UTC Adding ticket #429

romw commented 9 years ago

Commented by davea on 1 Oct 37762248 02:40 UTC libcurl issue. Rom, please investigate

romw commented 9 years ago

Commented by darac on 26 Aug 37762636 08:26 UTC 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.

romw commented 9 years ago

Commented by nico4485 on 24 Nov 37822103 15:06 UTC Same problem with 5.10.24...

romw commented 9 years ago

Commented by Pepo on 30 Oct 37871980 13:20 UTC 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).

romw commented 9 years ago

Commented by uhhu on 1 Sep 37909102 18:40 UTC 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 :

1 1 1

Error log :

28.11.2007 9:38:15|http://www.worldcommunitygrid.org/|Fetching scheduler list 28.11.2007 9:38:15||[ID#3 info: Examining connection #0 for reuse 28.11.2007 9:38:15||[ID#3 info: Connection #0 seems to be dead! 28.11.2007 9:38:15||[ID#3 info: Closing connection #0 28.11.2007 9:38:15||[ID#3 info: About to connect() to proxy 10.4.1.8 port 80 (#0) 28.11.2007 9:38:15||[ID#3 info: Trying 10.4.1.8... 28.11.2007 9:38:15||[ID#3 info: Connected to 10.4.1.8 (10.4.1.8) port 80 (#0) 28.11.2007 9:38:15||[ID#3 Sent header to server: GET http://www.worldcommunitygrid.org/ HTTP/1.1 User-Agent: BOINC client (windowsintelx86 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||[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||[ID#3 Received header from server: Via:1.1 H099-PRX-001

28.11.2007 9:38:15||[ID#3 Received header from server: Proxy-Authenticate: NTLM

28.11.2007 9:38:15||[ID#3 Received header from server: Proxy-Authenticate: Kerberos

28.11.2007 9:38:15||[ID#3 Received header from server: Proxy-Authenticate: Negotiate

28.11.2007 9:38:15||[ID#3 Received header from server: Connection: close

28.11.2007 9:38:15||[ID#3 info: HTTP/1.1 proxy connection set close! 28.11.2007 9:38:15||[ID#3 Received header from server: Proxy-Connection: close

28.11.2007 9:38:15||[ID#3 Received header from server: Pragma: no-cache

28.11.2007 9:38:15||[ID#3 Received header from server: Cache-Control: no-cache

28.11.2007 9:38:15||[ID#3 Received header from server: Content-Type: text/html

28.11.2007 9:38:15||[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....

romw commented 9 years ago

Commented by mikedapsych on 1 Sep 37926775 08:00 UTC 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.

romw commented 9 years ago

Commented by nico4485 on 15 Sep 38027381 04:26 UTC 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

romw commented 9 years ago

Commented by nico4485 on 10 Aug 38101727 14:13 UTC 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 ???

romw commented 9 years ago

Commented by nico4485 on 23 Aug 38101759 23:33 UTC 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.

romw commented 9 years ago

Commented by nico4485 on 17 May 38106552 05:46 UTC 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

romw commented 9 years ago

Commented by nico4485 on 7 Jul 38114606 04:53 UTC Tested with WCG and rosetta, download/upload OK

Nicolas