zep icon indicating copy to clipboard operation
zep copied to clipboard

level=fatal msg="store.type must be set"

Open TonySimonovsky opened this issue 1 year ago • 9 comments

Describe the bug I'm trying to add Zep to my service from inside docker-compose but always get this error: level=fatal msg="store.type must be set"

To Reproduce my docker-compose.yml:

version: '3.8'
services:
  zep_memory:
    image: ghcr.io/getzep/zep:latest
    container_name: zep-memory
    environment:
      - ZEP_MEMORY_STORE=postgres
      - ZEP_POSTGRES_DSN=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
      - ZEP_OPENAI_API_KEY=${OPENAI_API_KEY}
      - ZEP_STORE_TYPE=postgres
    ports:
      - "${ZEP_MEMORY_PORT}:8000"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"]
      interval: 30s
      timeout: 10s
      retries: 3

volumes:
  postgres_data:

networks:
  default:
    name: aipa_network

(I removed all of my services from it for the sake of clean experiment, but I get the same error whether I have my services in the file or not)

Logs

2024-07-09 12:38:09 time="2024-07-09T04:38:09Z" level=warning msg=".env file not found or unable to load. This warning can be ignored if Zep is run using docker compose with env_file defined or you are passing ENV variables."
2024-07-09 12:38:09 time="2024-07-09T04:38:09Z" level=info msg="Log level set to: info"
2024-07-09 12:38:09 time="2024-07-09T04:38:09Z" level=info msg="Starting Zep server version 0.26.0-415979b (2024-07-09T04:19:41+0000)"
2024-07-09 12:38:12 time="2024-07-09T04:38:12Z" level=fatal msg="store.type must be set"

TonySimonovsky avatar Jul 09 '24 04:07 TonySimonovsky

This https://github.com/getzep/zep/issues/253 didn't help btw.

TonySimonovsky avatar Jul 09 '24 04:07 TonySimonovsky

I have the same error!

franklin390 avatar Jul 17 '24 03:07 franklin390

Please ensure you're using the zep-cloud container and not the zep container. The latter expects a config file loaded from the directory from which the container is run.

danielchalef avatar Jul 18 '24 02:07 danielchalef

I just tried running the docker compose up in this tutorial and it still didn't work, do I need to change something?

https://github.com/getzep/zep

franklin390 avatar Jul 18 '24 12:07 franklin390

Do you have the config.yaml file from the repo present in the directory from which you ran docker compose? Do the logs mention the file is missing?

danielchalef avatar Jul 18 '24 13:07 danielchalef

Yes, I just downloaded the repository, added a .env with the open AI key and ran docker compose.

franklin390 avatar Jul 18 '24 16:07 franklin390

Can you share your logs?

On Thu, Jul 18 2024 at 9:51 AM, franklin390 < @.*** > wrote:

Yes, I just downloaded the repository, added a .env with the open AI key and ran docker compose.

— Reply to this email directly, view it on GitHub ( https://github.com/getzep/zep/issues/350#issuecomment-2237072063 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AABAAZ4LZTFE2VHQWFV2ED3ZM7XBLAVCNFSM6AAAAABKSBVJFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXGA3TEMBWGM ). You are receiving this because you commented. Message ID: <getzep/zep/issues/350/2237072063 @ github. com>

danielchalef avatar Jul 18 '24 17:07 danielchalef

image

franklin390 avatar Jul 18 '24 18:07 franklin390

docker compose should use Dockerfile.cloud, not Dockerfile when deploying with Dockerfile.cloud it works for me

bricemacias avatar Jul 18 '24 23:07 bricemacias

Closing as a new Server and set of SDKs is now available.

danielchalef avatar Oct 03 '24 21:10 danielchalef