ckan-docker icon indicating copy to clipboard operation
ckan-docker copied to clipboard

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

Open vemonet opened this issue 2 years ago • 1 comments

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 avatar Nov 10 '23 08:11 vemonet

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

kowh-ai avatar Nov 17 '23 11:11 kowh-ai