Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #341

Closed
jmanhype opened this issue May 9, 2024 · 11 comments
Closed

[BUG] #341

jmanhype opened this issue May 9, 2024 · 11 comments

Comments

@jmanhype
Copy link

jmanhype commented May 9, 2024

Describe the bug

The Zep container fails to start due to a missing configuration for store.type. The error message store.type must be set is logged, indicating that Zep requires the store.type configuration to be specified.

To Reproduce

  1. Update the docker-compose.yaml file to include the Zep service without specifying the STORE_TYPE and STORE_SQLITE_PATH environment variables.
  2. Run docker-compose up -d to start the containers.
  3. Check the logs of the Zep container using docker logs zep.
  4. Observe the error message store.type must be set in the Zep container logs.

Expected behavior

The Zep container should start successfully without any errors related to the store.type configuration.

Logs

The relevant logs from the Zep container are as follows:

time="2024-05-09T02:01:14Z" 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."
time="2024-05-09T02:01:14Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T02:01:14Z" level=info msg="Log level set to: info"
time="2024-05-09T02:01:14Z" level=fatal msg="store.type must be set"

Environment:

  • Zep version: 0.25.0-03b77fd
  • Zep SDK and version: Not specified
  • Deployment: Using docker-compose

Additional context

The issue occurs when running Zep using Docker Compose without specifying the required STORE_TYPE and STORE_SQLITE_PATH environment variables in the docker-compose.yaml file.

To resolve the issue, the following changes were suggested:

  1. Update the docker-compose.yaml file to include the necessary environment variables for the Zep service:

    zep:
      image: ghcr.io/getzep/zep:${ZEP_DOCKER_TAG-latest}
      container_name: zep
      volumes:
        - zep:/app/backend/data
      ports:
        - ${ZEP_PORT-8000}:8000
      environment:
        - 'ZEP_OPENAI_API_KEY='
        - 'STORE_TYPE=sqlite'
        - 'STORE_SQLITE_PATH=/app/backend/data/zep.db'
      restart: unless-stopped
  2. Restart the containers using docker-compose down and docker-compose up -d.

I also just set it to postgres as well same issue

Copy link
Member

If you’re deploying to a cloud environment or container orchestrator please use the zep-cloud container.

@jmanhype
Copy link
Author

jmanhype commented May 9, 2024


Thank you for the suggestion to use the zep-cloud container for cloud deployments. I've updated my docker-compose.yaml file to use the zep-cloud container and configured it to use a PostgreSQL database.

However, I'm still encountering an issue where the Zep container is unable to connect to the PostgreSQL database. The logs show the following error:

time="2024-05-09T18:15:00Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T18:15:00Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T18:15:00Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"

It appears that the Zep container is trying to connect to a PostgreSQL server running on the local machine (127.0.0.1) at the default port (5432), but the connection is being refused.

Here's the relevant part of my updated docker-compose.yaml file:

zep:
  image: ghcr.io/getzep/zep-cloud:${ZEP_DOCKER_TAG-latest}
  container_name: zep
  volumes:
    - zep:/app/backend/data
  ports:
    - "5555:8000"
  env_file:
    - ./backend/.env
  environment:
    - ZEP_OPENAI_API_KEY=${ZEP_OPENAI_API_KEY-}
    - STORE_TYPE=postgres
  restart: unless-stopped

or

zep:
    image: ghcr.io/getzep/zep-cloud:${ZEP_DOCKER_TAG-latest}
    container_name: zep
    depends_on:
      - postgres
    volumes:
      - zep:/app/backend/data
      - ./config.yaml:/app/config.yaml
    ports:
      - "5555:8000"
    env_file:
      - ./backend/.env
    environment:
      - ZEP_OPENAI_API_KEY=${ZEP_OPENAI_API_KEY-}
      - STORE_TYPE=postgres
      - STORE_POSTGRES_HOST=postgres
      - STORE_POSTGRES_PORT=5432
      - STORE_POSTGRES_USER=postgres
      - STORE_POSTGRES_PASSWORD=postgres
      - STORE_POSTGRES_DB=zep
      - CONFIG_FILE=/app/config.yaml
    restart: unless-stopped

I've set the STORE_TYPE environment variable to postgres, but I'm not sure if there are any additional configuration steps required to properly set up the connection to the PostgreSQL database.

