-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
push commits after upgrade from 1.8.3 to 1.9.3 errors happen #8208
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
Have you changed the binary location on server? If that, you should |
I have the same problem. And it is the pre-receove hooks. It still had
In it for a very long time. I did a clean-up and suddenly had this problem. Now I symlinked gitea to the old gogs location.
|
I just upgrade the gitea from 1.8.3 to 1.9.3, without other changes. I did not change the binary location of repositories and other settings. |
@xuenhua any logs on your log files. |
which file |
I wonder such logs are useful |
I have feedbacked log messages, why the status is still “need feedback” |
Sorry, @xuenhua , the logs don't seem very useful. Perhaps enabling a TRACE level log in app.ini will give us more information. |
I think this is still a hook problem. I am not certain why resync hooks command failed though. Is it possible that the hooks are say owned by root? @xuenhua could you paste a copy of one of the internal hooks of your repositories? |
You can recur this problem just replace the binary file “gitea-1.8.3-linux-amd64” with “gitea-1.9.3-linux-amd64” in Ubuntu OS |
@xuenhua - Sorry I missed your last comment. From what you are saying I think this is the situation:
The reason why your hooks don't work is because they will refer to the old path of the gitea executable unless you update them using the admin task: Resynchronize pre-receive, update and post-receive hooks of all repositories. If that doesn't work you need to check the permissions on your gitea-repositories on the server If you have gogs scripts in the hooks directories you need to remove them. To be more explicit, that is if there is a $GITEA_REPOSITORIES/username/reponame.git/hooks/pre-receive.d/gogs, $GITEA_REPOSITORIES/username/reponame.git/hooks/post-receive.d/gogs or $GITEA_REPOSITORIES/username/reponame.git/hooks/update.d/gogs you need to remove them. |
@xuenhua in case you've missed it: |
The new hooks are put into |
Maybe you should try and delete those old triggers manually. I'm not sure why you still have triggers from Gogs. My hooks with Gitea 1.10.0:
To remove the old hooks you can go through them and delete them one by one, but there's a faster method you can use if you are certain that you don't have any custom hooks (i.e. generated through the UI or other external means). If you have only "standard" hooks, you can try removing the Please make a backup of anything you may delete before proceeding. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
[x]
):Description
some error happen when push commits after upgrad from 1.8.3 to 1.9.3.
$ git push
Counting objects: 3, done.
Writing objects: 100% (3/3), 228 bytes | 228.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Gitea: Internal error
remote: retrieve protected branches information failed: invalid character '<' looking for beginning of value
To https://abc.com/abc/test_123.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://abc.com/abc/test_123.git'
Screenshots
The text was updated successfully, but these errors were encountered: