I do all the steps written in the docs, after docker-compose up -d --build
ckan container go to Exited status
docker logs ckan
show
db:5432 - accepting connections
No handlers could be found for logger "ckan.lib.maintain"
Command 'db' not known (you may need to run setup.py egg_info)
docker-compose restart ckan
- doesn't change anything
What can be wrong?
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ad9613d790f9 docker_ckan "/ckan-entrypoint.sh…" 2 hours ago Exited (2) 2 hours ago ckan
8a0bfb6af229 redis:latest "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:6379->6379/tcp redis
51b879900262 docker_solr "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:8983->8983/tcp solr
500f1b1438bf clementmouchet/datapusher "python datapusher/m…" 2 hours ago Up 2 hours 0.0.0.0:8800->8800/tcp datapusher
b0197d6cec5a docker_db "docker-entrypoint.s…" 2 hours ago Up 2 hours (healthy) 0.0.0.0:5432->5432/tcp db
Docker Compose is installed system-wide following the official Docker Compose installation guidelines . Alternatively, Docker Compose can be installed inside a virtualenv, which would be entirely separate from the virtualenv used inside the CKAN container, and would need to be activated before running Docker Compose commands.
The error you are showing when using docker-compose is that the command is not found in your $PATH and not related to the docker.sock issue See my answer below - the syntax is wrong. It should be docker compose instead of docker-compose when using V2.
The datastore database and user are created when the db container is first started, however we need to do some additional configuration before enabling the datastore and datapusher settings in the production.ini. With running CKAN containers, execute the built-in setup script against the db container:
Assuming the CKAN storage directory on SOURCE_CKAN is located at /path/to/files (containing resource files and uploaded images in resources and storage ), we’ll simply rsync SOURCE_CKAN ’s storage directory into the named volume docker_ckan_storage: sudo rsync -Pavvr USER@SOURCE_CKAN:/path/to/files/ $VOL_CKAN_STORAGE
I can't do it all of a sudden ㅠㅠ
You can try it by changing the tag.
$git checkout tags/ckan-2.8.0
or
$git checkout tags/ckan-2.8.5
or
$git checkout tags/ckan-2.9.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With