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
socket.error: [Errno 104] Connection reset by peer #111
Comments
Same for me, sometimes it's appens. https://github.com/ManuCart/RaspberryPi/blob/master/scripts/youtube-upload |
doesnt really help when you only have 16k internet speed (100kbit/s Upload) |
Please try with |
ok i will try this when im back home, |
I use my Diskstation with this script, DonnerPlays and ManuCart too? Same with chunksize=-1: My upload.sh: #!/usr/bin/python cd /volume1/photo/youtube-upload-master youtube-upload --title="01" --description="PLAYLIST" --category=Gaming --tags="Lets Play,letsplay,Review,Walkthrough,German,Deutsch,Gameplay,Kommentiertes Spiel" --default-language="de" --default-audio-language="de" /volume1/photo/youtube/mp4/01.mp4 My log: Using client secrets: /usr/share/youtube_upload/client_secrets.json |
Ok i have uploaded 4 Videos since the problem, now im getting the error again, i had changed the chunksize=-1 |
Try https://github.com/tokland/youtube-upload/tree/more-retry-exceptions , let's see if retrying solves the problem |
wait... what should i do with the link? |
checkout the code from that branch and try it. |
ok im dumb... will try it :) |
ok what i did was: i redownloaded the script and done [sudo python setup.py install] again, is that correct? |
yes |
Ok :D will try over the time and will tell you if it worked |
No feedback |
Hi there. Do you have any idea if that might be the problem or I should try the alternate branch you suggested earlier, before messing up with my network config? Thanks |
@roughnecks did you try the https://github.com/tokland/youtube-upload/tree/more-retry-exceptions branch? (706207b) |
As I said in the previous post, haven't tried it yet, was asking for your advice on how to continue. I can do some tests but I'm not a youtube enthusiast, so it will probably take me some time. Feel free to close this thread again, if you feel like it. |
Sorry, didn't see it. Yes, I'd first test the commit from that branch and if this does not work, I'd play with different values of |
Alright, thanks 👍 |
It's me again, last night I left a video uploading (using the git branch you adviced) and today I found out it had crashed again:
|
Are you sure that you are using the branch version? an exception raised here it's a signal that it was an unretriable exception, but, in that branch, |
My bad. You're right: when I cloned the repo, I went to the desired branch in github and copied the link but it cloned the master one, not sure if I did it wrong or it's just supposed to work this way. Now I manually switched branch in terminal, will upload the same video shortly. Sorry |
Alright, this time it went through just fine :-) Excuse me, but is there an option to not publish videos when the upload is done? I saw a "delayed publication" option but I'd rather do it myself, because sometimes I need to edit my videos. Thanks |
Ok, thanks for testing, I'll merge it to master then.
See the option:
|
So, i just set it to some days in the future and publish it myself manually when I'm done? |
tbh it was a contribution and i've never used that option, but my understanding is that youtube will take care of publishing the video when the time arrives. |
I read about that, yes, but my wish is to NOT publish at all. I need to edit vids before they are published and notifications sent to subscribers. |
Oh, I see. What about uploading the video as private and, once reviewed, set it to public? --privacy=STRING Privacy status (public | unlisted | private) |
Yes, that would do (not sure if notifications will be sent when I set it to public or upon publishing as private, but it's OK). You can close this issue whenever you want. Thanks again for helping me out and for your nice project. |
Never tried it myself, but it should The issue was already closed some weeks ago, I forgot to re-open it :) Good luck |
100% |###############################################| Time: 0:15:49 987.0 KiB/s
Traceback (most recent call last):
File "/usr/local/bin/youtube-upload", line 10, in
main.run()
File "/usr/local/lib/python2.7/dist-packages/youtube_upload/main.py", line 251, in run
sys.exit(lib.catch_exceptions(EXIT_CODES, main, sys.argv[1:]))
File "/usr/local/lib/python2.7/dist-packages/youtube_upload/lib.py", line 39, in catch_exceptions
fun(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/youtube_upload/main.py", line 246, in main
run_main(parser, options, args)
File "/usr/local/lib/python2.7/dist-packages/youtube_upload/main.py", line 178, in run_main
video_id = upload_youtube_video(youtube, options, video_path, len(args), index)
File "/usr/local/lib/python2.7/dist-packages/youtube_upload/main.py", line 140, in upload_youtube_video
request_body, progress_callback=progress.callback)
File "/usr/local/lib/python2.7/dist-packages/youtube_upload/upload_video.py", line 40, in upload
RETRIABLE_EXCEPTIONS, max_retries=max_retries)
File "/usr/local/lib/python2.7/dist-packages/youtube_upload/lib.py", line 75, in retriable_exceptions
raise exc
socket.error: [Errno 104] Connection reset by peer
Uploading from Raspberry pi over the night after looking if its finished this error appierd
The text was updated successfully, but these errors were encountered: