Coder Social home page Coder Social logo

Improve root schema upgrade procedure about b2share HOT 2 OPEN

hevp avatar hevp commented on June 21, 2024
Improve root schema upgrade procedure

from b2share.

Comments (2)

defnull avatar defnull commented on June 21, 2024

So, there is currently no update path for existing instances? Thanks for the warning.

from b2share.

defnull avatar defnull commented on June 21, 2024

Any news on this one? Upgrading an existing instance fails with:

b2share_1        | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
b2share_1        | INFO  [alembic.runtime.migration] Will assume transactional DDL.
b2share_1        | Load root schemas.
b2share_1        | LOADING root schemas from "/eudat/b2share/b2share/modules/schemas/root_schemas".
b2share_1        | READING schema from "root_schema_v0.json"
b2share_1        | Traceback (most recent call last):
b2share_1        |   File "/usr/local/bin/b2share", line 33, in <module>
b2share_1        |     sys.exit(load_entry_point('b2share', 'console_scripts', 'b2share')())
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 716, in __call__
b2share_1        |     return self.main(*args, **kwargs)
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/flask/cli.py", line 345, in main
b2share_1        |     return AppGroup.main(self, *args, **kwargs)
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 696, in main
b2share_1        |     rv = self.invoke(ctx)
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1060, in invoke
b2share_1        |     return _process_result(sub_ctx.command.invoke(sub_ctx))
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1060, in invoke
b2share_1        |     return _process_result(sub_ctx.command.invoke(sub_ctx))
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 889, in invoke
b2share_1        |     return ctx.invoke(self.callback, **ctx.params)
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 534, in invoke
b2share_1        |     return callback(*args, **kwargs)
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
b2share_1        |     return f(get_current_context(), *args, **kwargs)
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/flask/cli.py", line 229, in decorator
b2share_1        |     return __ctx.invoke(f, *args, **kwargs)
b2share_1        |   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 534, in invoke
b2share_1        |     return callback(*args, **kwargs)
b2share_1        |   File "/eudat/b2share/b2share/modules/upgrade/cli.py", line 45, in run
b2share_1        |     upgrade_to_last_version(verbose)
b2share_1        |   File "/eudat/b2share/b2share/modules/upgrade/api.py", line 86, in upgrade_to_last_version
b2share_1        |     upgrade.run(failed_migration=last_failure, verbose=verbose)
b2share_1        |   File "/eudat/b2share/b2share/modules/upgrade/api.py", line 48, in decorator
b2share_1        |     f(*args, **kwargs)
b2share_1        |   File "/eudat/b2share/b2share/modules/upgrade/api.py", line 235, in run
b2share_1        |     raise e
b2share_1        |   File "/eudat/b2share/b2share/modules/upgrade/api.py", line 215, in run
b2share_1        |     step.run(alembic, verbose)
b2share_1        |   File "/eudat/b2share/b2share/modules/upgrade/upgrades/common.py", line 91, in schemas_init
b2share_1        |     load_root_schemas(cli=True, verbose=verbose, ignore_mismatches=True)
b2share_1        |   File "/eudat/b2share/b2share/modules/schemas/helpers.py", line 239, in load_root_schemas
b2share_1        |     os.path.join(root_schemas_dir, filename)),
b2share_1        | b2share.modules.schemas.errors.RootSchemaAlreadyExistsError: 400: Bad Request

Is there documentation available on how to properly upgrade an existing instance?

from b2share.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.