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

[Docker] pages initdb command defaults to DEFAULT_SOLR_URL #119

Open
roc opened this issue Jan 7, 2022 · 2 comments
Open

[Docker] pages initdb command defaults to DEFAULT_SOLR_URL #119

roc opened this issue Jan 7, 2022 · 2 comments

Comments

@roc
Copy link

roc commented Jan 7, 2022

Running pages initdb fails in our docker container as it attempts to connect to the DEFAULT_SOLR_URL as defined in ckan/lib/search/common.py:29. Passing in our production.ini does not appear to update the solr values.

Very naively I've tried these two initialisations and neither works:

RUN ckan -c ${APP_DIR}/production.ini pages initdb
# and then bluntly:
RUN CKAN_SOLR_URL=http://solr-headless:8983/solr ckan -c ${APP_DIR}/production.ini pages initdb

Is there something I'm missing, or is this the pages initdb method failing to appropriately use the config?

@Zharktas
Copy link
Member

Zharktas commented Jan 7, 2022

Pages does not use solr at all and initdb just initializes postgresql databases. Most likely the build fails as the command requires functional ckan and it would fail with any command on any extension as the issue lies somewhere else than pages.

@roc
Copy link
Author

roc commented Jan 10, 2022

Thanks for replying!

I can confirm that just removing the initdb command worked for us. I guess it just wasn't obvious to me that initdb doesn't need to be run if you're working with a pre-initialised postgres.

I would put together a readme PR, but actually I'm not sure what the best guidance would be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants