-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Error 500 after pushing to new repos - docker #8023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you give error from gitea.log that is logged when this error happens |
Hi @lafriks. The error above |
Real error is logged in gitea.log file /data/gitea/logs/ directory |
/data/gitea/log dir is empty in k8s. The surrounding lines when webui error occurs:
|
How do you set up your Gitea using Docker? Can you post your docker-compose or the startup script for your Gitea image? |
By the way, the |
Logging is already |
I set up my Gitea with systemd and have no idea about the helm chart. For troubleshooting, the things that I would have a look are
|
You don't need the helm chart just to run the docker image (to test without systemd). Same occurs just running gitea in a simple pod (not via Kubernetes stuff, ie no ingress\services, etc). Here are all processes and the associated user:
And here are the data perms:
I haven't changed any perms. Everything under git & gitea are owned by git. Does that look right? |
@holmesb I just tested it on my macOS using Sqlite, and it worked fine.
I used the the above snippet verbatim, and saving it as |
Ok found gitea.log. It's not in /data/log as I expected, it's: /app/gitea/log/gitea.log. Here's what's logged when the 500 error occurs in the webui (when clicking a repo):
So the real error is: |
I've created a new issue to address the fact finding gitea logs in docker is not intuitive. |
I can not think of any clue about the log. Can you have a clean install with the default configurations (do not create app.ini by hand, just let Gitea generate it)? If that worked, then try to bisect the nuances between the A/B cases. |
Fixed. There was a mismatch between the tcp port memcached was listening on and app.ini setting:
Thanks @typeless for establishing that it wasn't a problem with the Dockerfile. |
@holmesb how did you manage to fix the memcache issue yea? i'm using the helm chart from https://github.com/jfelten/gitea-helm-chart as well |
In memcached container, find the port it's listening on: Then in gitea container:
and, in cache section, check the port in the |
you're a legend... thanks so much for that |
Further to issue #7499, at the request of @sapk, I am opening a new issue to track this problem on docker. Get error 500 in webui after pushing to or initialising a repo. @sapk suspects this is related to gitea not being able to read some folders for various reason. But shelling into the container and writing files in the repos dir works fine. Example of error:
I've tried SSH & HTTPS, OpenID & local login and private & non-private. Restarting container\pod doesn't help.
[x]
):Can be fixed on systemd-based systems by adding line to systemd config file:
ReadWritePaths=/path/to/git/repos
But this does not exist in docker container.The text was updated successfully, but these errors were encountered: