Gitea: Error on commit (in UI) after renaming a repository

Created on 14 Jan 2017  路  11Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.0.0+109-ge5620f07
  • Git version: 2.8.3
  • Operating system: docker container: Linux 0c196eb4ba0f 4.4.0-53-generic 74-Ubuntu SMP (alpine 3.4.6)
  • Database:

    • [x] PostgreSQL (v9.6.1)

    • [ ] MySQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [x] No (works fine)

    • [ ] Not relevant

  • Log gist:

Description

I've renamed a repository from repository-model to domain-model. I've tried editing README.md in the Gitea UI and get this:

Failed to update/create file 'README.md' with error: 
UpdateLocalCopyBranch [branch: master]: git pull origin master: exit status 1 - fatal: 
    '/data/git/gitea-repositories/monkeys/repository-model.git' does not appear to be 
    a git repository fatal: Could not read from remote repository. Please make sure you 
    have the correct access rights and the repository exists.
  • The repository name has been changed correctly in the database.
  • The repository in gitea-repositories has been changed correctly.

I'm not sure where the old name is being picked up from.

But, A commit from Eclipse remotely works fine. This is only failing using the Gitea UI.
Update: After committing successfully from Eclipse, it still fails in the UI with the same error.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

kinbug

All 11 comments

Didn't reproduce this.

@lunny No, neither could i on try.gitea.io. Just wondering if this was a bug and it was fixed. I can't find anything though.

I've restarted the app and the error has gone away. This occurs in gogs as well according to gogs#3641.

I agree with the details in the gogs issue that it is or was a caching issue. When a new docker image is available, i'll test again.

Looks like we can close that for now. Feel free to reopen the issue if you can reproduce it.

Please re-open:

Failed to update/create file 'etc/nginx/nginx.conf' with error: UpdateLocalCopyBranch [branch: master]: git pull origin master: exit status 1 - fatal: '/var/lib/gitea/repo/francoism90/dotfiles.git' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 

Renamed dotfiles repo to arch-config in GUI. Trying to create a new file within the GUI causes this issue.

Thanks!

EDIT:
After restarting gitea, the error is gone. Seems like a caching issue?

Which version are you in. @francoism90

@lunny master (1.0.0+215-ge921dcf5).

FYI I'm running gitea as proxy using nginx, could this cause the caching issues?

Thanks.

Cannot reproduce this. Could you mean:

  1. rename some repo to other name
  2. Click New File and write something in file name and file content
  3. Then it return an error

@lunny correct. After restarting the gitea.service, the error is gone.

So strange. Let's keep it open.

I think this has been fixed sometime. I cannot reproduce it again. See https://try.gitea.io/lunny/ftpserver/src/branch/master/ttt.md

Was this page helpful?
0 / 5 - 0 ratings