question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Database 'default' is in an inconsistent state!

See original GitHub issue

Hello All

I have run the updated 1.sql ( including the drop table ) still i am facing the issue, can you all please help me

I have also run the following - ( based on FAQ link )

export jvm_args=“-Devolutionplugin=enabled -DapplyEvolutions.default=true -mem 1024 -J-Xloggc:$project_root…/logs/elephant/dr-gc.date +'%Y%m%d%H%M' -J-XX:+PrintGCDetails” export jvm_props=“-Devolutionplugin=enabled and -DapplyEvolutions.default=true”

nohup /apps/dr_elephant/target/universal/dr-elephant-2.0.13/bin/dr-elephant -Djava.library.path=/lib/native -Dhttp.port=8080 -Ddb.default.url=“jdbc:mysql://it00512:3306/drelephant?characterEncoding=UTF-8"” -Ddb.default.user=root -Ddb.default.password=********* > /apps/dr_elephant/dr.log 2>&1

Error stack trace -

SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/apps/dr_elephant/target/universal/dr-elephant-2.0.13/lib/ch.qos.logback.logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/apps/dr_elephant/target/universal/dr-elephant-2.0.13/lib/org.slf4j.slf4j-simple-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/apps/dr_elephant/target/universal/dr-elephant-2.0.13/lib/org.slf4j.slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/apps/opt/cloudera/parcels/CDH-5.11.2-1.cdh5.11.2.p2699.2946/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] [info] play - database [default] connected at jdbc:mysql://it00512:3306/drelephant?characterEncoding=UTF-8 [error] play - Oops, cannot start the server. @76pacppo4: Database ‘default’ is in an inconsistent state! at play.api.db.evolutions.Evolutions$.checkEvolutionsState(Evolutions.scala:193) at play.api.db.evolutions.Evolutions$.databaseEvolutions(Evolutions.scala:348) at play.api.db.evolutions.Evolutions$$anonfun$evolutionScript$2.apply(Evolutions.scala:313) at play.api.db.evolutions.Evolutions$$anonfun$evolutionScript$2.apply(Evolutions.scala:311) at scala.Option.map(Option.scala:145) at play.api.db.evolutions.Evolutions$.evolutionScript(Evolutions.scala:311) at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1$$anonfun$apply$1.apply$mcV$sp(Evolutions.scala:462) at play.api.db.evolutions.EvolutionsPlugin.withLock(Evolutions.scala:507) at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.scala:461) at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.scala:459) at scala.collection.immutable.List.foreach(List.scala:318) at play.api.db.evolutions.EvolutionsPlugin.onStart(Evolutions.scala:459) at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:88) at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:88) at scala.collection.immutable.List.foreach(List.scala:318) at play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:88) at play.api.Play$$anonfun$start$1.apply(Play.scala:88) at play.api.Play$$anonfun$start$1.apply(Play.scala:88) at play.utils.Threads$.withContextClassLoader(Threads.scala:18) at play.api.Play$.start(Play.scala:87) at play.core.StaticApplication.<init>(ApplicationProvider.scala:52) at play.core.server.NettyServer$.createServer(NettyServer.scala:280) at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:316) at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:311) at scala.Option.map(Option.scala:145) at play.core.server.NettyServer$.main(NettyServer.scala:311) at play.core.server.NettyServer.main(NettyServer.scala)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
songgane-zzcommented, Jul 3, 2018

To fix this problem, you must install mysql 5.7+ or mariadb 10.2+.

0reactions
loupipaliencommented, May 15, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

"Database 'default' is in inconsistent state!" comes and goes
The generated script is RDBMS-dependent. It needs to be created with the correct database engine before you launch play clean compile stage.
Read more >
Database 'default' is in an inconsistent state! - Google Groups
That means your evolution is trying to create a relation that already exists. You are not seeing it locally because your local DB...
Read more >
Troubleshooting a database in an inconsistent state - IBM
When attempting to perform database operations, you might receive an error message stating that the database is in an inconsistent state.
Read more >
Keep getting 'Database is in an inconsistent state' message
A database that has been in use for years without any problems has started giving 'Database is in an inconsistent state' messages.
Read more >
Repair Access database that is in an inconsistent state
The 'database is in inconsistent issue' may occur when an Access database file (particularly MDB) is shared over a network. That is because...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found