Respository's home page show like empty after subgit transfer. #7220

Closed
opened 2025-11-02 07:20:01 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @lightjiao on GitHub (Apr 21, 2021).

  • Gitea version (or commit ref): 1.14.1
  • Git version:
  • Operating system: Ubuntu 20
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:
    No error log

Description

My company use SVN for version control, but I would like use git.
So I find a lightweight git server ( gitea ) deploy on virtual machine and use subgit to mirror SVN repo and git repo.

After subgit transfer:

  • ✔I can see right git log on the server's repo ( xxx/data/gitea-repositories/xxx/xxx.git ) which means subgit transfer success.
  • ✔I can clone the repo to my work machine with git clone xxx@192.168.109.128:xxx/xxx.git, and see right git commit which mirrored from SVN.
  • BUT, the repo home page looks like it's a empty repo

...

Screenshots

Originally created by @lightjiao on GitHub (Apr 21, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.14.1 - Git version: - Operating system: Ubuntu 20 <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - Log gist: No error log <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description <!-- If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services. --> My company use SVN for version control, but I would like use git. So I find a lightweight git server ( gitea ) deploy on virtual machine and use subgit to mirror SVN repo and git repo. After subgit transfer: - ✔I can see right git log on the server's repo ( xxx/data/gitea-repositories/xxx/xxx.git ) which means subgit transfer success. - ✔I can clone the repo to my work machine with `git clone xxx@192.168.109.128:xxx/xxx.git`, and see right git commit which mirrored from SVN. - ❌ BUT, the repo home page looks like it's a empty repo ... ## Screenshots ![](https://ftp.bmp.ovh/imgs/2021/04/520f1d8d12552a6c.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/stale label 2025-11-02 07:20:01 -06:00
Author
Owner

@lunny commented on GitHub (Apr 21, 2021):

Please run Resynchronize pre-receive, update and post-receive hooks of all repositories. on your admin panel.

@lunny commented on GitHub (Apr 21, 2021): Please run `Resynchronize pre-receive, update and post-receive hooks of all repositories.` on your admin panel.
Author
Owner

@lightjiao commented on GitHub (Apr 21, 2021):

It doesn't work.
I click the Resynchronize pre-receive, update and post-receive hooks of all repositories. several times, I can see the task has finished on System Notices panel.

and this is the log:

2021/04/21 06:11:39 Started POST /admin for 192.168.109.1:8117
2021/04/21 06:11:39 ...odules/cron/tasks.go:113:GetTask() [I] Getting resync_all_hooks in &{{0 0} resync_all_hooks 0xc0013bf560 0x1fd3520 11}
2021/04/21 06:11:39 Completed POST /admin 302 Found in 3.339787ms
2021/04/21 06:11:39 Started GET /admin for 192.168.109.1:8117
2021/04/21 06:11:39 Completed GET /admin 200 OK in 5.296437ms
2021/04/21 06:11:39 Started GET /avatar/09eb38435a67112073d696bff1ad81ef for 192.168.109.1:8117
2021/04/21 06:11:39 Completed GET /avatar/09eb38435a67112073d696bff1ad81ef 302 Found in 852.835µs
@lightjiao commented on GitHub (Apr 21, 2021): It doesn't work. I click the `Resynchronize pre-receive, update and post-receive hooks of all repositories.` several times, I can see the task has finished on System Notices panel. and this is the log: ``` 2021/04/21 06:11:39 Started POST /admin for 192.168.109.1:8117 2021/04/21 06:11:39 ...odules/cron/tasks.go:113:GetTask() [I] Getting resync_all_hooks in &{{0 0} resync_all_hooks 0xc0013bf560 0x1fd3520 11} 2021/04/21 06:11:39 Completed POST /admin 302 Found in 3.339787ms 2021/04/21 06:11:39 Started GET /admin for 192.168.109.1:8117 2021/04/21 06:11:39 Completed GET /admin 200 OK in 5.296437ms 2021/04/21 06:11:39 Started GET /avatar/09eb38435a67112073d696bff1ad81ef for 192.168.109.1:8117 2021/04/21 06:11:39 Completed GET /avatar/09eb38435a67112073d696bff1ad81ef 302 Found in 852.835µs ```
Author
Owner

@lunny commented on GitHub (Apr 22, 2021):

If you are using ssh, please also run Update the '.ssh/authorized_keys' file with Gitea SSH keys. (Not needed for the built-in SSH server.)

@lunny commented on GitHub (Apr 22, 2021): If you are using ssh, please also run `Update the '.ssh/authorized_keys' file with Gitea SSH keys. (Not needed for the built-in SSH server.)`
Author
Owner

@lightjiao commented on GitHub (Apr 23, 2021):

@lunny
I have run all of the Maintenance Operations on the admin panel yesterday, it still doesn't work. 😔

@lightjiao commented on GitHub (Apr 23, 2021): @lunny I have run all of the Maintenance Operations on the admin panel yesterday, it still doesn't work. 😔
Author
Owner

@lightjiao commented on GitHub (Apr 23, 2021):

I found an error log on System Notices panel:

Failed to health check repository (xxx/xxx): context deadline exceeded
@lightjiao commented on GitHub (Apr 23, 2021): I found an error log on System Notices panel: ``` Failed to health check repository (xxx/xxx): context deadline exceeded ```
Author
Owner

@lunny commented on GitHub (Apr 23, 2021):

After you run that operations, you should push again to test.

@lunny commented on GitHub (Apr 23, 2021): After you run that operations, you should push again to test.
Author
Owner

@lightjiao commented on GitHub (Apr 25, 2021):

@lunny
I pushed one commit to master branch which subgit mirrored,

  • ✔The commit transfer to SVN repo successfully
  • ✔I can see the push activity on Dashboard panel
  • Click the commit id shows on Dashboard panel but return 404
  • the repo home page are still empty

it still doesn't work : (

@lightjiao commented on GitHub (Apr 25, 2021): @lunny I pushed one commit to `master` branch which subgit mirrored, - ✔The commit transfer to SVN repo successfully - ✔I can see the push activity on Dashboard panel - ❌Click the commit id shows on Dashboard panel but return 404 - ❌the repo home page are still empty it still doesn't work : (
Author
Owner

@stale[bot] commented on GitHub (Jun 26, 2021):

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.

@stale[bot] commented on GitHub (Jun 26, 2021): 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.
Author
Owner

@zeripath commented on GitHub (Jun 26, 2021):

This is a common problem with the root cause being that the hooks are not running for whatever reason.

One of the most common reasons is the use of noexec on the partition containing the repositories - this will not work.

Another one is too restrictive a set of permissions and privileges.

Another is the incorrect settings for the hooks or making them nonexec.

A final issue is the use of a non gitea controlled key.

If you are still having trouble search through the many similar closed issues and or reopen this one.

@zeripath commented on GitHub (Jun 26, 2021): This is a common problem with the root cause being that the hooks are not running for whatever reason. One of the most common reasons is the use of noexec on the partition containing the repositories - this will not work. Another one is too restrictive a set of permissions and privileges. Another is the incorrect settings for the hooks or making them nonexec. A final issue is the use of a non gitea controlled key. If you are still having trouble search through the many similar closed issues and or reopen this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7220