Upgrade from UI #9788

Closed
opened 2025-11-02 08:49:39 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @nacho-domatix on GitHub (Nov 5, 2022).

Feature Description

Although is really simple and easy to upgrade Gitea, I think won't be really difficult to make it work from the UI. It could be manually (as other Go apps like AdGuard do) or even automatic (that could be dangerous tho, and should require a "way back" from cli?).

Anyway, just throwing suggestions.

Screenshots

No response

Originally created by @nacho-domatix on GitHub (Nov 5, 2022). ### Feature Description Although is really simple and easy to upgrade Gitea, I think won't be really difficult to make it work from the UI. It could be manually (as other Go apps like AdGuard do) or even automatic (that could be dangerous tho, and should require a "way back" from cli?). Anyway, just throwing suggestions. ### Screenshots _No response_
GiteaMirror added the proposal/rejectedtype/proposal labels 2025-11-02 08:49:39 -06:00
Author
Owner

@lunny commented on GitHub (Nov 6, 2022):

We need to consider more things about the proposal. At least, Gitea don't know how it's running, via systemd or container or others. And second, there are also some work to download the suitable binary, and you don't know whether the version is a special version that users compile it themselves which may contains incompatible things.

@lunny commented on GitHub (Nov 6, 2022): We need to consider more things about the proposal. At least, Gitea don't know how it's running, via systemd or container or others. And second, there are also some work to download the suitable binary, and you don't know whether the version is a special version that users compile it themselves which may contains incompatible things.
Author
Owner

@nacho-domatix commented on GitHub (Nov 6, 2022):

Agree, some checks should be done before showing even the option, and if the update is easy as stop the service, download the binary, replace it and start the service provide the functionality.

@nacho-domatix commented on GitHub (Nov 6, 2022): Agree, some checks should be done before showing even the option, and if the update is easy as stop the service, download the binary, replace it and start the service provide the functionality.
Author
Owner

@lafriks commented on GitHub (Nov 6, 2022):

Problem is that gitea would run as non-privileged user so it can not really update itself. To be able to do that there must be running other service as root to do that

@lafriks commented on GitHub (Nov 6, 2022): Problem is that gitea would run as non-privileged user so it can not really update itself. To be able to do that there must be running other service as root to do that
Author
Owner

@nacho-domatix commented on GitHub (Nov 6, 2022):

I see. I guess it could ask for "root" password or so. Would be a great feature if can be done.

@nacho-domatix commented on GitHub (Nov 6, 2022): I see. I guess it could ask for "root" password or so. Would be a great feature if can be done.
Author
Owner

@ghost commented on GitHub (Nov 6, 2022):

ask for "root" password

what crazy privilege escalation!

If you perfer an automatic update container, you will like Watchover. although something may broken in future, and you don't known.

@ghost commented on GitHub (Nov 6, 2022): > ask for "root" password what crazy privilege escalation! If you perfer an automatic update container, you will like [Watchover](https://github.com/containrrr/watchtower). although something may broken in future, and you don't known.
Author
Owner

@nacho-domatix commented on GitHub (Nov 6, 2022):

what crazy privilege escalation!

Excuse my lack of knowledge (I'm not a developer neither sysadmin), but wIth cli this is quite normal. Anyway I'm just trying to help throwing ideas (even crazy ones) to make this feature happen! :)

@nacho-domatix commented on GitHub (Nov 6, 2022): > what crazy privilege escalation! Excuse my lack of knowledge (I'm not a developer neither sysadmin), but wIth cli this is quite normal. Anyway I'm just trying to help throwing ideas (even crazy ones) to make this feature happen! :)
Author
Owner

@silverwind commented on GitHub (Nov 7, 2022):

I don't think this is feasible. The only way I see is self-update via fork syscall through a separate updater process but that could only work in simple standalone non-container deployments and it would probably be only work on Linux, if at all.

Given that the majority of deployments nowadays are in containers, there's not much value to it and self-update inside a container is impossible by design.

@silverwind commented on GitHub (Nov 7, 2022): I don't think this is feasible. The only way I see is self-update via `fork` syscall through a separate updater process but that could only work in simple standalone non-container deployments and it would probably be only work on Linux, if at all. Given that the majority of deployments nowadays are in containers, there's not much value to it and self-update inside a container is impossible by design.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9788