# Problems moving gitea instance to new server

**URL:** <https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687>\
**Category:** Install/Maintain/Configure\
**Created:** [February 8, 2023, 8:43pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687 "2023-02-08T20:43:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rance](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@Rance](https://forum.gitea.com/u/Rance)\
**Post date:** [February 8, 2023, 8:43pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/1 "2023-02-08T20:43:21Z")

</div>

I had to move my personal gitea instance to a new server. In doing so i had to change OSes and Gitea version (upgrade) – not my choice per se.

copied the app.ini, db backup, and filestore to new server and the service tries to start, but fails with this error message:

Unable to register cron task update\_mirrors Error:translation is missing for task “update\_mirrors”, please add translation for “admin.dashboard.update\_mirrors”

What does this mean, and how can I fix it? New host is FreeBSD, Gitea version: 1.18.3

---

<div class="post-metadata">

**Author:** ![haazheel](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@haazheel](https://forum.gitea.com/u/haazheel)\
**Post date:** [May 12, 2023, 6:16pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/2 "2023-05-12T18:16:24Z")

</div>

Hi

I have the exact same issue here.  
I’m also on FreeBSD (12.4), and my Gitea version is 1.19.2

Any help would be much appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![jake](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jake](https://forum.gitea.com/u/jake)\
**Post date:** [May 12, 2023, 6:44pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/3 "2023-05-12T18:44:32Z")

</div>

I believe this error is a red herring, as a missing translation for your locale will not cause a crash after v1.17. It looks like the code that is getting the configuration for `[cron.update_mirrors]` is erroring but not providing an error, so Gitea defaults to the missing translation.

Can you post your config, specifically the sections starting with `[cron.`? I think issue may be with one of the values being incorrectly formatted (see [Config Cheat Sheet for v1.18](https://github.com/go-gitea/gitea/blob/release/v1.18/docs/content/doc/advanced/config-cheat-sheet.en-us.md#cron---update-mirrors-cronupdate_mirrors)).

---

<div class="post-metadata">

**Author:** ![wxiaoguang](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/wxiaoguang/32/2280_2.png) [@wxiaoguang](https://forum.gitea.com/u/wxiaoguang)\
**Post date:** [May 13, 2023, 1:51am UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/4 "2023-05-13T01:51:02Z")

</div>

You are using inconsistent custom assets files. Please remove your local custom assets (eg: locale), re-sync them from matched release.

---

<div class="post-metadata">

**Author:** ![haazheel](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@haazheel](https://forum.gitea.com/u/haazheel)\
**Post date:** [May 13, 2023, 12:13pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/5 "2023-05-13T12:13:18Z")

</div>

It’s a very simple config, no [cron.? section.  
Here it is:

```auto
APP_NAME = Gitea: Git with a cup of tea
RUN_USER = git
RUN_MODE = prod

[database]
DB_TYPE = mysql
HOST = 127.0.0.1:3306
NAME = gitea
PASSWD = my_password
#PATH = /var/db/gitea/gitea.db
SSL_MODE = disable
USER = gitea

[indexer]
ISSUE_INDEXER_PATH = /var/db/gitea/indexers/issues.bleve

[log]
ROOT_PATH = /var/log/gitea
MODE = file,console
LEVEL = Info

[mailer]
ENABLED = false

[oauth2]
JWT_SECRET = ###############################

[picture]
AVATAR_UPLOAD_PATH = /var/db/gitea/data/avatars
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = false

[repository]
#ROOT = /var/db/gitea/gitea-repositories
ROOT = /home/git/repos
# Gitea's default is 'bash', so if you have bash installed, you can comment
# this out.
#SCRIPT_TYPE = sh

[repository.upload]
TEMP_PATH = /var/db/gitea/data/tmp/uploads

[security]
INSTALL_LOCK = true
INTERNAL_TOKEN = ##########################################
SECRET_KEY = ChangeMeBeforeRunning

[session]
PROVIDER = file
PROVIDER_CONFIG = /var/db/gitea/data/sessions

[server]
DOMAIN = localhost
HTTP_ADDR = 127.0.0.1
HTTP_PORT = 3000
ROOT_URL = http://localhost:3000/
DISABLE_SSH = false
SSH_DOMAIN = %(DOMAIN)s
SSH_PORT = 22
OFFLINE_MODE = false
APP_DATA_PATH = /var/db/gitea/data

[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ENABLE_CAPTCHA = true
REQUIRE_SIGNIN_VIEW = false

```

---

<div class="post-metadata">

**Author:** ![wxiaoguang](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/wxiaoguang/32/2280_2.png) [@wxiaoguang](https://forum.gitea.com/u/wxiaoguang)\
**Post date:** [May 13, 2023, 12:16pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/6 "2023-05-13T12:16:35Z")

</div>

It’s not related to your config. But related to you locale files.

This error message (Error:translation is missing for task) is only shown when a locale key couldn’t be found in your custom locale files – unless there is a bug in Gitea binary which doesn’t pack the correct locale files.

---

<div class="post-metadata">

**Author:** ![haazheel](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@haazheel](https://forum.gitea.com/u/haazheel)\
**Post date:** [May 13, 2023, 12:42pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/7 "2023-05-13T12:42:44Z")

</div>

Where are these locale files?

I tried to uninstall and reinstall gitea completely, but I stil get the same error message…

---

<div class="post-metadata">

**Author:** ![wxiaoguang](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/wxiaoguang/32/2280_2.png) [@wxiaoguang](https://forum.gitea.com/u/wxiaoguang)\
**Post date:** [May 13, 2023, 2:48pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/8 "2023-05-13T14:48:41Z")

</div>

If you are not using custom locale files (manually put some some files in your custom directory), then maybe it’s a code/build/packaging bug of the FreeBSD release?

The full story is: when Gitea starts , it registers some internal tasks, these tasks need locale translation, so Gitea tries to translate the task names by its builtin/custom locale files. If Gitea can not find the related translation string, it reports fatal error, because in such case the locale system doesn’t work.

The 1.19 locale file is : [gitea/locale\_en-US.ini at release/v1.19 · go-gitea/gitea · GitHub](https://github.com/go-gitea/gitea/blob/release/v1.19/options/locale/locale_en-US.ini#LL2537C11-L2537C11)

You can check Gitea’s builtin assets by `./gitea embedded {list|view}` command, to see whether your binary has the builtin assets.

---

<div class="post-metadata">

**Author:** ![haazheel](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@haazheel](https://forum.gitea.com/u/haazheel)\
**Post date:** [May 14, 2023, 4:07pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/9 "2023-05-14T16:07:25Z")

</div>

It seems that the assets were not embedded in the binary.  
In the gitea FreeBSD port, there is an option “Build a single monolithic binary, with all assets included” which was disabled by default. Enabling it solved my problem.

Thanks to both of you!

---

<div class="post-metadata">

**Author:** ![wxiaoguang](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/wxiaoguang/32/2280_2.png) [@wxiaoguang](https://forum.gitea.com/u/wxiaoguang)\
**Post date:** [May 14, 2023, 4:15pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/10 "2023-05-14T16:15:34Z")

</div>

It looks like “disabled by default” causes a lot of problems. Could you suggest the maintainers to enable it by default?

---

<div class="post-metadata">

**Author:** ![fausten](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@fausten](https://forum.gitea.com/u/fausten)\
**Post date:** [August 20, 2026, 1:06pm UTC](https://forum.gitea.com/t/problems-moving-gitea-instance-to-new-server/6687/11 "2026-08-20T13:06:21Z")

</div>

```auto
TAGS="bindata" make build

```
