Skip to content

Proper error message when failing to upload big files #362

@cleder

Description

@cleder

when I try to upload big shapefiles i get the following error in the logs:
Note that this error is not propagated to the user interface, the UI
just displays
the upload form and gives no clue that an error occurred

Fri Aug 10 02:13:38 2012] [error]
csw._exml.findall('//'+nspath('Record', namespaces['csw']))]
[Fri Aug 10 08:45:47 2012] [error] client 127.0.0.1The
timeout specified has expired: proxy: error reading status line from
remote server localhost:13512
[Fri Aug 10 08:45:47 2012] [error] [client 127.0.0.1] proxy: Error
reading from remote server returned by
/geoserver/rest/workspaces/geonode/datastores/postgres_imports/file.shp
[Fri Aug 10 03:47:38 2012] [error] Could not save the layer
World_EEZ_v6_1_20110512, there was an upload error:
[Fri Aug 10 03:47:38 2012] [error]
[Fri Aug 10 03:47:38 2012] [error] <title>405 Method Not Allowed</title>
[Fri Aug 10 03:47:38 2012] [error]
[Fri Aug 10 03:47:38 2012] [error]

Method Not Allowed


[Fri Aug 10 03:47:38 2012] [error]

The requested method PUT is not
allowed for the URL /gateway-timeout.html.


[Fri Aug 10 03:47:38 2012] [error]
[Fri Aug 10 03:47:38 2012] [error]
[Fri Aug 10 03:47:38 2012] [error] Unexpected error during upload.
[Fri Aug 10 03:47:38 2012] [error] Traceback (most recent call last):
[Fri Aug 10 03:47:38 2012] [error] File
"/home/iwlearn3/webapps/twap_geonode_django/src/GeoNodePy/geonode/maps/views.py",
line 880, in upload_layer
[Fri Aug 10 03:47:38 2012] [error] permissions =
form.cleaned_data["permissions"]
[Fri Aug 10 03:47:38 2012] [error] File
"/home/iwlearn3/webapps/twap_geonode_django/src/GeoNodePy/geonode/maps/utils.py",
line 281, in save
[Fri Aug 10 03:47:38 2012] [error] store, gs_resource =
create_store_and_resource(name, data, overwrite=overwrite)
[Fri Aug 10 03:47:38 2012] [error] File
"/home/iwlearn3/webapps/twap_geonode_django/src/GeoNodePy/geonode/maps/utils.py",
line 579, in _create_db_featurestore
[Fri Aug 10 03:47:38 2012] [error] cat.add_data_to_store(ds, name,
data, overwrite, charset)
[Fri Aug 10 03:47:38 2012] [error] File
"/home/iwlearn3/webapps/twap_geonode_django/src/gsconfig.py/src/geoserver/catalog.py",
line 236, in add_data_to_store
[Fri Aug 10 03:47:38 2012] [error] raise UploadError(response)
[Fri Aug 10 03:47:38 2012] [error] UploadError: Could not save the
layer World_EEZ_v6_1_20110512, there was an upload error:
[Fri Aug 10 03:47:38 2012] [error]
[Fri Aug 10 03:47:38 2012] [error] <title>405 Method Not Allowed</title>
[Fri Aug 10 03:47:38 2012] [error]
[Fri Aug 10 03:47:38 2012] [error]

Method Not Allowed


[Fri Aug 10 03:47:38 2012] [error]

The requested method PUT is not
allowed for the URL /gateway-timeout.html.


[Fri Aug 10 03:47:38 2012] [error]
[Fri Aug 10 03:47:38 2012] [error]

You should be able to reproduce this error by uploading a big shapefile

e.g the corals layer from http://www.iucnredlist.org/technical-documents/spatial-data

throug a 'slow' network connection (WIFI?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    minorA low priority issue which might affect only some users and /or not the main functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions