installation issues Exception: Config option `ckan.datapusher.api_token` must be set to use the DataPusher.
i get the below errors even after running
docker stop $(docker ps -q); docker rm $(docker ps -aq); docker image rm $(docker image ls -q); docker network rm $(docker network ls -q); docker volume rm $(docker volume ls -q) followed by docker system prune
then
docker compose build
docker compose up
09:16:00,457 INFO [ckan.config.environment] Loading templates from /srv/app/src/ckan/ckan/templates
ckan | Traceback (most recent call last):
ckan | File "/srv/app/wsgi.py", line 20, in <module>
ckan | application = make_app(config)
ckan | File "/srv/app/src/ckan/ckan/config/middleware/__init__.py", line 27, in make_app
ckan | load_environment(conf)
ckan | File "/srv/app/src/ckan/ckan/config/environment.py", line 69, in load_environment
ckan | p.load_all()
ckan | File "/srv/app/src/ckan/ckan/plugins/core.py", line 224, in load_all
ckan | load(*plugins)
ckan | File "/srv/app/src/ckan/ckan/plugins/core.py", line 255, in load
ckan | plugins_update()
ckan | File "/srv/app/src/ckan/ckan/plugins/core.py", line 212, in plugins_update
ckan | environment.update_config()
ckan | File "/srv/app/src/ckan/ckan/config/environment.py", line 227, in update_config
ckan | plugin.configure(config)
ckan | File "/srv/app/src/ckan/ckanext/datapusher/plugin.py", line 52, in configure
ckan | raise Exception(
ckan | Exception: Config option `ckan.datapusher.api_token` must be set to use the DataPusher.
When the CKAN container comes up do you see the line: "Set up ckan.datapusher.api_token in the CKAN config file" in the logs ie:
plus do you see the ckan.datapusher.api_token line in the
ckan.ini file in the running CKAN container?
i see this Set up ckan.datapusher.api_token in the CKAN config file on the console; however the api token in the container is empty
any feedback on this; even cloning a new repo gives me the same message
i am still struggling with this issue even after about 10-15 trials; I even rebuilt my server to ensure i have a clean slate; Is there a way to generate the API token manually?
I think you might want to start debugging where the ckan.datapusher.api_token gets created and subsequently changed. Take a look here to understand how to override the setup files for the local image/container
thanks, let me look into it
Are you using the master branch?
yes i am using master branch
Hi everyone,
I'm facing the same problem using the Master branch of ckan-docker.
This happens when I build another image including extensions and try to use the new image.
But if I install the extension manually using the original image and just restart the container everything works fine.
i managed to have this install only with the default settings. I think the only thing i changed was the db credentials and site url. any other changes would cause this issue.