{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/2553","repository_url":"https://api.github.com/repos/gogits/gogs","labels_url":"https://api.github.com/repos/gogits/gogs/issues/2553/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/2553/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/2553/events","html_url":"https://github.com/gogits/gogs/issues/2553","id":131357854,"number":2553,"title":"Fail to initialize ORM engine: migrate: sync","user":{"login":"NiklasRosenstein","id":1318438,"avatar_url":"https://avatars.githubusercontent.com/u/1318438?v=3","gravatar_id":"","url":"https://api.github.com/users/NiklasRosenstein","html_url":"https://github.com/NiklasRosenstein","followers_url":"https://api.github.com/users/NiklasRosenstein/followers","following_url":"https://api.github.com/users/NiklasRosenstein/following{/other_user}","gists_url":"https://api.github.com/users/NiklasRosenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/NiklasRosenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiklasRosenstein/subscriptions","organizations_url":"https://api.github.com/users/NiklasRosenstein/orgs","repos_url":"https://api.github.com/users/NiklasRosenstein/repos","events_url":"https://api.github.com/users/NiklasRosenstein/events{/privacy}","received_events_url":"https://api.github.com/users/NiklasRosenstein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-02-04T14:09:22Z","updated_at":"2016-06-18T11:38:07Z","closed_at":"2016-02-21T12:25:33Z","body":"Hi! I'm using a MySQL database. I'm not sure what changed, but now it shuts down after some time. I get this error in `gogs.log`:\r\n\r\n    2016/02/04 13:35:11 [...s/routers/install.go:70 GlobalInit()] [E] Fail to initialize ORM engine: migrate: sync: dial tcp 127.0.0.1:3306: getsockopt: connection refused\r\n\r\nThis is my database configuration\r\n\r\n    [database]\r\n    DB_TYPE = mysql\r\n    HOST = 127.0.0.1:3306\r\n    NAME = gogs\r\n    USER = gogs\r\n    PASSWD = ******\r\n    SSL_MODE = disable\r\n    PATH = data/gogs.db\r\n\r\nAny idea what could cause this error? And I'm also unsure about the `PATH = data/gogs.db` part since I'm using a MySQL server it shouldn't need the path to a database file?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/226937035","html_url":"https://github.com/gogits/gogs/issues/2553#issuecomment-226937035","issue_url":"https://api.github.com/repos/gogits/gogs/issues/2553","id":226937035,"user":{"login":"lambarena","id":6704330,"avatar_url":"https://avatars.githubusercontent.com/u/6704330?v=3","gravatar_id":"","url":"https://api.github.com/users/lambarena","html_url":"https://github.com/lambarena","followers_url":"https://api.github.com/users/lambarena/followers","following_url":"https://api.github.com/users/lambarena/following{/other_user}","gists_url":"https://api.github.com/users/lambarena/gists{/gist_id}","starred_url":"https://api.github.com/users/lambarena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambarena/subscriptions","organizations_url":"https://api.github.com/users/lambarena/orgs","repos_url":"https://api.github.com/users/lambarena/repos","events_url":"https://api.github.com/users/lambarena/events{/privacy}","received_events_url":"https://api.github.com/users/lambarena/received_events","type":"User","site_admin":false},"created_at":"2016-06-18T11:38:07Z","updated_at":"2016-06-18T11:38:07Z","body":". I fixed this on Debian Jessie by adding `After=mysql.service` to gogs.service."}}
{"actor":{"display_login":"lambarena"}}