Skip to content

Garage does not get configured. #2852

@alanscodelog

Description

@alanscodelog

Describe the bug
Garage buckets do not get configured. I tried debugging a copy of the service about locally but am still stumped. I think the post ready configure task isn't running for some reason... but the ready probe definitely fires. I tried setting "after" on the configure task instead of as a before on the process, but still nothing... idk how to better debug if the dependencies between tasks is getting correctly interpreted...

I had filed #2786 before.

To reproduce
I would expect just this to work.

services.garage.enable = true;
services.garage.buckets = [ "assets" ]

devenv up in one terminal, in another in a devenv shell, run garage -c $GARAGE_CONFIG_FILE bucket list
It errors with Error: ListBuckets returned InternalError (500): Internal error: Layout not ready when it should be ready (the configure task should be applying the layout afaik).

Version
devenv 2.1.1+b7d73aa (x86_64-linux)

Logs: ``` 2026-05-19T23:02:23.658392Z INFO garage::server: Loading configuration from /nix/store/fy8bcsd91ccfnra4ns6xcdfarrf5c0bc-garage.toml... 2026-05-19T23:02:23.658750Z INFO garage::server: Initializing Garage main data store... 2026-05-19T23:02:23.658807Z INFO garage_model::garage: Opening database... 2026-05-19T23:02:23.658829Z INFO garage_db::lmdb_adapter: Opening LMDB database at: /home/alan/code/=clones/garage-bug/.devenv/state/garage/meta/db.lmdb 2026-05-19T23:02:23.659204Z INFO garage_model::garage: Initializing RPC... 2026-05-19T23:02:23.659245Z INFO garage_model::garage: Initialize background variable system... 2026-05-19T23:02:23.659250Z INFO garage_model::garage: Initialize membership management system... 2026-05-19T23:02:23.659275Z INFO garage_rpc::system: Generating new node key pair. 2026-05-19T23:02:23.659443Z INFO garage_rpc::system: Node ID of this node: b88a8e18fe0ea8f4 2026-05-19T23:02:23.659543Z INFO garage_rpc::layout::manager: No valid previous cluster layout stored (IO error: No such file or directory (os error 2)), starting fresh. 2026-05-19T23:02:23.659584Z INFO garage_rpc::layout::helper: ack_until updated to 0 2026-05-19T23:02:23.659642Z INFO garage_model::garage: Initialize block manager... 2026-05-19T23:02:23.660040Z INFO garage_model::garage: Initialize admin_token_table... 2026-05-19T23:02:23.660254Z INFO garage_model::garage: Initialize bucket_table... 2026-05-19T23:02:23.660374Z INFO garage_model::garage: Initialize bucket_alias_table... 2026-05-19T23:02:23.660479Z INFO garage_model::garage: Initialize key_table_table... 2026-05-19T23:02:23.660584Z INFO garage_model::garage: Initialize block_ref_table... 2026-05-19T23:02:23.660706Z INFO garage_model::garage: Initialize version_table... 2026-05-19T23:02:23.660818Z INFO garage_model::garage: Initialize multipart upload counter table... 2026-05-19T23:02:23.660935Z INFO garage_model::garage: Initialize multipart upload table... 2026-05-19T23:02:23.661040Z INFO garage_model::garage: Initialize object counter table... 2026-05-19T23:02:23.661153Z INFO garage_model::garage: Initialize object_table... 2026-05-19T23:02:23.661311Z INFO garage_model::garage: Load lifecycle worker state... 2026-05-19T23:02:23.661336Z INFO garage_model::garage: Initialize K2V counter table... 2026-05-19T23:02:23.661487Z INFO garage_model::garage: Initialize K2V subscription manager... 2026-05-19T23:02:23.661491Z INFO garage_model::garage: Initialize K2V item table... 2026-05-19T23:02:23.661626Z INFO garage_model::garage: Initialize K2V RPC handler... 2026-05-19T23:02:23.661666Z INFO garage::server: Initializing background runner... 2026-05-19T23:02:23.661782Z INFO garage::server: Spawning Garage workers... 2026-05-19T23:02:23.661829Z INFO garage_model::s3::lifecycle_worker: Starting lifecycle worker for 2026-05-19 2026-05-19T23:02:23.661836Z INFO garage::server: Initialize Admin API server and metrics collector... 2026-05-19T23:02:23.662279Z INFO garage_model::s3::lifecycle_worker: Lifecycle worker finished for 2026-05-19, objects expired: 0, mpu aborted: 0 2026-05-19T23:02:23.710989Z INFO garage::server: Launching internal Garage cluster communications... 2026-05-19T23:02:23.711068Z INFO garage::server: Initializing S3 API server... 2026-05-19T23:02:23.711084Z INFO garage::server: Launching Admin API server... 2026-05-19T23:02:23.711221Z INFO garage_net::netapp: Listening on [::]:3902 2026-05-19T23:02:23.711383Z INFO garage_api_common::generic_server: S3 API server listening on http://127.0.0.1:3900 2026-05-19T23:02:23.711404Z INFO garage_api_common::generic_server: Admin API server listening on http://127.0.0.1:3903 Exec probe succeeded - process ready 2026-05-19T23:02:33.672933Z INFO garage_api_common::generic_server: 127.0.0.1:60280 GET /v1/health 2026-05-19T23:02:52.032352Z INFO garage_net::netapp: Accepted connection from da118d1b1ec2d7d9 at [::ffff:127.0.0.1]:55112 2026-05-19T23:02:52.074068Z INFO garage_api_admin::api_server: Proxied admin API request: ListBuckets 2026-05-19T23:02:52.074563Z INFO garage_net::netapp: Connection from da118d1b1ec2d7d9 closed ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions