Description
Gitea Version
v1.15.5
Git Version
No response
Operating System
Raspbian Buster
How are you running Gitea?
I build Gitea myself on an x86 machine in an Ubuntu VM, for armv7 architecture, with docker buildx. I do this by cloning this repo, and without making changes running the following command:
sudo docker buildx build --platform linux/arm/v7 . --output=type=docker,dest=./gitea_${GITEA_VERSION}_img.tar --tag local/gitea/gitea:$GITEA_VERSION --build-arg GITEA_VERSION=v$GITEA_VERSION
$GITEA_VERSION here is the git tag of the version which I want to build. The container I currently run was built with this being set to 1.15.5
.
When this completes, I get a tar file, which I transfer to my RPi 4, and there I can sudo docker image load -i [image_path]
.
Then I adjust my docker-compose configuration to use this new image.
Database
MySQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/MPeti1/e508529515b3cbfae94b09f40087b536
Description
The problem appears in the text editor I use when creating a new issue, in the text editor of issue comments, in the text editor of wiki pages, and in the text editor of MD files of the repository too.
In the web UI, this ends in an endless "Loading..." in the place of the preview:
While debugging this problem, with my browser's developer console I've found that when I open the "Preview" tab of the editor, a request is made to https://[domain_name]/api/v1/repos/[username]/[reponame]/markdown
, which ends up with the status "403 - Forbidden".
At the same time, these 2 lines are logged in the Gitea container:
2021/10/22 22:32:22 Started POST /api/v1/repos/Home-infrastructure/Node804/markdown for [client_IP]:0
2021/10/22 22:32:22 Completed POST /api/v1/repos/Home-infrastructure/Node804/markdown 403 Forbidden in 1.112074ms
Please note, that for the log gist I tried to set the log options described here, but it did not seem to work, even though I've restarted the container.
Here is how /etc/gitea/conf/app.ini
looks like inside the Gitea container:
bash-5.1# cat /etc/gitea/conf/app.ini
[ui]
DEFAULT_THME = arc-green
[log]
MODE = console
LEVEL = debug ; please set the level to debug when we are debugging a problem
ROUTER = console
COLORIZE = false ; this can be true if you can strip out the ansi coloring
Screenshots
No response