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

Server crashes when trying to login - "Can't reconnect until invalid transaction is rolled back" #11

Closed
zelima opened this issue Jul 25, 2017 · 2 comments

Comments

@zelima
Copy link
Collaborator

zelima commented Jul 25, 2017

While ago, was registered and able to push files to datahub. Apr ~15 hours later tried to run data login and getting

invalid json response body at http://api-testing.datahub.io/auth/check?jwt=HereGoesToken&next=http://localhost:3000 reason: Unexpected token < in JSON at position 0

Checking the Auth logs we have problem with connecting to database - SQLalchemy invalidRequestError

sqlalchemy.exc.StatementError: (sqlalchemy.exc.InvalidRequestError) Can't reconnect until invalid transaction is rolled back

Not sure, but this might be related to reusing session - according to this https://stackoverflow.com/a/42396447 it happens when using session while SQLachemy error is raised

@zelima zelima added this to the Sprint - 31 Jul 2017 milestone Jul 25, 2017
@akariv
Copy link
Collaborator

akariv commented Jul 25, 2017 via email

@akariv
Copy link
Collaborator

akariv commented Jul 25, 2017

Fixed in e3459c6

@akariv akariv closed this as completed Jul 25, 2017
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

2 participants