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

Created on 5 May 2020  路  15Comments  路  Source: GeoNode/geonode

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
docs minor

Most helpful comment

Ok, so from the stacktrace "Internal Server Error" it looks to me that plugins = python3 is correct.

The next issue geonode.local_settings/g seems to be very likely a sintax error on geonode.ini, can you please double check?

All 15 comments

can you run the command

docker-compose logs -f nginx

and paste here any error you find?

Sorry I am not installing through docker. I followed the ubuntu 18.04 installation process.

Any error on geonode logs? Can you share the uwsgi mini you used to configure the app?

My nginx.conf file,

# Make sure your nginx.config matches the following one
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
  worker_connections 768;
  # multi_accept on;
}

http {
  ##
  # Basic Settings
  ##

  sendfile on;
  tcp_nopush on;
  tcp_nodelay on;
  keepalive_timeout 65;
  types_hash_max_size 2048;
  # server_tokens off;

  # server_names_hash_bucket_size 64;
  # server_name_in_redirect off;

  include /etc/nginx/mime.types;
  default_type application/octet-stream;

  ##
  # SSL Settings
  ##

  ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  ssl_prefer_server_ciphers on;

  ##
  # Logging Settings
  ##

  access_log /var/log/nginx/access.log;
  error_log /var/log/nginx/error.log;

  ##
  # Gzip Settings
  ##

  gzip on;
  gzip_vary on;
  gzip_proxied any;
  gzip_http_version 1.1;
  gzip_disable "MSIE [1-6]\.";
  gzip_buffers 16 8k;
  gzip_min_length 1100;
  gzip_comp_level 6;
  gzip_proxied any;
  gzip_types video/mp4 text/plain application/javascript application/x-javascript text/javascript text/xml text/css image/jpeg;

  ##
  # Virtual Host Configs
  ##

  include /etc/nginx/conf.d/*.conf;
  include /etc/nginx/sites-enabled/*;
}

My nginx/error.log file looks like this

2020/05/07 11:44:46 [warn] 956#956: duplicate value "any" in /etc/nginx/nginx.conf:55
2020/05/07 11:44:50 [warn] 1098#1098: duplicate value "any" in /etc/nginx/nginx.conf:55
2020/05/07 11:48:54 [error] 1121#1121: *1 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:48:54 [error] 1121#1121: *1 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:39 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:40 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:40 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:40 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:40 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:14 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:14 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:16 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:16 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:16 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:40 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:41 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:41 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:07:24 [error] 1121#1121: *24 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:07:24 [error] 1121#1121: *24 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"

I don't know about the Nginx and deployment things. so this error is completely new for me. I am completely following geonode complete installation guide without knowing everything

so, as the error log says, there's a syntax error here

duplicate value "any" in /etc/nginx/nginx.conf:55

Fix it and it should work again. You most probably just have to remove that "any" statement from the line.

Hint, you written gzip_proxied any; twice into your nginx.conf

I removed gzip_proxied any; line from line number 55 as it was repeated. But still no luck, same error.
This is the simple warning. But main error is still there,

2020/05/07 11:48:54 [error] 1121#1121: *1 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:48:54 [error] 1121#1121: *1 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:39 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:40 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:40 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:40 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 11:56:40 [error] 1121#1121: *4 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:14 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:14 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:15 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:16 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:16 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:16 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:40 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:41 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:04:41 [error] 1121#1121: *10 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:07:24 [error] 1121#1121: *24 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"
2020/05/07 12:07:24 [error] 1121#1121: *24 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://127.0.0.1:8000", host: "localhost"

Uhm, I see. It looks to me that UWSGI is not working for some reason.

Try to check the logs which should be located into

/var/log/uwsgi/apps/geonode.log

(or similar)

My geonode.log file is here,

Thu May  7 11:44:51 2020 - *** Starting uWSGI 2.0.18-debian (64bit) on [Thu May  7 11:44:51 2020] ***
Thu May  7 11:44:51 2020 - compiled with version: 10.0.1 20200405 (experimental) [master revision 0be9efad938:fcb98e4978a:705510a708d3642c9c962beb663c476167e4e8a4] on 11 April 2020 11:15:55
Thu May  7 11:44:51 2020 - os: Linux-5.4.0-28-generic #32-Ubuntu SMP Wed Apr 22 17:40:10 UTC 2020
Thu May  7 11:44:51 2020 - nodename: geonode
Thu May  7 11:44:51 2020 - machine: x86_64
Thu May  7 11:44:51 2020 - clock source: unix
Thu May  7 11:44:51 2020 - pcre jit disabled
Thu May  7 11:44:51 2020 - detected number of CPU cores: 4
Thu May  7 11:44:51 2020 - current working directory: /
Thu May  7 11:44:51 2020 - writing pidfile to /run/uwsgi/app/geonode/pid
Thu May  7 11:44:51 2020 - detected binary path: /usr/bin/uwsgi-core
Thu May  7 11:44:51 2020 - chdir() to /opt/geonode
Thu May  7 11:44:51 2020 - your processes number limit is 16550
Thu May  7 11:44:51 2020 - your memory page size is 4096 bytes
Thu May  7 11:44:51 2020 -  *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
Thu May  7 11:44:51 2020 - detected max file descriptor number: 1024
Thu May  7 11:44:51 2020 - lock engine: pthread robust mutexes
Thu May  7 11:44:51 2020 - thunder lock: enabled
Thu May  7 11:44:51 2020 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/geonode/socket fd 3
Thu May  7 11:44:51 2020 - uwsgi socket 1 bound to TCP address 0.0.0.0:8000 fd 5
Thu May  7 11:44:51 2020 - setgid() to 33
Thu May  7 11:44:51 2020 - set additional group 27 (sudo)
Thu May  7 11:44:51 2020 - setuid() to 1001
Thu May  7 11:44:51 2020 - your server socket listen backlog is limited to 100 connections
Thu May  7 11:44:51 2020 - your mercy for graceful operations on workers is 60 seconds
Thu May  7 11:44:51 2020 - mapped 703600 bytes (687 KB) for 8 cores
Thu May  7 11:44:51 2020 - *** Operational MODE: preforking+threaded ***
Thu May  7 11:44:51 2020 - *** no app loaded. going in full dynamic mode ***
Thu May  7 11:44:51 2020 - *** uWSGI is running in multiple interpreter mode ***
Thu May  7 11:44:51 2020 - !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!
Thu May  7 11:44:51 2020 - no request plugin is loaded, you will not be able to manage requests.
Thu May  7 11:44:51 2020 - you may need to install the package for your language of choice, or simply load it with --plugin.
Thu May  7 11:44:51 2020 - !!!!!!!!!!! END OF WARNING !!!!!!!!!!
Thu May  7 11:44:51 2020 - spawned uWSGI master process (pid: 1290)
Thu May  7 11:44:51 2020 - spawned uWSGI worker 1 (pid: 1295, cores: 2)
Thu May  7 11:44:51 2020 - spawned uWSGI worker 2 (pid: 1297, cores: 2)
Thu May  7 11:44:51 2020 - spawned uWSGI worker 3 (pid: 1299, cores: 2)
Thu May  7 11:44:51 2020 - spawned uWSGI worker 4 (pid: 1301, cores: 2)
Thu May  7 11:48:54 2020 - uwsgi_proto_uwsgi_parser(): Success [proto/uwsgi.c line 40]
Thu May  7 11:48:54 2020 - -- unavailable modifier requested: 0 --
Thu May  7 11:48:54 2020 - -- unavailable modifier requested: 0 --
Thu May  7 11:56:39 2020 - -- unavailable modifier requested: 0 --
Thu May  7 11:56:40 2020 - -- unavailable modifier requested: 0 --
Thu May  7 11:56:40 2020 - -- unavailable modifier requested: 0 --
Thu May  7 11:56:40 2020 - -- unavailable modifier requested: 0 --
Thu May  7 15:43:40 2020 - compiled with version: 10.0.1 20200405 (experimental) [master revision 0be9efad938:fcb98e4978a:705510a708d3642c9c962beb663c476167e4e8a4] on 11 April 2020 11:15:55
Thu May  7 15:43:40 2020 - os: Linux-5.4.0-28-generic #32-Ubuntu SMP Wed Apr 22 17:40:10 UTC 2020
Thu May  7 15:43:40 2020 - nodename: geonode
Thu May  7 15:43:40 2020 - machine: x86_64
Thu May  7 15:43:40 2020 - clock source: unix
Thu May  7 15:43:40 2020 - pcre jit disabled
Thu May  7 15:43:40 2020 - detected number of CPU cores: 4
Thu May  7 15:43:40 2020 - current working directory: /
Thu May  7 15:43:40 2020 - writing pidfile to /run/uwsgi/app/geonode/pid
Thu May  7 15:43:40 2020 - detected binary path: /usr/bin/uwsgi-core
Thu May  7 15:43:40 2020 - chdir() to /opt/geonode
Thu May  7 15:43:40 2020 - your processes number limit is 16550
Thu May  7 15:43:40 2020 - your memory page size is 4096 bytes
Thu May  7 15:43:40 2020 -  *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
Thu May  7 15:43:40 2020 - detected max file descriptor number: 1024
Thu May  7 15:43:40 2020 - lock engine: pthread robust mutexes
Thu May  7 15:43:40 2020 - thunder lock: enabled
Thu May  7 15:43:40 2020 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/geonode/socket fd 3
Thu May  7 15:43:40 2020 - uwsgi socket 1 bound to TCP address 0.0.0.0:8000 fd 5
Thu May  7 15:43:40 2020 - setgid() to 33
Thu May  7 15:43:40 2020 - set additional group 27 (sudo)
Thu May  7 15:43:40 2020 - setuid() to 1001
Thu May  7 15:43:40 2020 - your server socket listen backlog is limited to 100 connections
Thu May  7 15:43:40 2020 - your mercy for graceful operations on workers is 60 seconds
Thu May  7 15:43:40 2020 - mapped 703600 bytes (687 KB) for 8 cores
Thu May  7 15:43:40 2020 - *** Operational MODE: preforking+threaded ***
Thu May  7 15:43:40 2020 - *** no app loaded. going in full dynamic mode ***
Thu May  7 15:43:40 2020 - *** uWSGI is running in multiple interpreter mode ***
Thu May  7 15:43:40 2020 - !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!
Thu May  7 15:43:40 2020 - no request plugin is loaded, you will not be able to manage requests.
Thu May  7 15:43:40 2020 - you may need to install the package for your language of choice, or simply load it with --plugin.
Thu May  7 15:43:40 2020 - !!!!!!!!!!! END OF WARNING !!!!!!!!!!
Thu May  7 15:43:40 2020 - spawned uWSGI master process (pid: 1510)
Thu May  7 15:43:40 2020 - spawned uWSGI worker 1 (pid: 1516, cores: 2)
Thu May  7 15:43:40 2020 - spawned uWSGI worker 2 (pid: 1518, cores: 2)
Thu May  7 15:43:40 2020 - spawned uWSGI worker 3 (pid: 1520, cores: 2)
Thu May  7 15:43:40 2020 - spawned uWSGI worker 4 (pid: 1521, cores: 2)
Thu May  7 15:47:20 2020 - uwsgi_proto_uwsgi_parser(): Success [proto/uwsgi.c line 40]
Thu May  7 15:47:25 2020 - uwsgi_proto_uwsgi_parser(): Success [proto/uwsgi.c line 40]

Can you quickly make a try by changing

plugins = python to plugins = python3

in geonode.ini and restart both UWSGI and NGINX?

It will generate the Internal Server Error.
geonode log file is,

Traceback (most recent call last):
  File "./geonode/wsgi.py", line 30, in <module>
    application = get_wsgi_application()
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
    django.setup(set_prefix=False)
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/__init__.py", line 19, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/conf/__init__.py", line 79, in __getattr__
    self._setup(name)
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/conf/__init__.py", line 66, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/geonode/.virtualenvs/geonode/lib/python3.8/site-packages/django/conf/__init__.py", line 157, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'geonode.local_settings/g'
Thu May  7 16:28:52 2020 - unable to load app 0 (mountpoint='') (callable not found or import error)
Thu May  7 16:28:52 2020 - *** no app loaded. going in full dynamic mode ***
Thu May  7 16:28:52 2020 - *** uWSGI is running in multiple interpreter mode ***
Thu May  7 16:28:52 2020 - spawned uWSGI master process (pid: 6611)
Thu May  7 16:28:52 2020 - spawned uWSGI worker 1 (pid: 6618, cores: 2)
Thu May  7 16:28:52 2020 - spawned uWSGI worker 2 (pid: 6619, cores: 2)
Thu May  7 16:28:52 2020 - spawned uWSGI worker 3 (pid: 6621, cores: 2)
Thu May  7 16:28:52 2020 - spawned uWSGI worker 4 (pid: 6623, cores: 2)
Thu May  7 16:29:44 2020 - --- no python application found, check your startup logs for errors ---
[pid: 6618|app: -1|req: -1/1] 127.0.0.1 () {44 vars in 722 bytes} [Thu May  7 16:29:44 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Thu May  7 16:29:45 2020 - --- no python application found, check your startup logs for errors ---
[pid: 6619|app: -1|req: -1/2] 127.0.0.1 () {44 vars in 722 bytes} [Thu May  7 16:29:45 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Thu May  7 16:29:46 2020 - --- no python application found, check your startup logs for errors ---
[pid: 6618|app: -1|req: -1/3] 127.0.0.1 () {44 vars in 722 bytes} [Thu May  7 16:29:46 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 1)
Thu May  7 16:29:46 2020 - --- no python application found, check your startup logs for errors ---
[pid: 6621|app: -1|req: -1/4] 127.0.0.1 () {44 vars in 722 bytes} [Thu May  7 16:29:46 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
Thu May  7 16:29:47 2020 - --- no python application found, check your startup logs for errors ---
[pid: 6619|app: -1|req: -1/5] 127.0.0.1 () {44 vars in 722 bytes} [Thu May  7 16:29:47 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 1)

Version of Ubuntu you are using?

20.04

Ok, so from the stacktrace "Internal Server Error" it looks to me that plugins = python3 is correct.

The next issue geonode.local_settings/g seems to be very likely a sintax error on geonode.ini, can you please double check?

Wow fantastic. Thank you very much for your help. Finally working. Today is the great day.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pjduplooy picture pjduplooy  路  7Comments

cezio picture cezio  路  6Comments

malnajdi picture malnajdi  路  3Comments

kikislater picture kikislater  路  7Comments

dpadron picture dpadron  路  7Comments