More for interest. Looks like I’ll have to put an error/restart wrapper around this;
Scratch install/upgrade virtual environment just last night
Does maybe 10-20 BlackVue movie uploads and dies. Restarting works and continues
send_videos_for_processing --advanced --video_import_path /home/username/Thing/Mapillary/$1 --user_name username
Preparing video 20200713_163132_NF.mp4 for upload
Uploading…
Traceback (most recent call last):
File “/home/username/Thing/Mapillary/code8/.env/bin/mapillary_tools”, line 76, in
command.run(args)
File “/home/username/Thing/Mapillary/code8/.env/local/lib/python2.7/site-packages/mapillary_tools/commands/send_videos_for_processing.py”, line 47, in run
**({k: v for k, v in vars_args.iteritems() if k in inspect.getargspec(send_videos_for_processing).args}))
File “/home/username/Thing/Mapillary/code8/.env/local/lib/python2.7/site-packages/mapillary_tools/uploader.py”, line 1084, in send_videos_for_processing
upload_video(video, metadata, options)
File “/home/username/Thing/Mapillary/code8/.env/local/lib/python2.7/site-packages/mapillary_tools/uploader.py”, line 1102, in upload_video
response = upload_api.upload_file(session, video, file_key)
File “/home/username/Thing/Mapillary/code8/.env/local/lib/python2.7/site-packages/mapillary_tools/upload_api.py”, line 36, in upload_file
resp = requests.post(session[‘url’], data=data, files=files)
File “/home/username/Thing/Mapillary/code8/.env/local/lib/python2.7/site-packages/requests/api.py”, line 116, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/home/username/Thing/Mapillary/code8/.env/local/lib/python2.7/site-packages/requests/api.py”, line 60, in request
return session.request(method=method, url=url, **kwargs)
File “/home/username/Thing/Mapillary/code8/.env/local/lib/python2.7/site-packages/requests/sessions.py”, line 524, in request
resp = self.send(prep, **send_kwargs)
File “/home/username/Thing/Mapillary/code8/.env/local/lib/python2.7/site-packages/requests/sessions.py”, line 637, in send
r = adapter.send(request, **kwargs)
File “/home/username/Thing/Mapillary/code8/.env/local/lib/python2.7/site-packages/requests/adapters.py”, line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, error(104, ‘Connection reset by peer’))