-
Notifications
You must be signed in to change notification settings - Fork 332
Open
Description
Facing issue while uploading the file to GCS from Google Cloud Compute - from Linux VM.
We are using gcloud gsutil cp "FILE_NAME" "${GCS_BUCKET}/${GCS_OBJECT}" .
It works from the compute to push in the shell session.
But when we are calling this from multiple shell sesssions (Example A-Script is calling B-Script and B-Script is calling C-Script and C-Script has the code to push it to GCS and , it is unable to push the files to GCS and giving error.
File "/usr/lib64/google-cloud-sdk/platform/gsutil/third_party/httplib2/python3/httplib2/__init__.py", line 1343, in _conn_request
conn.connect()
File "/usr/lib64/google-cloud-sdk/platform/gsutil/third_party/httplib2/python3/httplib2/__init__.py", line 1119, in connect
address_info = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM)
File "/usr/lib64/google-cloud-sdk/platform/bundledpythonunix/lib/python3.11/socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/google-cloud-sdk/platform/gsutil/gsutil", line 21, in <module>
gsutil.RunMain()
...
"/usr/lib64/google-cloud-sdk/platform/gsutil/third_party/httplib2/python3/httplib2/init.py", line 1350, in _conn_request 2025-09-25 10:37:23 raise ServerNotFoundError("Unable to find the server at %s" % conn.host) 2025-09-25 10:37:23 httplib2.error.ServerNotFoundError: Unable to find the server at storage.googleapis.coma</module>
GSUTIL is not configured properply in the cloud.
However gcloud auth list work properly. in the same C-Script (3 rd hierarchy shell)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels