Page 1 of 1

Gitea planned downtime for upgrade

Posted: 2022-08-15, 21:43
by Moonchild
I'm going to put some time into properly upgrading gitea to a current version since we're running into some administrative roadblocks on the old one (especially related to combating spam and bogus accounts). As far as i can tell it should have no issues with current Pale Moon in terms of the shinies many 'web apps" want to be using these days, but it does mean things will look a bit different as Tobin's custom templates will have to go; they are no longer compatible.

I'll plan this for Wednesday, August 17th. No idea how long it'll take since I'll have to take a full backup et al then work through potentially breaking changes.

Re: Gitea planned downtime for upgrade

Posted: 2022-08-16, 02:13
by andyprough
Is that your gift repo? Does it impact the forum or the addons website or the downloads pages?

Re: Gitea planned downtime for upgrade

Posted: 2022-08-16, 02:34
by athenian200
andyprough wrote:
2022-08-16, 02:13
Is that your gift repo? Does it impact the forum or the addons website or the downloads pages?
It is, and we never look a gift repo in the mouth. ;)

I think the Gitea repo is separate from the forum and the website, I remember hearing something like that once. Though obviously I wouldn't know the exact technical details, I don't expect anything else to go down while that upgrade is happening.

Re: Gitea planned downtime for upgrade

Posted: 2022-08-16, 04:27
by andyprough
Off-topic:
athenian200 wrote:
2022-08-16, 02:34
It is, and we never look a gift repo in the mouth. ;)
That's a good thing, because you can lead a gift repo to water, but you can't make it drink.

Re: Gitea planned downtime for upgrade

Posted: 2022-08-16, 07:43
by Moonchild
Off-topic:
I'll just have to repo all the gifts because of the puns :D
This affects repo.palemoon.org only.

Re: Gitea planned downtime for upgrade

Posted: 2022-08-17, 08:48
by Moonchild
The repo server is back up. note it throws a JS error in the UI, which is a known issue because we don't support EventSource in workers. This was already known by the Gitea team and fixed but it still in the pipeline on their end to be released. On our end I opened an issue to add EventSource-in-SharedWorker support (should not be too hard to port from Mozilla).

Re: Gitea planned downtime for upgrade

Posted: 2022-08-17, 11:31
by Moonchild
OK so there's a different issue I'm completely stuck at which prevents PRs from working.
WIP PRs are fine but those that should be offered to merge bork on an authorisation check if the user is allowed to merge the PR or not, and I have no clue how to move forward with that at the moment. I poked Gitea's discord server but no reply yet. maybe someone here familiar with Gitea knows how to fix this?

Log:
2022/08/17 10:58:16 ...vices/pull/update.go:109:IsUserAllowedToUpdate() [E] [62fcc9c8] pr.BaseRepo.GetUnit(unit.TypePullRequests): Unit type does not exist: TypePullRequests
2022/08/17 10:58:16 ...ers/web/repo/pull.go:509:PrepareViewPullInfo() [E] [62fcc9c8] IsUserAllowedToUpdate: Unit type does not exist: TypePullRequests

Re: Gitea planned downtime for upgrade

Posted: 2022-08-17, 14:26
by Moonchild
OK so there's a bug in gitea 1.17.0 that after migration, if the fork someone created to make a PR from has "enable pull requests" disabled in their settings (which might happen as a result of the migration) then gitea will throw an error 500 on the upstream repo PR.

Please check your forked repo settings to make sure "enable pull requests" is enabled in settings.
https://github.com/go-gitea/gitea/issues/20826 is the tracking issue for this.