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

Database 'goes away' #50

Open
gregorydlogan opened this issue Feb 5, 2021 · 1 comment
Open

Database 'goes away' #50

gregorydlogan opened this issue Feb 5, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@gregorydlogan
Copy link
Member

In testing I'm seeing errors like the following too often (note: copy and pasted from StackOveflow, but the gist is the same)

  File "C:\my_proj\db_conduit.py", line 147, in load_some_model
    SomeModel.objects.update()
  File "C:\Python26\lib\site-packages\django-1.3-py2.6.egg\django\db\models\manager.py", line 177, in update
    return self.get_query_set().update(*args, **kwargs)
  File "C:\Python26\lib\site-packages\django-1.3-py2.6.egg\django\db\models\query.py", line 469, in update
    transaction.commit(using=self.db)
  File "C:\Python26\lib\site-packages\django-1.3-py2.6.egg\django\db\transaction.py", line 142, in commit
    connection.commit()
  File "C:\Python26\lib\site-packages\django-1.3-py2.6.egg\django\db\backends\__init__.py", line 201, in commit
    self._commit()
  File "C:\Python26\lib\site-packages\django-1.3-py2.6.egg\django\db\backends\__init__.py", line 46, in _commit
    return self.connection.commit()
OperationalError: (2006, 'MySQL server has gone away')

Started seeing this on start of sprint 2, but has since gone away. Unclear what's causing it, but better handling should be built.

@gregorydlogan gregorydlogan added the bug Something isn't working label Feb 5, 2021
@gregorydlogan
Copy link
Member Author

This happened on the ETH test instance tonight but the better error handling from sprint 2 both prevented it from crashing the whole server, and allowed a (manual) retry, which resolved the issue.

Still shouldn't be happening but it's now much lower priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant