Hi,

user  galaxy;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;

error_log  /var/log/nginx/error.log info;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    gzip  on;
    gzip_http_version 1.1;
    gzip_vary on;
    gzip_comp_level 4;
    gzip_proxied any;
    gzip_types text/plain text/css application/x-javascript text/xml 
application/xml text/javascript
 application/json;
    gzip_buffers 16 8k;
    gzip_disable "MSIE [1-6].(?!.*SV1)";

    upstream galaxy_app {
      server localhost:8080;
    }


    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    server {
        listen       8081 ssl;
        server_name  localhost xxxxxxxxxxxxx:8081;
        client_max_body_size 50M;
        ssl_certificate     entrustcert.crt;
        ssl_certificate_key server.key;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
             proxy_pass   http://galaxy_app;
             proxy_set_header   X-Forwarded-Host $host:$server_port;
             proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
             proxy_set_header   X-URL-SCHEME https;
        }

        location /static {
          alias /BigData/galaxy/galaxy-dist/static;
          expires 24h;
        }
        location /static/style {
                alias /BigData/galaxy/galaxy-dist/static/june_2007_style/blue;
                expires 24h;
        }
        location /static/scripts {
                alias /BigData/galaxy/galaxy-dist/static/scripts/packed;
        }
        location /favicon.ico {
                alias /BigData/galaxy/galaxy_dist/static/favicon.ico;
        }

        location /robots.txt {
                alias /BigData/galaxy/galaxy-dist/static/robots.txt;
        }

        location /_x_accel_redirect/ {
                internal;
                alias /;
        }

        location /_upload {
                upload_max_output_body_len 0; 
                upload_store 
/BigData/galaxy/galaxy-dist/database/tmp/upload_store;
                upload_pass_form_field "";
                upload_set_form_field "__${upload_field_name}__is_composite" 
"true";
                upload_set_form_field "__${upload_field_name}__keys" "name 
path";
                upload_set_form_field "${upload_field_name}_name" 
"$upload_file_name";
                upload_set_form_field "${upload_field_name}_path" 
"$upload_tmp_path";
                upload_pass_args on;
                upload_pass /_upload_done;
        }
        location /_upload_done {
                set $dst /api/tools;
                if ($args ~ nginx_redir=([^&]+)) {
                        set $dst $1;
                }
                rewrite "" $dst;
        }

-Sheldon

-----Original Message-----
From: John Chilton [mailto:jmchil...@gmail.com] 
Sent: Friday, February 20, 2015 2:30 PM
To: Briand, Sheldon
Cc: galaxy-...@lists.bx.psu.edu Dev
Subject: Re: [galaxy-dev] (no subject)

I am not sure what the problem is - any chance you can share your nginx 
configuration file?

On Fri, Feb 20, 2015 at 1:13 PM, Briand, Sheldon <sheldon.bri...@ssc-spc.gc.ca> 
wrote:
> Hi,
>
>
>
> I’m seeing the following error when trying to use upload file with a 
> local file that is larger than 8Kb:
>
>
>
> galaxy.web.framework.decorators ERROR 2015-02-19 16:51:48,280 Uncaught 
> exception in exposed API method:
>
> Traceback (most recent call last):
>
>   File 
> "/BigData/galaxy/galaxy-dist/lib/galaxy/web/framework/decorators.py",
> line 135, in decorator
>
>     rval = func( self, trans, *args, **kwargs)
>
>   File 
> "/BigData/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/api/tools.py",
> line 124, in create
>
>     tool = trans.app.toolbox.get_tool( payload[ 'tool_id' ] ) if 'tool_id'
> in payload else None
>
>   File "/BigData/galaxy/galaxy-dist/lib/galaxy/tools/__init__.py", 
> line 448, in get_tool
>
>     if tool_id in self.tools_by_id and not get_all_versions:
>
> TypeError: unhashable type: 'list'
>
>
>
> The end of the file in the upload store:
>
> GGTGGATCACAAGGTCAGGAGATCGAGACCATCCTGGTTAACATGATGAAACCCCGTGTCTACTAAAAAT
>
> ACAAAAAA-----------------------------206772567414653
>
> Content-Disposition: form-data; name="history_id"
>
>
>
> Null
>
>
>
> I’m using nginx 1.6.2 with the upload_file module and the latest 
> stable version of galaxy.
>
>
>
> What am I messing up?
>
>
>
> Thanks,
>
> -Sheldon
>
>
>
> Sheldon Briand
>
>
>
> NRC Research Computing Support Analyst / Operations, Science Portfolio
>
> Shared Services Canada / Government of Canada
>
> sheldon.bri...@ssc-spc.gc.ca / Tel: 902-426-1677
>
>
>
> CNRC Analyst de Support Informatique de Recherche/ Operations, 
> Portefeuil des sciences
>
> Services partagés Canada /Gouvernement du Canada
>
> sheldon.bri...@ssc-spc.gc.ca / Tél: 902-426-1677
>
>
>
>
>
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this and other 
> Galaxy lists, please use the interface at:
>   https://lists.galaxyproject.org/
>
> To search Galaxy mailing lists use the unified search at:
>   http://galaxyproject.org/search/mailinglists/
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Reply via email to