Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration error: Expected command status BEGIN, got SET #3880

Open
konart opened this issue Apr 23, 2024 · 0 comments
Open

Migration error: Expected command status BEGIN, got SET #3880

konart opened this issue Apr 23, 2024 · 0 comments

Comments

@konart
Copy link

konart commented Apr 23, 2024

Which version and edition of Flyway are you using?

We are using v10.11.1

If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)

The error can be reproduced with the lower versions too

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)

cli

Which database are you using? (Type & version)

Postgres 15.6

Which operating system are you using?

Alpine docker image

What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)

We are trying to run migrations with the following string:

    -url=jdbc:postgresql://host:5432/postgres -schemas=some_schema_name -user=username -password=secured -connectRetries=60 migrate
What did you expect to see?

Something like

 Successfully applied N migrations to schema "some_schema_name"...
What did you see instead?
ERROR: Unable to restore connection to its original state
flyway-1  | --------------------------------------------------
flyway-1  | SQL State  : 55000
flyway-1  | Error Code : 0
flyway-1  | Message    : ERROR: portal "" cannot be run
flyway-1  |
flyway-1  | Caused by: org.postgresql.util.PSQLException: Expected command status BEGIN, got SET.
@konart konart changed the title Migrationi error: Expected command status BEGIN, got SET Migration error: Expected command status BEGIN, got SET Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant