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

Migration task 'add-orgs' failes with error: pq: could not create unique index "UQE_secrets_s" #2096

Closed
5 tasks done
lafriks opened this issue Aug 2, 2023 · 2 comments · Fixed by #2117
Closed
5 tasks done
Labels
bug Something isn't working server
Milestone

Comments

@lafriks
Copy link
Contributor

lafriks commented Aug 2, 2023

Component

server

Describe the bug

Migration introduced in #1873 fails with error:

2023-08-02T12:43:03Z fatal could not migrate datastore | error=run tasks failed: migration task 'add-orgs' failed: sync old secrets models failed: pq: could not create unique index "UQE_secrets_s"

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"next-aec20510"}

Additional context

2023-08-02T12:43:03Z LogLevel = info 
2023-08-02T12:43:03Z ERR migration task 'migrate-logs-to-log_entries' failed but is not required | error=Migrating logs to log_entries is skipped, as we have 108866 entries to convert. Set 'WOODPECKER_MIGRATIONS_ALLOW_LONG' to 'true' to migrate anyway
2023-08-02T12:43:03Z fatal could not migrate datastore | error=run tasks failed: migration task 'add-orgs' failed: sync old secrets models failed: pq: could not create unique index "UQE_secrets_s"

Validations

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
  • Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.
@lafriks lafriks added the bug Something isn't working label Aug 2, 2023
@lafriks lafriks added this to the 1.0.1 milestone Aug 2, 2023
@lafriks lafriks changed the title Migration task 'add-orgs' failed: sync old secrets models failed: pq: could not create unique index "UQE_secrets_s" Migration task 'add-orgs' failes with error: pq: could not create unique index "UQE_secrets_s" Aug 2, 2023
@lafriks lafriks added the server label Aug 2, 2023
@6543
Copy link
Member

6543 commented Aug 4, 2023

can you test if it was #2104 (backport: #2106)

@lafriks ?

@lafriks
Copy link
Contributor Author

lafriks commented Aug 5, 2023

can you test if it was #2104 (backport: #2106)

@lafriks ?

No, I use Gitea as forge

lafriks pushed a commit that referenced this issue Aug 7, 2023
6543 added a commit to 6543-forks/woodpecker that referenced this issue Aug 7, 2023
lafriks pushed a commit that referenced this issue Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants