when starting the geonode container while running the tasks.py script, an exception occures:
****************************geoserver********************************
GeoServer is available for HTTP calls!
waitforgeoserver tasks done
********************geoserver fixture********************************
Setting GeoServer Admin Password...
Traceback (most recent call last):
File "/usr/local/bin/invoke", line 8, in <module>
sys.exit(program.run())
File "/usr/local/lib/python3.10/dist-packages/invoke/program.py", line 398, in run
self.execute()
File "/usr/local/lib/python3.10/dist-packages/invoke/program.py", line 583, in execute
executor.execute(*self.tasks)
File "/usr/local/lib/python3.10/dist-packages/invoke/executor.py", line 140, in execute
result = call.task(*args, **call.kwargs)
File "/usr/local/lib/python3.10/dist-packages/invoke/tasks.py", line 138, in __call__
result = self.body(*args, **kwargs)
File "/usr/src/geonode/tasks.py", line 367, in geoserverfixture
_geoserver_info_provision(f"{os.environ['GEOSERVER_LOCATION']}rest/")
File "/usr/src/geonode/tasks.py", line 476, in _geoserver_info_provision
cat = Catalog(url, username=settings.OGC_SERVER_DEFAULT_USER, password=settings.OGC_SERVER_DEFAULT_PASSWORD)
File "/usr/local/lib/python3.10/dist-packages/django/conf/__init__.py", line 83, in __getattr__
val = getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'OGC_SERVER_DEFAULT_USER'
OGC_SERVER_DEFAULT_USER and OGC_SERVER_DEFAULT_PASSWORD got removed from geonode.settings.py. Now GEOSERVER_ADMIN_USER and GEOSERVER_ADMIN_PASSWORD are used.
Bug Description
when starting the geonode container while running the tasks.py script, an exception occures:
OGC_SERVER_DEFAULT_USER
andOGC_SERVER_DEFAULT_PASSWORD
got removed fromgeonode.settings.py
. NowGEOSERVER_ADMIN_USER
andGEOSERVER_ADMIN_PASSWORD
are used.Reproduction Steps
Start with current minikube.yaml