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

Unable to setup services with non-RDM records packages #299

Open
mirekys opened this issue Jun 24, 2022 · 0 comments
Open

Unable to setup services with non-RDM records packages #299

mirekys opened this issue Jun 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mirekys
Copy link

mirekys commented Jun 24, 2022

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 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.
@mirekys mirekys added the bug Something isn't working label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant