geonode icon indicating copy to clipboard operation
geonode copied to clipboard

django container is unhealthy when launching devcontainer

Open baptisteRiviere opened this issue 1 year ago • 1 comments

Expected Behavior

Running the geonode project in devcontainer should launch every container

Actual Behavior

Geoserver or celery containers are unhealthy ERROR: for geoserver Container "fc415e61698f" is unhealthy, it depends of my tests.

and then when I show container logs : ModuleNotFoundError: No module named 'nh3'

It appears that it is django container which may give the error

Steps to Reproduce the Problem

  1. I am running geonode in WSL with Ubuntu
  2. Clone the project, opening the file directory in VS Code and switching to 4.2.x branch
  3. Creating .env file with python command python create-envfile.py --env_type dev --geonodepwd geonode --geoserverpwd geonode --pgpwd geonode --dbpwd geonode --geod bpwd geonode --clientid geonode --clientsecret geonode
  4. clicking 'Reopen in container'

Specifications

  • GeoNode version: 4.2.x
  • Installation type : geonode-project
  • Installation method : docker
  • Platform: Ubuntu 22.04 - docker-compose 1.29.2

baptisteRiviere avatar Feb 15 '24 14:02 baptisteRiviere

I'am facing similar issues

kishkumar96 avatar Feb 19 '24 07:02 kishkumar96

@baptisteRiviere can you kindly check if adding

nh3==0.2.15

to

https://github.com/GeoNode/geonode/blob/master/requirements_dev.txt

Solves your problem?

t-book avatar Mar 08 '24 07:03 t-book

Adding this line solved the problem and the application is now deployed

Many thanks

baptisteRiviere avatar Mar 12 '24 09:03 baptisteRiviere