{"action":"closed","issue":{"url":"https://api.github.com/repos/ngoduykhanh/PowerDNS-Admin/issues/101","repository_url":"https://api.github.com/repos/ngoduykhanh/PowerDNS-Admin","labels_url":"https://api.github.com/repos/ngoduykhanh/PowerDNS-Admin/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/ngoduykhanh/PowerDNS-Admin/issues/101/comments","events_url":"https://api.github.com/repos/ngoduykhanh/PowerDNS-Admin/issues/101/events","html_url":"https://github.com/ngoduykhanh/PowerDNS-Admin/issues/101","id":170370966,"number":101,"title":"Running error","user":{"login":"blackyzero","id":4286063,"avatar_url":"https://avatars.githubusercontent.com/u/4286063?v=3","gravatar_id":"","url":"https://api.github.com/users/blackyzero","html_url":"https://github.com/blackyzero","followers_url":"https://api.github.com/users/blackyzero/followers","following_url":"https://api.github.com/users/blackyzero/following{/other_user}","gists_url":"https://api.github.com/users/blackyzero/gists{/gist_id}","starred_url":"https://api.github.com/users/blackyzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackyzero/subscriptions","organizations_url":"https://api.github.com/users/blackyzero/orgs","repos_url":"https://api.github.com/users/blackyzero/repos","events_url":"https://api.github.com/users/blackyzero/events{/privacy}","received_events_url":"https://api.github.com/users/blackyzero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T09:22:32Z","updated_at":"2016-08-12T07:55:34Z","closed_at":"2016-08-12T07:55:34Z","body":"Hi Team,\r\n\r\n```\r\nSeveral times, when i reload the webpage, i get following error,\r\n\r\nsqlalchemy.exc.OperationalError\r\nOperationalError: (_mysql_exceptions.OperationalError) (2006, 'MySQL server has gone away') [SQL: u'SELECT setting.id AS setting_id, setting.name AS setting_name, setting.value AS setting_value \\nFROM setting \\nWHERE setting.name = %s \\n LIMIT %s'] [parameters: ('maintenance', 1)]\r\n```\r\n\r\nFull error following as below:\r\n\r\n> This is the Copy/Paste friendly version of the traceback. You can also paste this traceback into a gist:  create paste\r\n> Traceback (most recent call last):\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/flask/app.py\", line 2000, in __call__\r\n>     return self.wsgi_app(environ, start_response)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/werkzeug/contrib/fixers.py\", line 152, in __call__\r\n>     return self.app(environ, start_response)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/flask/app.py\", line 1991, in wsgi_app\r\n>     response = self.make_response(self.handle_exception(e))\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/flask/app.py\", line 1567, in handle_exception\r\n>     reraise(exc_type, exc_value, tb)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/flask/app.py\", line 1988, in wsgi_app\r\n>     response = self.full_dispatch_request()\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/flask/app.py\", line 1641, in full_dispatch_request\r\n>     rv = self.handle_user_exception(e)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/flask/app.py\", line 1544, in handle_user_exception\r\n>     reraise(exc_type, exc_value, tb)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/flask/app.py\", line 1637, in full_dispatch_request\r\n>     rv = self.preprocess_request()\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/flask/app.py\", line 1837, in preprocess_request\r\n>     rv = func()\r\n>   File \"/var/www/testdomain.com/adns/app/views.py\", line 64, in before_request\r\n>     maintenance = Setting.query.filter(Setting.name == 'maintenance').first()\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/orm/query.py\", line 2469, in first\r\n>     ret = list(self[0:1])\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/orm/query.py\", line 2292, in __getitem__\r\n>     return list(res)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/orm/query.py\", line 2571, in __iter__\r\n>     return self._execute_and_instances(context)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/orm/query.py\", line 2586, in _execute_and_instances\r\n>     result = conn.execute(querycontext.statement, self._params)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/engine/base.py\", line 914, in execute\r\n>     return meth(self, multiparams, params)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/sql/elements.py\", line 323, in _execute_on_connection\r\n>     return connection._execute_clauseelement(self, multiparams, params)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/engine/base.py\", line 1010, in _execute_clauseelement\r\n>     compiled_sql, distilled_params\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/engine/base.py\", line 1146, in _execute_context\r\n>     context)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/engine/base.py\", line 1341, in _handle_dbapi_exception\r\n>     exc_info\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/util/compat.py\", line 199, in raise_from_cause\r\n>     reraise(type(exception), exception, tb=exc_tb)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/engine/base.py\", line 1139, in _execute_context\r\n>     context)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/sqlalchemy/engine/default.py\", line 450, in do_execute\r\n>     cursor.execute(statement, parameters)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/MySQLdb/cursors.py\", line 205, in execute\r\n>     self.errorhandler(self, exc, value)\r\n>   File \"/var/www/testdomain.com/adns/flask/lib/python2.7/site-packages/MySQLdb/connections.py\", line 36, in defaulterrorhandler\r\n>     raise errorclass, errorvalue\r\n> OperationalError: (_mysql_exceptions.OperationalError) (2006, 'MySQL server has gone away') [SQL: u'SELECT setting.id AS setting_id, setting.name AS setting_name, setting.value AS setting_value \\nFROM setting \\nWHERE setting.name = %s \\n LIMIT %s'] [parameters: ('maintenance', 1)]\r\n> The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.\r\n> To switch between the interactive traceback and the plaintext one, you can click on the \"Traceback\" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.\r\n> \r\n> You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:\r\n> \r\n> dump() shows all variables in the frame\r\n> dump(obj) dumps all that's known about the object\r\n> Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter."}}
{"actor":{"display_login":"ngoduykhanh"}}