a
Hi
t
Thanks for reaching out, dhananjay. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you out! Could you please share a bit more about your question or the issue you're experiencing? I'm here to support you every step of the way.
a
can help on this getting error while deploy agent from gcp ubuntu vm 2025-09-21 132657,766 - chatbot - ERROR - ❌ Failed to initialize storage client: Failed to retrieve http://metadata.google.internal/computeMetadata/v1/universe/universe-domain from the Google Compute Engine metadata service. Compute Engine Metadata server unavailable due to HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/universe/universe-domain (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f32c1415270>, 'Connection to metadata.google.internal timed out. (connect timeout=3)')) Traceback (most recent call last): File "/home/appuser/.local/bin/alembic", line 7, in <module> sys.exit(main()) File "/home/appuser/.local/lib/python3.10/site-packages/alembic/config.py", line 1016, in main CommandLine(prog=prog).main(argv=argv) File "/home/appuser/.local/lib/python3.10/site-packages/alembic/config.py", line 1006, in main self.run_cmd(cfg, options) File "/home/appuser/.local/lib/python3.10/site-packages/alembic/config.py", line 940, in run_cmd fn( File "/home/appuser/.local/lib/python3.10/site-packages/alembic/command.py", line 483, in upgrade script.run_env() File "/home/appuser/.local/lib/python3.10/site-packages/alembic/script/base.py", line 549, in run_env util.load_python_file(self.dir, "env.py") File "/home/appuser/.local/lib/python3.10/site-packages/alembic/util/pyfiles.py", line 116, in load_python_file module = load_module_py(module_id, path) File "/home/appuser/.local/lib/python3.10/site-packages/alembic/util/pyfiles.py", line 136, in load_module_py spec.loader.exec_module(module) # type: ignore File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/app/src/alembic/env.py", line 8, in <module> from business.chat.models import Conversation, Message File "/app/./src/business/chat/__init__.py", line 1, in <module> from .routes import router File "/app/./src/business/chat/routes.py", line 15, in <module> from business.chat.models import Conversation File "/app/./src/business/chat/models.py", line 10, in <module> from business.user.models import User File "/app/./src/business/user/__init__.py", line 2, in <module> from .routes import router File "/app/./src/business/user/routes.py", line 14, in <module> from core.storage import storage_service File "/app/./src/core/storage.py", line 428, in <module> storage_service = StorageService() File "/app/./src/core/storage.py", line 33, in init self.client = self._initialize_client() File "/app/./src/core/storage.py", line 68, in _initialize_client client = storage.Client( File "/home/appuser/.local/lib/python3.10/site-packages/google/cloud/storage/client.py", line 237, in init if self._credentials.universe_domain != self.universe_domain: File "/home/appuser/.local/lib/python3.10/site-packages/google/auth/compute_engine/credentials.py", line 155, in universe_domain self._universe_domain = _metadata.get_universe_domain( File "/home/appuser/.local/lib/python3.10/site-packages/google/auth/compute_engine/_metadata.py", line 308, in get_universe_domain universe_domain = get( File "/home/appuser/.local/lib/python3.10/site-packages/google/auth/compute_engine/_metadata.py", line 239, in get raise exceptions.TransportError( google.auth.exceptions.TransportError: Failed to retrieve http://metadata.google.internal/computeMetadata/v1/universe/universe-domain from the Google Compute Engine metadata service. Compute Engine Metadata server unavailable due to HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/universe/universe-domain (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f32c1415270>, 'Connection to metadata.google.internal timed out. (connect timeout=3)'))
t
I'm sorry to hear you're running into this error. It points to a hiccup with the Google Compute Engine metadata service, which is really important for delivering configuration and authentication info to your VM instances. Sometimes, this happens because of network settings, firewall rules, or permissions tied to your service account. Let's try a few things together: • Make sure your VM can access the metadata server endpoint (
metadata.google.internal
) over the network. • Double-check if any firewall rules might be blocking access to the metadata server. • Confirm that the service account linked to your VM has the right permissions. • If you're using cloud-init scripts, ensure the networking is fully up and running before these scripts execute. You can always reconnect via SSH and manually re-run cloud-init if needed. If you try these steps and still face issues, please don’t hesitate to reach out. I’m here to help and can guide you through some additional options or resources. Sources: Deploy to a VM | LiveKit Docs
a
File "/home/appuser/.local/lib/python3.10/site-packages/google/auth/compute_engine/_metadata.py", line 239, in get raise exceptions.TransportError( google.auth.exceptions.TransportError: Failed to retrieve http://metadata.google.internal/computeMetadata/v1/universe/universe-domain from the Google Compute Engine metadata service. Compute Engine Metadata server unavailable due to HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/universe/universe-domain (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f7a87711270>, 'Connection to metadata.google.internal timed out. (connect timeout=3)'))
t
Thanks for reaching out! To better assist you, could you please let me know if this error is happening within a LiveKit service or agent deployment, or if it’s related to a wider GCP setup? Also, are there any network settings like VPC, private Google access, or other configurations in your environment that might be impacting the connection to the metadata server? I’m here to help you get this sorted out! Sources: plugins/google/src/llm.ts | livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime...