Skip to content

Install and configure NGINX: 502 Bad Gateway nginx/1.17.10 (Ubuntu) #6059

Description

@iamtekson

Expected Behavior

I am going through the geonode installation process, I installed nginx uwsgi uwsgi-plugin-python3 required packages as suggested in the documentation. Also, I created and set up all the required files for nginx as suggested in the documentation. And finally, I updated the geonode IP as following

# Update the GeoNode ip or hostname
sudo PYTHONWARNINGS=ignore VIRTUAL_ENV=$VIRTUAL_ENV DJANGO_SETTINGS_MODULE=geonode.settings GEONODE_ETC=/opt/geonode GEOSERVER_DATA_DIR=/opt/data/geoserver_data TOMCAT_SERVICE="service tomcat" APACHE_SERVICE="service nginx" geonode_updateip -p localhost

This should run my geonode in http://localhost URL. But When I enter the http://localhost and load it on the browser, it shows 502 Bad Gateway error. Does anyone know, why this error occurs and how to solve this type of error?

note: My GeoServer is running perfectly in URL http://localhost/geoserver

Steps to Reproduce the Problem

I am following the geonode complete installation guide on ubuntu.

Specifications

  • GeoNode version: 2.1.3
  • Installation method (manual, GeoNode Docker, SPCGeoNode Docker): manual
  • Platform: geonode

Metadata

Metadata

Assignees

Labels

docsIssues addressing correction or improvement of documentationminorA low priority issue which might affect only some users and /or not the main functionality

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions