Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not work #62

Open
Alsmile opened this issue Jun 11, 2014 · 4 comments
Open

Not work #62

Alsmile opened this issue Jun 11, 2014 · 4 comments

Comments

@Alsmile
Copy link

Alsmile commented Jun 11, 2014

GET http://127.0.0.1/images/5397f74005fbed25453660a3 net::ERR_EMPTY_RESPONSE

user nobody;

worker_processes 1;

error_log logs/error.log;

error_log logs/error.log notice;

error_log logs/error.log info;

pid logs/nginx.pid;

worker_rlimit_nofile 51200;

events {
use epoll;
worker_connections 51200;
}

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

#access_log  logs/access.log  main;

sendfile        on;
#tcp_nopush     on;

keepalive_timeout  65;

gzip on;
gzip_min_length 1100; 
gzip_buffers 4 8k; 
gzip_types text/plain application/x-javascript text/css;
output_buffers 1 32k;
postpone_output 1460;
client_max_body_size 20m;

upstream node_server_asievue {
    server 127.0.0.1:3000 max_fails=1;   
}

map $http_upgrade $connection_upgrade {
    default upgrade;
    ''    close;
}

server {
    listen       80;
    server_name  localhost;

    tcp_nodelay on;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;

    location / {            
        proxy_pass http://node_server_asievue;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $remote_addr;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;

        client_max_body_size 10m;
        client_body_buffer_size 128k;
        proxy_connect_timeout 90;
        proxy_send_timeout 90;
        proxy_read_timeout 90;
        proxy_buffer_size 4k;
        proxy_buffers 4 32k;
        proxy_busy_buffers_size 64k;
        proxy_temp_file_write_size 64k;
     }

      location /images/ { 
         gridfs asievue root_collection=image field=_id type=objectid user=asievue pass=asve^dkg646dfs45;
         mongo 127.0.0.1:27017;
     }

}

}

error.log

2014/06/11 15:42:34 [error] 22179#0: *7 Mongo connection dropped, could not reconnect, client: 127.0.0.1, server: localhost, request: "GET /images/5397f74005fbed25453660a3 HTTP/1.1", host: "127.0.0.1"
2014/06/11 15:42:34 [alert] 22179#0: *7 header already sent, client: 127.0.0.1, server: localhost, request: "GET /images/5397f74005fbed25453660a3 HTTP/1.1", host: "127.0.0.1"

@pbriet
Copy link

pbriet commented Jun 27, 2014

Same issue here. The connection works in a way because it correctly detects if there is a file or not (404), but when there is, this message appears, leading to a "no data received" issue

@myfreax
Copy link

myfreax commented Jul 31, 2017

+1,How fix it?

@pbriet
Copy link

pbriet commented Jul 31, 2017

3 years later : no idea. I finally dropped GridFS, whick lack support. I encourage you to do the same and look for alternatives.

@myfreax
Copy link

myfreax commented Jul 31, 2017

thank you,I originally wanted to use mongodb's GridFS as an object store. But I just found a good solution
The Project minio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants