AutoGPT
AutoGPT copied to clipboard
Failed to connect to Redis
⚠️ Search for existing issues first ⚠️
- [X] I have searched the existing issues, and there is no existing issue for my problem
Which Operating System are you using?
Windows
Which version of Auto-GPT are you using?
Latest Release
GPT-3 or GPT-4?
GPT-3.5
Steps to reproduce 🕹
Connect to Redis
Current behavior 😯
FAILED TO CONNECT TO REDIS Error 99 connecting to localhost:6379. Cannot assign requested address. DOUBLE CHECK CONFIGURATION Please ensure you have setup and configured Redis properly for use. You can check out https://github.com/Torantulino/Auto-GPT#redis-setup to ensure you've set up everything correctly.
Expected behavior 🤔
To connect properly
Your prompt 📝
# Paste your prompt here
Your Logs 📒
<insert your logs here>
version: "3.9"
services:
auto-gpt:
depends_on:
- redis
build: ./
env_file:
- .env
environment:
MEMORY_BACKEND: ${MEMORY_BACKEND:-redis}
REDIS_HOST: redis
volumes:
- ./:/app
profiles: ["exclude-from-up"]
links:
- redis
redis:
image: "redis/redis-stack-server:latest"
restart: always
ports:
- '6379:6379'
Didn't solve the problem. How to create a redis password?
by default redis has no password
There are two paths here:
- Use redis without a password. This is the default. To do this remove or comment out any "REDIS_PASSWORD" entries in
docker-compose.ymlor.env - Use redis with a password. Note: you cannot (currently) configure redis password simply as an environment variable. Here's a related issue: https://github.com/docker-library/redis/issues/176
Apologies. I missed this one:
localhost:6379
For docker you have to set REDIS_HOST=redis
Xerizaf, I had the same error after switching to a paid openai account. I generated a new api key at https://platform.openai.com/account/api-keys and copied it in to .env and that fixed it for me. Hopefully, this helps.
Solved.
Where do I put this?
I got redi working on apple silicon mac with Autogpt by using Visual basic studio IDE and Docker Desktop. There is some juggling between apps. basically go through the autogpt readme file after downloading everything. which will prompt a dev container extension and redis environent.
- install "docker desktop", don't run yet (this will run the wrapper for redis and autogpt)
- install "visual basic code" app, don't run (use this will run the autogpt folder as a "a deve container"
- download autogpt folder
- use the readme inside autogpt
- copy and edit the necessary .env.template to .env
- remove the hashtags from the following lines of code. then save. ... MEMORY_BACKEND=redis ... REDIS_HOST=redis REDIS_PORT=6379 REDIS_PASSWORD= WIPE_REDIS_ON_START=False MEMORY_INDEX=auto-gpt"