GeoNode
July 4, 2024Less than 1 minute
https://www.osgeo.org/projects/geonode/
Errors
Invalid HTTP_HOST header: 'my_geonode.net'. The domain name provided is not valid according to RFC 1034/1035.
Solution: [Removeproxy_set_header Host $host
in /etc/nginx/sites-enabled/geonode.conf on nginx container]https://gist.github.com/linuxkathirvel/3f88774d9a23ed73045223fc2ecab200While using docker compose to start project, always has some container are restarting again, using
docker logs --tail 50 --follow --timestamps {container_name or id}
to check the log.
The django container always retarting
Using the following content to view the problems for restartingdocker logs -f --tail 20 django4my_geonode
In my case, the reason is failed to connect to db, the next step is to change the password of the User,
- connect to container using
docker exec -it dbxxxxx /bin/sh
- connect to db using postgres
psql -Upostgres
- Change password for connection user, the password please retrive from
.env
file
ALTER USER myuser WITH PASSWORD 'securepassword';