ELB are failing with HTTP 5xx on AWS
We use GitHub Issues for bugs.
If you have a non-bug question, ask on Stack Overflow or Server Fault:
- https://stackoverflow.com/questions/tagged/parse.com
- https://serverfault.com/tags/parse
You may also search through existing issues before opening a new one: https://github.com/ParsePlatform/Parse-Server/issues?utf8=%E2%9C%93&q=is%3Aissue
--- Please use this template. If you don't use this template, your issue may be closed without comment. ---
Issue Description
I am running Parse server on AWS using ELB, quite often I see in AWS dahsboard the error - Environment health has transitioned from Ok to Warning. 1.6 % of the requests to the ELB are failing with HTTP 5xx (3 minutes ago).
I am using Parse server 2.2.5. My iOS and Android app works fine, but this is alarming. I can not figure what issue the HTTP 5xxx errors.
The only thing in the log that look out of normal is -
[31merror[39m: Error handling request: ParseError { code: 101, message: 'invalid session' } code=101, message=invalid session [31merror[39m: invalid session code=101, message=invalid session [31merror[39m: Error handling request: ParseError { code: 101, message: 'invalid session' } code=101, message=invalid session [31merror[39m: invalid session code=101, message=invalid session [31merror[39m: Error handling request: ParseError { code: 101, message: 'invalid session' } code=101, message=invalid session [31merror[39m: invalid session code=101, message=invalid session [31merror[39m: Error handling request: ParseError { code: 101, message: 'invalid session' } code=101, message=invalid session
This is happen every few minutes. Can this cause the 5xx errors? If yes, any suggestion how to address this? Is there a solution that is server based only?
I do not try to save anonymous user. My installation object have a pointer to the user object which I assign after the user login. And if the user logout I remove the user key from the installation object before trying to save it again.
Steps to reproduce
I do not know.
Expected Results
No 5xxx errors.
Actual Outcome
I am getting 5xx errors.
Environment Setup
-
Server
- parse-server version (Be specific! Don't say 'latest'.) : 2.2.25
- Operating System: Linux
- Hardware: AWS ELB
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): AWS
-
Database
- MongoDB version: [FILL THIS OUT]
- Storage engine: [FILL THIS OUT]
- Hardware: AWS - mLAB
- Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): AWS
Logs/Trace
[31merror[39m: Error handling request: ParseError { code: 101, message: 'invalid session' } code=101, message=invalid session [31merror[39m: invalid session code=101, message=invalid session [31merror[39m: Error handling request: ParseError { code: 101, message: 'invalid session' } code=101, message=invalid session [31merror[39m: invalid session code=101, message=invalid session [31merror[39m: Error handling request: ParseError { code: 101, message: 'invalid session' } code=101, message=invalid session [31merror[39m: invalid session code=101, message=invalid session [31merror[39m: Error handling request: ParseError { code: 101, message: 'invalid session' } code=101, message=invalid session
Did you try updating to the latest version (2.3.8?)
I can try it soon, but one change that I am concern is that release 2.3.0 there was the following change - email field is not returned anymore for Parse.User queries. (Provided only on the user itself if provided).
Today some of my clients app run a query before allowing the user to change his email address, the query in the _User collection and it checks if there is any other users with the new email the user want to use.
Now with the change introduce in 2.3.0, how this query will behave? If there is another user that already use the user's new email address (the one he want to change to) will the query return 0 record or 1 record?
the email is not returned but, the number of results should still match the count. You can try on a staging environment for that particular use case.
ELB check the app health by get / index route. If you don't handler this, ELB will show the Warning. Add the index route and response something with http code 200.
i also have this issue some time in my ELB i am not sure if this is issue or just i can ignore it. I am using parse server 2.6.4
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.