geonode-project icon indicating copy to clipboard operation
geonode-project copied to clipboard

ERROR: jenkins ports 50000 at docker-compose.yml

Open SESMAPS opened this issue 2 years ago • 6 comments

When trying to install the geonode in VPS, and bring me version 3.3.x, it happens that when creating the container, this error appears:

docker-compose build --no-cache WARNING: The COMPOSE_PROJECT_NAME variable is not set. Defaulting to a blank string. WARNING: The HTTPS_HOST variable is not set. Defaulting to a blank string. WARNING: The HTTP_HOST variable is not set. Defaulting to a blank string. WARNING: The HTTPS_PORT variable is not set. Defaulting to a blank string. WARNING: The HTTP_PORT variable is not set. Defaulting to a blank string. WARNING: The LETSENCRYPT_MODE variable is not set. Defaulting to a blank string. WARNING: The ADMIN_EMAIL variable is not set. Defaulting to a blank string. WARNING: The POSTGRESQL_MAX_CONNECTIONS variable is not set. Defaulting to a blank string. WARNING: The JENKINS_HTTP_PORT variable is not set. Defaulting to a blank string. WARNING: The JENKINS_HTTPS_PORT variable is not set. Defaulting to a blank string. ERROR: The Compose file './docker-compose.yml' is invalid because: services.jenkins.ports contains an invalid type, it should be a number, or an object services.jenkins.ports contains an invalid type, it should be a number, or an object services.geonode.ports contains an invalid type, it should be a number, or an object services.geonode.ports contains an invalid type, it should be a number, or an object services.jenkins.ports value [':', ':', '50000:50000'] has non-unique elements Ubuntu server 20.04 and without making any changes to the docker-compose.yml file. Following the instructions of Geonode-project

SESMAPS avatar May 31 '22 22:05 SESMAPS

I am having the same problem on Ubuntu 20.04.4 LTS. Any progress on this issue @SESMAPS ?

rafaelsa99 avatar Jul 24 '22 17:07 rafaelsa99

This happens when .env has not populated. See README.md on how to generate it using the helper script create-envfile.py.

frafra avatar Nov 22 '22 11:11 frafra

This happens when .env has not populated. See README.md on how to generate it using the helper script create-envfile.py.

following the README.md this is happening.

ERROR - File does not exists: /opt/core/geonode-project/file.json Traceback (most recent call last): File "/home/itt-s-l-2/geo_itt/create-envfile.py", line 177, in generate_env_file(args) File "/home/itt-s-l-2/geo_itt/create-envfile.py", line 60, in generate_env_file raise FileNotFoundError FileNotFoundError

danielknopp avatar Aug 10 '23 11:08 danielknopp

@danielknopp I suspect you're calling create-envfile.py with the -f option and with the path to a not existing file.json file. This options assumes that you have created that json file, The README reports an example:

{
  "hostname": "value",
  "https": "value",
  "email": "value",
  "geonodepwd": "value",
  "geoserverpwd": "value",
  "pgpwd": "value",
  "dbpwd": "value",
  "geodbpwd": "value",
  "clientid": "value",
  "clientsecret": "value"
} 

giohappy avatar Aug 11 '23 15:08 giohappy

@giohappy Yes I have use this code .

python create-envfile.py -f /opt/core/geonode-project/file.json
--hostname localhost
--https
--email [email protected]
--geonodepwd gn_password
--geoserverpwd gs_password
--pgpwd pg_password
--dbpwd db_password
--geodbpwd _db_password
--clientid 12345
--clientsecret abc123

I have created on the project file an .env file with copying that data, however the problem still persisting... probably as u said I m giving the wrong path-file? I try to correct it where is the geonode-project but still the same... so not sure really, where should be saved this .txt file and also which path has to be used. Thanks in advance !

@danielknopp I suspect you're calling create-envfile.py with the -f option and with the path to a not existing file.json file. This options assumes that you have created that json file, The README reports an example:

{
  "hostname": "value",
  "https": "value",
  "email": "value",
  "geonodepwd": "value",
  "geoserverpwd": "value",
  "pgpwd": "value",
  "dbpwd": "value",
  "geodbpwd": "value",
  "clientid": "value",
  "clientsecret": "value"
} 

danielknopp avatar Aug 14 '23 14:08 danielknopp

GeoNode does not use '3.3. x', but instead uses the latest version of '4.0. x'

XiaoYang943 avatar Oct 31 '23 14:10 XiaoYang943