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

WARNING - VM is already running, can't set classpath/options! - version 2.0.13 #71

Open
bakerdrums opened this issue Dec 8, 2023 · 1 comment
Labels
question Further information is requested

Comments

@bakerdrums
Copy link

Is is possible to call this multiple times in the same script.? I have multiple databases on the same Postgres instance I'd like to patch via on Python script call, but after the first run, I get this message.

WARNING - VM is already running, can't set classpath/options! classpath: ['/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pyliquibase/liquibase-4.21.1/', '/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pyliquibase/liquibase-4.21.1/lib/', '/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pyliquibase/liquibase-4.21.1/internal/', '/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pyliquibase/liquibase-4.21.1/internal/lib/', '/root/.pyenv/versions/3.11.4/lib/python3.11/site-packages/jnius/src']

I'm using a liquibase properties file, and I update the file after each run then run the following commands again.
liquibase = Pyliquibase(defaultsFile=propFilename, logLevel="INFO")
liquibase.execute("update")
liquibase = None

The prop file has the changeLogFile, username, password, url, of which the username, password and url change for each run.

This is all running in a Docker container. First run is spot on. Just can't get it to go more than once. I've tried everything but spawning each run in a subshell. Am I mis-using the module?

@ismailsimsek
Copy link
Member

@bakerdrums im not aware of any way of ding it, this is expected behavior.

probably you will not run in to this issue if you run it from sparate python processes/scripts with two separate executions.

linking related issue kivy/pyjnius#411

@ismailsimsek ismailsimsek added the question Further information is requested label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants