You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invenio-CLI indirectly depends on invenio-rdm-records, package.
When used on an Invenio site with a different records package, invenio-cli services setup always fails as it tries to call rdm-records command (even with the --no-demo-data` option).
Steps to Reproduce
install your own records package instead of invenio-rdm-records
run invenio-cli services setup -N
Expected behavior
The command finishes setting up services without a failure
Additional context
$ invenio-cli services setup -N
Making sure containers are up...
redis up and running!
postgresql up and running!
es up and running!
Containers started and healthy.
Checking services are not setup...
Services setup status consistent.
Creating database...
[2022-06-24 15:05:58,914] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:05:59,369] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Creating database postgresql+psycopg2://my-site:***@localhost/my-site
Creating all tables!
[####################################] 100%
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
Created all tables!
Creating files location...
[2022-06-24 15:06:04,601] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:07,228] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Location default-location .../var/instance/data as default True stored in database
Creating admin role...
[2022-06-24 15:06:10,826] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:12,940] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Role "admin" created successfully.
Allowing superuser access to admin role...
[2022-06-24 15:06:17,643] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:18,316] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Creating indices...
[2022-06-24 15:06:22,897] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:23,227] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Creating indexes...
[####################################] 100%
Putting templates...
[####################################] 100%
Updating service setup status (True)...
Service setup status updated (new value True).
Creating fixtures...
[2022-06-24 15:06:28,529] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:29,045] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Usage: invenio [OPTIONS] COMMAND [ARGS]...
Try 'invenio --help' for help.
Error: No such command 'rdm-records'.
Failed to setup services.
The text was updated successfully, but these errors were encountered:
Package version (if known): 1.0.4
Describe the bug
Invenio-CLI indirectly depends on invenio-rdm-records, package.
When used on an Invenio site with a different records package,
invenio-cli services setup
always fails as it tries to callrdm-records
command (even with the --no-demo-data` option).Steps to Reproduce
invenio-rdm-records
invenio-cli services setup -N
Expected behavior
The command finishes setting up services without a failure
Additional context
The text was updated successfully, but these errors were encountered: