You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
I am trying to run this app on linux, but get the following error in the logs.
5 [main] ERROR o.scalatra.servlet.ScalatraListener - Failed to initialize scalatra application at
com.googlecode.flyway.core.api.FlywayException: Found non-empty schema "PUBLIC" without metadata table! Use init() or set initOnMigrate to true to initialize the metadata table.
at com.googlecode.flyway.core.Flyway$1.execute(Flyway.java:848) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway$1.execute(Flyway.java:819) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway.execute(Flyway.java:1200) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway.migrate(Flyway.java:819) ~[codebrag.jar:2.3.4]
at com.softwaremill.codebrag.dao.sql.SQLDatabase.updateSchema(SQLDatabase.scala:36) ~[codebrag.jar:2.3.4]
at ScalatraBootstrap.initializeBeans(ScalatraBootstrap.scala:99) ~[codebrag.jar:na]
at ScalatraBootstrap.init(ScalatraBootstrap.scala:38) ~[codebrag.jar:na]
at org.scalatra.servlet.ScalatraListener.configureCycleClass(ScalatraListener.scala:67) ~[codebrag.jar:2.3.4]
at org.scalatra.servlet.ScalatraListener.contextInitialized(ScalatraListener.scala:23) ~[codebrag.jar:2.3.4]
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771) [codebrag.jar:2.3.4]
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:411) [codebrag.jar:2.3.4]
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763) [codebrag.jar:2.3.4]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:247) [codebrag.jar:2.3.4]
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1238) [codebrag.jar:2.3.4]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706) [codebrag.jar:2.3.4]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480) [codebrag.jar:2.3.4]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [codebrag.jar:2.3.4]
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) [codebrag.jar:2.3.4]
at org.eclipse.jetty.server.Server.doStart(Server.java:277) [codebrag.jar:2.3.4]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.EmbeddedJetty$class.startJetty(EmbeddedJetty.scala:13) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.Codebrag$.startJetty(Codebrag.scala:7) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.Codebrag$delayedInit$body.apply(Codebrag.scala:17) [codebrag.jar:2.3.4]
at scala.Function0$class.apply$mcV$sp(Function0.scala:40) [codebrag.jar:2.3.4]
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) [codebrag.jar:2.3.4]
at scala.App$$anonfun$main$1.apply(App.scala:71) [codebrag.jar:2.3.4]
at scala.App$$anonfun$main$1.apply(App.scala:71) [codebrag.jar:2.3.4]
at scala.collection.immutable.List.foreach(List.scala:318) [codebrag.jar:2.3.4]
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32) [codebrag.jar:2.3.4]
at scala.App$class.main(App.scala:71) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.Codebrag$.main(Codebrag.scala:7) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.Codebrag.main(Codebrag.scala) [codebrag.jar:2.3.4]
00:32:38.606 [main] WARN o.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-8080-webapp-_-any-/webapp/},jar:file:/home/ec2-user/codebrag-2.3.4/codebrag.jar!/webapp
com.googlecode.flyway.core.api.FlywayException: Found non-empty schema "PUBLIC" without metadata table! Use init() or set initOnMigrate to true to initialize the metadata table.
at com.googlecode.flyway.core.Flyway$1.execute(Flyway.java:848) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway$1.execute(Flyway.java:819) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway.execute(Flyway.java:1200) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway.migrate(Flyway.java:819) ~[codebrag.jar:2.3.4]
at com.softwaremill.codebrag.dao.sql.SQLDatabase.updateSchema(SQLDatabase.scala:36) ~[codebrag.jar:2.3.4]
at ScalatraBootstrap.initializeBeans(ScalatraBootstrap.scala:99) ~[codebrag.jar:na]
at ScalatraBootstrap.init(ScalatraBootstrap.scala:38) ~[codebrag.jar:na]
at org.scalatra.servlet.ScalatraListener.configureCycleClass(ScalatraListener.scala:67) ~[codebrag.jar:2.3.4]
at org.scalatra.servlet.ScalatraListener.contextInitialized(ScalatraListener.scala:23) ~[codebrag.jar:2.3.4]
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to run this app on linux, but get the following error in the logs.
5 [main] ERROR o.scalatra.servlet.ScalatraListener - Failed to initialize scalatra application at
com.googlecode.flyway.core.api.FlywayException: Found non-empty schema "PUBLIC" without metadata table! Use init() or set initOnMigrate to true to initialize the metadata table.
at com.googlecode.flyway.core.Flyway$1.execute(Flyway.java:848) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway$1.execute(Flyway.java:819) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway.execute(Flyway.java:1200) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway.migrate(Flyway.java:819) ~[codebrag.jar:2.3.4]
at com.softwaremill.codebrag.dao.sql.SQLDatabase.updateSchema(SQLDatabase.scala:36) ~[codebrag.jar:2.3.4]
at ScalatraBootstrap.initializeBeans(ScalatraBootstrap.scala:99) ~[codebrag.jar:na]
at ScalatraBootstrap.init(ScalatraBootstrap.scala:38) ~[codebrag.jar:na]
at org.scalatra.servlet.ScalatraListener.configureCycleClass(ScalatraListener.scala:67) ~[codebrag.jar:2.3.4]
at org.scalatra.servlet.ScalatraListener.contextInitialized(ScalatraListener.scala:23) ~[codebrag.jar:2.3.4]
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771) [codebrag.jar:2.3.4]
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:411) [codebrag.jar:2.3.4]
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763) [codebrag.jar:2.3.4]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:247) [codebrag.jar:2.3.4]
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1238) [codebrag.jar:2.3.4]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706) [codebrag.jar:2.3.4]
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480) [codebrag.jar:2.3.4]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [codebrag.jar:2.3.4]
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) [codebrag.jar:2.3.4]
at org.eclipse.jetty.server.Server.doStart(Server.java:277) [codebrag.jar:2.3.4]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.EmbeddedJetty$class.startJetty(EmbeddedJetty.scala:13) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.Codebrag$.startJetty(Codebrag.scala:7) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.Codebrag$delayedInit$body.apply(Codebrag.scala:17) [codebrag.jar:2.3.4]
at scala.Function0$class.apply$mcV$sp(Function0.scala:40) [codebrag.jar:2.3.4]
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) [codebrag.jar:2.3.4]
at scala.App$$anonfun$main$1.apply(App.scala:71) [codebrag.jar:2.3.4]
at scala.App$$anonfun$main$1.apply(App.scala:71) [codebrag.jar:2.3.4]
at scala.collection.immutable.List.foreach(List.scala:318) [codebrag.jar:2.3.4]
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32) [codebrag.jar:2.3.4]
at scala.App$class.main(App.scala:71) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.Codebrag$.main(Codebrag.scala:7) [codebrag.jar:2.3.4]
at com.softwaremill.codebrag.Codebrag.main(Codebrag.scala) [codebrag.jar:2.3.4]
00:32:38.606 [main] WARN o.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-8080-webapp-_-any-/webapp/},jar:file:/home/ec2-user/codebrag-2.3.4/codebrag.jar!/webapp
com.googlecode.flyway.core.api.FlywayException: Found non-empty schema "PUBLIC" without metadata table! Use init() or set initOnMigrate to true to initialize the metadata table.
at com.googlecode.flyway.core.Flyway$1.execute(Flyway.java:848) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway$1.execute(Flyway.java:819) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway.execute(Flyway.java:1200) ~[codebrag.jar:2.3.4]
at com.googlecode.flyway.core.Flyway.migrate(Flyway.java:819) ~[codebrag.jar:2.3.4]
at com.softwaremill.codebrag.dao.sql.SQLDatabase.updateSchema(SQLDatabase.scala:36) ~[codebrag.jar:2.3.4]
at ScalatraBootstrap.initializeBeans(ScalatraBootstrap.scala:99) ~[codebrag.jar:na]
at ScalatraBootstrap.init(ScalatraBootstrap.scala:38) ~[codebrag.jar:na]
at org.scalatra.servlet.ScalatraListener.configureCycleClass(ScalatraListener.scala:67) ~[codebrag.jar:2.3.4]
at org.scalatra.servlet.ScalatraListener.contextInitialized(ScalatraListener.scala:23) ~[codebrag.jar:2.3.4]
The text was updated successfully, but these errors were encountered: