Mirror hangs and abort isn't possible #12521

Closed
opened 2025-11-02 10:12:41 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @somera on GitHub (Feb 23, 2024).

Description

Just try to mirror this

https://github.com/testcontainers/testcontainers-dotnet-legacy.git

project.

It isn't wotking with 1.21.6 and on https://try.gitea.io/ .

image

There is no error in log. And you can't abbort it. Only possible way is to kill the cron task in the admin view (/admin/monitor/stacktrace?show=process).

Just run it and you can reproduce it.

Gitea Version

1.21.6

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

2.43.2

Operating System

Ubuntu 22.04.4 LTS x86_64

How are you running Gitea?

Downloaded gitea-1.21.6-linux-amd64

Database

PostgreSQL

Originally created by @somera on GitHub (Feb 23, 2024). ### Description Just try to mirror this https://github.com/testcontainers/testcontainers-dotnet-legacy.git project. It isn't wotking with 1.21.6 and on https://try.gitea.io/ . ![image](https://github.com/go-gitea/gitea/assets/8334250/d2856ef8-bcf5-40c5-93f7-624549105b77) There is no error in log. And you can't abbort it. Only possible way is to kill the cron task in the admin view (/admin/monitor/stacktrace?show=process). Just run it and you can reproduce it. ### Gitea Version 1.21.6 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 2.43.2 ### Operating System Ubuntu 22.04.4 LTS x86_64 ### How are you running Gitea? Downloaded gitea-1.21.6-linux-amd64 ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 10:12:41 -06:00
Author
Owner

@somera commented on GitHub (Feb 23, 2024):

Still running on https://try.gitea.io/ .

image

@somera commented on GitHub (Feb 23, 2024): Still running on https://try.gitea.io/ . ![image](https://github.com/go-gitea/gitea/assets/8334250/d2bedc9e-d4c3-4007-8440-c2195832f5d5)
Author
Owner

@yp05327 commented on GitHub (Feb 29, 2024):

I successfully mirrored it both in try.gitea.io and local.
https://try.gitea.io/yp05327/testcontainers-dotnet-legacy

my options:
image

@yp05327 commented on GitHub (Feb 29, 2024): I successfully mirrored it both in try.gitea.io and local. https://try.gitea.io/yp05327/testcontainers-dotnet-legacy my options: ![image](https://github.com/go-gitea/gitea/assets/18380374/854bada8-1c95-41f5-ab84-e25c2e87b40a)
Author
Owner

@yp05327 commented on GitHub (Feb 29, 2024):

I can reproduce it in 1.21.6 in windows.
image
The first error is mirror error, the rest of them happened when I click cancel button.

Then in 1.21.7, I can get same error but it will be mirrored successfully:
image

@yp05327 commented on GitHub (Feb 29, 2024): I can reproduce it in 1.21.6 in windows. ![image](https://github.com/go-gitea/gitea/assets/18380374/3398d678-3ebc-42f7-ab29-561e732999e5) The first error is mirror error, the rest of them happened when I click cancel button. Then in 1.21.7, I can get same error but it will be mirrored successfully: ![image](https://github.com/go-gitea/gitea/assets/18380374/80eab67b-24d4-4b62-9fb8-4553740b8e6f)
Author
Owner

@yp05327 commented on GitHub (Feb 29, 2024):

The mirror is success, when access the home page, it froze in reading .editorconfig in GetEditorconfig
Maybe it is related to #29301. If I revert it, it will not froze in reading .editorconfig, but in editorconfig.ParseGraceful. 😕

@yp05327 commented on GitHub (Feb 29, 2024): The mirror is success, when access the home page, it froze in reading `.editorconfig` in `GetEditorconfig` Maybe it is related to #29301. If I revert it, it will not froze in reading `.editorconfig`, but in `editorconfig.ParseGraceful`. 😕
Author
Owner

@wxiaoguang commented on GitHub (Feb 29, 2024):

The mirror is success, when access the home page, it froze in reading .editorconfig in GetEditorconfig Maybe it is related to #29301. If I revert it, it will not froze in reading .editorconfig, but in editorconfig.ParseGraceful. 😕

The "frozen" bug should has been fixed by 1.21.7

Then in 1.21.7, I can get same error but it will be mirrored successfully:

It could be another bug (maybe a longstanding problem, not related to this issue)


To be clear: 1.21.7 on windows still hangs, right?

@wxiaoguang commented on GitHub (Feb 29, 2024): > The mirror is success, when access the home page, it froze in reading `.editorconfig` in `GetEditorconfig` Maybe it is related to #29301. If I revert it, it will not froze in reading `.editorconfig`, but in `editorconfig.ParseGraceful`. 😕 The "frozen" bug should has been fixed by 1.21.7 > Then in 1.21.7, I can get same error but it will be mirrored successfully: It could be another bug (maybe a longstanding problem, not related to this issue) ---- To be clear: 1.21.7 on windows still hangs, right?
Author
Owner

@somera commented on GitHub (Feb 29, 2024):

Works for me in 1.21.7 on Ubuntu.

@somera commented on GitHub (Feb 29, 2024): Works for me in 1.21.7 on Ubuntu.
Author
Owner

@yp05327 commented on GitHub (Feb 29, 2024):

The "frozen" bug should has been fixed by 1.21.7

Ah, I tested in 1.21.6 on ubuntu, I will try it in 1.21.7

1.21.7 on windows still hangs, right?

In 1.21.7 on windows, I only got the error log, mirror didn't hang.

@yp05327 commented on GitHub (Feb 29, 2024): > The "frozen" bug should has been fixed by 1.21.7 Ah, I tested in 1.21.6 on ubuntu, I will try it in 1.21.7 > 1.21.7 on windows still hangs, right? In 1.21.7 on windows, I only got the error log, mirror didn't hang.
Author
Owner

@yp05327 commented on GitHub (Mar 1, 2024):

Tried it again in 1.21.7, I got the error on windows (both git and gogit version), but not on ubuntu

...it/repo_attribute.go:315:func2() [E] Unable to open checker for b4cc5165369ba74d667d91dcc0b637a09bd05f74. Error: failed to run attr-check. Error: exit status 1
Stderr:

git version on windows is 2.40.0.windows.1

As this is another issue, I will create a new one.

@somera
I will close this issue, as it worked after upgrade to 1.21.7
Feel free to reopen it if you have any questions. 😄

@yp05327 commented on GitHub (Mar 1, 2024): Tried it again in 1.21.7, I got the error on windows (both git and gogit version), but not on ubuntu ``` text ...it/repo_attribute.go:315:func2() [E] Unable to open checker for b4cc5165369ba74d667d91dcc0b637a09bd05f74. Error: failed to run attr-check. Error: exit status 1 Stderr: ``` git version on windows is `2.40.0.windows.1` As this is another issue, I will create a new one. @somera I will close this issue, as it worked after upgrade to 1.21.7 Feel free to reopen it if you have any questions. 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12521