Re: [galaxy-dev] Problem sharing histories

2015-06-02 Thread John Chilton
Opps - it seems that fix should definitely be in the release branch. I
have opened a pull request backporting that to release 15.05 -
https://github.com/galaxyproject/galaxy/pull/304.

Thanks for the report Richard and for diagnosing the problem so quickly Marius.

-John

On Tue, Jun 2, 2015 at 7:06 AM, Marius van den Beek
 wrote:
> Hi Richard,
>
> I think this was recently fixed by Björn Grüning in the dev branch.
> You could try to apply this patch.
> https://github.com/galaxyproject/galaxy/commit/62772bc86e2504982f207a982542cbcc3faf0c65
>
> Best,
> Marius
>
> On 2 June 2015 at 11:44, Poole, Richard  wrote:
>>
>> Hi Nate,
>>
>> Although it was working fine in the past (and older shared histories are
>> still shared) we are currently experiencing an issue sharing histories on
>> our local Galaxy server. I really don’t understand the error messages at
>> all, other than it looking like its possible a proxy/webserver issue. After
>> entering an email (which is a list for admin users but blank for non-admin
>> users) I get the Internal Server Error page. Here is the log:
>>
>> 127.0.0.1 - - [02/Jun/2015:10:41:35 +0100] "GET
>> /api/users?f_email=&_=1433238093664 HTTP/1.1" 200 -
>> "http://..ucl.ac.uk:8080/history/share?use_panels=False&id=93d12697461a7974";
>> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML,
>> like Gecko) Version/8.0.6 Safari/600.6.3"
>> 127.0.0.1 - - [02/Jun/2015:10:41:46 +0100] "GET
>> /api/users?f_email=&_=1433238093665 HTTP/1.1" 200 -
>> "http://..ucl.ac.uk:8080/history/share?use_panels=False&id=93d12697461a7974";
>> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML,
>> like Gecko) Version/8.0.6 Safari/600.6.3"
>> 127.0.0.1 - - [02/Jun/2015:10:41:48 +0100] "POST /history/share HTTP/1.1"
>> 500 -
>> "http://..ucl.ac.uk:8080/history/share?use_panels=False&id=93d12697461a7974";
>> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML,
>> like Gecko) Version/8.0.6 Safari/600.6.3"
>> Error - : append() takes exactly one argument
>> (0 given)
>> URL: http://..ucl.ac.uk:8080/history/share
>> File
>> '/Users/galaxy/galaxy-dist/lib/galaxy/web/framework/middleware/error.py',
>> line 149 in __call__
>>   app_iter = self.application(environ, sr_checker)
>> File
>> '/Library/Python/2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/recursive.py',
>> line 84 in __call__
>>   return self.application(environ, start_response)
>> File
>> '/Library/Python/2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpexceptions.py',
>> line 633 in __call__
>>   return self.application(environ, start_response)
>> File '/Users/galaxy/galaxy-dist/lib/galaxy/web/framework/base.py', line
>> 133 in __call__
>>   return self.handle_request( environ, start_response )
>> File '/Users/galaxy/galaxy-dist/lib/galaxy/web/framework/base.py', line
>> 191 in handle_request
>>   body = method( trans, **kwargs )
>> File '/Users/galaxy/galaxy-dist/lib/galaxy/web/framework/decorators.py',
>> line 64 in decorator
>>   return func( self, trans, *args, **kwargs )
>> File
>> '/Users/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/controllers/history.py',
>> line 783 in share
>>   histories = self._get_histories( trans, id )
>> File
>> '/Users/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/controllers/history.py',
>> line 902 in _get_histories
>>   histories.append(  )
>> TypeError: append() takes exactly one argument (0 given)
>>
>>
>> CGI Variables
>> -
>>   CONTENT_LENGTH: '-1'
>>   CONTENT_TYPE: 'application/x-www-form-urlencoded'
>>   HTTP_ACCEPT:
>> 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
>>   HTTP_ACCEPT_ENCODING: 'gzip, deflate'
>>   HTTP_ACCEPT_LANGUAGE: 'en-us'
>>   HTTP_CONNECTION: 'close'
>>   HTTP_COOKIE:
>> 'galaxysession=c6ca0ddb55be603affb9e7f3db8ec24e38c21f8e92c63c0423b0bca935c4829106a35253947071a3;
>> __utma=156947391.1608730577.1432903437.1432903437.1432903437.1;
>> __utmz=156947391.1432903437.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
>>   HTTP_DNT: '1'
>>   HTTP_HOST: '..ucl.ac.uk:8080'
>>   HTTP_ORIGIN: 'http://..ucl.ac.uk:8080'
>>   HTTP_REFERER:
>> 'http://..ucl.ac.uk:8080/history/share?use_panels=False&id=93d12697461a7974'
>>   HTTP_USER_AGENT: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3)
>> AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3'
>>   HTTP_X_FORWARDED_FOR: '127.0.0.1'
>>   HTTP_X_FORWARDED_HOST: '..ucl.ac.uk:8080'
>>   HTTP_X_FORWARDED_SERVER: '..ucl.ac.uk'
>>   ORGINAL_HTTP_HOST: 'localhost:8081'
>>   ORGINAL_REMOTE_ADDR: '127.0.0.1'
>>   PATH_INFO: '/history/share'
>>   REMOTE_ADDR: '127.0.0.1'
>>   REQUEST_METHOD: 'POST'
>>   SERVER_NAME: '0.0.0.0'
>>   SERVER_PORT: '8081'
>>   SERVER_PROTOCOL: 'HTTP/1.1'
>>
>>
>> WSGI Variables
>> --
>>   application: 
>>   is_api_request: False
>>   paste.cookies: (> __utma='156947391.1608730577.1432903437.1432903437.1432903437.1'
>> __utmz='1569473

Re: [galaxy-dev] Problem sharing histories

2015-06-02 Thread Marius van den Beek
Hi Richard,

I think this was recently fixed by Björn Grüning in the dev branch.
You could try to apply this patch.
https://github.com/galaxyproject/galaxy/commit/62772bc86e2504982f207a982542cbcc3faf0c65

Best,
Marius

On 2 June 2015 at 11:44, Poole, Richard  wrote:

>  Hi Nate,
>
>  Although it was working fine in the past (and older shared histories are
> still shared) we are currently experiencing an issue sharing histories on
> our local Galaxy server. I really don’t understand the error messages at
> all, other than it looking like its possible a proxy/webserver issue. After
> entering an email (which is a list for admin users but blank for non-admin
> users) I get the Internal Server Error page. Here is the log:
>
>   127.0.0.1 - - [02/Jun/2015:10:41:35 +0100] "GET
> /api/users?f_email=&_=1433238093664 HTTP/1.1" 200 - "
> http://..ucl.ac.uk:8080/history/share?use_panels=False&id=93d12697461a7974";
> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3
> (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3"
>  127.0.0.1 - - [02/Jun/2015:10:41:46 +0100] "GET
> /api/users?f_email=&_=1433238093665 HTTP/1.1" 200 - "
> http://..ucl.ac.uk:8080/history/share?use_panels=False&id=93d12697461a7974";
> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3
> (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3"
>  127.0.0.1 - - [02/Jun/2015:10:41:48 +0100] "POST /history/share HTTP/1.1"
> 500 - "
> http://..ucl.ac.uk:8080/history/share?use_panels=False&id=93d12697461a7974";
> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3
> (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3"
>  Error - : append() takes exactly one
> argument (0 given)
>  URL: http://..ucl.ac.uk:8080/history/share
>  File
> '/Users/galaxy/galaxy-dist/lib/galaxy/web/framework/middleware/error.py',
> line 149 in __call__
>app_iter = self.application(environ, sr_checker)
>  File
> '/Library/Python/2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/recursive.py',
> line 84 in __call__
>return self.application(environ, start_response)
>  File
> '/Library/Python/2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpexceptions.py',
> line 633 in __call__
>return self.application(environ, start_response)
>  File '/Users/galaxy/galaxy-dist/lib/galaxy/web/framework/base.py', line
> 133 in __call__
>return self.handle_request( environ, start_response )
>  File '/Users/galaxy/galaxy-dist/lib/galaxy/web/framework/base.py', line
> 191 in handle_request
>body = method( trans, **kwargs )
>  File '/Users/galaxy/galaxy-dist/lib/galaxy/web/framework/decorators.py',
> line 64 in decorator
>return func( self, trans, *args, **kwargs )
>  File
> '/Users/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/controllers/history.py',
> line 783 in share
>histories = self._get_histories( trans, id )
>  File
> '/Users/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/controllers/history.py',
> line 902 in _get_histories
>histories.append(  )
>  TypeError: append() takes exactly one argument (0 given)
>
>
>  CGI Variables
>  -
>CONTENT_LENGTH: '-1'
>CONTENT_TYPE: 'application/x-www-form-urlencoded'
>HTTP_ACCEPT:
> 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
>HTTP_ACCEPT_ENCODING: 'gzip, deflate'
>HTTP_ACCEPT_LANGUAGE: 'en-us'
>HTTP_CONNECTION: 'close'
>HTTP_COOKIE:
> 'galaxysession=c6ca0ddb55be603affb9e7f3db8ec24e38c21f8e92c63c0423b0bca935c4829106a35253947071a3;
> __utma=156947391.1608730577.1432903437.1432903437.1432903437.1;
> __utmz=156947391.1432903437.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
>HTTP_DNT: '1'
>HTTP_HOST: '..ucl.ac.uk:8080'
>HTTP_ORIGIN: 'http://..ucl.ac.uk:8080'
>HTTP_REFERER: '
> http://..ucl.ac.uk:8080/history/share?use_panels=False&id=93d12697461a7974'
>HTTP_USER_AGENT: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3)
> AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3'
>HTTP_X_FORWARDED_FOR: '127.0.0.1'
>HTTP_X_FORWARDED_HOST: '..ucl.ac.uk:8080'
>HTTP_X_FORWARDED_SERVER: '..ucl.ac.uk'
>ORGINAL_HTTP_HOST: 'localhost:8081'
>ORGINAL_REMOTE_ADDR: '127.0.0.1'
>PATH_INFO: '/history/share'
>REMOTE_ADDR: '127.0.0.1'
>REQUEST_METHOD: 'POST'
>SERVER_NAME: '0.0.0.0'
>SERVER_PORT: '8081'
>SERVER_PROTOCOL: 'HTTP/1.1'
>
>
>  WSGI Variables
>  --
>application: 
>is_api_request: False
>paste.cookies: ( __utma='156947391.1608730577.1432903437.1432903437.1432903437.1'
> __utmz='156947391.1432903437.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
> galaxysession='c6ca0ddb55be603affb9e7f3db8ec24e38c21f8e92c63c0423b0bca935c4829106a35253947071a3'>,
> 'galaxysession=c6ca0ddb55be603affb9e7f3db8ec24e38c21f8e92c63c0423b0bca935c4829106a35253947071a3;
> __utma=156947391.1608730577.1432903437.1432903437.1432903437.1;
> __utmz=156947391.1432903437.1.1.utmcsr=(direct)|utmccn=(dir