langchain-ai / langgraph-studio

Desktop app for prototyping and debugging LangGraph applications locally.
https://github.com/langchain-ai/langgraph-studio
1.48k stars 96 forks source link

Failed to access Docker #110

Open patrickacraig opened 6 days ago

patrickacraig commented 6 days ago

When I start LangGraph Studio, I am getting the following error notification:

Failed to access Docker: Unexpected token 'j', "json" is not valid JSON

I have reinstalled Docker and LangGraph Studio, but the issue persists. Note that this error occurs before attempting to open any particular folder.

Screenshot 2024-09-11 at 12 05 12 PM

Any ideas on how to troubleshoot/fix would be greatly appreciated.

dqbd commented 6 days ago

Hello @patrickacraig! Could you share the output of docker info -f json or docker info?

patrickacraig commented 6 days ago

Client:
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.16.2-desktop.1
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.2-desktop.2
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.34
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-debug
  desktop: Docker Desktop commands (Alpha) (Docker Inc.)
    Version:  v0.0.15
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-desktop
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.25
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-extension
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-feedback
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.3.0
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.13.0
    Path:     /Users/patrickcraig/.docker/cli-plugins/docker-scout

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 27.2.0
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 8fc6bcff51318944179630522a095cc9dbf9f353
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 6.10.4-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 12
 Total Memory: 7.655GiB
 Name: docker-desktop
 # ID Redacted
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 # HTTP Proxy settings redacted
 Registry: https://index.docker.io/v1/
 Labels:
  com.docker.desktop.address=unix:///Users/patrickcraig/Library/Containers/com.docker.docker/Data/docker-cli.sock
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: daemon is not using the default seccomp profile
patrickacraig commented 5 days ago

@dqbd that was for docker info -f json. Let me know if that's not the output you were looking for.

patrickacraig commented 5 days ago

Update on this: Installing the Docker CLI tools separately using Homebrew fixed the error. If you encounter the error above, just run brew install docker docker-compose docker-machine in your terminal, then run brew services start docker-machine and restart Docker Desktop and LangGraph Studio and you should be good to go.

devjones commented 15 hours ago

Just worked for me after I updated my Docker Desktop version