Dear galaxy-dev team,

We have configured a galaxy-dist  server (stable release) behind an Apache2 proxy (with mod_xsendfile) by following the galaxy wiki.

We would like to use the galaxy embeded user authentification with require_login=True option instead of a remote_user configuration on the proxy side.

With require_login = False it works but with require_login=True configuration we fail to load .bam files into IGV (local) :

The IGV (Version 2.3.18) send this error:
INFO [2014-02-04 16:05:56,660]  [MessageUtils.java:60] [Thread-9]  Error loading http://XXXXXX/display_application/03501d7626bd192f/igv_bam/local_default/845a235de3463571/data/galaxy_03501d7626bd192f.bam: An error occurred while accessing:    http://XXXXXX/display_application/03501d7626bd192f/igv_bam/local_default/845a235de3463571/data/galaxy_03501d7626bd192f.bam<br>Invalid GZIP header

and the galaxy-server send this error_log:

----------------------------------------
XXXXXX - - [04/Feb/2014:16:05:40 +0200] "HEAD /display_application/03501d7626bd192f/igv_bam/local_default/845a235de3463571/data/galaxy_03501d7626bd192f.bam HTTP/1.1" 302 - "-" "IGV Version 2.3.18 (20)09/05/2013 12:24 PM"
XXXXXX - - [04/Feb/2014:16:05:40 +0200] "HEAD /root HTTP/1.1" 200 - "-" "IGV Version 2.3.18 (20)09/05/2013 12:24 PM"
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 46142)
Traceback (most recent call last):
  File "/home/galaxy/galaxy-dist/eggs/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", line 1068, in process_request_in_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__
    self.finish()
  File "/usr/lib/python2.7/SocketServer.py", line 710, in finish
    self.wfile.close()
  File "/usr/lib/python2.7/socket.py", line 279, in close
    self.flush()
  File "/usr/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------
XXXXXX - - [04/Feb/2014:16:05:40 +0200] "GET /display_application/03501d7626bd192f/igv_bam/local_default/845a235de3463571/data/galaxy_03501d7626bd192f.bam HTTP/1.1" 302 - "-" "IGV Version 2.3.18 (20)09/05/2013 12:24 PM"
XXXXXX - - [04/Feb/2014:16:05:40 +0200] "GET /root HTTP/1.1" 200 - "-" "IGV Version 2.3.18 (20)09/05/2013 12:24 PM

Any idea ?

Vincent

-- 
Vincent Navratil, PhD
IR UCBL - PRABI 
http://www.prabi.fr
Bâtiment Gregor Mendel
Université Claude Bernard – Lyon 1
16, rue Raphaël Dubois
69622 VILLEURBANNE CEDEX
Tel: +33 472432826

My 'ome' page http://vinavratil.free.fr