Upload server error: File handle not found in the upload response {"debug_info":{"retriable":true,"type":"ShutdownError","message":"Server shutting down. Please try again."}}

Just out of curiosity and to give you some feedback, I have run some process command tests on 0.13.3 versus 0.14.0b1. The result is that there is no improvement in the Extracting images step, whereas the Validating metadatas step only scores an about 7.5× speedup for me. So yes, there is indeed some improvement in 0.14.0b1 over 0.13.3. However, it looks like the Extracting images step may need some more attention. It continues to lag behind.

It’s been a while and I’m still getting the “Server shutting down. Please try again.” roughly every upload session.

@HellPhoto which version are you using? If you are using the latest v0.14*, you still see the error but it will also automatically retrying the upload.

I am still using the Desktop Uploader, so whichever version that has.

@GITNE

--cutoff_distance=inf --cutoff_time=inf should work in the new released v0.14 now

1 Like

Just before your post, I have finished my batch of uploads for today with 0.13.3, so it will take a while before I upgrade and can give 0.14 a test drive. But, it is great to see progress and I am looking forward to 0.14! :+1:

What about --cutoff_count? Did it make it into 0.14?

There is no cufoff_count as an option, but you can set envvar MAPILLARY_TOOLS_MAX_SEQUENCE_LENGTH=inf

Awesome @GITNE, looking forward your feedback, which is always valuable!

1 Like

I don’t want to report @boris , @tao

the same error every day (or every 3 days or so) because you don’t update the uploader from the GUI.

But I think I have something new.

[2025-08-14 15:58:18.273] [debug] [mapillary:tools] 2025-08-14 15:58:18,273 - DEBUG - HTTP 400 (Bad Request): {“debug_info”: {“retriable”: false, “type”: “StorageWriteFailedError”, “message”: “Failed to write to storage”}}

[2025-08-14 15:58:18.289] [debug] [mapillary:tools] Traceback (most recent call last):
File “mapillary_tools\upload.py”, line 568, in upload

[2025-08-14 15:58:18.289] [debug] [mapillary:tools] mapillary_tools.upload.UploadError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}

[2025-08-14 15:58:18.289] [debug] [mapillary:tools] During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “main.py”, line 8, in

[2025-08-14 15:58:18.289] [debug] [mapillary:tools] File “mapillary_tools\commands_main_.py”, line 164, in main
File “mapillary_tools\commands\upload.py”, line 50, in run
File “mapillary_tools\upload.py”, line 651, in upload

[2025-08-14 15:58:18.304] [debug] [mapillary:tools] File “mapillary_tools\upload.py”, line 563, in upload
File “mapillary_tools\uploader.py”, line 163, in upload_images
File “mapillary_tools\uploader.py”, line 219, in upload_stream

[2025-08-14 15:58:18.304] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 425, in _upload_stream
File “mapillary_tools\uploader.py”, line 398, in _upload_stream
File “mapillary_tools\upload_api_v4.py”, line 89, in upload
File “mapillary_tools\upload_api_v4.py”, line 151, in upload_chunks
RuntimeError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}
[2552] Failed to execute script ‘main’ due to unhandled exception!

1 Like

When reporting, please mention the version and app (cmdline vs. DU) you are using. Otherwise, it is difficult to keep track because currently especially DU lags behind mapillary_tools.

I think they know very well which version and that their Desktop Uploader (with GUI, i.e. 4.7.2). I could say a few things about their approach to users.

[2025-08-23 08:50:14.610] [debug] [mapillary:tools] 2025-08-23 08:50:14,610 - DEBUG - HTTP 400 (Bad Request): {“debug_info”: {“retriable”: false, “type”: “StorageWriteFailedError”, “message”: “Failed to write to storage”}}

[2025-08-23 08:50:14.719] [debug] [mapillary:tools] Traceback (most recent call last):
File “mapillary_tools\upload.py”, line 568, in upload

[2025-08-23 08:50:14.719] [debug] [mapillary:tools] mapillary_tools.upload.UploadError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}

[2025-08-23 08:50:14.719] [debug] [mapillary:tools] During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “main.py”, line 8, in

[2025-08-23 08:50:14.719] [debug] [mapillary:tools] File “mapillary_tools\commands_main_.py”, line 164, in main
File “mapillary_tools\commands\upload.py”, line 50, in run

[2025-08-23 08:50:14.719] [debug] [mapillary:tools] File “mapillary_tools\upload.py”, line 651, in upload
File “mapillary_tools\upload.py”, line 563, in upload

[2025-08-23 08:50:14.719] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 163, in upload_images
File “mapillary_tools\uploader.py”, line 219, in upload_stream
File “mapillary_tools\uploader.py”, line 425, in _upload_stream

[2025-08-23 08:50:14.719] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 398, in _upload_stream
File “mapillary_tools\upload_api_v4.py”, line 89, in upload
File “mapillary_tools\upload_api_v4.py”, line 151, in upload_chunks

[2025-08-23 08:50:14.735] [debug] [mapillary:tools] RuntimeError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}
[4180] Failed to execute script ‘main’ due to unhandled exception!

[2025-08-25 09:25:00.978] [debug] [mapillary:tools] 2025-08-25 09:25:00,962 - DEBUG - HTTP 400 (Bad Request): {“debug_info”: {“retriable”: false, “type”: “StorageWriteFailedError”, “message”: “Failed to write to storage”}}

[2025-08-25 09:25:01.056] [debug] [mapillary:tools] Traceback (most recent call last):
File “mapillary_tools\upload.py”, line 568, in upload

[2025-08-25 09:25:01.056] [debug] [mapillary:tools] mapillary_tools.upload.UploadError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}

[2025-08-25 09:25:01.056] [debug] [mapillary:tools] During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “main.py”, line 8, in

[2025-08-25 09:25:01.056] [debug] [mapillary:tools] File “mapillary_tools\commands_main_.py”, line 164, in main
File “mapillary_tools\commands\upload.py”, line 50, in run

[2025-08-25 09:25:01.056] [debug] [mapillary:tools] File “mapillary_tools\upload.py”, line 651, in upload
File “mapillary_tools\upload.py”, line 563, in upload

[2025-08-25 09:25:01.056] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 163, in upload_images
File “mapillary_tools\uploader.py”, line 219, in upload_stream
File “mapillary_tools\uploader.py”, line 425, in _upload_stream

[2025-08-25 09:25:01.056] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 398, in _upload_stream
File “mapillary_tools\upload_api_v4.py”, line 89, in upload

[2025-08-25 09:25:01.056] [debug] [mapillary:tools] File “mapillary_tools\upload_api_v4.py”, line 151, in upload_chunks
RuntimeError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}
[4740] Failed to execute script ‘main’ due to unhandled exception!

[2025-08-25 09:56:13.022] [debug] [mapillary:tools] 2025-08-25 09:56:13,006 - DEBUG - HTTP 400 (Bad Request): {“debug_info”: {“retriable”: false, “type”: “StorageWriteFailedError”, “message”: “Failed to write to storage”}}

[2025-08-25 09:56:13.084] [debug] [mapillary:tools] Traceback (most recent call last):
File “mapillary_tools\upload.py”, line 568, in upload

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] mapillary_tools.upload.UploadError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}

[2025-08-25 09:56:13.100] [debug] [mapillary:tools]
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “main.py”, line 8, in

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] File “mapillary_tools\commands_main_.py”, line 164, in main
File “mapillary_tools\commands\upload.py”, line 50, in run

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] File “mapillary_tools\upload.py”, line 651, in upload

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] File “mapillary_tools\upload.py”, line 563, in upload

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 163, in upload_images

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 219, in upload_stream

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 425, in _upload_stream
File “mapillary_tools\uploader.py”, line 398, in _upload_stream

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] File “mapillary_tools\upload_api_v4.py”, line 89, in upload

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] File “mapillary_tools\upload_api_v4.py”, line 151, in upload_chunks

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] RuntimeError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}

[2025-08-25 09:56:13.100] [debug] [mapillary:tools] [876] Failed to execute scri
[2025-08-25 09:56:13.100] [debug] [mapillary:tools] pt ‘main’ due to unhandled exce
[2025-08-25 09:56:13.115] [debug] [mapillary:tools] ption!

