Opened 7 years ago

Closed 7 years ago

#2028 closed task (fixed)

Upgrade Gogs to Gitea

Reported by: strk Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin Keywords:
Cc:

Description

It's about time to switch from Gogs to Gitea. Procedure should be as follows:

  • Install newer GIT on the TracSVN host (#2027)
  • Put Gogs in read-only mode (or offline)
  • Dump "gogs" PostgreSQL database to "gitea"
  • Start Gitea

Change History (7)

comment:1 by strk, 7 years ago

For the record, I submitted a patch to lower the GIT version requirement of Gitea, but I'm not sure if/when it will be accepted - see https://github.com/go-gitea/git/pull/90

comment:2 by strk, 7 years ago

FYI: my patch was merged and is included in 1.3.0. Latest release is 1.3.2 with some bugfixes. I've tried 1.3.2 against Drone 0.5 which is what we're running and it works, so I guess we're ready to go. New procedure would be:

  • Put Gogs in read-only mode (or offline)
  • Dump "gogs" PostgreSQL database, restore to "gitea" database
  • Deep-copy gogs-repositories to gitea-repositories
  • Start Gitea pointing at "gitea" database and "gitea-repositories"
  • Expose Gitea to /gitea URL
  • Test test test
  • Redirect /gogs to /gitea
  • Symlink gogs-repositories to gitea-repositories (keep backup!)
  • Update wiki with all instructions

comment:3 by robe, 7 years ago

I assume you are not going strictly by the gitea to gogs upgrade described here https://docs.gitea.io/en-us/upgrade-from-gogs/ cause you want to keep gogs in read-only?

For the other folders, are you skipping those e.g attachments and other custom data cause we don't have attachments?

comment:4 by strk, 7 years ago

Initial steps done. We're now running Gitea and no more Gogs. The /gogs URL already redirects to /gitea. Please help the "Test Test Test" phase.

comment:5 by strk, 7 years ago

I didn't follow that guide. The attachment and other custom data (organization avatars) should be safe. I've updated the wiki, and all references. People should be made aware that the URIs changed, to update their git config remote.origin.url. Redirects are in place.

Please keep testing and file issues

comment:6 by strk, 7 years ago

I've mailed discuss OSGeo mailing list and added backup configuration for Gitea (database and data/ dir, no repositories).

comment:7 by strk, 7 years ago

Resolution: fixed
Status: newclosed

I think there's nothing left to do here.

Note: See TracTickets for help on using tickets.