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

Basic deployment does not work (datapusher asks for an undocumented API key) #101

Open
vemonet opened this issue Nov 10, 2023 · 1 comment
Assignees

Comments

@vemonet
Copy link

vemonet commented Nov 10, 2023

Hi @kowh-ai , I tried to deploy CKAN using docker compose using the most regular workflow:

  1. git clone this repo
  2. Rename the .env.sample to .env
  3. docker compose up
  4. All containers starts and are healthy, apart from ckan which is unhealthy with the following error message in its logs:
ckan  |     raise Exception(
ckan  | Exception: Config option `ckan.datapusher.api_token` must be set to use the DataPusher.
ckan  | unable to load app 0 (mountpoint='') (callable not found or import error)
ckan  | *** no app loaded. going in full dynamic mode ***

Unfortunately I could not find any documentation about the "DataPusher" in this repo: https://github.com/ckan/ckan-docker#9-datastore-and-datapusher

I would guess we need to pass some kind of API token to an env variable, but no idea what this env variable could be.

Would it be possible to know what is this variable? And what should we feed it to get ckan running standalone?

@vemonet vemonet changed the title Basic deployment does not work (datapusher complains Basic deployment does not work (datapusher asks for an undocumented API key) Nov 10, 2023
@kowh-ai
Copy link
Contributor

kowh-ai commented Nov 17, 2023

The DataPusher API token is set up in the base image for CKAN
https://github.com/ckan/ckan-docker-base/blob/main/ckan-2.10/base/setup/start_ckan.sh#L6

Plus during the CKAN container start process
https://github.com/ckan/ckan-docker/blob/master/ckan/docker-entrypoint.d/01_setup_datapusher.sh#L8

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