Cannot update existing repo after upgrade to v1.1 #481

Closed
opened 2025-11-02 03:24:59 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @tullo on GitHub (Mar 12, 2017).

Just updated to 1.1 and tried to update a wiki page through the browser for a quick test. That failed!

Then I cloned the wiki repo to my laptop, updated the wiki page. Pushing the change to server failed! Se error log below.

The Release Notes say: "The SSH keys can potentially break, make sure to regenerate the authorized keys" so I run the command through the Admin Panel.
Also removed my public ssh key from the user and added it again.

What else can I do? I am still not able to update the existing wiki / repo

OTOH creating a NEW repo and updating that works!


git push -v
Pushing to ssh://git@code.myserver.net:10022/anda/devtools.wiki.git
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 307 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: No help topic for 'update'
remote: error: hook declined to update refs/heads/master
To ssh://git@code.myserver.net:10022/anda/devtools.wiki.git
! [remote rejected] master -> master (hook declined)


  • Gitea version (or commit ref): docker pull gitea/gitea:1.1
  • Git version: 2.8.3
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

...

Screenshots

If this issue involves the Web Interface, please include a screenshot

Originally created by @tullo on GitHub (Mar 12, 2017). Just updated to 1.1 and tried to update a wiki page through the browser for a quick test. That failed! Then I cloned the wiki repo to my laptop, updated the wiki page. Pushing the change to server failed! Se error log below. The Release Notes say: "The SSH keys can potentially break, make sure to regenerate the authorized keys" so I run the command through the Admin Panel. Also removed my public ssh key from the user and added it again. What else can I do? I am still not able to update the existing wiki / repo OTOH creating a NEW repo and updating that works! ----------------------- git push -v Pushing to ssh://git@code.myserver.net:10022/anda/devtools.wiki.git Counting objects: 3, done. Delta compression using up to 8 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 307 bytes | 0 bytes/s, done. Total 3 (delta 2), reused 0 (delta 0) remote: No help topic for 'update' remote: error: hook declined to update refs/heads/master To ssh://git@code.myserver.net:10022/anda/devtools.wiki.git ! [remote rejected] master -> master (hook declined) ----------------------- - Gitea version (or commit ref): docker pull gitea/gitea:1.1 - Git version: 2.8.3 - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description ... ## Screenshots **If this issue involves the Web Interface, please include a screenshot**
GiteaMirror added the type/bug label 2025-11-02 03:24:59 -06:00
Author
Owner

@strk commented on GitHub (Mar 12, 2017):

Anything interesting in the server logs ?
Make sure to raise log level to Trace.

@strk commented on GitHub (Mar 12, 2017): Anything interesting in the server logs ? Make sure to raise log level to Trace.
Author
Owner

@lunny commented on GitHub (Mar 12, 2017):

I think I know what's happened. I will send a PR to fix this.

@lunny commented on GitHub (Mar 12, 2017): I think I know what's happened. I will send a PR to fix this.
Author
Owner

@lunny commented on GitHub (Mar 12, 2017):

@tullo, you can resolve this on your Admin Panel, execute Resync pre-receive, update and post-receive hooks of all repositories. will resolve your problem.

@lunny commented on GitHub (Mar 12, 2017): @tullo, you can resolve this on your Admin Panel, execute `Resync pre-receive, update and post-receive hooks of all repositories.` will resolve your problem.
Author
Owner

@tullo commented on GitHub (Mar 12, 2017):

@lunny tried that, but did not help unfortunately

@tullo commented on GitHub (Mar 12, 2017): @lunny tried that, but did not help unfortunately
Author
Owner

@mmozeiko commented on GitHub (Mar 13, 2017):

I see same error happening for my wiki pages after upgrade to 1.1.0. But I can push to repositories. Only editing wiki pages makes server show http 500 error page.

Log shows:

2017/03/13 08:09:35 [...routers/repo/wiki.go:487 EditWikiPost()] [E] EditWikiPage: Push: exit status 1 - remote: No help topic for 'update'
remote: error: hook declined to update refs/heads/master
To /var/lib/gitea/git/USER/REPO.wiki.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '/var/lib/gitea/git/USER/REPO.wiki.git'
@mmozeiko commented on GitHub (Mar 13, 2017): I see same error happening for my wiki pages after upgrade to 1.1.0. But I can push to repositories. Only editing wiki pages makes server show http 500 error page. Log shows: 2017/03/13 08:09:35 [...routers/repo/wiki.go:487 EditWikiPost()] [E] EditWikiPage: Push: exit status 1 - remote: No help topic for 'update' remote: error: hook declined to update refs/heads/master To /var/lib/gitea/git/USER/REPO.wiki.git ! [remote rejected] master -> master (hook declined) error: failed to push some refs to '/var/lib/gitea/git/USER/REPO.wiki.git'
Author
Owner

@lunny commented on GitHub (Mar 13, 2017):

@mmozeiko are you sure Resync pre-receive, update and post-receive hooks of all repositories. can not resolve this?

@lunny commented on GitHub (Mar 13, 2017): @mmozeiko are you sure `Resync pre-receive, update and post-receive hooks of all repositories.` can not resolve this?
Author
Owner

@mmozeiko commented on GitHub (Mar 13, 2017):

Yes, tried running running resync hooks, nothing changed.

Now I've noticed that hooks/update file is different for newly created repository wiki.
I copied this newly created update file to all the old repositories (only wiki page repos) and now editing works for me!

@mmozeiko commented on GitHub (Mar 13, 2017): Yes, tried running running resync hooks, nothing changed. Now I've noticed that `hooks/update` file is different for newly created repository wiki. I copied this newly created update file to all the old repositories (only wiki page repos) and now editing works for me!
Author
Owner

@lunny commented on GitHub (Mar 13, 2017):

@mmozeiko Yes. manually do that will let you work. But it's strange why the Resync pre-receive, update and post-receive hooks of all repositories. didn't work.

@lunny commented on GitHub (Mar 13, 2017): @mmozeiko Yes. manually do that will let you work. But it's strange why the `Resync pre-receive, update and post-receive hooks of all repositories.` didn't work.
Author
Owner

@lunny commented on GitHub (Apr 28, 2017):

@tullo #1227 should fix this issue

@lunny commented on GitHub (Apr 28, 2017): @tullo #1227 should fix this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#481