Skip to content

Missing compatible release version for ckan 2.11 #148

@dev-rke

Description

@dev-rke

Environment

Docker Container with

  • ckan@2.11.3
  • ckanext-scheming@release-3.1.0
  • ckanext-pages@2.5.3
  • ckanext-envvars@0.0.6

Plugins + Database Connection:

ENV CKAN__PLUGINS="image_view text_view stats tracking scheming_datasets scheming_groups scheming_organizations pages envvars"
ENV CKAN_SQLALCHEMY_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_DB}

Error description

When starting the container i get the following exception (cutted to the last relevant part of the stacktrace):

...

  File "/srv/app/src/ckanext-envvars/ckanext/envvars/plugin.py", line 79, in update_config
    plugins.load(plugin)
  File "/srv/app/src/ckan/ckan/plugins/core.py", line 180, in load
    plugins_update()
  File "/srv/app/src/ckan/ckan/plugins/core.py", line 136, in plugins_update
    environment.update_config()
  File "/srv/app/src/ckan/ckan/config/environment.py", line 221, in update_config
    plugin.configure(config)
  File "/srv/app/src/ckanext-pages/ckanext/pages/plugin.py", line 176, in configure
    db.init_db()
  File "/srv/app/src/ckanext-pages/ckanext/pages/db.py", line 31, in init_db
    if not pages_table.exists():
  File "<string>", line 2, in exists
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py", line 468, in warned
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", line 941, in exists
    bind = _bind_or_error(self)
  File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/base.py", line 1659, in _bind_or_error
    raise exc.UnboundExecutionError(msg)
sqlalchemy.exc.UnboundExecutionError: Table object 'ckanext_pages' is not bound to an Engine or Connection.  Execution can not proceed without a database to execute against.

Unfortunately i am not able to run $ ckan db upgrade -p pages.
When removing pages from loaded plugins, system runs fine, but ckan db upgrade -p pages cannot find the plugin.
So i am stuck in a deadlock situation.

I also tested to change the plugin order, dropped most of the other plugins - without changing it's behaviour.

Any ideas are appreciated, thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions