Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
Other
168.09k stars 44.36k forks source link

Command web_search returned an error with docker #7024

Closed mictadlo closed 5 months ago

mictadlo commented 7 months ago

⚠️ Search for existing issues first ⚠️

Which Operating System are you using?

Docker

Which version of AutoGPT are you using?

Master (branch)

Do you use OpenAI GPT-3 or GPT-4?

GPT-4

Which area covers your issue best?

Agents

Describe your issue.

Hi, I started docker in the following way:

mkdir AutoGPT
cd AutoGPT
cat docker-compose.yml
version: "3.9"
services:
  auto-gpt:
    image: significantgravitas/auto-gpt
    env_file:
      - .env
    ports:
      - "8000:8000"  # remove this if you just want to run a single agent in TTY mode
    profiles: ["exclude-from-up"]
    volumes:
      - ./data:/app/data
      ## allow auto-gpt to write logs to disk
      - ./logs:/app/logs
      ## uncomment following lines if you want to make use of these files
      ## you must have them existing in the same folder as this docker-compose.yml
      #- type: bind
      #  source: ./ai_settings.yaml
      #  target: /app/ai_settings.yaml
      #- type: bind
      #  source: ./prompt_settings.yaml
      #  target: /app/prompt_settings.yaml

wget -c https://raw.githubusercontent.com/Significant-Gravitas/AutoGPT/master/autogpts/autogpt/.env.template
cp .env.template .env .

% diff .env .env.template
6c6
< OPENAI_API_KEY=dddddddl7NXGdddddddd
---
> OPENAI_API_KEY=your-openai-api-key
13c13
< EXECUTE_LOCAL_COMMANDS=True
---
> # EXECUTE_LOCAL_COMMANDS=False
25c25
< FILE_STORAGE_BACKEND=local
---
> # FILE_STORAGE_BACKEND=local
54c54
< AUTHORISE_COMMAND_KEY=y
---
> # AUTHORISE_COMMAND_KEY=y
57c57
< EXIT_KEY=n
---
> # EXIT_KEY=n
107c107
< SHELL_COMMAND_CONTROL=denylist
---
> # SHELL_COMMAND_CONTROL=denylist
111c111
< SHELL_DENYLIST=sudo,su
---
> # SHELL_DENYLIST=sudo,su

docker compose run --rm auto-gpt run --install-plugin-deps

What did I miss?

Michal

Upload Activity Log Content

2024-03-18 03:27:34,997 INFO NEWS: v0.5.0 RELEASE HIGHLIGHTS! 🚀🚀 2024-03-18 03:27:34,997 INFO NEWS: ------------------------------- 2024-03-18 03:27:34,998 INFO NEWS: Cloud-readiness, a new UI, support for the newest Agent Protocol version, and much more: 2024-03-18 03:27:34,998 INFO NEWS: v0.5.0 is our biggest release yet! 2024-03-18 03:27:34,999 INFO NEWS: 2024-03-18 03:27:34,999 INFO NEWS: Take a look at the Release Notes on Github for the full changelog: 2024-03-18 03:27:35,000 INFO NEWS: https://github.com/Significant-Gravitas/AutoGPT/releases. 2024-03-18 03:27:35,000 INFO NEWS: NEWS: Bulletin was updated! Press Enter to continue... 2024-03-18 04:19:52,720 INFO Smart LLM: gpt-3.5-turbo 2024-03-18 04:19:52,722 INFO Fast LLM: gpt-3.5-turbo-16k 2024-03-18 04:19:52,723 INFO Browser: chrome Enter the task that you want AutoGPT to execute, with as much detail as possible: Enter the task that you want AutoGPT to execute, with as much detail as possible: Enter the task that you want AutoGPT to execute, with as much detail as possible: For example, 'an AI designed to autonomously develop and run businesses with the sole gole of increasing your net worth.' 2024-03-18 13:12:31,120 INFO message='OpenAI API response' path=https://api.openai.com/v1/chat/completions processing_ms=3655 request_id=req_f7f44204a9b8495289172d87e809b350 response_code=200 2024-03-18 13:12:31,132 INFO Current AI Settings: 2024-03-18 13:12:31,132 INFO -------------------: 2024-03-18 13:12:31,133 INFO Name : BusinessGenius_GPT 2024-03-18 13:12:31,134 INFO Role : An AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth by leveraging cutting-edge strategies, data analysis, and market insights. 2024-03-18 13:12:31,134 INFO Constraints: 2024-03-18 13:12:31,135 INFO - Exclusively use the commands listed below. 2024-03-18 13:12:31,136 INFO - You can only act proactively, and are unable to start background jobs or set up webhooks for yourself. Take this into account when planning your actions. 2024-03-18 13:12:31,136 INFO - You are unable to interact with physical objects. If this is absolutely necessary to fulfill a task or objective or to complete a step, you must ask the user to do it for you. If the user refuses this, and there is no other way to achieve your goals, you must terminate to avoid wasting time and energy. 2024-03-18 13:12:31,137 INFO - Adhere strictly to legal and ethical business practices to safeguard your reputation and mitigate any legal risks. 2024-03-18 13:12:31,137 INFO - Consider financial sustainability and avoid high-risk ventures that may jeopardize long-term profitability. 2024-03-18 13:12:31,138 INFO Resources: 2024-03-18 13:12:31,138 INFO - Internet access for searches and information gathering. 2024-03-18 13:12:31,139 INFO - The ability to read and write files. 2024-03-18 13:12:31,139 INFO - You are a Large Language Model, trained on millions of pages of text, including a lot of factual knowledge. Make use of this factual knowledge to avoid unnecessary gathering of information. 2024-03-18 13:12:31,140 INFO Best practices: 2024-03-18 13:12:31,140 INFO - Continuously review and analyze your actions to ensure you are performing to the best of your abilities. 2024-03-18 13:12:31,141 INFO - Constructively self-criticize your big-picture behavior constantly. 2024-03-18 13:12:31,141 INFO - Reflect on past decisions and strategies to refine your approach. 2024-03-18 13:12:31,142 INFO - Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps. 2024-03-18 13:12:31,142 INFO - Only make use of your information gathering abilities to find information that you don't yet have knowledge of. 2024-03-18 13:12:31,142 INFO - Utilize advanced data analytics to identify market trends, consumer behavior patterns, and growth opportunities for your business. 2024-03-18 13:12:31,143 INFO - Implement innovative business development strategies tailored to maximize profitability and sustainable growth. 2024-03-18 13:12:31,143 INFO - Regularly assess and optimize operational processes to enhance efficiency, reduce costs, and increase overall profitability. 2024-03-18 13:12:31,144 INFO - Utilize a comprehensive risk management framework to mitigate potential threats and capitalize on lucrative opportunities. 2024-03-18 13:12:31,144 INFO - Maintain a dynamic and adaptive business model to swiftly respond to market changes and ensure long-term financial success. Continue with these settings? [Y/n] y 2024-03-18 13:14:55,729 INFO NOTE: All files/directories created by this agent can be found inside its workspace at: /app/data/agents/BusinessGenius_GPT-6a37492f/workspace 2024-03-18 13:15:00,836 INFO message='OpenAI API response' path=https://api.openai.com/v1/chat/completions processing_ms=4444 request_id=req_f9e079022c4441476c888ad1b2a8a28d response_code=200 2024-03-18 13:15:00,884 INFO BUSINESSGENIUS_GPT THOUGHTS: To achieve the goal of increasing net worth through autonomous business development, we need to consider relevant market trends, consumer behavior, and growth opportunities. 2024-03-18 13:15:00,887 INFO REASONING: To gather insights into market trends and potential opportunities, conducting a web search or reading specific webpages could provide valuable information. 2024-03-18 13:15:00,889 INFO PLAN: 2024-03-18 13:15:00,890 INFO - Conduct a web search or read specific webpages to gather insights on market trends and growth opportunities. 2024-03-18 13:15:00,890 INFO - Analyze the gathered information to identify potential profitable business ventures. 2024-03-18 13:15:00,891 INFO CRITICISM: It's important to gather relevant information efficiently and analyze it effectively to make informed strategic decisions. 2024-03-18 13:15:00,892 INFO SPEAK: I will now conduct a web search or read specific webpages to gather insights on market trends and growth opportunities for increasing our net worth through autonomous business development.

2024-03-18 13:15:00,894 INFO NEXT ACTION: COMMAND = web_search ARGUMENTS = {'query': 'business trends for increasing net worth'} 2024-03-18 13:15:00,895 INFO Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for BusinessGenius_GPT... Input: y 2024-03-18 13:15:46,724 INFO -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= 2024-03-18 13:15:47,252 WARNING Command web_search returned an error: CommandExecutionError('_get_url() https://links.duckduckgo.com/d.js RuntimeError: No active exception to reraise') 2024-03-18 13:15:50,530 INFO message='OpenAI API response' path=https://api.openai.com/v1/chat/completions processing_ms=2826 request_id=req_f016e60a4d0dccf59ca2d94d81f2048b response_code=200 2024-03-18 13:15:50,606 INFO BUSINESSGENIUS_GPT THOUGHTS: I encountered an error while trying to gather information on business trends. 2024-03-18 13:15:50,610 INFO REASONING: I should try a different approach to gather information on business trends for increasing net worth. 2024-03-18 13:15:50,612 INFO PLAN: 2024-03-18 13:15:50,614 INFO - Implement a different method to gather information on business trends for increasing net worth. 2024-03-18 13:15:50,617 INFO CRITICISM: I need to handle errors more effectively to ensure smooth progress. 2024-03-18 13:15:50,620 INFO SPEAK: I encountered an error while trying to gather information on business trends.

2024-03-18 13:15:50,622 INFO NEXT ACTION: COMMAND = web_search ARGUMENTS = {'query': 'business trends for increasing net worth'} 2024-03-18 13:15:50,624 INFO Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for BusinessGenius_GPT... Input:

Upload Error Log Content

2024-03-18 13:15:46,724 INFO  -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
2024-03-18 13:15:47,252 WARNING  Command web_search returned an error: CommandExecutionError('_get_url() https://links.duckduckgo.com/d.js RuntimeError: No active exception to reraise')
2024-03-18 13:15:50,530 INFO  message='OpenAI API response' path=https://api.openai.com/v1/chat/completions processing_ms=2826 request_id=req_f016e60a4d0dccf59ca2d94d81f2048b response_code=200
versano1305 commented 7 months ago

Same issue

kbeliasas commented 7 months ago

Same issue

Keeo commented 7 months ago

Found likely similar one when task finish 2024-03-23 19:51:06,466 WARNING Command finish returned an error: AgentTerminated('Task completed successfully.')

hyzgh commented 7 months ago

Same issue

github-actions[bot] commented 5 months ago

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.

github-actions[bot] commented 5 months ago

This issue was closed automatically because it has been stale for 10 days with no activity.