Skip to content

seed buckets ignores SUPABASE_API_PORT and calls the storage API on the config.toml port #6452

Description

@chris-allen

Affected area

Storage

Supabase CLI version

v2.116

Operating system

Arch Linux

Installation method

pnpm

Command

SUPABASE_API_PORT=54331 supabase seed buckets

Actual output

{"_tag":"Error","error":{"code":"LegacyStorageGatewayNetworkError","message":"failed to execute http request: HttpClientError: Transport error (GET http://127.0.0.1:54321/storage/v1/bucket)"}}

Expected behavior

The storage gateway should call the resolved api.port, the same value SUPABASE_API_PORT sets for every other consumer of that setting.

Steps to reproduce

  1. mkdir /tmp/repro && cd /tmp/repro
  2. supabase init --yes
  3. Append to supabase/config.toml:
    [storage.buckets.app]
    public = false
  4. SUPABASE_API_PORT=54331 supabase seed buckets
  5. The error names http://127.0.0.1:54321/storage/v1/bucket

NOTE: The same error happens when running supabase db reset.

Crash report ID

No response

Docker and service versions

Additional context

supabase services

SERVICE IMAGE LOCAL LINKED
supabase/postgres 17.6.1.084 -
supabase/gotrue v2.187.0 -
postgrest/postgrest v16.1 -
supabase/realtime v2.129.3 -
supabase/storage-api v1.37.7 -
supabase/edge-runtime v1.74.3 -
supabase/studio 2026.08.17-sha-0c1da8f -
supabase/postgres-meta v0.98.0 -
supabase/logflare 1.50.4 -
supabase/supavisor 2.9.7 -

docker version

Client:
 Version:           29.7.2
 API version:       1.55
 Go version:        go1.26.5-X:nodwarf5
 Git commit:        a7dcaa6fdb
 Built:             Thu Aug  6 16:23:26 2026
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          29.7.2
  API version:      1.55 (minimum version 1.40)
  Go version:       go1.26.5-X:nodwarf5
  Git commit:       6a43e3d5af
  Built:            Thu Aug  6 16:23:26 2026
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v2.3.4
  GitCommit:        db8809540e1a7a9da5d518876894933ff55692ab.m
 runc:
  Version:          1.5.1
  GitCommit:
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions