-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
All Requests Receive Timeout Error #1855
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
Comments
You are receiving an AWS error, which seems to indicate an issue with your AWS config. If you run the server locally, do you get the same issue? |
Thanks @drew-gross! I'm not set up to run the server locally. I can work on this. Is it possible that this AWS error is related to S3Adapter? As far as I know that's the only AWS we integrate with. |
That is possible, yes. Possibly if you have an extremely large file are are trying to proxy it through a very small heroku instance or something. |
@drew-gross largest file in S3 is 7.7mb. Should be fine. It looks like #1854 describes exactly what our team is experiencing. |
I have no sure about the problem, but before upgrade to 2.2.10 all works fine, local and remote (same server), and I'm using Google Cloud Storage to files, so I don't think that it is an issue because of server load or proxy, before upgrade everything works fine including fetch files... But I don't know. The MongoDb I don't think too, because I can access data normally on the parse-server database, using MongoChef. Also after restart the Docker container of parse-server it back to normal, but then down again. It's mean is something related with parse-server. I'm waiting the log here, soon I paste here after the parser-serve go to down. |
Ok, after few minutes the server not respond anymore, but show nothing on the logs (VERBOSE). Can be related with database, I'm installing the database locally now to see the logs too. |
@jgaull If your |
@drew-gross do you have any ideas on why this happened only after updating, and can be temporarily fixed for under 15 minutes by resetting the dyno? |
I'm experiencing the same issue, however I deploy on EB. Here's the Nginx error log after I switched to a single instance:
Otherwise with auto-scaling there is a 111 error:
|
@drew-gross There are only 232 records in the table. I can double check that there's an index tomorrow. |
No, I don't have any ideas unfortunately, hence why I'm looking for logs. There weren't actually very many changes in the recent versions of Parse Server, and looking at them I don't see anything that seems relevant. |
@jgaull 232 records wouldn't be enough to cause issues even if a tablescan is going on. Checking the mongo logs for slow queries would still be useful though. |
@drew-groos I'm still can seeing data is showing on parse.com dashboard. (I was already migrated data) but it not showing from my server. |
@jadsonlourenco @jgaull are the three of us all on mongoLab sandbox plan? |
@davodesign84 yes and no. I did a test with MLab, but I'm using Docker (https://hub.docker.com/r/jadsonlourenco/mongo-rocks/), and I did a test using a local mongo server (3.2) over OSX, get the same bug. |
So, I launched a new mongo deployment via Cloud Manager on AWS, same issue. Mongo logs seems pretty good:
but nginx logs are not happy:
|
Interestingly the access log shows a lot of POST requests
okhttp should my react-native android client, which hasn't been changed in the last 3-4 weeks.... but I'll redeploy with the verbose flag and see home many requests are actually received by node. |
Well for me the Mongo and Parse-server logs show nothing strange, just normal info. One thing I noticed that I deleted all the extra classes, just let the default classes, and removed all content. So in this case with a standard database the parse-server not stop after minutes. I think this issue is related with parse-server, after some query, but I don't know where I can see it, because the logs not appear any error, and is not in the database, I think, who did not show anything unusual on logs too. |
I'm facing the same issue with modulus.io. Nothing found in logs. Switching back to older versions of parse-server does not solve the problem |
Tests report:
The parse-server goes down after few minutes only after run the mobile app, I can get the content without error. Before run the mobile app the mongo logs:
But, as I said after run the app, get the content from parse-server correctly, the server down and on mongo logs not show this message any more, don't show any logs from parse-server... |
I'm seeing a similar pattern, a lot of duplicated requests to nginx but only one to node, also from CFNetwork.
|
same here Environment Setup Server: parse-server 2.2.10, AWS Beanstalk I have only 50+ records in the database and only try to read them. After the first or second successful request, there is a timeout and the latency in the AWS Monitoring goes to 60 sec... |
Update: I tried without files, removed all files columns, but get the same issue... |
Update-2: If my app has two collections to fetch the parse-server will down (current issue), but if I have only one query on the same page the server works fine. (in this case I'm not using files, just fetch text data, few data). Does anyone have this same problem? EDIT: I have sure about that, this issue is related with multiples query in same page! |
Having multiple queries on the same page could be a red herring, as it could just be that your server only has enough memory to handle 1 query at a time, or something like that (although that seems unlikely, unless you have the table scan problem I mentioned above) Some ideas to try: Can you try issuing the same queries one after another, instead of simultaneously, and see if the problem still occurs? If you have managed to reproduce locally, can you send me the steps to reproduce? If you are using mongo version 3.0.{something this is not 8}, can you try mongo 3.0.8? This is the one we run the tests on, the one we use internally at Parse, and people have previously reported issues with other versions. |
Running Parse Server locally works for me, and then within 5 minutes of switching back to Heroku I get the timeout issues again. |
I have also run into the same problem recently -- however I have not upgraded my server since parse version 2.2.7. I have a stable version which I last built from source on 14th of May, and my currently failing version of 2.2.7 which I have built today. Assuming I am being affected by the same root cause, perhaps this is a dependency issue? This is the output from running
I've also included gists from the output of STABLE: UNSTABLE: Hope this helps. |
Looking at the list of dependencies, I don't see anything that could be causing problems. I don't have many more ideas, especially since people are reporting that memory usage is stable. Does your mongo continue to respond to queries issued from the mongo cli? Have you tried disabling all logging and caching? Since memory is stable I wouldn't expect that to be the issue, but it could be that the logs and cache are using up too many resources. |
Did anybody have any luck with Mongo 3.0.8? I seem to still experience the issue :/ |
Hi folks, Per https://jira.mongodb.org/browse/NODE-718, it looks like 2.1.21 may address the issue. Would any folks be able to test the latest version and see if it works for them? If not, we should let the MongoDB team know asap. |
@chrisckchang You are right the 2.1.21 fixed this issue, I tested it and works fine, thanks! |
@jadsonlourenco Sorry for not posting earlier, it looks like the current recommendation is to use 2.1.18 per https://jira.mongodb.org/browse/NODE-722. It looks like there may have been some bugs introduced when trying to fix an issue for Windows. |
Hi folks, I have the same problem in parse-server 2.2.13, i also tried to upgrade the mongodb adapter to 2.2.21 but problem still occurs ... Where 13.184 is request time, and parse-server didn't sent any response. |
Hi All, |
@partikles As workaround, you can setup a limit for requests per second by nginx. |
@partikles I get the same issue again, even with mongodb 2.1.18, to fix it I update to MongoDB 3.2 (https://hub.docker.com/r/jadsonlourenco/mongo-rocks/), I solved this issue and get a better performance. |
Thanks @joy4eg @jadsonlourenco |
Hello all, sorry to revive this thread but I have mongodb pinned as 2.1.18 in my package.json file to resolve this issue, but got the following email from mLab the other week saying that my deployment will be affected:
Does anyone know what I need to do to avoid issues when they perform this upgrade? |
The mongodb module doesn't share a version number with the MobgoDB server.
You don't need to do anything, the module pinned at v2.1.18 supports
MongoDB server v3.2 already.
https://docs.mongodb.com/ecosystem/drivers/node-js/#mongodb-compatibility
|
@fiznool Well, doesn't get much easier than that. Thanks! :D |
we faced the same issue and we had to change the Mongo DB dependency version to v2.1.18. So scary issue and pretty bad. Actually the version fix seems not working for us. Any help is much appreciated. Access logs from nginx: 174.65.165.4 - - [08/Aug/2016:03:24:35 +0000] "POST /parse/users HTTP/1.1" 504 182 "-" "Parse Android SDK 1.13.0 (com.XXX/67) API Level 19" HTTP 504 errors .. |
Hi guys, Any feedback on this? This still happens on 2.1.18 so not sure why it has been closed as the problem is still there??? |
@execMobile with only the parse-server logs that doesn't help much, as many stated in the thread, this was resolved by pinning mongo to 2.1.18. What version of parse-server are you running? We also added a reconnection mechanism in case the connection was closed to the DB for inactivity. |
Hi @flovilmart, The dependencies are as follows:
We have changed the parse-server to 2.2.18 and hopefully it will work as expected. Will post anything if the problem occurs again. |
Guys, same thing with my application, this could be a s3 adapter issue? I have a mlab deployinment of parse-server. And yesterday out of the blue all my files go out of reach. My parse does not throw any error and the mlab dashboard says that my database is up and running edited |
@LucasBadico can you expand on that? |
@flovilmart sorry, I read and write a detail wrongly... fixing it and aswering you... a moment. |
@flovilmart so, I have this app up and running with a parse-server on digital ocean. Yesterday my images are saying this
|
@LucasBadico Please, explain your problem more detailed. |
What type of information do you guys need? the configuration setup? |
@LucasBadico that's an issue with S3, not sure how to help there. Also, can you please open a new issue as this one has been closed for a while, and what related to an imcompatibility with the mongoDB driver that we addressed already. |
@flovilmart oks! thanks! I will. |
Today, we saw this issue on Strangely, when we upgraded the |
Our production server is crashing every 5 hours after an upgrade to Parse-server. Indeed, the error messages seem similar to what is described in this issue. So I have tried to pin mongoDB library to 2.1.18 in package.json However when I do an npm list I see the following Does this mean that Parse isn't using 2.1.18? When I scroll further up the list I CAN see the 2.1.18, just not sure if its being used Perhaps I have two copies and the wrong one is being used? |
Environment Setup
Steps to reproduce
I'm sorry this sucks, but we have not been able to narrow down the steps any more than this:
Result: All requests begin timing out.
Code
Please note, this code does not appear to cause the problem as timeouts have begun without this ever running. However, I've been using this function when troubleshooting.
Logs/Trace
Once timeouts begin I'm seeing this with VERBOSE enabled:
If I wait around long enough I see this error:
Tested These Things
I'm very much at a loss for how to continue troubleshooting this problem. Thanks so much for your help!
The text was updated successfully, but these errors were encountered: