Skyvern-AI / skyvern

Automate browser-based workflows with LLMs and Computer Vision
https://www.skyvern.com
GNU Affero General Public License v3.0
9.52k stars 632 forks source link

[Bug] Status Code 404: Task not created #1080

Open suyashdb opened 3 days ago

suyashdb commented 3 days ago

All three containers are running correctly, however when i click on the task creation i get 404 error. no docker logs which talks about any error.

Screenshot 2024-10-28 at 8 49 12 PM

wintonzheng commented 3 days ago

@suyashdb

Are you running docker compose in a remote server?

If yes, what's your environment under the skyvern-ui in your docker-compose.yml?

suyashdb commented 2 days ago

@wintonzheng here the env under skyvern-ui. Yes, i am running docker compose in a remote server.

`

skyvern-ui:
    image: public.ecr.aws/skyvern/skyvern-ui:v0.1.35
    restart: on-failure
    ports:
      - 8080:8080
      - 9090:9090
    volumes:
      - ./artifacts:/data/artifacts
      - ./videos:/data/videos
      - ./har:/data/har
      - ./.streamlit:/app/.streamlit
    environment:
      - VITE_WSS_BASE_URL=ws://localhost:8000/api/v1
    #   - VITE_API_BASE_URL=
    #   - VITE_SKYVERN_API_KEY=
    depends_on:
      skyvern:
        condition: service_healthy
suchintan commented 2 days ago

@suyashdb I think this is the problem:

- VITE_WSS_BASE_URL=ws://localhost:8000/api/v1

I think we would expect this url to be pointing to the image running the Skyvern instance (not UI instance) -- ie this shouldn't be localhost

wintonzheng commented 2 days ago

@suyashdb https://github.com/Skyvern-AI/skyvern/blob/54674c16cc9fc39148ea55e7ce8b7c50e61f12e9/docker-compose.yml#L70-L71

    # if you want to run skyvern on a remote server,
    # you need to change the host in VITE_WSS_BASE_URL and VITE_API_BASE_URL to match your server ip

So you want to set up these two environment variables under the skyvern-ui service inside docker-compose.yml:

  environment:
      - VITE_WSS_BASE_URL=ws://{your ec2 ip}:8000/api/v1
      - VITE_API_BASE_URL=http://{your ec2 ip}:8000/api/v1
suyashdb commented 1 day ago

Thanks @wintonzheng!

for ec2 i will follow what you mentioned. Are there any changes expected if my docker containers are local. we have both being tested.