[2025-08-25 11:47:52.645] [debug] [mapillary:tools] 2025-08-25 11:47:52,645 - DEBUG - HTTP 400 (Bad Request): {“debug_info”: {“retriable”: false, “type”: “StorageWriteFailedError”, “message”: “Failed to write to storage”}}

[2025-08-25 11:47:52.723] [debug] [mapillary:tools] Traceback (most recent call last):
File “mapillary_tools\upload.py”, line 568, in upload

[2025-08-25 11:47:52.723] [debug] [mapillary:tools] mapillary_tools.upload.UploadError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}

[2025-08-25 11:47:52.723] [debug] [mapillary:tools] During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “main.py”, line 8, in

[2025-08-25 11:47:52.723] [debug] [mapillary:tools] File “mapillary_tools\commands_main_.py”, line 164, in main
File “mapillary_tools\commands\upload.py”, line 50, in run

[2025-08-25 11:47:52.723] [debug] [mapillary:tools] File “mapillary_tools\upload.py”, line 651, in upload
File “mapillary_tools\upload.py”, line 563, in upload

[2025-08-25 11:47:52.723] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 163, in upload_images
File “mapillary_tools\uploader.py”, line 219, in upload_stream
File “mapillary_tools\uploader.py”, line 425, in _upload_stream

[2025-08-25 11:47:52.723] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 398, in _upload_stream
File “mapillary_tools\upload_api_v4.py”, line 89, in upload

[2025-08-25 11:47:52.739] [debug] [mapillary:tools] File “mapillary_tools\upload_api_v4.py”, line 151, in upload_chunks
RuntimeError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}
[7960] Failed to execute script ‘main’ due to unhandled exception!

[2025-08-26 08:27:03.353] [debug] [mapillary:tools] 2025-08-26 08:27:03,353 - DEBUG - HTTP 400 (Bad Request): {“debug_info”: {“retriable”: false, “type”: “StorageWriteFailedError”, “message”: “Failed to write to storage”}}

[2025-08-26 08:27:03.431] [debug] [mapillary:tools] Traceback (most recent call last):
File “mapillary_tools\upload.py”, line 568, in upload

[2025-08-26 08:27:03.431] [debug] [mapillary:tools] mapillary_tools.upload.UploadError:
[2025-08-26 08:27:03.431] [debug] [mapillary:tools] Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “main.py”, line 8, in

[2025-08-26 08:27:03.431] [debug] [mapillary:tools] File “mapillary_tools\commands_main_.py”, line 164, in main
File “mapillary_tools\commands\upload.py”, line 50, in run

[2025-08-26 08:27:03.431] [debug] [mapillary:tools] File “mapillary_tools\upload.py”, line 651, in upload

[2025-08-26 08:27:03.431] [debug] [mapillary:tools] File “mapillary_tools\upload.py”, line 563, in upload

[2025-08-26 08:27:03.447] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 163, in upload_images

[2025-08-26 08:27:03.447] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 219, in upload_stream
File “mapillary_tools\uploader.py”, line 425, in _upload_stream

[2025-08-26 08:27:03.447] [debug] [mapillary:tools] File “mapillary_tools\uploader.py”, line 398, in _upload_stream

[2025-08-26 08:27:03.447] [debug] [mapillary:tools] File “mapillary_tools\upload_api_v4.py”, line 89, in upload

[2025-08-26 08:27:03.447] [debug] [mapillary:tools] File “mapillary_tools\upload_api_v4.py”, line 151, in upload_chunks

[2025-08-26 08:27:03.447] [debug] [mapillary:tools] RuntimeError: Upload server error: File handle not found in the upload response {“debug_info”:{“retriable”:false,“type”:“StorageWriteFailedError”,“message”:“Failed to write to storage”}}
[8104] Failed to execute script ‘main’ due to unhandled except
[2025-08-26 08:27:03.447] [debug] [mapillary:tools] ion!

Thanks @czecko and sorry about the inconvenience. The team is working to release a new version of Desktop Uploader that will solve all the issues reported here.

1 Like