Open pieterprovoost opened 2 years ago
[pid: 75894|app: 0|req: 19/46] 193.191.134.2 () {86 vars in 1612 bytes} [Wed May 4 10:31:50 2022] GET /upload/progress => generated 17 bytes in 18 msecs (HTTP/1.1 200) 8 headers in 302 bytes (1 switches on core 0)
Some error occurred while trying to access the uploaded schema: Please ensure the name is consistent with the file you are trying to replace.
Traceback (most recent call last):
File "./geonode/layers/utils.py", line 1147, in validate_input_source
raise Exception(
Exception: Please ensure the name is consistent with the file you are trying to replace.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./geonode/layers/views.py", line 1247, in layer_replace
saved_layer = file_upload(
File "/usr/local/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "./geonode/layers/utils.py", line 476, in file_upload
validate_input_source(layer, filename, files, gtype, action_type='replace')
File "./geonode/layers/utils.py", line 1180, in validate_input_source
raise Exception(
Exception: Some error occurred while trying to access the uploaded schema: Please ensure the name is consistent with the file you are trying to replace.
{"ogc_backend": "geonode.geoserver", "success": false, "errors": "Some error occurred while trying to access the uploaded schema: Please ensure the name is consistent with the file you are trying to replace."}
After changing the filename:
[pid: 75894|app: 0|req: 33/113] 193.191.134.2 () {86 vars in 1612 bytes} [Wed May 4 10:34:46 2022] GET /upload/progress => generated 17 bytes in 17 msecs (HTTP/1.1 200) 8 headers in 302 bytes (1 switches on core 0)
Some error occurred while trying to access the uploaded schema: The selected Layer does not exists in the catalog.
Traceback (most recent call last):
File "./geonode/layers/utils.py", line 1168, in validate_input_source
raise Exception(
Exception: The selected Layer does not exists in the catalog.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./geonode/layers/views.py", line 1247, in layer_replace
saved_layer = file_upload(
File "/usr/local/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "./geonode/layers/utils.py", line 476, in file_upload
validate_input_source(layer, filename, files, gtype, action_type='replace')
File "./geonode/layers/utils.py", line 1180, in validate_input_source
raise Exception(
Exception: Some error occurred while trying to access the uploaded schema: The selected Layer does not exists in the catalog.
{"ogc_backend": "geonode.geoserver", "success": false, "errors": "Some error occurred while trying to access the uploaded schema: The selected Layer does not exists in the catalog."}
New error after a container rebuild, this is with a shapefile downloaded from GeoNode and edited in QGIS (removed geometry):
[pid: 283|app: 0|req: 41/279] 178.119.97.51 () {86 vars in 1612 bytes} [Wed May 4 17:41:54 2022] GET /upload/progress => generated 17 bytes in 20 msecs (HTTP/1.1 200) 8 headers in 302 bytes (1 switches on core 0)
Some error occurred while trying to access the uploaded schema: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "./geonode/layers/utils.py", line 1156, in validate_input_source
elif "geometry" in _ff and _ff["geometry"]["type"]:
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./geonode/layers/views.py", line 1247, in layer_replace
saved_layer = file_upload(
File "/usr/local/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "./geonode/layers/utils.py", line 476, in file_upload
validate_input_source(layer, filename, files, gtype, action_type='replace')
File "./geonode/layers/utils.py", line 1180, in validate_input_source
raise Exception(
Exception: Some error occurred while trying to access the uploaded schema: 'NoneType' object is not subscriptable
{"ogc_backend": "geonode.geoserver", "success": false, "errors": "Some error occurred while trying to access the uploaded schema: 'NoneType' object is not subscriptable"}