From 6f51c111eecf009542f45b5d1a89cfa75de53305 Mon Sep 17 00:00:00 2001 From: Raji-Ahmad <59036190+Raji-Ahmad@users.noreply.github.com> Date: Fri, 10 Nov 2023 22:46:18 +0100 Subject: [PATCH 1/2] Update index.rst Included FILE_UPLOAD_PERMISSIONS and FILE_UPLOAD_DIRECTORY_PERMISSIONS in settings for local installation --- install/advanced/core/index.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/install/advanced/core/index.rst b/install/advanced/core/index.rst index 414fa76d..9e55e10e 100644 --- a/install/advanced/core/index.rst +++ b/install/advanced/core/index.rst @@ -846,6 +846,19 @@ Serving {“geonode”, “geoserver”} via NGINX cheaper-busyness-backlog-alert = 16 ; Spawn emergency workers if more than this many requests are waiting in the queue cheaper-busyness-backlog-step = 2 ; How many emergency workers to create if there are too many requests in the queue +Note +........................... + +Since this is a local environment, Geoserver and Geonode should be able to reach the default MEDIA_ROOT. We need to change the FILE_UPLOAD_DIRECTORY_PERMISSIONS and FILE_UPLOAD_PERMISSIONS in settings.py to make the folder accessible to both. +.. code-block:: shell + + cd /opt/geonode + sudo vim geonode/settings.py + + # append this to the file + FILE_UPLOAD_DIRECTORY_PERMISSIONS = 0o777 + FILE_UPLOAD_PERMISSIONS = 0o777 + .. code-block:: shell # Enable the GeoNode UWSGI config From b694188247767c07a3380be25b7227e7ab732a43 Mon Sep 17 00:00:00 2001 From: Raji-Ahmad <59036190+Raji-Ahmad@users.noreply.github.com> Date: Fri, 10 Nov 2023 22:55:33 +0100 Subject: [PATCH 2/2] Update index.rst Included FILE_UPLOAD_PERMISSIONS and FILE_UPLOAD_DIRECTORY_PERMISSIONS in settings for local installation --- install/advanced/core/index.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/advanced/core/index.rst b/install/advanced/core/index.rst index 9e55e10e..a1817c89 100644 --- a/install/advanced/core/index.rst +++ b/install/advanced/core/index.rst @@ -850,12 +850,15 @@ Note ........................... Since this is a local environment, Geoserver and Geonode should be able to reach the default MEDIA_ROOT. We need to change the FILE_UPLOAD_DIRECTORY_PERMISSIONS and FILE_UPLOAD_PERMISSIONS in settings.py to make the folder accessible to both. + .. code-block:: shell cd /opt/geonode + sudo vim geonode/settings.py # append this to the file + FILE_UPLOAD_DIRECTORY_PERMISSIONS = 0o777 FILE_UPLOAD_PERMISSIONS = 0o777