goharbor / harbor-helm

The helm chart to deploy Harbor
Apache License 2.0
1.17k stars 760 forks source link

Failed to upgrade schema, error: "file does not exist" #1246

Closed arunkumar-telnyx closed 6 months ago

arunkumar-telnyx commented 2 years ago

I was trying to upgrade the harbor version from 2.2.4 to the 2.5.3 , and chart version from 1.7.2 to 1.9.3 .

Got the following error while doing so.

2022-08-01T08:24:08Z [INFO] [/common/dao/base.go:65]: Registering database: type-PostgreSQL host-master-postgres-ops.query.consul port-5432 database-harbor_core_2 sslmode-"require"
2022-08-01T08:24:08Z [INFO] [/lib/metric/server.go:22]: Prometheus metric server running on port 8001
2022-08-01T08:24:08Z [INFO] [/common/dao/base.go:70]: Register database completed
2022-08-01T08:24:09Z [INFO] [/common/dao/pgsql.go:129]: Upgrading schema for pgsql ...
2022-08-01T08:24:09Z [INFO] [/vendor/github.com/golang-migrate/migrate/v4/migrate.go:809]: error: no migration found for version 80
2022-08-01T08:24:09Z [ERROR] [/common/dao/pgsql.go:134]: Failed to upgrade schema, error: "file does not exist"
2022-08-01T08:24:09Z [FATAL] [/core/main.go:188]: failed to migrate: file does not exist

Harbor-core is down due to this . is re-installing it is the only way to fix it ?

lizhongit commented 2 years ago

from v2.1.6 to v2.4.3 same issue

zyyw commented 2 years ago

@arunkumar-telnyx this seem like not a harbor-helm issue. Could you please open a issue in this repo:

github-actions[bot] commented 7 months ago

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

github-actions[bot] commented 6 months ago

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.