{"action":"created","issue":{"url":"https://api.github.com/repos/LowellObservatory/DockerDev/issues/4","repository_url":"https://api.github.com/repos/LowellObservatory/DockerDev","labels_url":"https://api.github.com/repos/LowellObservatory/DockerDev/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/LowellObservatory/DockerDev/issues/4/comments","events_url":"https://api.github.com/repos/LowellObservatory/DockerDev/issues/4/events","html_url":"https://github.com/LowellObservatory/DockerDev/issues/4","id":391966017,"node_id":"MDU6SXNzdWUzOTE5NjYwMTc=","number":4,"title":"Grafana fails for first start after a migration","user":{"login":"astrobokonon","id":1168555,"node_id":"MDQ6VXNlcjExNjg1NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1168555?v=4","gravatar_id":"","url":"https://api.github.com/users/astrobokonon","html_url":"https://github.com/astrobokonon","followers_url":"https://api.github.com/users/astrobokonon/followers","following_url":"https://api.github.com/users/astrobokonon/following{/other_user}","gists_url":"https://api.github.com/users/astrobokonon/gists{/gist_id}","starred_url":"https://api.github.com/users/astrobokonon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrobokonon/subscriptions","organizations_url":"https://api.github.com/users/astrobokonon/orgs","repos_url":"https://api.github.com/users/astrobokonon/repos","events_url":"https://api.github.com/users/astrobokonon/events{/privacy}","received_events_url":"https://api.github.com/users/astrobokonon/received_events","type":"User","site_admin":false},"labels":[{"id":1079740912,"node_id":"MDU6TGFiZWwxMDc5NzQwOTEy","url":"https://api.github.com/repos/LowellObservatory/DockerDev/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":{"login":"astrobokonon","id":1168555,"node_id":"MDQ6VXNlcjExNjg1NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1168555?v=4","gravatar_id":"","url":"https://api.github.com/users/astrobokonon","html_url":"https://github.com/astrobokonon","followers_url":"https://api.github.com/users/astrobokonon/followers","following_url":"https://api.github.com/users/astrobokonon/following{/other_user}","gists_url":"https://api.github.com/users/astrobokonon/gists{/gist_id}","starred_url":"https://api.github.com/users/astrobokonon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrobokonon/subscriptions","organizations_url":"https://api.github.com/users/astrobokonon/orgs","repos_url":"https://api.github.com/users/astrobokonon/repos","events_url":"https://api.github.com/users/astrobokonon/events{/privacy}","received_events_url":"https://api.github.com/users/astrobokonon/received_events","type":"User","site_admin":false},"assignees":[{"login":"astrobokonon","id":1168555,"node_id":"MDQ6VXNlcjExNjg1NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1168555?v=4","gravatar_id":"","url":"https://api.github.com/users/astrobokonon","html_url":"https://github.com/astrobokonon","followers_url":"https://api.github.com/users/astrobokonon/followers","following_url":"https://api.github.com/users/astrobokonon/following{/other_user}","gists_url":"https://api.github.com/users/astrobokonon/gists{/gist_id}","starred_url":"https://api.github.com/users/astrobokonon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrobokonon/subscriptions","organizations_url":"https://api.github.com/users/astrobokonon/orgs","repos_url":"https://api.github.com/users/astrobokonon/repos","events_url":"https://api.github.com/users/astrobokonon/events{/privacy}","received_events_url":"https://api.github.com/users/astrobokonon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-12-18T02:05:42Z","updated_at":"2018-12-18T20:59:41Z","closed_at":"2018-12-18T20:59:41Z","author_association":"MEMBER","body":"I *think* it's related to these lines in the docker-compose configuration:\r\n\r\nhttps://github.com/LowellObservatory/DockerDev/blob/5ea27d3578891f7c9533e03b6c0f823d9a84efae/DCTStack/docker-compose.yml#L107\r\n\r\nor \r\n\r\nhttps://github.com/LowellObservatory/DockerDev/blob/5ea27d3578891f7c9533e03b6c0f823d9a84efae/DCTStack/docker-compose.yml#L108\r\n\r\nsince I was seeing the following in the logs when trying to start it:\r\n\r\n```\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Starting Grafana\" logger=server version=5.4.2 commit=d812109 branch=HEAD compiled=2018-12-13T12:49:23+0000\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config loaded from\" logger=settings file=/usr/share/grafana/conf/defaults.ini\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config loaded from\" logger=settings file=/etc/grafana/grafana.ini\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config overridden from command line\" logger=settings arg=\"default.paths.data=/var/lib/grafana\"\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config overridden from command line\" logger=settings arg=\"default.paths.logs=/var/log/grafana\"\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config overridden from command line\" logger=settings arg=\"default.paths.plugins=/var/lib/grafana/plugins\"\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config overridden from command line\" logger=settings arg=\"default.paths.provisioning=/etc/grafana/provisioning\"\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config overridden from command line\" logger=settings arg=\"default.log.mode=console\"\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config overridden from Environment variable\" logger=settings var=\"GF_PATHS_DATA=/var/lib/grafana\"\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config overridden from Environment variable\" logger=settings var=\"GF_PATHS_LOGS=/var/log/grafana\"\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config overridden from Environment variable\" logger=settings var=\"GF_PATHS_PLUGINS=/var/lib/grafana/plugins\"\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Config overridden from Environment variable\" logger=settings var=\"GF_PATHS_PROVISIONING=/etc/grafana/provisioning\"\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Path Home\" logger=settings path=/usr/share/grafana\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Path Data\" logger=settings path=/var/lib/grafana\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Path Logs\" logger=settings path=/var/log/grafana\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Path Plugins\" logger=settings path=/var/lib/grafana/plugins\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Path Provisioning\" logger=settings path=/etc/grafana/provisioning\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"App mode production\" logger=settings\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Initializing HTTPServer\" logger=server\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Initializing SqlStore\" logger=server\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Connecting to DB\" logger=sqlstore dbtype=sqlite3\r\nt=2018-12-18T00:16:56+0000 lvl=info msg=\"Starting DB migration\" logger=migrator\r\nt=2018-12-18T00:16:56+0000 lvl=eror msg=\"Server shutdown\" logger=server reason=\"Service init failed: Migration failed err: unable to open database file\"\r\n```"},"comment":{"url":"https://api.github.com/repos/LowellObservatory/DockerDev/issues/comments/448368272","html_url":"https://github.com/LowellObservatory/DockerDev/issues/4#issuecomment-448368272","issue_url":"https://api.github.com/repos/LowellObservatory/DockerDev/issues/4","id":448368272,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODM2ODI3Mg==","user":{"login":"astrobokonon","id":1168555,"node_id":"MDQ6VXNlcjExNjg1NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1168555?v=4","gravatar_id":"","url":"https://api.github.com/users/astrobokonon","html_url":"https://github.com/astrobokonon","followers_url":"https://api.github.com/users/astrobokonon/followers","following_url":"https://api.github.com/users/astrobokonon/following{/other_user}","gists_url":"https://api.github.com/users/astrobokonon/gists{/gist_id}","starred_url":"https://api.github.com/users/astrobokonon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrobokonon/subscriptions","organizations_url":"https://api.github.com/users/astrobokonon/orgs","repos_url":"https://api.github.com/users/astrobokonon/repos","events_url":"https://api.github.com/users/astrobokonon/events{/privacy}","received_events_url":"https://api.github.com/users/astrobokonon/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T20:59:41Z","updated_at":"2018-12-18T20:59:41Z","author_association":"MEMBER","body":"Had to do a bit of a dance and reorganization, but I now have a working scheme that also makes the user data persist in the DockerData directory tree.\r\n\r\nClosed by b9088006db0a78dc51327bc5ab0912fca12f7a45"}}
{"actor":{"display_login":"astrobokonon"}}