Modify

#7305 closed defect (fixed)

Upload failed for big changeset

Reported by: pierre.quenee@… Owned by: bastiK
Priority: critical Component: Core
Version: latest Keywords: upload
Cc:

Description (last modified by skyper)

In :

Identification: JOSM/1.5 (4857 fr)

a big changeset (10 x 500) failed with Read time error :

PUT http://api.openstreetmap.org/api/0.6/changeset/create... OK
POST http://api.openstreetmap.org/api/0.6/changeset/10473575/upload...
POST http://api.openstreetmap.org/api/0.6/changeset/10473575/upload...
POST http://api.openstreetmap.org/api/0.6/changeset/10473575/upload...
POST http://api.openstreetmap.org/api/0.6/changeset/10473575/upload...
POST http://api.openstreetmap.org/api/0.6/changeset/10473575/upload...
POST http://api.openstreetmap.org/api/0.6/changeset/10473575/upload...
org.openstreetmap.josm.io.OsmTransferException: java.net.SocketTimeoutException: Read timed out
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:665)
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:534)
        at org.openstreetmap.josm.io.OsmApi.uploadDiff(OsmApi.java:484)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadChangesInChunks(OsmServerWriter.java:172)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:214)
        at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:233)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:82)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:137)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read1(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
        at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at java.net.HttpURLConnection.getResponseCode(Unknown Source)
        at java.net.HttpURLConnection.getResponseMessage(Unknown Source)
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:596)
        ... 10 more

With version r4842 the same data are upload fine.

Attachments (1)

4857 - 4842 JOSM.txt (71.7 KB) - added by pierre.quenee@… 16 months ago.
State of 4857 and 4842 + historic of upload

Download all attachments as: .zip

Change History (8)

Changed 16 months ago by pierre.quenee@…

State of 4857 and 4842 + historic of upload

comment:1 Changed 16 months ago by skyper

  • Description modified (diff)

format

comment:2 follow-up: Changed 16 months ago by stoecker

  • Resolution set to worksforme
  • Status changed from new to closed

Timeout means that connection was broken or delayed too much. Either network or server issues. Also this is self-healing.

comment:3 in reply to: ↑ 2 Changed 16 months ago by anonymous

Replying to stoecker:

Timeout means that connection was broken or delayed too much. Either network or server issues. Also this is self-healing.

Ok, I will edit with 4857. When the upload will crash, I record the data, and I will upload with 4842 ... till the "self-healing" bug disappear .

comment:4 Changed 16 months ago by stoecker

  • Resolution worksforme deleted
  • Status changed from closed to reopened

comment:5 Changed 16 months ago by stoecker

  • Owner changed from team to bastiK
  • Status changed from reopened to new

@bastiK:

You changed OsmAPI-Read-Timout. In case API processes data, the 15 seconds are probably too low. So for data upload (and download?) we need another timeout in the order of minutes.

comment:6 Changed 16 months ago by bastiK

In [4859/josm]:

no read timeout for normal API connections (see #6823, see #7305)

comment:7 Changed 16 months ago by stoecker

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.