langchain-ai / langgraph-studio

Desktop app for prototyping and debugging LangGraph applications locally.
https://studio.langchain.com
1.97k stars 131 forks source link

[Error] Unable to Build Langgraph Project #105

Closed Toubat closed 2 months ago

Toubat commented 2 months ago

Hi LangChain team,

I tried to connect my langgraph project to the desktop and got the following error which I don't fully understand:

docker.io/langchain/langgraph-api:3.11
Total reclaimed space: 0B
Total reclaimed space: 0B
Error response from daemon: a prune operation is already running
Total reclaimed space: 0B
Total reclaimed space: 0B
Total reclaimed space: 0B
Total reclaimed space: 0B
Total reclaimed space: 0B
services.langgraph-api.develop.watch: target is required for non-rebuild actions: invalid compose project
services.langgraph-api.develop.watch: target is required for non-rebuild actions: invalid compose project
services.langgraph-api.develop.watch: target is required for non-rebuild actions: invalid compose project
services.langgraph-api.develop.watch: target is required for non-rebuild actions: invalid compose project
Running "docker pull langchain/langgraph-api:3.11"
3.11: Pulling from langchain/langgraph-api
92c3b3500be6: Already exists
3bc0bb0f4836: Already exists
e1823f75652f: Already exists
8fe47198239e: Already exists
fd14ce64cb6c: Already exists
d4a2a581f5c0: Already exists
eb209c0c6fdc: Already exists
0599fb1e944e: Already exists
473ba7abe1c2: Already exists
978ab7fcbde9: Already exists
ed8d4b58bcf4: Already exists
bfdf8797cc59: Already exists
4f4fb700ef54: Already exists
Running "docker image prune -f --filter label=com.docker.compose.project=leetmock-monorepo-1f8cea0b1c672c518ffbfb3aac4f7b1c3bd64d105d750d8857186aba73c17175"
Running "docker image prune -f --filter label=com.docker.compose.project=leetmock-monorepo-1f8cea0b1c672c518ffbfb3aac4f7b1c3bd64d105d750d8857186aba73c17175"
Running "docker compose --project-directory /path/to/my/project/root --project-name leetmock-monorepo-1f8cea0b1c672c518ffbfb3aac4f7b1c3bd64d105d750d8857186aba73c17175 -f - up --remove-orphans --watch"
Digest: sha256:38f125ce2573d5077f75320d4beaef891d059f00ead1ba44f3df75f61aaa659b
Status: Downloaded newer image for langchain/langgraph-api:3.11
docker.io/langchain/langgraph-api:3.11
Total reclaimed space: 0B
Total reclaimed space: 0B
services.langgraph-api.develop.watch: target is required for non-rebuild actions: invalid compose project

and

Failed to start project my-project
Error invoking remote method 'up': ExecaError: Command failed with exit code 15: docker compose --project-directory /path/to/my/project/root --project-name my-project-8ceb1c672c518ffbfb3aa7b1c3bd64d105d750d8857186abc17175 -f - up --remove-orphans --watch

services.langgraph-api.develop.watch: target is required for non-rebuild actions: invalid compose project

After double-check, I found that my project works on both langgraph deployment and using the local CLI langgraph up, but fails on the langgraph desktop app. Do I need some additional steps for using the desktop app?

I also tried deleting all existing images, containers, builds, etc and re-run but seems getting the same error above. Is there any steps I'm missing?

Below is my project structuure:

.
├── agent-graph
│   └── agent_graph
├── agent-server
│   ├── agent_server
│   ├── logs
│   └── tests
├── client
│   ├── app
│   ├── components
│   ├── hooks
│   ├── lib
│   ├── node_modules
│   └── public
├── libs
│   └── libs
└── notebooks
├── langgraph.json
├── poetry.lock
├── .env
└── pyproject.toml

and here's my langgraph.json:

{
  "dockerfile_lines": [],
  "graphs": {
    "my-agent": "./agent-graph/agent_graph/agent.py:graph"
  },
  "env": ".env",
  "dependencies": ["./agent-graph", "./libs"]
}
danmas0n commented 2 months ago

Same issue here -- didn't change anything, just upgraded to the .20 build of LangGraph Studio, and I'm getting the errors above whereas it all worked pre-upgrade

dqbd commented 2 months ago

Hello! Sorry about the inconvenience, should be fixed in 0.0.21. If the issue still persists, will reopen the issue!