Forgejo major version upgrade: what changes

Forgejo major upgrades need a full backup, run database migrations automatically and leave you unable to start an older binary on a migrated database. This page covers supported versions, the documented path, breaking changes, planning, testing and rollback.

On this page

What a Forgejo major version upgrade changes for your team

As of December 2026, the Forgejo release schedule labels v17.0.2 as the latest stable release and v15.0.12 as the LTS release. A major upgrade requires a full backup, runs database migrations automatically on start, and cannot be reversed by starting an older binary, because an older Forgejo refuses to start on a newer database. If your instance runs v15 or v17, the work breaks into five parts: choosing the target, following the documented path, planning the change window, testing on a copy, and deciding how you will roll back. Confirm the current release on the Forgejo release schedule before you plan, because the stable line changes every quarter and your target may move before cutover.

Plan the path before you touch the binary. Forgejo's upgrade guide ties breaking changes to the first version number, so moving from v15 to v17 crosses every major boundary in between, and the release notes for each one need review. Before the change window, run forgejo manager flush-queues, record the running version, and restore the full backup to a separate host to prove it works. Test the upgrade on a copy of your data in your own environment, and check the parts that sit outside the binary: SSO configuration, Forgejo Actions runners, webhooks and reverse proxy rules. Write the rollback as a restore from the full backup, since an older binary will not start on the migrated database.

Choose the release line on purpose. Stable releases get full support for three months plus a two-week window, and v17.0.0 is supported until January 28, 2027, while the v15 LTS line is supported until July 15, 2027, according to the Forgejo releases page. LTS releases receive critical bugfixes and security support for one year and three months, so a team that cannot upgrade every quarter should weigh the LTS line. Get outside help when the restore test fails, when the instance started on Gitea and needs the two-step path through Forgejo v10.0.x, or when no one on your team can own cutover and rollback. DeployOpen plans, upgrades and documents Forgejo in your own infrastructure under a fixed scope agreed in writing, and that scope should name the target version, the test evidence and the rollback criteria before work starts.

Which Forgejo versions are supported and when they end

This table lists the Forgejo versions that matter for an upgrade decision, with each version's status or end-of-support date and the date of the source it comes from. Read the rows against your current version: a non-LTS release ends about three months after the next release, while LTS releases carry longer support windows. Use the v10.0.x row as the first step for any upgrade from Gitea up to v1.22, and confirm its end-of-life date before you plan.

VersionStatus or end-of-support dateSource date
v17.0.0Released October 15, 2026, supported until January 28, 2027. Plan any move off this line before that date.Forgejo releases page, October 15, 2026
v17.0.2Latest stable release per the release schedule. Stable releases get full support for three months plus a two-week window, so check the end date on the schedule page.Codeberg release API, published November 18, 2026
v15.0.12LTS as of December 2026, supported until July 15, 2027. LTS releases receive critical bugfixes and security support for one year and three months.Forgejo release schedule, December 2026
v11.0LTS end-of-life July 16, 2026, now passed. Instances still on this line no longer receive project support, so prioritize the move.Forgejo release schedule, December 2026
v19.0Scheduled LTS end-of-life July 13, 2028. Schedules can change, so confirm the date on the release schedule before committing a plan.Forgejo release schedule, December 2026
v10.0.xRequired intermediate step for upgrades from Gitea up to v1.22. End-of-life date not confirmed here, so confirm it with Forgejo before planning.Forgejo upgrade guide

How stable and LTS support windows set your deadline

Your deadline is the end date of the release line you run. Forgejo's release schedule sets a quarterly cadence, with stable releases arriving in mid-January, April, July and October. Every fourth version is an LTS release, and each non-LTS version ends about three months after the next release arrives. That means a stable line you adopt today can lose support while you are still testing its successor, so the planning window is shorter than the calendar suggests. Check the end date for your exact version on the Forgejo release schedule before you book a change window.

The two track types have different support lengths. Stable releases get full support for three months plus a two-week window. LTS releases get critical bugfixes and security support for one year and three months. The supplied dates show how this plays out: v17.0.0 was released on October 15, 2026 with support until January 28, 2027, and v15 is the LTS release supported until July 15, 2027. A team running v15 should treat July 15, 2027 as its hard deadline and aim to finish the move well before it. Stable-to-stable moves, such as the v17.0 to v18.0 example in the upgrade guide, require a full backup first, so that step belongs early in the schedule.

The supplied facts do not state when the next stable release ships. The quarterly cadence points to mid-January 2027, which would be the successor to v17.0.0, but confirm the exact date on the release schedule before you commit a change window. Treat that date as a planning input until you have confirmed it. A practical check is to list every Forgejo instance you run with its version, its end-of-life date and its target upgrade window. Then ask your change board whether an upgrade can be approved and completed inside the support window of the line you are leaving, so the deadline does not force an emergency change.

How a Forgejo major version upgrade runs, step by step

This sequence takes a self-hosted Forgejo instance from its current major version to a chosen target version. The order matters because the database changes when the new version starts, and an older release will not run against it. Each step closes with a check your team can record, so reviewers and auditors can see how the change was controlled.

  1. Confirm current and target versions

    Record the version your instance runs today, then check the Forgejo release schedule for the target. The schedule names the latest stable release and the current LTS release, and it lists end-of-life dates for LTS versions, such as 15.0 on 15 July 2027, so you can see how long a target will receive fixes. Stable releases arrive quarterly in mid-January, April, July and October, and every fourth version is an LTS. Done when the source version, target version and their support dates are written in the change record.

  2. Read the upgrade guide for the target

    Open the Forgejo upgrade guide and read the section that matches your exact source and target versions. Breaking changes come only with a change to the first version number, so a move that keeps the first number should not bring them, but the notes still need a read. Whether a jump across more than one major version can skip intermediate releases is not confirmed in this sequence, so check the guide for your pair before you assume a skip is allowed. Done when the team has a written list of configuration and behavior changes that apply to its instance, along with the upgrade route it will follow.

  3. Take the two-step route from Gitea

    If the source is Gitea up to v1.22, the upgrade guide documents two steps: first upgrade to Forgejo v10.0.x, then move to a later Forgejo version. Complete the first step, confirm the instance starts and its data is intact, and only then plan the second. If your source is already Forgejo, this step does not apply. If it is a Gitea release above v1.22, confirm the route in the guide, because the two-step path is documented only up to that version. Done when the route is written as an ordered list of versions, with each intermediate version named and checked.

  4. Take a full backup before changing anything

    Take a full backup of the instance before any version change. The upgrade guide requires a full backup when moving to a new stable release, such as v17.0 to v18.0, and the same care is sensible for any move that changes the database. Back up the database, repository data, attachments and configuration files, and store a copy outside the host being upgraded. Done when a restore has been tested on a separate host and the team has recorded where the backup is kept and who can access it.

  5. Run flush-queues before the upgrade

    Run forgejo manager flush-queues on the current version before you stop the service. The upgrade guide recommends this step so queued background work is handled before the binary changes. Run the command as the same user and with the same configuration file the service uses, and confirm the exact invocation in the guide for your version. Done when the command completes and the team has checked its output and logs for errors, or has written down why items remain in the queue.

  6. Install the target version and start it

    Install the target Forgejo binary, switch the service to it, and start it. Migrations run automatically on first start, so the database schema changes at that point. An older Forgejo refuses to start on a newer database, which means putting the old binary back will not bring the instance up on its own. Rollback therefore depends on the backup taken earlier in this sequence. Done when the service starts cleanly, the logs show no migration errors, and the team records the version string the instance reports.

  7. Verify the result and record it

    Check the upgraded instance against a short test list: sign-in through your identity setup, repository reads and pushes, web UI pages, Forgejo Actions runners if you use them, and any webhooks or integrations your teams depend on. Confirm the reported version matches the target. Record the source version, target version, backup location, flush-queues output, start time and test results in the change record, so the next upgrade starts from a documented baseline. Done when the service owner has signed off the test list and the record is filed.

Which breaking changes the Forgejo documentation covers

The Forgejo upgrade guide documents a short set of rules that shape every major version move. Each card below names one documented point and what it changes for your upgrade plan. Treat the list as a starting checklist, since release-specific changes still come from each target's release notes.

Breaking changes follow the major number

The upgrade guide says breaking changes come only with a change to the first version number. For Forgejo, a move from v17 to v18 is where breaking changes can appear, while a move within v17, such as to v17.0.2, carries none under that rule. Treat the rule as a scope boundary and still check custom templates, configuration and integrations on each target.

Upgrade guide

Migrations run on startup

Forgejo runs database migrations automatically when the new version starts, so schema changes are applied as part of the upgrade itself. An older Forgejo refuses to start on a newer database, and the old binary alone will not start on the migrated data. Before you upgrade, run forgejo manager flush-queues, and take a full backup as the upgrade guide requires for a new stable release.

Upgrade guide

Gitea upgrades need two steps

Forgejo documents transparent upgrades from Gitea up to Gitea v1.22 in two steps. First, move to Forgejo v10.0.x, then move to any later Forgejo version. If your Gitea instance is at v1.22 or older, map its current version to this path before you pick a target, and test the intermediate stop with its own backup and restore check.

Actions is not GitHub Actions

Forgejo Actions is built in and designed to feel familiar to GitHub Actions users, but it is not compatible with GitHub Actions. Workflows copied from GitHub may fail or behave differently, and they may read secrets that are not set up on the Forgejo side. Before the upgrade, list the workflows your teams depend on and review each one for syntax, called actions and secrets.

Forgejo Actions overview

Runners must match the target

Forgejo Actions hands workflows to separate runners, so upgrading the server does not upgrade the runners that execute your jobs. Runners live in your own environment and need their version checked against the target server version. Plan the runner change in the same window, and confirm runner compatibility with the Forgejo documentation before you move the server.

Release notes for each target

This page does not list release-specific changes for v16, v17 or v18, so read the release notes for each target version before you plan. Read every release between your current version and your target, including intermediate ones. Log the changes that touch your configuration, templates, runners or integrations, and assign an owner to each one. Check the current stable and LTS labels on the release page before you choose a target.

Forgejo releases

Why rollback after a Forgejo upgrade means a restore

The supplied documentation does not describe a rollback procedure for a Forgejo major upgrade, so do not plan on one until the project confirms it. What the Forgejo upgrade guide does establish is that migrations run automatically and that an older Forgejo refuses to start on a newer database. You cannot point the previous binary back at the upgraded database and carry on. The practical rollback point is the full backup taken before the upgrade, which the guide requires when moving to a new stable release, and getting back to it means a restore. Ask the project which backup contents and restore steps it supports for your deployment, and run forgejo manager flush-queues before the upgrade as the guide directs.

A restore returns the instance to the state the backup captured, so every change made after that backup is lost. That includes new repositories, pushes, issues, pull requests, comments, accounts and settings edited after cutover. For illustration only, a team that cuts over on a Friday and restores on Monday should expect Monday's pushes to disappear unless they were recovered from developer clones or re-applied from another source. Check with your own teams which of those writes they can reproduce, and whether any CI history in Forgejo Actions matters to them, before the restore is ever needed.

Settle three decisions before the window opens. First, name who approves a restore, who can declare the upgrade failed, and who executes the restore with a named backup owner on call. Second, set how long users can be paused, meaning the period from the final pre-upgrade backup until the instance accepts writes again, and measure it in a rehearsal in your own environment instead of estimating it from a document. Third, list the data written after cutover that must be kept, such as pushes and merged pull requests, and decide whether each item is exported, replayed or accepted as lost. Record these decisions alongside the restore steps the project confirms.

Who prepares what before a Forgejo major version upgrade

The infrastructure team owns the failures that stay hidden until users arrive. Forgejo's upgrade guide requires a full backup before moving to a new stable release, and migrations run automatically at startup, so the restore path has to be proven before the first production start.

  • Backup scope: Cover the database, repositories, attachments, LFS objects and the app.ini configuration file. Confirm the set is complete enough for a restore, not just a copy that completed.
  • Restored staging copy: Restore the backup into a separate environment and start the target version against it. An older Forgejo refuses to start on a newer database, so the staging start is the only safe test of the migration.
  • Flush-queues step: Run forgejo manager flush-queues before the upgrade, as the upgrade guide advises, and keep the output with the change record.
  • Maintenance window: Agree the window with business owners and name the person who can call a rollback during it.
  • Restore decision: Write down the criteria that trigger a restore from backup, and who makes that call, before the window opens.

Before the upgrade starts, confirm that each item has a named owner, a written restore decision point and a staging result attached to the change.

The rollback window closes when migrations first run

The sequence starts by confirming your current version and its support dates, then reading the upgrade guide. If your source is Gitea up to v1.22, the documented path goes through Forgejo v10.0.x first. Before any binary changes, take a full backup and prove it restores on staging. That backup is the last clean rollback point. Run forgejo manager flush-queues, then upgrade and start, which runs migrations automatically. After that start, an older Forgejo cannot run on the migrated database, so a failed check means restoring from the pre-upgrade backup. Verification decides whether you close the change or restore.

Upgrade sequence from preparation to verification, with the rollback points marked.

What to test on a restored staging copy before cutover

Staging is where you learn whether the backup, the upgrade steps and daily access all still work before users depend on the new version. The six checks below follow the upgrade sequence, from restore to integrations. Forgejo's upgrade guide is the only documented procedure this page relies on, so treat each check as a starting point for your own test plan.

Prove the backup restores

Before any production change, restore the full backup taken for the upgrade onto a staging copy and confirm that Forgejo starts from it. The upgrade guide requires a full backup when moving to a new stable release, such as v17.0 to v18.0, so this backup is your rollback point and needs proof that it works. Check that the restored instance serves repositories and that database and repository data came back together. Log each restore error and fix it in the runbook. An unrestored backup is no backup, so do not count it as a rollback plan until this check passes.

Forgejo upgrade guide

Rehearse steps in order

Run the upgrade on staging with the same steps, in the same order, that production will use. The upgrade guide says migrations run automatically and that operators should run forgejo manager flush-queues before upgrading, so include that command and its output in the rehearsal log. Record what each step needed in your environment, such as credentials, host access, maintenance window approvals and the exact versions you move between. Time each step on your own hardware, because no duration in this guide applies to your setup. Repeat the rehearsal until the runbook has no open questions.

Check repository and data integrity

After the migration, verify that repositories, issues, pull requests, releases and attachments are present and readable on the staging copy. Forgejo runs migrations automatically, and a successful start does not prove that every record converted as expected. Compare repository counts and sample clones against the source instance, and confirm that a repository with a long history clones completely. Keep each check written down so a second person can repeat it during the production cutover.

Confirm authentication, SSO and admin settings

Log in through every method your users depend on, including password login, SSO and any account linking, and confirm that the admin panel and site settings survived the upgrade. Test a regular user, a repository admin and an organization owner, since each role carries different permissions to verify. Confirm the instance still uses the correct external URL and that existing access tokens and SSH keys keep working. Check that SSO redirect URLs point at the staging host using the same identity provider settings production uses, then record which settings your identity team must change before cutover.

Run Actions workflows on separate runners

Forgejo Actions hands workflows to separate runners, so the staging test must exercise those runners, not only the web interface. Choose a representative set of workflows that covers builds, tests, package publishing and deployments, and run each one against the upgraded instance. Confirm runner registration and job pickup work, that jobs report status back, and that runners can reach the secrets and artifact storage they need. Forgejo Actions is designed to feel familiar to GitHub Actions users, but it is a separate system, so workflows copied from GitHub each need their own test.

Forgejo Actions overview

Test integrations, webhooks and git clients

List every system that points at the instance, including external CI pipelines, chat notifications, issue sync jobs, deployment tools and developer git clients. Send test webhook deliveries from the staging copy to each receiver and confirm the receivers accept the payloads. Clone, push and pull from a workstation over both HTTPS and SSH, since every client path must work, and a client that works over one protocol can still fail on the other. Update each staging URL to match the cutover plan so nothing still points at the old host after the switch.

How much does a Forgejo major version upgrade cost and what drives it

How much does a Forgejo major version upgrade cost?

DeployOpen does not publish a price list, and a quote follows the written scope. Cost has three components. Your internal staff time covers the owner, host and backup access, the maintenance window and the cutover sign-off. Outside work is a fixed-scope engagement where deliverables and timelines are agreed in writing before work starts. A retainer covers ongoing upgrades and continuous testing if you want that work on a recurring basis. Planning, the first upgrade and the first test pass are one-time costs, while retainers and staff time at each later release recur. Effort rises with the number of instances, the deployment type (Docker, Kubernetes or virtual machines), the integrations, the size of the runner fleet and the depth of testing. Ask each quote to price these items separately so you can see what changes when the scope changes.

How long does a Forgejo major version upgrade take?

The supplied material gives no upgrade duration, so no duration can be stated without a written scope. The timeline depends on the number of Forgejo instances, the deployment type, the integrations that need retesting, the size of the runner fleet, the depth of testing and how quickly your owner can book a maintenance window. The upgrade guide requires a full backup before a move to a new stable release, and migrations run automatically on start, so backup and restore time counts toward the schedule. Ask for the timeline in the written scope, with planning, the test environment, the maintenance window and cutover listed as separate milestones. Confirm the support window of your target release with the Forgejo project before you fix any dates.

What does our team need to provide for a Forgejo upgrade?

You need a named owner, host and backup access, a maintenance window, test users, runner owners and a cutover sign-off person before work starts. The named owner decides on scope, risk and timing. Host access means the administrative access needed to reach the servers, containers or cluster where Forgejo runs, and backup access means the ability to take a full backup and restore it to a test system. The window must cover the backup, the migration and the checks you agree on. Test users should be people who work with repositories, pull requests and Actions every day, so they can confirm their workflows still run. Each runner needs an owner who can confirm its labels, versions and jobs. The sign-off person accepts the upgrade and the rollback position in writing. The Forgejo upgrade guide also asks operators to run forgejo manager flush-queues before upgrading, so host access must cover that step.

Can our own team upgrade Forgejo without an outside partner?

Yes, if your team can run the documented steps, restore backups and read the release notes for each version between your current release and the target. The documented steps include the full backup, running forgejo manager flush-queues, the migration that runs on start, and the fact that an older Forgejo refuses to start on a newer database. The gaps usually sit in planning and rollback testing. Planning means agreeing scope, window and sign-off. Rollback testing means proving that the restore path works on the version you plan to run. If either gap exists in your team, an outside engagement can fill it, with the written scope listing exactly which steps you hand over and which stay with you. Your team can also rehearse the full upgrade on a copy of production before the window, which reduces the risk of a first attempt on live data.

Is there a managed service that upgrades Forgejo for us?

No managed AWS, Azure or Google Cloud service running Forgejo was found in provider documentation as of December 2026, so a Forgejo upgrade runs on your own infrastructure. Your cloud account, data center or air-gapped network hosts the instance, the backups and the runners. The upgrade work is done by your team, by an outside partner under a written scope, or by both. If a provider offers a managed Forgejo service, ask it in writing which version it runs, who performs the upgrade, how backups are taken and restored, and where the data is stored. Hosting in your own environment keeps the upgrade inside your change control, but it also keeps the upgrade work on your side of the contract. Confirm the current provider documentation before you rely on this answer, because offerings can change.

What happens if a Forgejo upgrade fails and we need to roll back?

The supplied facts do not document a rollback procedure, so ask the Forgejo project for the supported rollback path before you plan one. The upgrade guide sets constraints that shape the plan. A full backup is required before a move to a new stable release, migrations run automatically on start, and an older Forgejo refuses to start on a newer database. A rollback to the previous binary may therefore fail against a database that has already been migrated, so the restore from the full backup is the path your plan must test. Ask the project whether a downgrade is supported, which steps it requires and which backups remain valid. Then rehearse the restore on a copy of production running the target version before the maintenance window. Record the rollback decision point and its owner in the written scope.

How DeployOpen plans and runs Forgejo upgrades

DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside the client's own infrastructure. For a Forgejo major version upgrade, that means working from a written scope that covers the version path, backups, migration checks and rollback before any instance changes.

How we scope

  • The written scope names your current and target Forgejo versions and the upgrade path between them.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
  • Ask for the written scope to list who performs each backup, staging test and cutover step.

How we build

  • Before any change, the plan starts with a full backup, which the upgrade guide requires for new stable releases.
  • We review breaking changes, which Forgejo's upgrade guide ties to a change in the first version number.
  • Before the upgrade, we run forgejo manager flush-queues, then test the upgrade on a staging copy.

How we hand over

  • Rollback is a restore from the pre-upgrade backup, because an older Forgejo refuses to start on a newer database.
  • The handover documents the version path, the backup location, and the commands run in your environment.
  • Handover includes a checklist of post-upgrade checks, such as logins, repositories, Actions runners and backups.

How we support

  • Stable releases get full support for three months plus a two-week window, so schedule each hop early.
  • LTS releases get critical bugfix and security support for one year and three months, which may suit slower upgrade cycles.
  • After handover, a retainer can cover upgrades, continuous testing and support for later Forgejo releases.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.