Skip to content

Error while first iteration in namespace is being created

When provisioning a new build namespace the namespace overview under http://localhost:8080/namespace errors out with Unknown error in the browser.

Inspecting the logs on the PoC server shows the following:

Jun 23 19:45:38 buildbtw-dev server[179386]: 2025-06-23T19:45:38.189101Z DEBUG buildbtw_poc::build_set_graph: Gathering metadata from .SRCINFO files
Jun 23 19:45:39 buildbtw-dev server[179386]: 2025-06-23T19:45:39.235902Z DEBUG request{method=GET uri=/namespace version=HTTP/1.1}: tower_http::trace::on_request: started processing request
Jun 23 19:45:39 buildbtw-dev server[179386]: 2025-06-23T19:45:39.238697Z ERROR request{method=GET uri=/namespace version=HTTP/1.1}: server::response_error: Eyre(
Jun 23 19:45:39 buildbtw-dev server[179386]:    0: no rows returned by a query that expected to return at least one row
Jun 23 19:45:39 buildbtw-dev server[179386]: 
Jun 23 19:45:39 buildbtw-dev server[179386]: Location:
Jun 23 19:45:39 buildbtw-dev server[179386]:    buildbtw-poc/src/bin/server/db/iteration.rs:68
Jun 23 19:45:39 buildbtw-dev server[179386]: 
Jun 23 19:45:39 buildbtw-dev server[179386]: Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Jun 23 19:45:39 buildbtw-dev server[179386]: Run with RUST_BACKTRACE=full to include source snippets.
Jun 23 19:45:39 buildbtw-dev server[179386]: Warning: SpanTrace capture is Unsupported.
Jun 23 19:45:39 buildbtw-dev server[179386]: Ensure that you've setup a tracing-error ErrorLayer and the semver versions are compatible)

Shortly after the iteration was created it works again.

Repro steps:

$ just run-client new --name 3 boost/main && sleep 1 && curl http://0.0.0.0:8080/namespace
Unknown error
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information