adk-samples icon indicating copy to clipboard operation
adk-samples copied to clipboard

Data Science Agent Deployment in Vertex AI Agent Engine Timing out

Open palanisamyganeshkumar opened this issue 1 year ago • 2 comments

I have followed all the required steps for the project setup and others on GitHub. Still, it got timed out.

Complete stacktrace below:

(data-science-py3.12) @ deployment % python3 deploy.py --create No CODE_INTERPRETER_ID found in the environment. Create a new one. Creating Extension Create Extension backing LRO: projects//locations/us-central1/extensions/3086054261260288000/operations/9011300811069718528 Extension created. Resource name: projects//locations/us-central1/extensions/3086054261260288000 To use this Extension in another session: extension = vertexai.preview.extensions.Extension('projects//locations/us-central1/extensions/3086054261260288000') I0522 21:59:28.138790 *********** deploy.py:203] Using PROJECT: ********** I0522 21:59:28.139163 *********** deploy.py:204] Using LOCATION: us-central1 I0522 21:59:28.139213 *********** deploy.py:205] Using BUCKET NAME: -adk-staging I0522 21:59:28.603914 *********** deploy.py:72] Staging bucket gs://-adk-staging not found. Creating... I0522 21:59:29.196656 *********** deploy.py:79] Successfully created staging bucket gs://-adk-staging in us-central1. I0522 21:59:29.291332 *********** deploy.py:89] Enabled uniform bucket-level access for gs://-adk-staging. I0522 21:59:29.291934 *********** deploy.py:137] Using agent wheel file: data_science-0.1-py3-none-any.whl Identified the following requirements: {'pydantic': '2.11.5', 'google-cloud-aiplatform': '1.94.0', 'cloudpickle': '3.1.1'} I0522 21:59:29.302953 *********** _utils.py:369] Identified the following requirements: {'pydantic': '2.11.5', 'google-cloud-aiplatform': '1.94.0', 'cloudpickle': '3.1.1'} The following requirements are missing: {'pydantic', 'google-cloud-aiplatform', 'cloudpickle'} W0522 21:59:29.319015 *********** _utils.py:376] The following requirements are missing: {'pydantic', 'google-cloud-aiplatform', 'cloudpickle'} The following requirements are appended: {'pydantic==2.11.5', 'cloudpickle==3.1.1'} I0522 21:59:29.319086 *********** _utils.py:383] The following requirements are appended: {'pydantic==2.11.5', 'cloudpickle==3.1.1'} The final list of requirements: ['data_science-0.1-py3-none-any.whl', 'pydantic==2.11.5', 'cloudpickle==3.1.1'] I0522 21:59:29.319126 *********** _agent_engines.py:895] The final list of requirements: ['data_science-0.1-py3-none-any.whl', 'pydantic==2.11.5', 'cloudpickle==3.1.1'] Using bucket -adk-staging I0522 21:59:29.549698 *********** _agent_engines.py:919] Using bucket -adk-staging Wrote to gs://-adk-staging/agent_engine/agent_engine.pkl I0522 21:59:29.833471 *********** _agent_engines.py:950] Wrote to gs://-adk-staging/agent_engine/agent_engine.pkl Writing to gs://-adk-staging/agent_engine/requirements.txt I0522 21:59:29.946532 *********** _agent_engines.py:963] Writing to gs://-adk-staging/agent_engine/requirements.txt Creating in-memory tarfile of extra_packages I0522 21:59:29.946811 *********** _agent_engines.py:973] Creating in-memory tarfile of extra_packages Writing to gs://-adk-staging/agent_engine/dependencies.tar.gz I0522 21:59:30.239923 *********** _agent_engines.py:982] Writing to gs://-adk-staging/agent_engine/dependencies.tar.gz Creating AgentEngine I0522 21:59:30.569581 *********** base.py:85] Creating AgentEngine Create AgentEngine backing LRO: projects//locations/us-central1/reasoningEngines/2303072239911698432/operations/2556516645140955136 I0522 21:59:30.569875 *********** base.py:88] Create AgentEngine backing LRO: projects//locations/us-central1/reasoningEngines/2303072239911698432/operations/2556516645140955136 View progress and logs at https://console.cloud.google.com/logs/query?project= I0522 21:59:30.569999 *********** _agent_engines.py:525] View progress and logs at https://console.cloud.google.com/logs/query?project=*********** n unexpected error occurred: Operation did not complete within the designated timeout of 900 seconds. E0522 22:14:30.647367 8230850368 deploy.py:271] Unhandled exception in main: Traceback (most recent call last): File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/google/api_core/retry/retry_unary.py", line 144, in retry_target result = target() ^^^^^^^^ File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/google/api_core/future/polling.py", line 120, in _done_or_raise raise _OperationNotComplete() google.api_core.future.polling._OperationNotComplete

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/google/api_core/future/polling.py", line 137, in _blocking_poll polling(self._done_or_raise)(retry=retry) File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/google/api_core/retry/retry_unary.py", line 293, in retry_wrapped_func return retry_target( ^^^^^^^^^^^^^ File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/google/api_core/retry/retry_unary.py", line 153, in retry_target _retry_error_helper( File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/google/api_core/retry/retry_base.py", line 221, in _retry_error_helper raise final_exc from source_exc google.api_core.exceptions.RetryError: Timeout of 900.0s exceeded, last exception:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/ganesh.palanisamy/Reltio/Learning/agents/adk/adk-samples-main4/python/agents/data-science/deployment/deploy.py", line 252, in main create(env_vars) File "/Users/ganesh.palanisamy/Reltio/Learning/agents/adk/adk-samples-main4/python/agents/data-science/deployment/deploy.py", line 139, in create remote_agent = agent_engines.create( ^^^^^^^^^^^^^^^^^^^^^ File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/vertexai/agent_engines/init.py", line 147, in create return AgentEngine.create( ^^^^^^^^^^^^^^^^^^^ File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/vertexai/agent_engines/_agent_engines.py", line 528, in create created_resource = operation_future.result() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/google/api_core/future/polling.py", line 256, in result self._blocking_poll(timeout=timeout, retry=retry, polling=polling) File "/Users/ganesh.palanisamy/Library/Caches/pypoetry/virtualenvs/data-science-MOCsyoT2-py3.12/lib/python3.12/site-packages/google/api_core/future/polling.py", line 139, in _blocking_poll raise concurrent.futures.TimeoutError( TimeoutError: Operation did not complete within the designated timeout of 900 seconds.

Let me know what should be done to fix this error. Thanks

palanisamyganeshkumar avatar May 23 '25 03:05 palanisamyganeshkumar

@palanisamyganeshkumar we recently made some updates to the deployment. Can you test again with the latest version and let us know if the issue persists? Thank you!

5Y5TEM avatar Jun 09 '25 15:06 5Y5TEM

Closing this as stale; please re-open if it's still occurring.

mstyer-google avatar Jul 29 '25 15:07 mstyer-google