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

I am having the hardest time getting this to work. #1

Open
LaurentGoderre opened this issue Sep 24, 2015 · 5 comments
Open

I am having the hardest time getting this to work. #1

LaurentGoderre opened this issue Sep 24, 2015 · 5 comments

Comments

@LaurentGoderre
Copy link

It runs (as debugged in PyCharm) but the config they are supposed to fill in are always empty in ckan itself.

@LaurentGoderre
Copy link
Author

It's like it doesn't get called on time, SOLR and Alchemy have already tried to read the config

@brew
Copy link
Member

brew commented Sep 25, 2015

Please detail what steps you are taking, and what you expect to happen?

@LaurentGoderre
Copy link
Author

I have come to realize that some settings are not replaced early enough in the execution step which cause a lot of errors. For example, alchemy is called before the plugin is called so the string is empty

@amercader
Copy link
Member

Because of the (silly) way in which CKAN starts up the environment and loads plugins, CKAN_SQLALCHEMY_URL and CKAN_SITE_URL (and probably CKAN_SOLR_URL) need to be used instead of the "envvars"-type ones (eg CKAN__SQLALCHEMY__URL). CKAN__PLUGINS is also not safe to use.

This should be documented (or core updated to support envvars-like envars).

Vanuan referenced this issue in okfn/docker-ckan Jan 23, 2018
First iteration of a Docker Compose setup for a CKAN instance. It
includes the following images, all based on Alpine:

* CKAN: modified from keitaro/ckan
* DataPusher: modified from keitaro/ckan
* PostgresSQL: mdillon's PostGIS image
* Solr: official Solr image with CKAN's schema
* Redis: standard Redis image

The compose setup is adapated from the current one included in the CKAN
repo, although some fixes needed to be made.
@florianm
Copy link

Testing envvars with CKAN 2.10.0a0, I see that CKAN__PLUGINS is being tokenised into individual characters instead of words.
I'm using a .ckan-env file following https://github.com/keitaroinc/docker-ckan/blob/master/compose/2.9/.ckan-env.

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

4 participants