Skip to content
Florian Hoedt edited this page Nov 9, 2021 · 9 revisions

This page documents some user experiences on how to solve problems

Fix migration error (GeoNode 3.2)

https://docs.google.com/document/d/1yaO-fKXbMNTtWXbcit2wPAht0zNuFd8XYN6k4JXzk6E/edit (Author Bruno Voisin)

Debug E-Mail sending (GeoNode 3.2, docker)

https://docs.google.com/document/d/1JnS6bYteVrznWcN-_czswqDlhqubVNb6yg0TuNR5Bd0/edit (Author Toni Schönbuchner)

Enable Annotations in GeoNode 3.2

https://docs.google.com/document/d/1wzdndnfYMTtbinEMbD-KEUHPD4RliYXYWaZxIqmcx2M/edit?usp=sharing (Author Alex Gacon)

Domain adding issue on UWSGI, No python application found

If your geonode instance is working perfectly with the localhost but when you try to add the domain if it throws the error like below then you need to delete the repetitive host from the monitoring_host table in Postgres.

Traceback (most recent call last):
  File "./geonode/wsgi.py", line 30, in <module>
    application = get_wsgi_application()
  File "/home/geonode/.virtualenvs/geonode/lib/python3.6/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
    return WSGIHandler()
  File "/home/geonode/.virtualenvs/geonode/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 135, in __init__
    self.load_middleware()
  File "/home/geonode/.virtualenvs/geonode/lib/python3.6/site-packages/django/core/handlers/base.py", line 37, in load_middleware
    mw_instance = middleware(handler)
  File "./geonode/monitoring/middleware.py", line 48, in __init__
    self.setup_logging()
  File "./geonode/monitoring/middleware.py", line 55, in setup_logging
    self.service = self.get_service()
  File "./geonode/monitoring/middleware.py", line 64, in get_service
    host = Host.objects.filter(name=hname)[0]
  File "/home/geonode/.virtualenvs/geonode/lib/python3.6/site-packages/django/db/models/query.py", line 309, in __getitem__
    return qs._result_cache[0]
IndexError: list index out of range
Tue Aug  3 09:26:27 2021 - unable to load app 0 (mountpoint='') (callable not found or import error)
Tue Aug  3 09:26:27 2021 - *** no app loaded. going in full dynamic mode ***
Tue Aug  3 09:26:27 2021 - dropping root privileges after application loading
Tue Aug  3 09:26:27 2021 - *** uWSGI is running in multiple interpreter mode ***
Tue Aug  3 09:26:27 2021 - spawned uWSGI master process (pid: 16745)
Tue Aug  3 09:26:27 2021 - spawned uWSGI worker 1 (pid: 16765, cores: 2)
Tue Aug  3 09:26:27 2021 - spawned uWSGI worker 2 (pid: 16767, cores: 2)
Tue Aug  3 09:26:27 2021 - spawned uWSGI worker 3 (pid: 16769, cores: 2)
Tue Aug  3 09:26:27 2021 - spawned uWSGI worker 4 (pid: 16771, cores: 2)

When I tried to debug the system, I found that the error was due to two hosts in the monitoring_host table. For solving this issue, you have to follow the following steps,

  • access the Postgres database: psql -h localhost -d geonode -U geonode
  • See the data inside the monitoring_host table: SELECT * FROM monitoring_host;
  • It should contain one hostname. If it contains the two repetitive hosts, delete one: DROP FROM monitoring_host WHERE id=0;
  • Now reload the UWSGI server: sudo service uwsgi restart
  • Now your domain will be mapped to your geonode.

uWSGI Service Troubleshooting

A few various symptoms have been tracked to the inclusion of the daemonize line in the uwsgi.ini file. If you encounter any of the following, try removing that line and reloading the uwsgi service.

  1. Running sudo systemctl status uwsgi returns a status of deactivating instead of active
  2. uWSGI completely restarting every 1.5-2 minutes: try grep "Starting uWSGI" /path/to/your/uwsgi.log to check for evidence of this
  3. Frequent 502 Gateway errors while navigating the GeoNode installation

Add new download formats in download window

To display new vector formats in the download window:

⚠️ The download URL for this format will be available for all the layers in GEONODE, even the ones hosted on other WFS services.

Add a new attribute to some layer (docker context)

docker compose exec db bash
su - postgres
psql -d daard_geonode_data
ALTER TABLE test ADD COLUMN svgid character varying(120) NULL;

then: refresh geoserver attributes via geoserver gui reload attributes on side of geonode (layer detail refresh statistics ...) (author: toni schönbuchner)

Monitor/Modify rabbitmq inside docker container (docker context)

https://docs.google.com/document/d/1nd45ZZQhuuuCot2gm5tkMifYmWwdYDJqubth3DuUI7k/edit?usp=sharing

Clone this wiki locally