{"action":"created","issue":{"url":"https://api.github.com/repos/celery/django-celery/issues/359","labels_url":"https://api.github.com/repos/celery/django-celery/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/celery/django-celery/issues/359/comments","events_url":"https://api.github.com/repos/celery/django-celery/issues/359/events","html_url":"https://github.com/celery/django-celery/issues/359","id":57916849,"number":359,"title":"OperationalError: (2006, 'MySQL server has gone away')","user":{"login":"abhijo89","id":1256648,"avatar_url":"https://avatars.githubusercontent.com/u/1256648?v=3","gravatar_id":"","url":"https://api.github.com/users/abhijo89","html_url":"https://github.com/abhijo89","followers_url":"https://api.github.com/users/abhijo89/followers","following_url":"https://api.github.com/users/abhijo89/following{/other_user}","gists_url":"https://api.github.com/users/abhijo89/gists{/gist_id}","starred_url":"https://api.github.com/users/abhijo89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhijo89/subscriptions","organizations_url":"https://api.github.com/users/abhijo89/orgs","repos_url":"https://api.github.com/users/abhijo89/repos","events_url":"https://api.github.com/users/abhijo89/events{/privacy}","received_events_url":"https://api.github.com/users/abhijo89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-17T12:11:50Z","updated_at":"2015-11-16T09:54:36Z","closed_at":null,"body":"When ever i restart my MySql celeryd and celerycam throw OperationalError: (2006, 'MySQL server has gone away') .\r\n\r\n        Traceback (most recent call last):\r\n          File \"/home/webapp/webapp/../vendor/djcelery/schedulers.py\", line 204, in sync\r\n            with commit_on_success():\r\n          File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__\r\n            return self.gen.next()\r\n          File \"/home/webapp/webapp/../vendor/djcelery/db.py\", line 56, in commit_on_success\r\n            with transaction.atomic(using):\r\n          File \"/usr/local/lib/python2.7/dist-packages/django/db/transaction.py\", line 280, in __enter__\r\n            connection.set_autocommit(False)\r\n          File \"/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py\", line 333, in set_autocommit\r\n            self._set_autocommit(autocommit)\r\n          File \"/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py\", line 460, in _set_autocommit\r\n            self.connection.autocommit(autocommit)\r\n        OperationalError: (2006, 'MySQL server has gone away')\r\n\r\nIs it a bug ? "},"comment":{"url":"https://api.github.com/repos/celery/django-celery/issues/comments/156974709","html_url":"https://github.com/celery/django-celery/issues/359#issuecomment-156974709","issue_url":"https://api.github.com/repos/celery/django-celery/issues/359","id":156974709,"user":{"login":"arturataide","id":7295298,"avatar_url":"https://avatars.githubusercontent.com/u/7295298?v=3","gravatar_id":"","url":"https://api.github.com/users/arturataide","html_url":"https://github.com/arturataide","followers_url":"https://api.github.com/users/arturataide/followers","following_url":"https://api.github.com/users/arturataide/following{/other_user}","gists_url":"https://api.github.com/users/arturataide/gists{/gist_id}","starred_url":"https://api.github.com/users/arturataide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturataide/subscriptions","organizations_url":"https://api.github.com/users/arturataide/orgs","repos_url":"https://api.github.com/users/arturataide/repos","events_url":"https://api.github.com/users/arturataide/events{/privacy}","received_events_url":"https://api.github.com/users/arturataide/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T09:54:36Z","updated_at":"2015-11-16T09:54:36Z","body":"I have exactly the same error. The worker retrieves the \"2006, 'MySQL server has gone away'\" and freezes. I've applied the fix #359 but this issue continues to happen. \r\nAny ideas on this?\r\nThanks"}}