Unable to import (migrate) repositories #14681

Closed
opened 2025-11-02 11:19:51 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @mdziczkowski on GitHub (Jun 30, 2025).

Description

When I want to import (migrate) a repository from GitHub, I recieve following error message:

You cannot import from disallowed hosts, please ask the admin to check ALLOWED_DOMAINS/ALLOW_LOCALNETWORKS/BLOCKED_DOMAINS settings.

I looked over the settings of the web interface (as adminstrator) and couldn't find any settings releated to migration to set, and thereof the both options from the error message aren't avaliable

Gitea Version

latest (docker image)

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

n/a

Git Version

No response

Operating System

Linux

How are you running Gitea?

Docker

Database

None

Originally created by @mdziczkowski on GitHub (Jun 30, 2025). ### Description When I want to import (migrate) a repository from GitHub, I recieve following error message: ``` You cannot import from disallowed hosts, please ask the admin to check ALLOWED_DOMAINS/ALLOW_LOCALNETWORKS/BLOCKED_DOMAINS settings. ``` I looked over the settings of the web interface (as adminstrator) and couldn't find any settings releated to migration to set, and thereof the both options from the error message aren't avaliable ### Gitea Version latest (docker image) ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots n/a ### Git Version _No response_ ### Operating System Linux ### How are you running Gitea? Docker ### Database None
GiteaMirror added the issue/needs-feedbackissue/not-a-bug labels 2025-11-02 11:19:51 -06:00
Author
Owner
@TheFox0x7 commented on GitHub (Jun 30, 2025): Those settings are in app.ini: https://docs.gitea.com/administration/config-cheat-sheet#migrations-migrations https://github.com/go-gitea/gitea/blob/main/custom/conf/app.example.ini#L2567-L2575
Author
Owner

@mdziczkowski commented on GitHub (Jul 6, 2025):

Thanks. I had used the cheatsheet and added the "migration" lines, but the message keep apearing, blocking me the import 🤔

@mdziczkowski commented on GitHub (Jul 6, 2025): Thanks. I had used the cheatsheet and added the "migration" lines, but the message keep apearing, blocking me the import 🤔
Author
Owner

@TheFox0x7 commented on GitHub (Jul 6, 2025):

can you post the part of the config you set?

@TheFox0x7 commented on GitHub (Jul 6, 2025): can you post the part of the config you set?
Author
Owner

@mdziczkowski commented on GitHub (Jul 7, 2025):

[migrations]
MAX_ATTEMPTS = 3
RETRY_BACKOFF = 3
ALLOWED_DOMAINS = github.com
ALLOW_LOCALNETWORKS = true
SKIP_TLS_VERIFY = true
@mdziczkowski commented on GitHub (Jul 7, 2025): ``` [migrations] MAX_ATTEMPTS = 3 RETRY_BACKOFF = 3 ALLOWED_DOMAINS = github.com ALLOW_LOCALNETWORKS = true SKIP_TLS_VERIFY = true ```
Author
Owner

@GiteaBot commented on GitHub (Aug 7, 2025):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Aug 7, 2025): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Author
Owner

@mdziczkowski commented on GitHub (Aug 10, 2025):

Sorry for the delayed answer, but I had a independant from me internet releated issues and couldn't send the answer. It's possible that it was a temporary problem.

If I may propose, please add (as default) into the Gitea config file (aspecially inside of an Docker image) all possible configration options and add into the config web interface possibility to change all the values, without need to open the created container from terminal and manually editing the file

@mdziczkowski commented on GitHub (Aug 10, 2025): Sorry for the delayed answer, but I had a independant from me internet releated issues and couldn't send the answer. It's possible that it was a temporary problem. If I may propose, please add (as default) into the Gitea config file (aspecially inside of an Docker image) all possible configration options and add into the config web interface possibility to change all the values, without need to open the created container from terminal and manually editing the file
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14681