upload-scripts icon indicating copy to clipboard operation
upload-scripts copied to clipboard

Upload script stuck

Open golserma opened this issue 5 years ago • 3 comments

I get this error messages. Restart the script in order to finish you upload for this sequence. On the website the sequence is still tagged as uploading. The upload has finished some time ago and the status does not get updated.

golserma avatar Jul 16 '20 08:07 golserma

Indeed the uploading speed has dropped It was pretty fast up to 2020/07/10, but since 2020/07/11 it has dropped by 6 times, and it doesn't matter how many threads or servers I use I can't get it moving faster than a snail's pace. @chip-grab is everything all right there?

Sometimes I see errors like:

{"status":{"apiCode":400,"apiMessage":"An exception occurred while executing \u0027UPDATE osv_photos SET `auto_img_processing_status` = ? WHERE id = ?\u0027 with params [\u0022PROCESSING\u0022, \u0022979942370\u0022]:\n\nSQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction","httpCode":400,"httpMessage":"Bad Request"}}

or:

{"status":{"apiCode":400,"apiMessage":"Fail:\nCode: 503\nValue: The server is busy.\ndetails (if any): \ufeff\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EServerBusy\u003C\/Code\u003E\u003CMessage\u003EThe server is busy.\nRequestId:8b452418-d01e-0121-2ff1-5a15f2000000\nTime:2020-07-15T21:45:17.9234321Z\u003C\/Message\u003E\u003C\/Error\u003E.","httpCode":400,"httpMessage":"Bad Request"}}

or:

{"status":{"apiCode":400,"apiMessage":"Fail:\nCode: 500\nValue: Operation could not be completed within the specified time.\ndetails (if any): \ufeff\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EOperationTimedOut\u003C\/Code\u003E\u003CMessage\u003EOperation could not be completed within the specified time.\nRequestId:5adb14bd-601e-0133-37cc-5721ee000000\nTime:2020-07-11T21:44:20.9404491Z\u003C\/Message\u003E\u003C\/Error\u003E.","httpCode":400,"httpMessage":"Bad Request"}}

It also takes 20-40 seconds to create a new sequence.

SviMik avatar Jul 16 '20 09:07 SviMik

see @jose1711 's issue on openstreetcam/upload-scripts#101

ghost avatar Aug 05 '20 16:08 ghost

I hab same problem and fixed it by switching in osc_api_config.py from https to http.

moenk avatar Jan 18 '21 12:01 moenk