Skip to content

Configuration issue on Kubo 0.23dev and migration 14-15 #180

Closed
@twdragon

Description

@twdragon

I have a strange issue running a migration from the 14 to the 15th version of the repository. Actually, I tried to change the parameter Gateway.HTTPHeaders[Access-Control-Allow-Methods] but without any effect. Could you please give me some advice?

Initializing daemon...
Kubo version: 0.23.0-dev-0eeb1f5a2
Repo version: 15
System version: amd64/linux
Golang version: go1.20.8
Found outdated fs-repo, migrations need to be run.
Looking for suitable migration binaries.
Need 1 migrations, downloading.
Downloading migration: fs-repo-14-to-15...
Fetching with HTTP: "https://ipfs.io/ipfs/QmVYvjxCiUxqGjDeREFDy8SbX3zj7vhgeuprk28hgvKEq5/fs-repo-14-to-15/versions"
Fetching with HTTP: "https://ipfs.io/ipfs/QmVYvjxCiUxqGjDeREFDy8SbX3zj7vhgeuprk28hgvKEq5/fs-repo-14-to-15/v1.0.0/fs-repo-14-to-15_v1.0.0_linux-amd64.tar.gz"
Fetching with HTTP: "https://ipfs.io/ipfs/QmVYvjxCiUxqGjDeREFDy8SbX3zj7vhgeuprk28hgvKEq5/fs-repo-14-to-15/v1.0.0/fs-repo-14-to-15_v1.0.0_linux-amd64.tar.gz"
Downloaded and unpacked migration: /tmp/migrations1814328773/fs-repo-14-to-15 (v1.0.0)
Running migration fs-repo-14-to-15 ...
  => Running: /tmp/migrations1814328773/fs-repo-14-to-15 -path=/util/ipfs -verbose=true
applying 14-to-15 repo migration
locking repo at "/util/ipfs"
  - verifying version is '14'
> Upgrading config to new format
error: invalid type for .Gateway.HTTPHeaders[Access-Control-Allow-Methods] got []interface {} expected json array
The migrations of fs-repo failed:
  migration fs-repo-14-to-15 failed: exit status 1
If you think this is a bug, please file an issue and include this whole log output.
  https://github.com/ipfs/fs-repo-migrations

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High: Likely tackled by core team if no one steps upeffort/hoursEstimated to take one or several hoursexp/intermediatePrior experience is likely helpfulkind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions