Skip to content

S3 storage mode - startup message doesn't indicate that S3 mode is enabled #49

@kpfleming

Description

@kpfleming

I've built from the main branch, and I've setup a YAML configuration file that looks like this:

listen: "127.0.0.1:8081"
base_url: "https://pkg-proxy.km6g.us"

storage:
  url: "s3://pkg-proxy?awssdk=v2&endpoint=[::1]:3910&use_path_style=true&disable_https=true&region=km6g"
  max_size: "20GB"

database:
  driver: "sqlite"
  path: "/var/lib/pkg-proxy/cache.db"

log:
  level: "info"
  format: "text"

If I modify the storage.url setting to make it invalid (a misspelled query parameter), then at startup I'll get an error message and the proxy doesn't start. This is expected.

If I correct the errors and provide a valid URL, then startup succeeds, but the proxy reports this:

time=2026-03-31T20:12:34.526-04:00 level=INFO msg="starting server" listen=127.0.0.1:8081 base_url=https://pkg-proxy.km6g.us storage=./cache/artifacts database=/var/lib/pkg-proxy/cache.db

I also don't see any connection attempts in the log of my S3-compatible server (which is Garage).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions