Pull Requests Result in Error 500, after gitea restore

Problem

I’m having trouble creating pull requests after restoring gitea from its backup file.

After entering all the info for the pull request, I am sent to s error 500 screen.

Info

the only thing that jumps out from the logs is:


2020/12/01 20:59:07 ...rvices/pull/patch.go:79:TestPatch() [E] Unable to create temporary patch file! Error: open /tmp/patch649629897: permission denied

2020/12/01 20:59:07 routers/repo/pull.go:976:CompareAndPullRequestPost() [E] NewPullRequest: Unable to create temporary patch file! Error: open /tmp/patch649629897: permission denied

What kind of permissions is gitea expecting? and why wouldnt it have the proper permissions

I applied a 777 ownership to /tmp and that allowed the pull request to complete, except now it is complaining that “Merge Failed: The push was rejected but there was no remote message.
Review the githooks for this repository”