[Bug]: agentscope-dataagent fails to start — builderBootstrap throws "requires a non-noop snapshotSpec" (default single-node run)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Tranquilo
- Stack tecnológico
- docker, java, spring-boot
- Área
- backend, distributed-systems
Línea de trabajo
Empieza en agentscope-examples/agents/agentscope-dataagent/src/main/java/io/agentscope/dataagent/web/config/DataAgentConfig.java, en builderBootstrap, y compara su configuración del sistema de archivos con la validación descrita en HarnessAgent.java y HarnessAgentBuilderSupport.java. Compila con el comando Maven proporcionado y ejecuta el fat jar para verificar que la configuración predeterminada llega a un servidor web en :8080; comprueba si las pruebas de contexto completo deshabilitadas revelan un bloqueo independiente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
agentscope-examples/agents/agentscope-dataagent fails to start with its default, single-node configuration. The Spring context aborts while creating the builderBootstrap bean (DataAgentConfig): it builds every HarnessAgent with a DockerFilesystemSpec but never opts out of the distributed-sandbox validation, so HarnessAgent.Builder.build() runs validateDistributedSandboxConfig, which throws because DockerFilesystemSpec defaults to a NoopSnapshotSpec.
The process exits ~5s after Starting DataAgentApp, before the web server starts. This is a pure in-JVM bean-initialization validation that runs before any sandbox container is created, so it fails regardless of deployment method (plain java -jar, Docker Compose, …) and regardless of whether a Docker daemon is available (I reproduced it with a healthy Docker daemon present).
In effect, the module README quick-start ("4. Run: java -jar target/agentscope-dataagent-*-exec.jar") does not work as written.
To Reproduce
- Build the module:
mvn -pl agentscope-examples/agents/agentscope-dataagent -am package -DskipTests - Run the fat jar (no extra config required; presence/absence of a Docker daemon makes no difference):
java -jar agentscope-examples/agents/agentscope-dataagent/target/agentscope-dataagent-2.0.0-SNAPSHOT-exec.jar - Startup fails after a few seconds.
Expected behavior
The default single-node configuration should boot to a running web server on :8080 (as the README quick-start implies), or the module should ship a working default sandbox/snapshot configuration so a fresh checkout starts out of the box.
Error messages
ERROR --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
'webhookCallbackController' ...: Unsatisfied dependency expressed through constructor parameter 0:
Error creating bean with name 'builderBootstrap' defined in class path resource
[io/agentscope/dataagent/web/config/DataAgentConfig.class]: Factory method 'builderBootstrap' threw
exception with message: filesystem(SandboxFilesystemSpec) requires a non-noop snapshotSpec to
restore workspace archives across distributed instances. Configure one via
SandboxFilesystemSpec.snapshotSpec(...). For single-node use, opt out via
.sandboxDistributed(SandboxDistributedOptions.builder().requireDistributed(false).build()).
at io.agentscope.dataagent.web.DataAgentApp.main(DataAgentApp.java:40)
...
Caused by: java.lang.IllegalStateException: filesystem(SandboxFilesystemSpec) requires a non-noop
snapshotSpec to restore workspace archives across distributed instances. ... For single-node use,
opt out via .sandboxDistributed(SandboxDistributedOptions.builder().requireDistributed(false).build()).
at io.agentscope.harness.agent.HarnessAgentBuilderSupport.validateDistributedSandboxConfig(HarnessAgentBuilderSupport.java:180)
at io.agentscope.harness.agent.HarnessAgent$Builder.build(HarnessAgent.java:1601)
at io.agentscope.dataagent.runtime.DataAgentBootstrap$Builder.build(DataAgentBootstrap.java:613)
at io.agentscope.dataagent.web.config.DataAgentConfig.builderBootstrap(DataAgentConfig.java:214)
...
Environment (please complete the following information):
- AgentScope-Java Version: 2.0.0-RC1 (also reproduces on current
main; theagentscope-dataagentmodule is identical between thev2.0.0-RC1tag andmain— verified withgit diff v2.0.0-RC1 HEAD -- agentscope-examples/agents/agentscope-dataagent, no differences) - Java Version: 17 (Amazon Corretto 17.0.15)
- OS: macOS (arm64)
Additional context
Root-cause chain:
DataAgentConfig#builderBootstrapconfigures every agent with
new DockerFilesystemSpec().client(sandboxClient).isolationScope(IsolationScope.USER)
(DataAgentConfig.java:208-211) but never calls.sandboxDistributed(...)nor.snapshotSpec(...).DockerFilesystemSpecdefaultssnapshotSpectonew NoopSnapshotSpec()(DockerFilesystemSpec.java:35).- In
HarnessAgent.Builder.build()the validation is skipped only when
sandboxDistributedOptions != null && !requireDistributed(HarnessAgent.java:1597-1603).
SincesandboxDistributed(...)is never set, the validation runs and
validateDistributedSandboxConfigthrows on theNoopSnapshotSpec
(HarnessAgentBuilderSupport.java:177-187).
Suggested fix (matching the exception's own guidance) — for the single-node default, opt out in DataAgentConfig#builderBootstrap:
b.filesystem(new DockerFilesystemSpec().client(sandboxClient).isolationScope(IsolationScope.USER));
b.sandboxDistributed(SandboxDistributedOptions.builder().requireDistributed(false).build());
or configure a non-noop snapshotSpec. (For distributed/HA deployments a real snapshot spec + distributed Session would still be required.)
Possibly related: the module's three full-context @SpringBootTest classes — MarketContributionServiceTest, H2DemoSeedTest, JpaPersistenceIntegrationTest — are currently @Disabled("Pending fix for circular dependency between builderBootstrap and userSandboxRegistry"), so this startup path is not covered by an enabled test. I have not verified whether that circular-dependency issue surfaces after applying the requireDistributed(false) opt-out; it may be a second, related blocker.
A further, separate note for single-container deployments: even once startup is fixed, each per-user workspace is backed by a live Docker sandbox via the default DockerSandboxClient (DataAgentWorkspaceConfig#sandboxClient), so a single container would additionally need access to a Docker daemon (e.g. a mounted /var/run/docker.sock + the docker CLI) — or a non-Docker SandboxClient bean — for the chat/workspace path to work. Happy to open that as a separate issue if useful.
- Lenguaje dominante
- Java
- Estrellas
- 6.1k
- Forks
- 1.5k
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 145
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de agentscope-ai/agentscope-java
-
[Bug]: JevCodeReviewTest 在 Windows CI 上不稳定:2 秒预算在慢 runner 上超时Posiblemente ocupada @breezeFur la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
agentscope-ai/agentscope-java#3807 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: QdrantStore treats a scheme-less IP location like 127.0.0.1:6334 as a hostnamePosiblemente ocupada @littlebird69 la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
agentscope-ai/agentscope-java#3800 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]:托管会话自动生成的 agentId 包含冒号,正则校验失败导致会话无法执行Posiblemente ocupada @Lyin-OTTF la tomó hace 9 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
agentscope-ai/agentscope-java#3705 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: SubagentRunIdChainTest times out intermittently on windows-latest (the 10s .block() deadline has only a ~1.5x margin)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
agentscope-ai/agentscope-java#3505 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: ActionObservations.emitSafely swallows event-delivery exception (no message, no stack trace)Posiblemente ocupada @amyaxy la tomó hace 20 días. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
agentscope-ai/agentscope-java#3475 ·
Los mantenedores suelen responder en 1 día
Todos los issues de agentscope-ai/agentscope-java
Issues similares
-
bug/错误
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
FCL-Team/FoldCraftLauncher#1982 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG] micronaut-serde-oracle-jdbc-json brings a second OJDBC driver onto the runtime classpathPosiblemente ocupada @ZARAYACH la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
micronaut-projects/micronaut-serialization#1494 · 4 comentarios ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
vitruv-tools/Vitruv-Change#600 ·
Los mantenedores suelen responder en 1 día
-
code-health feature/sync OS/Android QA/Test-Plan-Specified QA/Yes
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
brave/brave-browser#60327 ·
Los mantenedores suelen responder en 1 día