Could you please provide guidance on how to resolve this connection issue? Do I need to set up a separate PostgreSQL service in my docker-compose.yaml file and configure the Zep container to connect to it? Or are there any other configuration options I need to set for the zep-cloud container to establish a successful connection to the database?

Any help or further suggestions would be greatly appreciated. Let me know if you need any additional information or context.

Thank you!


@jmanhype
Copy link
Author

jmanhype commented May 9, 2024

version: '3.8'
services:
  ollama:
    container_name: ollama
    image: ollama/ollama:latest
    volumes:
      - ollama:/root/.ollama
    pull_policy: always
    tty: true
    restart: unless-stopped

  ollama-webui:
    build:
      context: .
      args:
        OLLAMA_API_BASE_URL: '/ollama/api'
      dockerfile: Dockerfile
    image: ghcr.io/ollama-webui/ollama-webui:main
    container_name: ollama-webui
    volumes:
      - ollama-webui:/app/backend/data
    depends_on:
      - ollama
    ports:
      - "${OLLAMA_WEBUI_PORT-3000}:8080"
    env_file:
      - ./backend/.env
    environment:
      - OLLAMA_API_BASE_URL=http://ollama:11434/api
      - ZEP_OPENAI_API_KEY=${ZEP_OPENAI_API_KEY-}
      - STORE_TYPE=postgres
      - ZEP_API_URL=http://zep:8000
    extra_hosts:
      - "host.docker.internal:host-gateway"
    restart: unless-stopped

  zep:
    image: ghcr.io/getzep/zep-cloud:${ZEP_DOCKER_TAG-latest}
    container_name: zep
    depends_on:
      - postgres
    volumes:
      - zep:/app/backend/data
      - ./config.yaml:/app/config.yaml
    ports:
      - "5555:8000"
    env_file:
      - ./backend/.env
    environment:
      - ZEP_OPENAI_API_KEY=${ZEP_OPENAI_API_KEY-}
      - STORE_TYPE=postgres
      - STORE_POSTGRES_HOST=postgres
      - STORE_POSTGRES_PORT=5432
      - STORE_POSTGRES_USER=postgres
      - STORE_POSTGRES_PASSWORD=postgres
      - STORE_POSTGRES_DB=zep
      - CONFIG_FILE=/app/config.yaml
    restart: unless-stopped

  postgres:
    image: postgres:latest
    container_name: postgres
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=zep
    volumes:
      - postgres:/var/lib/postgresql/data
    restart: unless-stopped

volumes:
  ollama: {}
  zep: {}
  ollama-webui: {}
  postgres: {}

networks:
  default:
    driver: bridge

@danielchalef
Copy link
Member

Please ensure you're prefixing Zep's environment variables with ZEP_. See here for a full set of configuration values and related environment variables: https://docs.getzep.com/deployment/config/

@jmanhype
Copy link
Author

jmanhype commented May 9, 2024

Please ensure you're prefixing Zep's environment variables with ZEP_. See here for a full set of configuration values and related environment variables: https://docs.getzep.com/deployment/config/

services:
  ollama:
    container_name: ollama
    image: ollama/ollama:latest
    volumes:
      - ollama:/root/.ollama
    pull_policy: always
    tty: true
    restart: unless-stopped

  ollama-webui:
    build:
      context: .
      args:
        OLLAMA_API_BASE_URL: '/ollama/api'
      dockerfile: Dockerfile
    image: ghcr.io/ollama-webui/ollama-webui:main
    container_name: ollama-webui
    volumes:
      - ollama-webui:/app/backend/data
    depends_on:
      - ollama
    ports:
      - "${OLLAMA_WEBUI_PORT-3000}:8080"
    env_file:
      - ./backend/.env
    environment:
      - OLLAMA_API_BASE_URL=http://ollama:11434/api
      - ZEP_OPENAI_API_KEY=${ZEP_OPENAI_API_KEY-}
      - ZEP_API_URL=http://zep:8000
    extra_hosts:
      - "host.docker.internal:host-gateway"
    restart: unless-stopped

  zep:
    image: ghcr.io/getzep/zep-cloud:${ZEP_DOCKER_TAG-latest}
    container_name: zep
    depends_on:
      - postgres
    volumes:
      - zep:/app/backend/data
      - ./config.yaml:/app/config.yaml
    ports:
      - "5555:8000"
    environment:
      - ZEP_OPENAI_API_KEY=${ZEP_OPENAI_API_KEY-}
      - ZEP_STORE_TYPE=postgres
      - ZEP_STORE_POSTGRES_HOST=postgres
      - ZEP_STORE_POSTGRES_PORT=5432
      - ZEP_STORE_POSTGRES_USER=postgres
      - ZEP_STORE_POSTGRES_PASSWORD=postgres
      - ZEP_STORE_POSTGRES_DB=zep
      - ZEP_CONFIG_FILE=/app/config.yaml
      - ZEP_LLM_SERVICE=openai
      - ZEP_LLM_MODEL=gpt-3.5-turbo
      - ZEP_EXTRACTORS_DOCUMENTS_EMBEDDINGS_SERVICE=local
      - ZEP_EXTRACTORS_MESSAGES_EMBEDDINGS_SERVICE=local
      - ZEP_EXTRACTORS_MESSAGES_SUMMARIZER_EMBEDDINGS_SERVICE=local
    restart: unless-stopped

  postgres:
    image: postgres:latest
    container_name: postgres
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=zep
    volumes:
      - postgres:/var/lib/postgresql/data
    restart: unless-stopped

