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

[Maps] GeoJSON upload fails #95744

Closed
consulthys opened this issue Mar 30, 2021 · 11 comments · Fixed by #139760
Closed

[Maps] GeoJSON upload fails #95744

consulthys opened this issue Mar 30, 2021 · 11 comments · Fixed by #139760
Assignees
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation

Comments

@consulthys
Copy link
Contributor

Kibana version:
7.10.0

Elasticsearch version:
7.10.0

Server OS version:
Elastic Cloud

Browser version:
Chrome 89.0.4389.90

Browser OS version:
MacOS Sierra 10.13.6

Describe the bug:
Importing a GeoJSON file into a new map layer fails

Steps to reproduce:

  1. Open the Maps application and create a new map
  2. Add a new GeoJSON layer
  3. Import the following file: https://opendata.arcgis.com/datasets/71cf6ef6467f42dfb87d4d68855e70ce_0.geojson (~14MB)

Expected behavior:
The GeoJSON file should be successfully imported since:

  • it's valid
  • it's less than 50MB
  • the preview shows up correctly on the map

Screenshots (if relevant):
Just after dropping the file, the map displays all the geo points:
after_drop

However, when clicking on "Import file", the file starts to upload and eventually fails. The right panel doesn't show anything anymore and there's an error in the console (see below)
after_upload

Errors in browser console (if relevant):
error

Provide logs and/or server output (if relevant):

Any additional context:
I tried on another Elastic Cloud deployment running 7.12.0, but I'm hitting a different issue (i.e. HTTP 408 Timeout error instead of HTTP 400)

@consulthys consulthys added the bug Fixes for quality problems that affect the customer experience label Mar 30, 2021
@consulthys consulthys changed the title GeoJSON upload fails in Maps [Maps] GeoJSON upload fails Mar 30, 2021
@mbarretta mbarretta added the [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation label Aug 29, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@consulthys
Copy link
Contributor Author

consulthys commented Aug 29, 2022

Thanks for finally looking into this, however, just note that the GeoJSON file doesn't exist anymore. I've used another one and it still fails on 7.17.3, the map gets blank after a few percent into the import process.

@jsanz
Copy link
Member

jsanz commented Aug 29, 2022

Sorry for missing this issue between the cracks and thanks @mbarretta for catching it 😓

@consulthys could you please update the issue description with a URL pointing to a problematic issue?

@consulthys
Copy link
Contributor Author

consulthys commented Aug 29, 2022

@jsanz I don't know what more to describe here. You can try to upload any GeoJSON file that is a few MB large and you should see this happening, i.e. preview works, upload doesn't

@jsanz
Copy link
Member

jsanz commented Aug 29, 2022

Just checked with a sample from the Geonames dataset, taking 190.000 features, just below the 100MB limit from Elastic Maps and imported without issues.

Peek 2022-08-29 18-41

Also checked a smaller (34MB) completely different point dataset without isuses.

We really need a dataset that surfaces the error to work on the this issue.

@consulthys
Copy link
Contributor Author

@jsanz
Copy link
Member

jsanz commented Aug 30, 2022

I've uploaded it from my browser (Chrome) to a deployment in Elastic Cloud with 7.17.5 without any issues.

2022-08-30-11-00-04-screenshot

I recreated the Index Pattern to select a temporal field and I could play with the dataset.

image

@nickpeihl do you see anything on the browser console screenshots that ring a bell?

@consulthys
Copy link
Contributor Author

Thanks for trying it out @jsanz

On my end, it goes up to 4% and then I can see the following error in the Network tab

{"statusCode":408,"error":"Request Time-out","message":"Request Time-out"}

And the map goes blank
map

PS: Worth noting that the 7.17.3 cluster is not a small one (24 data nodes) and isn't overloaded right now.

@nreese
Copy link
Contributor

nreese commented Aug 30, 2022

This issue sounds like a duplicate of #72985. The original issue was fixed with #93678 which was merged into 7.13.0. The fix for cloud uploads was to chunk the file into 1MB pieces.

I wonder if the issue has more to due with connection speed and connecting to cloud. Maybe 1MB upload chuncking is still too large for poor connections.

@jsanz
Copy link
Member

jsanz commented Aug 30, 2022

Just checked with a larger cluster (3 Elasticsearch, 3 Kibana) and worked well.

I then enabled the throttling feature on Chrome dev tools to simulate a slow connectivity and then I could replicate the issue so seems you are right @nreese

Peek 2022-08-30 13-50

Tested the same dataset and throttling in 8.3.3 and got the same behavior with a blank screen.

@nreese
Copy link
Contributor

nreese commented Aug 30, 2022

I have opened #139760 to address the issue.

The solution works well for files with small to medium features. However, the solution does not resolve the problem for files with large features. It may never be possible to upload large features on a slow connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants