Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper error message when failing to upload big files #362

Closed
cleder opened this issue Aug 13, 2012 · 9 comments
Closed

Proper error message when failing to upload big files #362

cleder opened this issue Aug 13, 2012 · 9 comments
Labels
minor A low priority issue which might affect only some users and /or not the main functionality
Milestone

Comments

@cleder
Copy link

cleder commented Aug 13, 2012

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?)

@simod
Copy link
Member

simod commented Jan 25, 2013

Any updates on this?

@ingenieroariel
Copy link
Member

This seems to still be a bug, leaving the 2.0 milestone.

@ingenieroariel
Copy link
Member

Potentially related: #1195

@ingenieroariel
Copy link
Member

Potentially related: #1294

@ingenieroariel
Copy link
Member

Let's rename this ticket. If GeoNode does not handle well very big files, we should be returning a meaningful error to the user instead of 500 errors or nothing.

@ingenieroariel ingenieroariel changed the title Error uploading big shapefiles Proper error message when failing to upload big files Feb 4, 2015
@ingenieroariel
Copy link
Member

We need to define an upper limit for big files and reject the ones above that limit with a notice asking to contact the site administrator.

@vdeparday
Copy link
Member

I tried to upload the three shapefiles corals from here: http://www.iucnredlist.org/technical-documents/spatial-data

It took a long time locally but it worked.

It crashed GeoServer on demo.geonode.org but didn't give the error above.

@ischneider
Copy link
Member

From my experience, these type of errors can be transient and based upon other factors (other users doing stuff).

@ingenieroariel ingenieroariel modified the milestones: 2.4, 2.5.x Nov 17, 2015
@jj0hns0n jj0hns0n removed the critical label Aug 22, 2016
@jj0hns0n jj0hns0n modified the milestones: Low Priority, 2.5 Aug 22, 2016
@jj0hns0n
Copy link
Contributor

This may be made irrelevant after switching to django-osgeo-importer.

@afabiani afabiani added minor A low priority issue which might affect only some users and /or not the main functionality and removed bug labels Sep 4, 2018
marthamareal pushed a commit to marthamareal/geonode that referenced this issue Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor A low priority issue which might affect only some users and /or not the main functionality
Projects
None yet
Development

No branches or pull requests

7 participants