volumes:
  ollama: {}
  zep: {}
  ollama-webui: {}
  postgres: {}

networks:
  default:
    driver: bridge```

@jmanhype
Copy link
Author

jmanhype commented May 9, 2024

docker logs 1943a89a9532
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T20:03:15Z" 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."
time="2024-05-09T20:03:15Z" level=info msg="Log level set to: info"
time="2024-05-09T20:03:15Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T20:03:15Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:15Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:15Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T20:03:16Z" 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."
time="2024-05-09T20:03:16Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T20:03:16Z" level=info msg="Log level set to: info"
time="2024-05-09T20:03:16Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:16Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:16Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T20:03:17Z" 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."
time="2024-05-09T20:03:17Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T20:03:17Z" level=info msg="Log level set to: info"
time="2024-05-09T20:03:17Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:17Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:17Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T20:03:18Z" 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."
time="2024-05-09T20:03:18Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T20:03:18Z" level=info msg="Log level set to: info"
time="2024-05-09T20:03:18Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:18Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:18Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T20:03:19Z" 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."
time="2024-05-09T20:03:19Z" level=info msg="Log level set to: info"
time="2024-05-09T20:03:19Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T20:03:19Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:19Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:19Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T20:03:21Z" 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."
time="2024-05-09T20:03:21Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T20:03:21Z" level=info msg="Log level set to: info"
time="2024-05-09T20:03:21Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:21Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:21Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T20:03:25Z" 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."
time="2024-05-09T20:03:25Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T20:03:25Z" level=info msg="Log level set to: info"
time="2024-05-09T20:03:25Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:25Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:25Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T20:03:32Z" 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."
time="2024-05-09T20:03:32Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T20:03:32Z" level=info msg="Log level set to: info"
time="2024-05-09T20:03:32Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:32Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:32Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T20:03:45Z" 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."
time="2024-05-09T20:03:45Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T20:03:45Z" level=info msg="Log level set to: info"
time="2024-05-09T20:03:45Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:45Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused"
time="2024-05-09T20:03:45Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 127.0.0.1:5432: connect: connection refused\n"

@jmanhype
Copy link
Author

jmanhype commented May 9, 2024

I have made the suggested changes same error.

Please ensure you're prefixing Zep's environment variables with ZEP_. See here for a full set of configuration values and related environment variables: https://docs.getzep.com/deployment/config/

@danielchalef
Copy link
Member

Please set your Postgres DSN environment variable correctly. There's no ZEP_STORE_POSTGRES_HOST etc variable in the Zep config. The "official" docker compose may be a helpful template:

- ZEP_STORE_POSTGRES_DSN=postgres://postgres:postgres@db:5432/postgres?sslmode=disable

@jmanhype
Copy link
Author

jmanhype commented May 9, 2024

Please set your Postgres DSN environment variable correctly. There's no ZEP_STORE_POSTGRES_HOST etc variable in the Zep config. The "official" docker compose may be a helpful template:

- ZEP_STORE_POSTGRES_DSN=postgres://postgres:postgres@db:5432/postgres?sslmode=disable

version: '3.8'
services:
  ollama:
    container_name: ollama
    image: ollama/ollama:latest
    volumes:
      - ollama:/root/.ollama
    pull_policy: always
    tty: true
    restart: unless-stopped

  ollama-webui:
    build:
      context: .
      args:
        OLLAMA_API_BASE_URL: '/ollama/api'
      dockerfile: Dockerfile
    image: ghcr.io/ollama-webui/ollama-webui:main
    container_name: ollama-webui
    volumes:
      - ollama-webui:/app/backend/data
    depends_on:
      - ollama
    ports:
      - "${OLLAMA_WEBUI_PORT-3000}:8080"
    env_file:
      - ./backend/.env
    environment:
      - OLLAMA_API_BASE_URL=http://ollama:11434/api
      - ZEP_OPENAI_API_KEY=${ZEP_OPENAI_API_KEY-}
      - ZEP_API_URL=http://zep:8000
    extra_hosts:
      - "host.docker.internal:host-gateway"
    restart: unless-stopped

  zep:
    image: ghcr.io/getzep/zep-cloud:${ZEP_DOCKER_TAG-latest}
    container_name: zep
    depends_on:
      - postgres
    volumes:
      - zep:/app/backend/data
      - ./config.yaml:/app/config.yaml
    ports:
      - "5555:8000"
    environment:
      - ZEP_OPENAI_API_KEY=${ZEP_OPENAI_API_KEY-}
      - ZEP_STORE_POSTGRES_DSN=postgres://postgres:postgres@postgres:5432/zep?sslmode=disable
      - ZEP_NLP_SERVER_URL=http://nlp:5557
      - ZEP_EXTRACTORS_DOCUMENTS_EMBEDDINGS_SERVICE=local
      - ZEP_EXTRACTORS_MESSAGES_EMBEDDINGS_SERVICE=local
      - ZEP_EXTRACTORS_MESSAGES_SUMMARIZER_EMBEDDINGS_SERVICE=local
      - ZEP_CONFIG_FILE=/app/config.yaml
    restart: unless-stopped

  nlp:
    image: ghcr.io/getzep/zep-nlp-server:latest
    container_name: zep-nlp
    restart: on-failure
    networks:
      - zep-network

  postgres:
    image: postgres:latest
    container_name: postgres
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=zep
    volumes:
      - postgres:/var/lib/postgresql/data
    restart: unless-stopped
    networks:
      - zep-network

volumes:
  ollama: {}
  zep: {}
  ollama-webui: {}
  postgres: {}

networks:
  zep-network:
    driver: bridge

@jmanhype
Copy link
Author

jmanhype commented May 9, 2024

docker logs a9884c568d73
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:00Z" 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."
time="2024-05-09T22:47:00Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:00Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:00Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:00Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:00Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:01Z" 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."
time="2024-05-09T22:47:01Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:01Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:01Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:01Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:01Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:02Z" 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."
time="2024-05-09T22:47:02Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:02Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:02Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:02Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:02Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:03Z" 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."
time="2024-05-09T22:47:03Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:03Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:03Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:03Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:03Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:04Z" 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."
time="2024-05-09T22:47:04Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:04Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:04Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:04Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:04Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:06Z" 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."
time="2024-05-09T22:47:06Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:06Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:06Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:06Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:06Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:10Z" 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."
time="2024-05-09T22:47:10Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:10Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:10Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:10Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:10Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:16Z" 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."
time="2024-05-09T22:47:16Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:16Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:16Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:16Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:16Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:30Z" 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."
time="2024-05-09T22:47:30Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:30Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:30Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:30Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:30Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"
Environment variable ZEP_NLP_SERVER_HOSTPORT is not set. If running on Render.com, please ensure you are passing the NLP server's hostport as an environment variable.
time="2024-05-09T22:47:56Z" 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."
time="2024-05-09T22:47:56Z" level=info msg="Log level set to: info"
time="2024-05-09T22:47:56Z" level=info msg="Starting Zep server version 0.25.0-03b77fd (2024-03-26T00:58:52+0000)"
time="2024-05-09T22:47:56Z" level=error msg="error enabling pgvector extension: error creating pgvector extension: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:56Z" level=info msg="error checking if hnsw indexes are available: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused"
time="2024-05-09T22:47:56Z" level=fatal msg="Failed to connect to database: error checking vector extension version: dial tcp 192.168.1.1:5432: connect: connection refused\n"

@jmanhype
Copy link
Author

jmanhype commented May 9, 2024

Getting the same error

Please set your Postgres DSN environment variable correctly. There's no ZEP_STORE_POSTGRES_HOST etc variable in the Zep config. The "official" docker compose may be a helpful template:

- ZEP_STORE_POSTGRES_DSN=postgres://postgres:postgres@db:5432/postgres?sslmode=disable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants