Skip to content
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

SSLError The write operation timed out #296

Open
alifazeli opened this issue Apr 13, 2019 · 0 comments
Open

SSLError The write operation timed out #296

alifazeli opened this issue Apr 13, 2019 · 0 comments

Comments

@alifazeli
Copy link

alifazeli commented Apr 13, 2019

Hi
After number of uploads (less than 300) when i use --spreadsheet upload i get this massage and i should perform command again everytime.
i use
./ia upload --spreadsheet=uploading-d4.csv --retries=100 --sleep=100 --checksum

File "/home/archive/ia/.bootstrap/_pex/pex.py", line 468, in execute_entry
File "/home/archive/ia/.bootstrap/_pex/pex.py", line 486, in execute_pkg_resources
File "/root/.pex/install/internetarchive-1.8.1-py2.py3-none-any.whl.d81b82447552eee4d27268dc3c5680c518b77fe4/internetarchive-1.8.1-py2.py3-none-any.whl/internetarchive/cli/ia.py", line 159, in main
sys.exit(ia_module.main(argv, session))
File "/root/.pex/install/internetarchive-1.8.1-py2.py3-none-any.whl.d81b82447552eee4d27268dc3c5680c518b77fe4/internetarchive-1.8.1-py2.py3-none-any.whl/internetarchive/cli/ia_upload.py", line 252, in main
session)
File "/root/.pex/install/internetarchive-1.8.1-py2.py3-none-any.whl.d81b82447552eee4d27268dc3c5680c518b77fe4/internetarchive-1.8.1-py2.py3-none-any.whl/internetarchive/cli/ia_upload.py", line 86, in _upload_files
response = item.upload(files, **upload_kwargs)
File "/root/.pex/install/internetarchive-1.8.1-py2.py3-none-any.whl.d81b82447552eee4d27268dc3c5680c518b77fe4/internetarchive-1.8.1-py2.py3-none-any.whl/internetarchive/item.py", line 860, in upload
request_kwargs=request_kwargs)
File "/root/.pex/install/internetarchive-1.8.1-py2.py3-none-any.whl.d81b82447552eee4d27268dc3c5680c518b77fe4/internetarchive-1.8.1-py2.py3-none-any.whl/internetarchive/item.py", line 710, in upload_file
**request_kwargs)
File "/root/.pex/install/internetarchive-1.8.1-py2.py3-none-any.whl.d81b82447552eee4d27268dc3c5680c518b77fe4/internetarchive-1.8.1-py2.py3-none-any.whl/internetarchive/session.py", line 370, in send
r = super(ArchiveSession, self).send(request, **kwargs)
File "/root/.pex/install/requests-2.19.1-py2.py3-none-any.whl.9c19d1f49965483c8e82326b964ec1050dff6851/requests-2.19.1-py2.py3-none-any.whl/requests/sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "/root/.pex/install/requests-2.19.1-py2.py3-none-any.whl.9c19d1f49965483c8e82326b964ec1050dff6851/requests-2.19.1-py2.py3-none-any.whl/requests/adapters.py", line 511, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='s3.us.archive.org', port=443): Max retries exceeded with url: /ktp2019-bk3423/ktp2019-bk3423.pdf (Caused by SSLError(SSLError('The write operation timed out',),))
uploading ktp2019-bk3423.pdf: [################################] 3/7 - 00:02:01

its possible that its because of my internet connection. so is it possible to set proxy ai ?
and is it possible to set sleep between retries 2 hours for example? or any other solution?

thank you for support

my csv file attached

uploading-d4.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant