You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing an issue while running agent0ai/agent-zero:latest via Docker. The agent crashes before executing any command, during the memory initialization phase.
The error occurs even when running a simple command like:
Error:
Traceback (most recent call last):
Traceback (most recent call last):
File "/a0/python/extensions/monologue_end/_50_memorize_fragments.py", line 39, in memorize
db = await Memory.get(self.agent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/[a0](http://localhost:50001/#)/[python](http://localhost:50001/#)/helpers/memory.py", line 71, in get
db, created = Memory.initialize(
^^^^^^^^^^^^^^^^^^
File "/a0/python/helpers/memory.py", line 204, in initialize
index = faiss.IndexFlatIP(len(embedder.embed_query("example")))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv-a0/lib/python3.12/site-packages/langchain/embeddings/cache.py", line 194, in embed_query
return self.underlying_embeddings.embed_query(text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/a0/models.py", line 700, in embed_query
resp = embedding(model=self.model_name, input=[text], **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv-a0/lib/python3.12/site-packages/litellm/utils.py", line 1377, in wrapper
raise e
File "/opt/venv-a0/lib/python3.12/site-packages/litellm/utils.py", line 1246, in wrapper
result = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv-a0/lib/python3.12/site-packages/litellm/main.py", line 4847, in embedding
raise exception_type(
File "/opt/venv-a0/lib/python3.12/site-packages/litellm/main.py", line 4824, in embedding
raise LiteLLMUnknownProvider(
litellm.exceptions.LiteLLMUnknownProvider: litellm.BadRequestError: Unmapped LLM provider for this endpoint. You passed model=claude-sonnet-4.6, custom_llm_provider=anthropic. Check supported provider and route: https://docs.litellm.ai/docs/providers
volume_up
content_copy
Traceback (most recent call last): Traceback (most recent...
Traceback (most recent call last):
Traceback (most recent call last):
File "/a0/agent.py", line 390, in monologue
await self.call_[extensions](http://localhost:50001/#)("monologue_start", loop_data=self.loop_data)
File "/a0/agent.py", line 1009, in call_extensions
return await call_extensions(
^^^^^^^^^^^^^^^^^^^^^^
File "/a0/python/helpers/extension.py", line 48, in call_extensions
await cls(agent=agent).execute(**kwargs)
File "/a0/python/extensions/monologue_start/_10_memory_init.py", line 10, in execute
db = await memory.Memory.get(self.agent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/a0/python/helpers/memory.py", line 71, in get
db, created = Memory.initialize(
^^^^^^^^^^^^^^^^^^
File "/a0/python/helpers/memory.py", line 204, in initialize
index = faiss.IndexFlatIP(len(embedder.embed_query("example")))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv-a0/lib/python3.12/site-packages/langchain/embeddings/cache.py", line 194, in embed_query
return self.underlying_embeddings.embed_query(text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/a0/models.py", line 700, in embed_query
resp = embedding(model=self.model_name, input=[text], **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv-a0/lib/python3.12/site-packages/litellm/utils.py", line 1377, in wrapper
raise e
File "/opt/venv-a0/lib/python3.12/site-packages/litellm/utils.py", line 1246, in wrapper
result = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv-a0/lib/python3.12/site-packages/litellm/main.py", line 4847, in embedding
raise exception_type(
File "/opt/venv-a0/lib/python3.12/site-packages/litellm/main.py", line 4824, in embedding
raise LiteLLMUnknownProvider(
litellm.exceptions.LiteLLMUnknownProvider: litellm.BadRequestError: Unmapped LLM provider for this endpoint. You passed model=claude-sonnet-4.6, custom_llm_provider=anthropic. Check supported provider and route: https://docs.litellm.ai/docs/providers
Show more
open_in_full
content_copy
Traceback (most recent call last):
Traceback (most recent call last):
File "/a0/python/extensions/[monologue_end](http://localhost:50001/#)/_51_memorize_solutions.py", line 37, in memorize
db = await Memory.get(self.agent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/[a0](http://localhost:50001/#)/[python](http://localhost:50001/#)/[helpers](http://localhost:50001/#)/[memory.py](http://localhost:50001/#)", line 71, in get
db, created = Memory.initialize(
^^^^^^^^^^^^^^^^^^
File "/[a0](http://localhost:50001/#)/[python](http://localhost:50001/#)/[helpers](http://localhost:50001/#)/[memory.py](http://localhost:50001/#)", line 204, in initialize
index = faiss.IndexFlatIP(len(embedder.embed_query("example")))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/[opt](http://localhost:50001/#)/[venv-a0](http://localhost:50001/#)/[lib](http://localhost:50001/#)/[python3.12](http://localhost:50001/#)/[site-packages](http://localhost:50001/#)/[langchain](http://localhost:50001/#)/[embeddings](http://localhost:50001/#)/[cache.py](http://localhost:50001/#)", line 194, in embed_query
return self.underlying_embeddings.embed_query(text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/[a0](http://localhost:50001/#)/[models.py](http://localhost:50001/#)", line 700, in embed_query
resp = embedding(model=self.model_name, input=[text], **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/[opt](http://localhost:50001/#)/[venv-a0](http://localhost:50001/#)/[lib](http://localhost:50001/#)/[python3.12](http://localhost:50001/#)/[site-packages](http://localhost:50001/#)/[litellm](http://localhost:50001/#)/[utils.py](http://localhost:50001/#)", line 1377, in wrapper
raise e
File "/[opt](http://localhost:50001/#)/[venv-a0](http://localhost:50001/#)/[lib](http://localhost:50001/#)/[python3.12](http://localhost:50001/#)/[site-packages](http://localhost:50001/#)/[litellm](http://localhost:50001/#)/[utils.py](http://localhost:50001/#)", line 1246, in wrapper
result = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/[opt](http://localhost:50001/#)/[venv-a0](http://localhost:50001/#)/[lib](http://localhost:50001/#)/[python3.12](http://localhost:50001/#)/[site-packages](http://localhost:50001/#)/[litellm](http://localhost:50001/#)/[main.py](http://localhost:50001/#)", line 4847, in embedding
raise exception_type(
File "/[opt](http://localhost:50001/#)/[venv-a0](http://localhost:50001/#)/[lib](http://localhost:50001/#)/[python3.12](http://localhost:50001/#)/[site-packages](http://localhost:50001/#)/[litellm](http://localhost:50001/#)/[main.py](http://localhost:50001/#)", line 4824, in embedding
raise LiteLLMUnknownProvider(
litellm.exceptions.LiteLLMUnknownProvider: litellm.BadRequestError: Unmapped LLM provider for this endpoint. You passed model=claude-sonnet-4.6, custom_llm_provider=anthropic. Check supported provider and route: https://docs.litellm.ai/docs/providers
volume_up
content_copy
Steps I followed to download the Docker image and run the Docker container:
docker pull agent0ai/agent-zero
docker run -p 50001:80 agent0ai/agent-zero
Debugging Performed
Inside the container:
✔ Running as root
whoami → root
uid=0(root) gid=0(root)
✔ /a0 is writable
touch /a0/testfile → success
✔ SQLite is available
python3 -c "import sqlite3"
✔ Clean restart performed
Container removed and recreated
No custom mounts
Fresh image pull
❌ Issue still persists
The crash happens immediately during memory bootstrap and retries in a loop.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
I am facing an issue while running
agent0ai/agent-zero:latestvia Docker. The agent crashes before executing any command, during the memory initialization phase.The error occurs even when running a simple command like:
Error:
Steps I followed to download the Docker image and run the Docker container:
Debugging Performed
Inside the container:
✔ Running as root
✔
/a0is writable✔ SQLite is available
✔ Clean restart performed
❌ Issue still persists
The crash happens immediately during memory bootstrap and retries in a loop.
I have added the API keys as shown below:
Beta Was this translation helpful? Give feedback.
All reactions