-
Notifications
You must be signed in to change notification settings - Fork 147
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
nginx can`t access mongodb #52
Comments
Can you connect to that database using mongo shell?
|
Same issue here. Did you manage to find the solution to this? |
me too , i have same problem, do you find the solution to this,i need your help |
I emailed the owner of this repository. It seems like he does not have time to work on current issues anymore. I will look into Riak CS as a drop-in replacement for MongoDB Gridfs. |
Had the same problem
I notice at this stage it can't however resolve using avahi, only IP. |
@rdkls I am not sure how this is supposed to be a fix. The commit was already merged into master 2 years ago. What should i do if my config is:
|
Sorry for not fixing your problems =) It's something that works for me, at least. |
To fix the isseu you need the latest master branch of the C driver (the GridFS module uses another branch, which seems to be faulty). After cloning this repo, do not do 'git submodule init && git subodule update', but instead: Then compile nginx as usual. |
That's great assen73, thank you very much for your help. |
thank you very much for assen73's help |
Guys, I might have stumbled onto something while playing with another MongoDB library, which is in pure C... I had a case much like this - the GridFS driver was seeing the file, but returning a size of 0 for it; it turned out that the file size in GridFS size was stored by some drivers as LongInt() and by others as Int(). On 64-bit platforms both work fine, but on 32-bit Little-endian platforms this breaks interoperability, because if the driver expects the size to be LongInt (64 bits), but it is Int (32 bits), then it often returns a size of 0. This means that the driver reading the GridFS should check how the size is stored and interpret it properly. I'm not sure if this is the case here, but it may be worth checking - as the fix will be easy. |
There are one problem is that you must delete the -Werror option of gcc in [nginx-source/objs/MakeFile]. the log of make below: cc1: warnings being treated as errors |
I got an error : I do :git clone https://github.com/eagleas/mongo-c-driver.git Have anyone help me? |
@mz0827 please use nginx1.4.7 or earlier version. |
@ilaipi you can refer to this issue: barakethan/gridfs-nginx-plugin#1 (to quote the answer in that thread: add (unsigned long) in the places there is a comparison issue to the int side. (if ( pos + bytesNeeded <= (unsigned long) b->dataSize ))) |
i am trying this ..but getting the mongo connection drop error eventhough when i cloned git mongo-c-driver module instead of init and update.. |
@sumantfordev I also encountered the same problem, the problem is that the mongo-c-driver driver,it can't use https://github.com/mongodb/mongo-c-driver.git |
Thanks i will give it a shot with it... |
have similiar issue, i'm using nginx1.11 |
I`ve installed nginx-gridfs module
when I access the picture,the result is error 404 and error_log of nginx like this:
2013/04/19 17:12:26 [error] 8349#0: *7658 Mongo connection dropped, could not reconnect, client: 221.226.28.34, server: localhost, request: "GET /xxoo/test.gif HTTP/1.1", host: "suishen.mobi"
Is the problem of the nginx-gridfs module?
I need help! Thanks!
the picture has been storaged in mongodb
pic access url http://domain/xxoo/test.gif
nginx configure
The text was updated successfully, but these errors were encountered: