CKAN Harvest extension not working in CKAN 2.11.3 using docker setup #9073
-
CKAN versionCKAN 2.11.3 Describe the bugA clear and concise description of what the bug is. Steps to reproduceSteps to reproduce the behavior: Steps2: Change docker-compose.yml with below code Step3: Update ckan->Dockerfile: Expected behaviorCKAN exenstion should be working without any error Additional detailsIf possible, please provide the full stack trace of the error raised, or add screenshots to help explain your problem. I see these error in logs after docker compose up -d |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
Can you try installing the harvest extension in the way it is suggested in the example |
Beta Was this translation helpful? Give feedback.
-
|
Hi @jktittalom Let's dig a bit deeper. ;-) First look into https://github.com/ckan/ckan-docker-base/blob/main/ckan-2.11/Dockerfile to understand what is done there. Furthermore @amercader gave the recommendation to install the extension via pip with dependencies, you manually cloned the extension and run a local Add this to your Dockerfile: USER root
RUN pip3 install -e 'git+https://github.com/ckan/ckanext-harvest.git@master#egg=ckanext-harvest' && \
pip3 install -r ${APP_DIR}/src/ckanext-harvest/requirements.txt
USER ckanMore details about the installation are described here. I recommend not to remove ckanext-harvest before installing it, as it may remove dependencies you might need later - and this procedure might increase your docker image size. |
Beta Was this translation helpful? Give feedback.
Hi @dev-rke,
Thanks for quick response and suggestion.
Your suggestion for DockerFile seems working, Now there are no issue for harvest extension.
I'll explore Y the patch related code in docker file creating issue for extension installation.
Thanks a lots again.