{"action":"created","issue":{"url":"https://api.github.com/repos/axsh/wakame-vdc/issues/647","labels_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/647/comments","events_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/647/events","html_url":"https://github.com/axsh/wakame-vdc/pull/647","id":94452959,"number":647,"title":"backup-cleaner crash","user":{"login":"hansode","id":76867,"avatar_url":"https://avatars.githubusercontent.com/u/76867?v=3","gravatar_id":"","url":"https://api.github.com/users/hansode","html_url":"https://github.com/hansode","followers_url":"https://api.github.com/users/hansode/followers","following_url":"https://api.github.com/users/hansode/following{/other_user}","gists_url":"https://api.github.com/users/hansode/gists{/gist_id}","starred_url":"https://api.github.com/users/hansode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansode/subscriptions","organizations_url":"https://api.github.com/users/hansode/orgs","repos_url":"https://api.github.com/users/hansode/repos","events_url":"https://api.github.com/users/hansode/events{/privacy}","received_events_url":"https://api.github.com/users/hansode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/axsh/wakame-vdc/labels/Type%20:%20Bug","name":"Type : Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"hansode","id":76867,"avatar_url":"https://avatars.githubusercontent.com/u/76867?v=3","gravatar_id":"","url":"https://api.github.com/users/hansode","html_url":"https://github.com/hansode","followers_url":"https://api.github.com/users/hansode/followers","following_url":"https://api.github.com/users/hansode/following{/other_user}","gists_url":"https://api.github.com/users/hansode/gists{/gist_id}","starred_url":"https://api.github.com/users/hansode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansode/subscriptions","organizations_url":"https://api.github.com/users/hansode/orgs","repos_url":"https://api.github.com/users/hansode/repos","events_url":"https://api.github.com/users/hansode/events{/privacy}","received_events_url":"https://api.github.com/users/hansode/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-07-11T08:29:30Z","updated_at":"2015-07-11T10:33:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/axsh/wakame-vdc/pulls/647","html_url":"https://github.com/axsh/wakame-vdc/pull/647","diff_url":"https://github.com/axsh/wakame-vdc/pull/647.diff","patch_url":"https://github.com/axsh/wakame-vdc/pull/647.patch"},"body":"### Problem\r\n\r\nStep to reproduce:\r\n\r\n```\r\n$ /opt/axsh/wakame-vdc/dcmgr/bin/backup-cleaner --begin=\"2005-07-12 16:34:11\" --end=\"2015-07-09 16:34:11\" --dry-run\r\n/opt/axsh/wakame-vdc/dcmgr/vendor/bundle/ruby/2.0.0/gems/sequel-3.47.0/lib/sequel/model/base.rb:237:in `db': No database associated with Sequel::Model: have you called Sequel.connect or Sequel::Model.db= ? (Sequel::Error)\r\n        from /opt/axsh/wakame-vdc/dcmgr/vendor/bundle/ruby/2.0.0/gems/sequel-3.47.0/lib/sequel/model/base.rb:382:in `inherited'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr/models/base_new.rb:582:in `<module:Models>'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr/models/base_new.rb:6:in `<top (required)>'\r\n        from /opt/axsh/wakame-vdc/dcmgr/config/initializers/sequel_class_method_hook.rb:3:in `<top (required)>'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr.rb:19:in `load'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr.rb:19:in `block (3 levels) in <module:Dcmgr>'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr.rb:18:in `glob'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr.rb:18:in `block (2 levels) in <module:Dcmgr>'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr.rb:16:in `each'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr.rb:16:in `block in <module:Dcmgr>'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr/initializer.rb:55:in `call'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr/initializer.rb:55:in `block in run_initializers'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr/initializer.rb:54:in `each'\r\n        from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr/initializer.rb:54:in `run_initializers'\r\n        from /opt/axsh/wakame-vdc/dcmgr/bin/backup-cleaner:13:in `<main>'\r\n```\r\n\r\n### Solution\r\n\r\nSpecify required initializer modules to `Dcmgr.run_initializers` in `backup-cleaner`.\r\n\r\n+ `logger`\r\n+ `sequel`\r\n"},"comment":{"url":"https://api.github.com/repos/axsh/wakame-vdc/issues/comments/120603012","html_url":"https://github.com/axsh/wakame-vdc/pull/647#issuecomment-120603012","issue_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/647","id":120603012,"user":{"login":"axsh-bot","id":4980916,"avatar_url":"https://avatars.githubusercontent.com/u/4980916?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh-bot","html_url":"https://github.com/axsh-bot","followers_url":"https://api.github.com/users/axsh-bot/followers","following_url":"https://api.github.com/users/axsh-bot/following{/other_user}","gists_url":"https://api.github.com/users/axsh-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh-bot/subscriptions","organizations_url":"https://api.github.com/users/axsh-bot/orgs","repos_url":"https://api.github.com/users/axsh-bot/repos","events_url":"https://api.github.com/users/axsh-bot/events{/privacy}","received_events_url":"https://api.github.com/users/axsh-bot/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T10:33:41Z","updated_at":"2015-07-11T10:33:41Z","body":":x: e90a19d1 failure - [wakame-ci/lxc.smoke.allowed-failure](http://ci.wakame.jp/job/lxc.smoke.trigger/1913/)"}}