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

ERROR: for autogpt-client Cannot create container for service AutoGPT: invalid volume specification #4

Open
Maryam-Nasseri opened this issue Jul 19, 2024 · 1 comment

Comments

@Maryam-Nasseri
Copy link

Dear Weize/ other IOA developers,

Thanks for the IOA code and instructions. At command:
docker-compose -f dockerfiles/compose/open_instruction.yaml up

I run into this error:

ERROR: for autogpt-client Cannot create container for service AutoGPT: invalid volume specification: '/home/IoA-main/dockerfiles/compose/volumes/openai_response_log:.:rw': invalid mount config for type "bind": invalid mount path: '.' mount path must be a
Creating open-interpreter-client ... error

ERROR: for open-interpreter-client Cannot create container for service OpenInterpreter: invalid volume specification: '/home/IoA-main/dockerfiles/compose/dockerfile/compose/volumes/openai_response_log:dockerfile/compose/.env:rw': invalid mount config for type "bind": invalid mount path: 'dockerfile/compose/.env' mount path must be absolute

ERROR: for AutoGPT Cannot create container for service AutoGPT: invalid volume specification: '/home/IoA-main/dockerfiles/compose/volumes/openai_response_log:.:rw': invalid mount config for type "bind": invalid mount path: '.' mount path must be absolute

ERROR: for OpenInterpreter Cannot create container for service OpenInterpreter: invalid volume specification: '/home/IoA-main/dockerfiles/compose/dockerfile/compose/volumes/openai_response_log:dockerfile/compose/.env:rw': invalid mount config for type "bind": invalid mount path: 'dockerfile/compose/.env' mount path must be absolute
ERROR: Encountered errors while bringing up the project.

-- When I checked the open_instruction.yaml file, I can see that for both AutoGPT and Open Interpreter, in the volumes is set to:
./volumes/openai_response_log:${OPENAI_RESPONSE_LOG_PATH}

-- I tried to set the path to absolute (as indicated by the error message) but got the same error again!
PS: system Linux Ubuntu 20.04.1 LTS 64-bit

Thanks for any help.

@Luffyzm3D2Y
Copy link
Collaborator

Hi, could you please provide the value of OPENAI_RESPONSE_LOG_PATH that you set in your .env file when the error occurred?

Ensure that ${OPENAI_RESPONSE_LOG_PATH} is set to an absolute path within the Docker container. For example, you might set it as follows in your .env file:

OPENAI_RESPONSE_LOG_PATH=/app/logs

After updating your .env file, try running the docker-compose command again.
Thank you for your reporting the issue, and please let us know if the issue persists.

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