I am using InitiateFileTransferToGuest and then requests.put to upload a 1.6 GB file to a Linux VM on an ESXi server. This fails sporadically (about in 1-2% of all tries) with the following error:
urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:2423)
Further details:
Traceback (most recent call last):
File "C:\Users\mhahn\AppData\Roaming\Python\Python311\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\mhahn\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 844, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\mhahn\AppData\Roaming\Python\Python311\site-packages\urllib3\util\retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='172.20.200.49', port=443): Max retries exceeded with url: /guestFile?id=2019&token=52be17e0-073c-a6a5-b28f-c6e064a411062019 (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2423)')))
Reproduction steps
Start Linux (Ubuntu 20.04) VM on ESXi (8.0.1) server.
Describe the bug
I am using InitiateFileTransferToGuest and then requests.put to upload a 1.6 GB file to a Linux VM on an ESXi server. This fails sporadically (about in 1-2% of all tries) with the following error:
urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:2423)
Further details:
Reproduction steps
Expected behavior
upload_bytes should never fail.
Additional context
I am not sure if this is an ESXi, pyVmomi, requests or user code issue. It could also be a timing issue or temporary nonavailability of the target VM.