Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run harbor-core with message "Dirty database version" #30658

Open
davidcalleja opened this issue Nov 28, 2024 · 0 comments
Open

Failed to run harbor-core with message "Dirty database version" #30658

davidcalleja opened this issue Nov 28, 2024 · 0 comments
Assignees
Labels
harbor tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@davidcalleja
Copy link

davidcalleja commented Nov 28, 2024

Name and Version

/bitnami/harbor-core 2.12.0-debian-12-r2

What architecture are you using?

None

What steps will reproduce the bug?

Just do a harbor install in a clean kubernetes.

Are you using any custom parameters or values?

helm install harbor oci://registry-1.docker.io/bitnamicharts/harbor -n harbor \
--set postgresql.enabled=false \
--set database.type=external \
--set externalDatabase.host=postgresql-hl.shared \
--set externalDatabase.user=harbor \
--set externalDatabase.password=****** \
--set externalDatabase.coreDatabase=harbor \
--set redis.enabled=false \
--set redis.type=external \
--set externalRedis.host=redis-headless.shared \
--set externalRedis.password=*****

What do you see instead?

│ core 2024-11-28T07:46:15Z [DEBUG] [/pkg/config/db/manager.go:36]: create DB config manager with cache enabled                                                                                                                                                                                                            │
│ core 2024-11-28T07:46:15Z [INFO] [/core/main.go:164]: initializing configurations...                                                                                                                                                                                                                                     │
│ core 2024-11-28T07:46:15Z [INFO] [/lib/config/systemconfig.go:178]: key path: /etc/core/key                                                                                                                                                                                                                              │
│ core 2024-11-28T07:46:15Z [INFO] [/lib/config/config.go:92]: init secret store                                                                                                                                                                                                                                           │
│ core 2024-11-28T07:46:15Z [INFO] [/core/main.go:166]: configurations initialization completed                                                                                                                                                                                                                            │
│ core 2024-11-28T07:46:15Z [INFO] [/common/dao/base.go:67]: Registering database: type-PostgreSQL host-postgresql-hl.shared port-5432 database-harbor sslmode-"disable"                                                                                                                                                   │
│ core 2024-11-28T07:46:15Z [INFO] [/common/dao/base.go:72]: Register database completed                                                                                                                                                                                                                                   │
│ core 2024-11-28T07:46:15Z [DEBUG] [/migration/migration.go:37]: current database schema version: 1                                                                                                                                                                                                                       │
│ core 2024-11-28T07:46:15Z [INFO] [/common/dao/pgsql.go:135]: Upgrading schema for pgsql ...                                                                                                                                                                                                                              │
│ core 2024-11-28T07:46:15Z [ERROR] [/common/dao/pgsql.go:140]: Failed to upgrade schema, error: "Dirty database version 1. Fix and force version."                                                                                                                                                                        │
│ core 2024-11-28T07:46:15Z [INFO] [/bitnami/blacksmith-sandox/harbor-core-2.12.0/pkg/mod/github.com/golang-migrate/migrate/[email protected]/migrate.go:199]: Closing source and database                                                                                                                                        │
│ core 2024-11-28T07:46:15Z [INFO] [/bitnami/blacksmith-sandox/harbor-core-2.12.0/pkg/mod/github.com/golang-migrate/migrate/[email protected]/migrate.go:199]: Closing source and database                                                                                                                                        │
│ core 2024-11-28T07:46:15Z [FATAL] [/core/main.go:201]: failed to migrate the database, error: Dirty database version 1. Fix and force version.
@davidcalleja davidcalleja added the tech-issues The user has a technical issue about an application label Nov 28, 2024
@github-actions github-actions bot added the triage Triage is needed label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
harbor tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

2 participants