Failing to mirror private repositories #110

Closed
opened 2026-10-05 01:42:05 +02:00 by adam · 7 comments
Owner

Hi,

I see a lot of those errors in the forgejo log, do you have any idea why?

Failed to update mirror repository '/var/lib/forgejo/data/forgejo-repositories/crazywolf13-mirror/chezmoi.git': remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/CrazyWolf13/chezmoi.git/'
Migrate repository from  failed: Clone: exit status 128 - fatal: could not read Username for 'https://github.com': terminal prompts disabled

Thanks a lot!

Hi, I see a lot of those errors in the forgejo log, do you have any idea why? ```bash Failed to update mirror repository '/var/lib/forgejo/data/forgejo-repositories/crazywolf13-mirror/chezmoi.git': remote: Invalid username or token. Password authentication is not supported for Git operations. fatal: Authentication failed for 'https://github.com/CrazyWolf13/chezmoi.git/' ``` ```bash Migrate repository from failed: Clone: exit status 128 - fatal: could not read Username for 'https://github.com': terminal prompts disabled ``` Thanks a lot! <!-- github-sync-id:4150335457 -->
adam closed this issue 2026-10-05 01:42:05 +02:00
Author
Owner

The forgejo v12+ has new auth requirements

The forgejo v12+ has new auth requirements <!-- github-comment-id:4140930958 -->
Author
Owner

@arunavo4 this does not seem resolved.

I've upgraded to v3.14.2, cleared all errors, but they seem to re-appear.

Do I need to manually fix those repos?

@arunavo4 this does not seem resolved. I've upgraded to v3.14.2, cleared all errors, but they seem to re-appear. Do I need to manually fix those repos? <!-- github-comment-id:4141543789 -->
Author
Owner

@CrazyWolf13 can you try on a fresh setup? I think those mirrors need to re authenticated

@CrazyWolf13 can you try on a fresh setup? I think those mirrors need to re authenticated <!-- github-comment-id:4141564153 -->
Author
Owner

@arunavo4

Can this be reopened?

I just did that to those possible, sadly 1 is currently unavailable due to DMCA takedown and one is gone, so ideally I want to just keep it gitea for now.

Then I have a private repo from my org which does not show up at all in gitea-mirror? Though it seems like initially it was added just fine, so I currently wonder why it is not being displayed.

Also this is how the new repo synced from gitea-mirror looks like:

Image
@arunavo4 Can this be reopened? I just did that to those possible, sadly 1 is currently unavailable due to DMCA takedown and one is gone, so ideally I want to just keep it gitea for now. Then I have a private repo from my org which does not show up at all in gitea-mirror? Though it seems like initially it was added just fine, so I currently wonder why it is not being displayed. Also this is how the new repo synced from gitea-mirror looks like: <img width="1367" height="827" alt="Image" src="https://github.com/user-attachments/assets/ab879663-4226-4a47-b501-f7e8b21d2d84" /> <!-- github-comment-id:4141605448 -->
Author
Owner

@CrazyWolf13 looks like it will take more time to investigate how can I address this cause I don't have a similar situation. Will check it out this weekend.

@CrazyWolf13 looks like it will take more time to investigate how can I address this cause I don't have a similar situation. Will check it out this weekend. <!-- github-comment-id:4141617521 -->
Author
Owner

@arunavo4 thanks.

Let me know if more details is needed!

@arunavo4 thanks. Let me know if more details is needed! <!-- github-comment-id:4141643240 -->
Author
Owner

@CrazyWolf13 feel free to reopen if its still an issue

@CrazyWolf13 feel free to reopen if its still an issue <!-- github-comment-id:5506883946 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/gitea-mirror#110