Solving Backend Error Issues Caused by Gitea Update
It's been over half a year since I last updated Gitea. I took the opportunity today to update the Gitea image to the latest version. Below are the issues encountered after the update and their solutions.
Problem Description
In previous versions, this option was called HOST, but it has now been changed to SMTP_ADDR. A warning indicates that the old HOST option will be removed in version 1.19.0.
This warning means that the ROUTER option under the [log] configuration in Gitea has been deprecated and should be replaced with the new configuration option [log] logger.router.MODE. This deprecated option will be completely removed in Gitea version 1.21.
Solution
This method uses Docker-deployed Gitea as an example; deployments in other environments are similar.
- Check the container ID:
2) Enter the container:
- Navigate to the configuration file directory:
4) Edit the configuration file (app.ini):
- Modify the configuration:

1706014130914.png

1706013852646.png
- Finally, restart the container: