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.

Migration not happening and no log output

See original GitHub issue
Which version and edition of Flyway are you using?
<dependency>
    <groupId>org.flywaydb</groupId>
    <artifactId>flyway-core</artifactId>
    <version>6.1.3</version>
</dependency>
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)

It is used inside a Java Spring Boot application. Imported through maven.

Which database are you using (type & version)?

The problematic database is an mssql server 2017 (as far as I know)

Which operating system are you using?

I am using Linux, but the application is also running on Windows and throwing the error there too.

What did you do?

(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.) I started to use flyway to migrate all persistent databases to a newer Camunda version.

I’ve written a code snippet which determines the current database version and then baselines and migrates if necessary, using Flyway. On PostgreSQL and h2 the migration works fine… Using the mssql server is the only problem:

On start, My code realizes the database still uses an older camunda version and configures flyway and prepares for a migration. Logging get’s up to 1 or 2 lines before the baseline and migrate but then just stops without any notice…

log.info("Version table wasn't found.. Baselining version 1 and using flyway to migrate to the current version");
flyway = flywayConfiguration.baselineVersion("1").load();
flyway.baseline();
flyway.migrate();
log.info("Database migration done");

This is the code… And the configuration is correct (loaded from the camunda process engine which has a working connection) the first line is shown in the logs… And the log file is also showing that Flyway has been initialized. After the first info log flyway just stops… baseline doesn’t even happen

What did you expect to see?

I expected to see flyway attempting a migration and either throw an error or logging a successful migration/writing the flyway_schema_log table

What did you see instead?

Nothing.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
StoffelCPRcommented, Jan 17, 2020

Okey. I got the error of the server…

It seems like the logger is misconfigured, because if I try the smelly version of testing with my machine against the SQL Server the following log output appears: Flyway Enterprise Edition or SQL Server upgrade required: SQL Server 2012 is no longer supported by Flyway Community Edition, but still supported by Flyway Enterprise Edition.

**EDIT Our file logger seems to miss this error.

If executed in a terminal the error shows up. so This issue is not an issue…

0reactions
StoffelCPRcommented, Jan 17, 2020

Thanks for your quick help 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

artisan migrate command doesn't migrate, produces no output
First check your Services Apache and Mysql running by going to your localhost/phpmyadmin. · check your terminal or cmd that you are in...
Read more >
Troubleshoot live migration issues - Windows Server
Provides information on solving the problem of live migration in windows server 2016.
Read more >
Debugging migrations - Drupal
If you execute migrations using Drush, you can print debug information ... Analyzing why migration does not show up in drush migrate-status.
Read more >
Debugging Your AWS DMS Migrations: What to Do When ...
CloudWatch logging is not enabled by default when you create a migration task in AWS DMS. You need to explicitly enable it to...
Read more >
Troubleshooting errors and non-migrated entities with the Jira ...
You'll be notified of errors after the migration has run. The migration status will show as Incomplete. To download detailed error logs: Click...
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