-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Upgrade from v1.7 to v1.8 removed all deploy keys. #7334
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
Comments
This is weird as I don't think there's any good reason for why that might happen. I've checked both trees and my PR #5939 is in both of these. Did you have a backup of your db? I would be interested to find out what happened. |
Sadly, no. I have the un-modified git-tracked directory that I compiled the 1.7 version with, if you'd like a tarball of that. Honestly I was more confused than anything else, it's a new-ish instance with mostly mirrors, so there's nothing lost or really needing to be fixed, and I even debated about reporting it. |
Ok looking at the diff for these I can't see any reason for this to happen. I literally have no idea what could cause this! Could you check your sqlite db to see if there is another table that could be your old deploy key table? |
Either the The table name should always be |
Here's my tables:
And the table:
Hopefully this tells you more than it tells me. |
Ok that implies that you should have some deploy keys. In particular 3 keys for repo 2 and 1 key that covers repo 18 and 21. It would be interesting to know which of those keys have different fingerprints. I would hope that all 3 keys for repo 2 have different fingerprints and are different from key 14. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
I haven't had time to try to reproduce this, and the server I was developing on is in storage for a move. Closing this until/unless I run into the issue again. |
Closes: go-gitea#7334 ## Checklist The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org). ### Tests - I added test coverage for Go changes... - [ ] in their respective `*_test.go` for unit tests. - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server. - I added test coverage for JavaScript changes... - [ ] in `web_src/js/*.test.js` if it can be unit tested. - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)). ### Documentation - [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change. - [x] I did not document these changes and I do not expect someone else to do it. ### Release notes - [ ] I do not want this change to show in the release notes. - [x] I want the title to show in the release notes with a link to this pull request. - [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7726 Reviewed-by: 0ko <[email protected]> Reviewed-by: Gusted <[email protected]> Co-authored-by: Lucas Schwiderski <[email protected]> Co-committed-by: Lucas Schwiderski <[email protected]>
v1.7.0+dev-196-g7f38e2d0d built with go1.11.2 : bindata, pam, sqlite, sqlite_unlock_notify
[x]
):https://build.jakimfett.com/jobs/gitea/23
Description
When upgrading from gitea.1.7.0+dev-196-g7f38e2d0d to v1.8.3+1-ge94a84248, all deploy keys were wiped from the repositories in my instance.
Screenshots
n/a - no screenshots exist of the keys existing, and taking a screenshot of an empty interface seems redundant.
The text was updated successfully, but these errors were encountered: