gitea: Gitea crashes at start: pthread_create failed

Description

Screenshots

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

@TraceyC77 Can you check if the cpanel git is a binary or something like a shell-script wrapper? Not sure if that matters or not, but it’s suspicious that your default git location is not /usr/bin/git.

Both git files are binaries. The second git binary is not suspicious at all on a cPanel server, this is expected. As I had mentioned, cPanel added its own git server capabilities.

If that is the case, @lunny’s idea about having the path of git customizable in app.ini can neatly solve the issue.

It turns out that wasn’t the problem. My gitea server is now working properly, so I wanted to share what I did to solve it in case it helps @bodqhrohro

  • Updated to gitea 1.8.0 - this is what I think solved the pthread_create error
  • After this I was getting the error remote: panic: Git version missing: fork/exec /usr/local/cpanel/3rdparty/libexec/git-core/git: resource temporarily unavailable This was solved by disabling Fork Bomb Protection in WHM (this is unrelated to the original problem, including for completeness).