Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CKAN Error on docker-compose up (Command 'db' not known (you may need to run setup.py egg_info))

Tags:

docker

ckan

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
like image 550
Max Avatar asked Jun 10 '20 09:06

Max


People also ask

Can I install docker compose inside a CKAN container?

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.

Why can't I use Docker-Compose with Docker-sock?

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.

When are the Datastore database and datapusher created in CKAN containers?

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:

How do I rsync CKAN files from source_CKAN to Docker_CKAN_storage?

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


1 Answers

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
like image 129
league3236 Avatar answered Nov 15 '22 04:11

league3236