Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3874030
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:06:19+00:00 2026-05-19T22:06:19+00:00

I was trying to put the gridfs/nginx/mongo setup in place but I am getting

  • 0

I was trying to put the gridfs/nginx/mongo setup in place but I am getting some strange errors.

I tried with nginx 0.8.53 and 0.8.54 and latest mongo 1.6.5 64bits on latest Ubuntu.
Compiling with gridfs module worked well: https://github.com/mdirolf/nginx-gridfs

server {
   listen xx.xx.xx.xx;
   server_name media.foo.com;

   access_log  /home/cloudy/log/nginx/media-access.log;
   error_log   /home/cloudy/log/nginx/media-error.log;

   location /gridfs/ {
       gridfs db_name;
       mongo 127.0.0.1:27017;
    }
}

I get an empty response when I try to fetch a file:

curl -X GET -i 'http://media.foo.com/gridfs/4d4d526cea26b05041000015'
curl: (52) Empty reply from server

My error.log

2011/02/05 15:28:50 [alert] 7112#0: *1 zero size buf in writer t:0 r:0 f:0 0000000000000000 0000000000000000-0000000000000000 0000000000000000 0-0, client: 80.11.52.189, server: media.uk.cloudy.fr, request: "GET /gridfs/4d4d526dea26b05041000016 HTTP/1.1", host: "media.foo.com"
2011/02/05 15:28:52 [alert] 7112#0: *2 zero size buf in writer t:0 r:0 f:0 0000000000000000 0000000000000000-0000000000000000 0000000000000000 0-0, client: 80.11.52.189, server: media.uk.cloudy.fr, request: "GET /gridfs/4d4d526dea26b05041000016 HTTP/1.1", host: "media.foo.com"

Any suggestion is welcome 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:06:19+00:00Added an answer on May 19, 2026 at 10:06 pm

    I actually hacked the gridFS module to access something else in mongo. My coworker submitted a pull request then, and I think that is the last thing that was done. I found a memory leak in it too if you would like the patch. This module has not been developed since July. It could be that it may not be compatible with new nginx. We are using this heavily so if I find it is not compatible with .8x/Mongo 1.7.5 I will fix it and let you know. I would ask the maintainer on github in the meantime.

    Also this is not developed by 10gen, so you may not be able to get help on mongodb-user. It is not a bug with Mongo. Mongo has changed a lot since July so that may be a problem too. The nginx plugin relies on the mongo C driver too which may be out of date. We are using it successfully with nginx/0.7.67 and mongo 1.6.5.

    Run your mongo with verbose (-vvv) and tail the mongo log and hit it. See if your request is actually making a mongo query and if there are errors with that

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to put together a linear regression model but some of my featured
I'm trying to put some custom list adapters into their own classes to make
I'm trying to put together a GUI for setting some pricing. There are three
Trying to put in field pagar the calculated value of precio * 15% but
I'm trying to put some json images into a UIScrollView and i'm hitting a
I am trying to put a click function on a php loop. But its
I am trying to put some JSON formatted data via Ajax with jQuery to
I'm trying to put a variable in a selector, but it doesn't work, what
Im trying to put in two sign up forms on a single page, but
I trying to put some images into the hub tile as the window phone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.