My Oracle Support Banner

Upload to Object Storage Failed to establish a new connection: [Errno -2] Name or service not known (Doc ID 2790494.1)

Last updated on JULY 16, 2021

Applies to:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Goal

In this example, we used 'objectstorage.us-ashburn-1.oraclecloud.com' as example.

 

Uploading data from on-prem server to object storage, using OCI CLI, fails with the following error:

# oci os object bulk-upload -bn BUC_DMP_PREP --src-dir /migrar_oci/prueba_carpeta02/ --parallel-upload-count 100 --namespace idhvlgrsoimd
  DeprecationWarning,{
  "skipped-objects": [],
  "upload-failures": {
  "dummy_prueba_01.txt": "HTTPSConnectionPool(host='objectstorage.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /n/idhvlgrsoimd/b/BUC_DMP_PREP/o/dummy_prueba_01.txt (Caused by NewConnectionError('<oci._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fccac0aa750>: Failed to establish a new connection: [Errno -2] Name or service not known',))",
  "dummy_prueba_02.txt": "HTTPSConnectionPool(host='objectstorage.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /n/idhvlgrsoimd/b/BUC_DMP_PREP/o/dummy_prueba_02.txt (Caused by NewConnectionError('<oci._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fccac087750>: Failed to establish a new connection: [Errno -2] Name or service not known',))",
  "dummy_prueba_03.txt": "HTTPSConnectionPool(host='objectstorage.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /n/idhvlgrsoimd/b/BUC_DMP_PREP/o/dummy_prueba_03.txt (Caused by NewConnectionError('<oci._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fccac0aa0d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))",
  "dummy_prueba_04.txt": "HTTPSConnectionPool(host='objectstorage.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /n/idhvlgrsoimd/b/BUC_DMP_PREP/o/dummy_prueba_04.txt (Caused by NewConnectionError('<oci._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fccac0aa6d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))",
  "dummy_prueba_05.txt": "HTTPSConnectionPool(host='objectstorage.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /n/idhvlgrsoimd/b/BUC_DMP_PREP/o/dummy_prueba_05.txt (Caused by NewConnectionError('<oci._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fccac03d190>: Failed to establish a new connection: [Errno -2] Name or service not known',))",
  "dummy_prueba_06.txt": "HTTPSConnectionPool(host='objectstorage.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /n/idhvlgrsoimd/b/BUC_DMP_PREP/o/dummy_prueba_06.txt (Caused by NewConnectionError('<oci._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fccac087a10>: Failed to establish a new connection: [Errno -2] Name or service not known',))"
  },
  "uploaded-objects": {}
}
#

Ping to the objectstorage location also fails:

# ping objectstorage.us-ashburn-1.oraclecloud.com
ping: objectstorage.us-ashburn-1.oraclecloud.com: Name or service not known

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.