OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: Github connect Internal Server Error 500

Open ingophmeyer opened this issue 1 year ago • 0 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Describe the bug and reproduction steps

Hi, after successfull running openhand for some weeks, I wanted to try v0.20 which was failing as no single command could be executed. I gues a major problem in 0.20? But I switched back to 0.19 and cleared the state folder so I need to enter Github Token and LLM Config, but now i get immediately an internal Server error when entering the token:

2025-01-16 10:14:15 openhands-app  | INFO:     Uvicorn running on http://0.0.0.0:3000 (Press CTRL+C to quit)
2025-01-16 10:14:20 openhands-app  | INFO:     172.18.0.1:47758 - "GET / HTTP/1.1" 200 OK
2025-01-16 10:14:20 openhands-app  | INFO:     172.18.0.1:47758 - "GET /locales/en/translation.json HTTP/1.1" 200 OK
2025-01-16 10:14:20 openhands-app  | INFO:     172.18.0.1:47758 - "GET /favicon.ico HTTP/1.1" 200 OK
2025-01-16 10:14:20 openhands-app  | INFO:     172.18.0.1:47766 - "GET /api/options/config HTTP/1.1" 200 OK
2025-01-16 10:14:20 openhands-app  | INFO:     172.18.0.1:47758 - "GET /api/options/config HTTP/1.1" 200 OK
2025-01-16 10:14:20 openhands-app  | INFO:     172.18.0.1:47766 - "GET /api/settings HTTP/1.1" 404 Not Found
2025-01-16 10:14:32 openhands-app  | INFO:     172.18.0.1:51386 - "GET /api/options/config HTTP/1.1" 200 OK
2025-01-16 10:14:32 openhands-app  | INFO:     172.18.0.1:51378 - "GET /api/github/repositories?sort=pushed&page=1&per_page=100 HTTP/1.1" 500 Internal Server Error

So right now I cannot do anything and not use openhands.

I run it on a Windows with Docker Desktop and a docker compose:

name: dev-openhands

services:
  openhands-app:
    # Same image as in your docker run command
    image: docker.all-hands.dev/all-hands-ai/openhands:0.19

    # Container name
    container_name: openhands-app

    # Replicate the environment variables
    environment:
      SANDBOX_RUNTIME_CONTAINER_IMAGE: "docker.all-hands.dev/all-hands-ai/runtime:0.19-nikolaik"
      #SANDBOX_USER_ID: $(id -u)
      WORKSPACE_MOUNT_PATH: "/mnt/C/dev/env/dev.openhands/.openhands-ws"
      LOG_ALL_EVENTS: true

    # Bind mounts
    volumes:
      # Mount the Docker socket so the container can spin up other containers
      - /var/run/docker.sock:/var/run/docker.sock
      # Mount your local .openhands-state folder for persistent data
      - .openhands-state:/.openhands-state
      # Mount the workspace folder
      - .openhands-ws:/opt/workspace_base

    # Expose port 3000
    ports:
      - "1000:3000"

    # This adds the same host entry as --add-host in docker run
    extra_hosts:
      - host.docker.internal:host-gateway

    # Give the container an interactive TTY (similar to -it).
    tty: true
    stdin_open: true

    # If you want the container to automatically restart unless you stop it:
    restart: unless-stopped

How can I solve that?

Thanks, ~ingo

OpenHands Installation

Other

OpenHands Version

0.19

Operating System

WSL on Windows

Logs, Errors, Screenshots, and Additional Context

No response

ingophmeyer avatar Jan 16 '25 09:01 ingophmeyer