{"action":"created","issue":{"url":"https://api.github.com/repos/metabase/metabase/issues/1871","repository_url":"https://api.github.com/repos/metabase/metabase","labels_url":"https://api.github.com/repos/metabase/metabase/issues/1871/labels{/name}","comments_url":"https://api.github.com/repos/metabase/metabase/issues/1871/comments","events_url":"https://api.github.com/repos/metabase/metabase/issues/1871/events","html_url":"https://github.com/metabase/metabase/issues/1871","id":131186362,"number":1871,"title":"Unable to connect to Metabase DB","user":{"login":"chtefi","id":3936459,"avatar_url":"https://avatars.githubusercontent.com/u/3936459?v=3","gravatar_id":"","url":"https://api.github.com/users/chtefi","html_url":"https://github.com/chtefi","followers_url":"https://api.github.com/users/chtefi/followers","following_url":"https://api.github.com/users/chtefi/following{/other_user}","gists_url":"https://api.github.com/users/chtefi/gists{/gist_id}","starred_url":"https://api.github.com/users/chtefi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chtefi/subscriptions","organizations_url":"https://api.github.com/users/chtefi/orgs","repos_url":"https://api.github.com/users/chtefi/repos","events_url":"https://api.github.com/users/chtefi/events{/privacy}","received_events_url":"https://api.github.com/users/chtefi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/metabase/metabase/labels/Error","name":"Error","color":"CC333F"},{"url":"https://api.github.com/repos/metabase/metabase/labels/OS/Windows","name":"OS/Windows","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-03T23:17:35Z","updated_at":"2016-02-20T18:02:19Z","closed_at":null,"body":"Hey,\r\n\r\nI'm on Windows, and wanted to give a try at metabase using the .jar, but it seems it can't connect to the metabase DB (on h2 by default).\r\nI've looked around in the issue and just saw #1853 that pops the same error as me, but in my case, I can't even make it run.\r\n\r\nI mean, I can start it, go to `localhost:3000` but the loading screen stays (i can't access the create account screens) and in the logs, there are infinite calls to `GET /api/health 503`.\r\n\r\nAm I missing something ?\r\nDo I have a way to know what's going on ? \r\n\r\nHere are the logs :\r\n```\r\n$ java -jar metabase.jar\r\n2016-02-04 00:10:14,447 [INFO ] org.eclipse.jetty.util.log :: Logging initialized @1988ms\r\nWARNING: update already refers to: #'clojure.core/update in namespace: clj-http.client, being replaced by: #'clj-http.client/update\r\n2016-02-04 00:10:19,458 [INFO ] metabase.core :: Starting Metabase in STANDALONE mode\r\n2016-02-04 00:10:19,493 [INFO ] metabase.core :: Launching Embedded Jetty Webserver with config:\r\n {:port 3000}\r\n\r\n2016-02-04 00:10:19,514 [INFO ] org.eclipse.jetty.server.Server :: jetty-9.2.z-SNAPSHOT\r\n2016-02-04 00:10:19,544 [INFO ] org.eclipse.jetty.server.ServerConnector :: Started ServerConnector@19e64900{HTTP/1.1}{0.0.0.0:3000}\r\n2016-02-04 00:10:19,545 [INFO ] org.eclipse.jetty.server.Server :: Started @7087ms\r\n2016-02-04 00:10:19,553 [INFO ] metabase.core :: Starting Metabase version v0.14.0 (bbfdf23 HEAD)...\r\n2016-02-04 00:10:19,842 [INFO ] metabase.driver :: loading driver namespace:  metabase.driver.druid\r\n2016-02-04 00:10:19,927 [DEBUG] metabase.driver :: Registered driver :druid.\r\n2016-02-04 00:10:19,938 [INFO ] metabase.driver :: loading driver namespace:  metabase.driver.h2\r\n2016-02-04 00:10:20,068 [DEBUG] metabase.driver :: Registered driver :h2.\r\n2016-02-04 00:10:20,070 [INFO ] metabase.driver :: loading driver namespace:  metabase.driver.mongo\r\n2016-02-04 00:10:21,134 [DEBUG] metabase.driver :: Registered driver :mongo.\r\n2016-02-04 00:10:21,135 [INFO ] metabase.driver :: loading driver namespace:  metabase.driver.mysql\r\n2016-02-04 00:10:21,145 [DEBUG] metabase.driver :: Registered driver :mysql.\r\n2016-02-04 00:10:21,146 [INFO ] metabase.driver :: loading driver namespace:  metabase.driver.postgres\r\n2016-02-04 00:10:21,160 [DEBUG] metabase.driver :: Registered driver :postgres.\r\n2016-02-04 00:10:21,164 [INFO ] metabase.driver :: loading driver namespace:  metabase.driver.redshift\r\n2016-02-04 00:10:21,172 [DEBUG] metabase.driver :: Registered driver :redshift.\r\n2016-02-04 00:10:21,172 [INFO ] metabase.driver :: loading driver namespace:  metabase.driver.sqlite\r\n2016-02-04 00:10:21,182 [DEBUG] metabase.driver :: Registered driver :sqlite.\r\n2016-02-04 00:10:21,183 [INFO ] metabase.driver :: loading driver namespace:  metabase.driver.sqlserver\r\n2016-02-04 00:10:21,194 [DEBUG] metabase.driver :: Registered driver :sqlserver.\r\n2016-02-04 00:10:21,195 [INFO ] metabase.driver :: loading driver namespace:  metabase.driver.sync\r\n2016-02-04 00:10:21,443 [INFO ] metabase.db :: Verifying Database Connection ...\r\n2016-02-04 00:10:26,448 [ERROR] metabase.driver :: Failed to connect to database: Timed out after 5000 milliseconds.\r\nException in thread \"main\" java.lang.AssertionError: Assert failed: Unable to connect to Metabase DB.\r\n(binding [*allow-potentailly-unsafe-connections* true] (require (quote metabase.driver)) ((clojure.core/deref (resolve (quote metabase.driver/can-connect-with-details?))) engine details))\r\n        at metabase.db$verify_db_connection.invoke(db.clj:149)\r\n        at metabase.db$setup_db.doInvoke(db.clj:163)\r\n        at clojure.lang.RestFn.invoke(RestFn.java:421)\r\n        at metabase.core$init_BANG_.invoke(core.clj:130)\r\n        at metabase.core$start_normally.invoke(core.clj:211)\r\n        at metabase.core$_main.doInvoke(core.clj:245)\r\n        at clojure.lang.RestFn.invoke(RestFn.java:397)\r\n        at clojure.lang.AFn.applyToHelper(AFn.java:152)\r\n        at clojure.lang.RestFn.applyTo(RestFn.java:132)\r\n        at metabase.core.main(Unknown Source)\r\n2016-02-04 00:10:42,649 [ERROR] metabase.middleware :: GET /api/health 503 (1 ms)\r\n{:status \"initializing\", :progress 0.4}\r\n\r\n2016-02-04 00:10:43,274 [ERROR] metabase.middleware :: GET /api/health 503 (170 Ás)\r\n{:status \"initializing\", :progress 0.4}\r\n```\r\n\r\nThe H2 db is properly created in my current folder : \r\n```\r\n$ ls metabase.db.h2.db\r\nmetabase.db.h2.db\r\n```\r\n\r\nThanks,"},"comment":{"url":"https://api.github.com/repos/metabase/metabase/issues/comments/186659885","html_url":"https://github.com/metabase/metabase/issues/1871#issuecomment-186659885","issue_url":"https://api.github.com/repos/metabase/metabase/issues/1871","id":186659885,"user":{"login":"agilliland","id":1987787,"avatar_url":"https://avatars.githubusercontent.com/u/1987787?v=3","gravatar_id":"","url":"https://api.github.com/users/agilliland","html_url":"https://github.com/agilliland","followers_url":"https://api.github.com/users/agilliland/followers","following_url":"https://api.github.com/users/agilliland/following{/other_user}","gists_url":"https://api.github.com/users/agilliland/gists{/gist_id}","starred_url":"https://api.github.com/users/agilliland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilliland/subscriptions","organizations_url":"https://api.github.com/users/agilliland/orgs","repos_url":"https://api.github.com/users/agilliland/repos","events_url":"https://api.github.com/users/agilliland/events{/privacy}","received_events_url":"https://api.github.com/users/agilliland/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T18:02:19Z","updated_at":"2016-02-20T18:02:19Z","body":"I get the same result either way.  Everything works fine."}}