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

Troubles running the computer use demo #66

Closed
GuangxingHan opened this issue Oct 23, 2024 · 9 comments
Closed

Troubles running the computer use demo #66

GuangxingHan opened this issue Oct 23, 2024 · 9 comments

Comments

@GuangxingHan
Copy link

GuangxingHan commented Oct 23, 2024

I used the following command to run the docker container, but both http://localhost:8080/ and http://localhost:8501/ did not work.

sudo docker run \
    -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
    -v $HOME/.anthropic:/home/computeruse/.anthropic \
    -p 5900:5900 \
    -p 8501:8501 \
    -p 6080:6080 \
    -p 8080:8080 \
    -it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest

The running log is

Xvfb started successfully on display :1
Xvfb PID: 9
starting tint2 on display :1 ...
starting mutter
starting vnc
PORT=5900
starting noVNC
noVNC started successfully
✨ Computer Use Demo is ready!
➡️  Open http://localhost:8080 in your browser to begin
x11vnc process crashed, restarting...
x11vnc stderr output:
23/10/2024 02:17:06 No client after 60 secs.
23/10/2024 02:17:06 deleted 32 tile_row polling images.
starting vnc
PORT=5900
x11vnc process crashed, restarting...
x11vnc stderr output:
23/10/2024 02:18:13 No client after 60 secs.
23/10/2024 02:18:13 deleted 32 tile_row polling images.
starting vnc
PORT=5900
x11vnc process crashed, restarting...
x11vnc stderr output:
23/10/2024 02:19:19 No client after 60 secs.
23/10/2024 02:19:19 deleted 32 tile_row polling images.
starting vnc
PORT=5900

Does anyone have any idea? Thanks

@GuangxingHan GuangxingHan changed the title Troubles running the compute use demo Troubles running the computer use demo Oct 23, 2024
@bmacer
Copy link
Contributor

bmacer commented Oct 23, 2024

have you tried killing the process altogether and re-running the command a second time?

@GuangxingHan
Copy link
Author

yes, I tried. But it did not work.

@gabriben
Copy link

same issue here

@gabriben
Copy link

stopping and restarting my docker vm worked for me

@x5a
Copy link
Collaborator

x5a commented Oct 23, 2024

@gabriben @GuangxingHan can you share the output of docker info?

@GuangxingHan
Copy link
Author

@x5a Here is my log for docker info. Thanks.

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.9.1-docker)

Server:
 Containers: 10
  Running: 1
  Paused: 0
  Stopped: 9
 Images: 34
 Server Version: 20.10.21
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: a05d175400b1145e5e6a735a6710579d181e7fb0
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 6.9.10-1rodete5-amd64
 Operating System: Debian GNU/Linux rodete
 OSType: linux
 Architecture: x86_64
 CPUs: 64
 Total Memory: 117.9GiB
 Name: guangxing.c.googlers.com
 ID: GCZ2:3XNT:BXDO:7IFV:E7UL:UPOB:E6C3:Y2X2:54W6:MFVO:GG6D:W4S5
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

@x5a
Copy link
Collaborator

x5a commented Oct 24, 2024

@GuangxingHan closing this as a duplicate of #42 - there's a proposed fix here: #42 (comment) - let me know in that issue if it doesn't work for you

@x5a x5a closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2024
@GuangxingHan
Copy link
Author

Thanks. I tried the following command with the new docker image. But I have the same error as before
image

docker run \
    -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
    -v $HOME/.anthropic:/home/computeruse/.anthropic \
    -p 5900:5900 \
    -p 8501:8501 \
    -p 6080:6080 \
    -p 8080:8080 \
    -it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-db8eb41

@GuangxingHan
Copy link
Author

@x5a any idea about this issue? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants