AutoGPT
                                
                                 AutoGPT copied to clipboard
                                
                                    AutoGPT copied to clipboard
                            
                            
                            
                        Error: Attempted to access path '/home/Entrepreneur-GPT/web_app/frontend' outside of workspace
⚠️ 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?
MacOS
Which version of Auto-GPT are you using?
Stable (branch)
GPT-3 or GPT-4?
GPT-4
Steps to reproduce 🕹
Build frontend in React.js for web based on https://github.com/***/sway.git
Current behavior 😯
PLAN:
- Clone the React.js repository from https://github.com/npl/sway.git CRITICISM: I should ensure that the repository is up-to-date and that there are no conflicts with the code. NEXT ACTION: COMMAND = clone_repository ARGUMENTS = {'repository_url': 'https://github.com/npl/sway.git', 'clone_path': '/home/Entrepreneur-GPT/web_app/frontend'} Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for ... Input:y -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= SYSTEM: Command clone_repository returned: Error: Attempted to access path '/home/Entrepreneur-GPT/web_app/frontend' outside of workspace '/home/appuser/auto_gpt_workspace'. THOUGHTS: I will create the directory for the frontend of the web app. REASONING: Before cloning the repository, I need to ensure that the directory for the frontend exists. PLAN:
- Create the directory for the frontend of the web app. CRITICISM: I should ensure that the directory is created in the correct location. NEXT ACTION: COMMAND = execute_python_file ARGUMENTS = {'file': 'mkdir /home/appuser/auto_gpt_workspace/web_app/frontend'} Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for ...
Expected behavior 🤔
It should clone the public repo in to it's working directory.
Your prompt 📝
Build frontend in React.js for web based on https://github.com/***/sway.git
Your Logs 📒
No response
There seems to be several issues. I checked the mounted app dir and it was empty. But outside the app dir there is a home directory with python and appuser dir. So there is some mismatch. I don't know where I should change the paths.
When I start docker I get this info first and docker mounts the empty app dir. So the Docker config does looks wrong.
Changes to Docker configuration The workdir has been changed from /home/appuser to /app. Be sure to update any volume mounts accordingly.
To me this looks wrong in the Docker file:
Create a non-root user and set permissions
RUN useradd --create-home appuser WORKDIR /home/appuser RUN chown appuser:appuser /home/appuser USER appuser
I tried to use the Docker file from the master branch-
Still some strange mismatch:
Goal 3: Build frontend in React.js for web based on https://github.com/Molnfront/sway.git Goal 4: Build the React web app as a Progressive Web App based on the code in goal 3 Goal 5: Continue to Build the app like the dating app Tinder but for voice messages instead of just images and text messages Using memory of type: RedisMemory Using Browser: chrome THOUGHTS: I think the first step should be to clone the React.js repository from https://github.com/npl/sway.git to begin building the frontend of the web app. REASONING: The frontend is an essential part of the web app, and cloning the repository will provide a solid foundation to build upon. PLAN:
- Clone the React.js repository from https://github.com/npl/sway.git CRITICISM: I need to ensure that I have the necessary dependencies installed to build the frontend. NEXT ACTION: COMMAND = clone_repository ARGUMENTS = {'repository_url': 'https://github.com/npl/sway.git', 'clone_path': '/app/frontend'} Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for ... Input:y -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= SYSTEM: Command clone_repository returned: Error: Attempted to access path '/app/frontend' outside of workspace '/home/appuser/auto_gpt_workspace'. THOUGHTS: I need to create the /app/frontend directory before cloning the React.js repository. REASONING: The clone_repository command requires a valid directory to clone the repository into. PLAN:
- Create the /app/frontend directory before cloning the React.js repository. CRITICISM: I need to ensure that the directory is created successfully before proceeding with the clone_repository command. NEXT ACTION: COMMAND = execute_python_file ARGUMENTS = {'file': 'mkdir.py'} Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for ...
I tried the latest stable relase. I works a bit different, more open ended questioning. But it are mostly searching the web and trying to save it to the same file time after time: Error file has already been updated.
Conclusion: it is like a bad junior developer that has not learnt file paths, python or how to use git. :-)
uncommend
EXECUTE_LOCAL_COMMANDS=True RESTRICT_TO_WORKSPACE=False this in the .env file and change it into this. it worked for me . but be careful.
Keep in mind RESTRICT_TO_WORKSPACE is defaulted to true, because it is not recommended to de-containerize AutoGPT. You are trusting that AutoGPT doesn't break your machine by turning that flag off.
This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.
This issue was closed automatically because it has been stale for 10 days with no activity.