Skip to content

Recover from MySQL error / server gone away #3

Description

@tdashton
connecting to db
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "thermoPiCollector.py", line 119, in run
    collectorMysql.writeToDatasource(temp, timestamp, sensorName)
  File "/home/pi/thermoRaspberryPi/collectorMysql.py", line 35, in writeToDatasource
    .format(temp, date, sensorName))
OperationalError: (2013, 'Lost connection to MySQL server during query')

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "thermoPiCollector.py", line 104, in run
    collectorMysql.writeToDatasource(temp, timestamp, sensorName)
  File "/home/pi/thermoRaspberryPi/collectorMysql.py", line 35, in writeToDatasource
    .format(temp, date, sensorName))
OperationalError: (2006, 'MySQL server has gone away')


^CTraceback (most recent call last):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions