Repo migration is not working in the new version 1.14.1 #7226

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

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

  • Gitea version (or commit ref): 1.14.1
  • Git version: 2.30.2
  • Operating system: GNU/Linux Alpine 3.13.5
    We are using the official docker image in k8s:
image:
    repository: gitea/gitea
    tag: 1.14.1
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

The gitea container is logging this:

 2021/04/21 14:39:54 Started POST /api/v1/repos/migrate for 172.17.0.8:32768                                                                                                                           
 2021/04/21 14:39:54 Completed POST /api/v1/repos/migrate 409 Conflict in 37.199026ms

Description

  1. We are creating a new migration from a public github.com repository using the API /api/v1/repos/migrate

The API is returning the following error:

422 Unprocessable Entity

Migration failed: Clone: exit status 128 - fatal: unable to access 'https://github.com/go-gitea/gitea.git/': Could not resolve host: github.com

If we try to connect with github from the gitea instance, it fails:

# curl -vv https://github.com
* Could not resolve host: github.com
* Closing connection 0
curl: (6) Could not resolve host: github.com

The OS that is using the gitea docker image is:

# cat /etc/alpine-release 
3.13.5

Could be it related to https://github.com/gliderlabs/docker-alpine/issues/539?

Originally created by @angelsanchez on GitHub (Apr 21, 2021). - Gitea version (or commit ref): 1.14.1 - Git version: 2.30.2 - Operating system: GNU/Linux Alpine 3.13.5 We are using the official docker image in k8s: ``` image: repository: gitea/gitea tag: 1.14.1 ``` - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - Log gist: The gitea container is logging this: ``` 2021/04/21 14:39:54 Started POST /api/v1/repos/migrate for 172.17.0.8:32768 2021/04/21 14:39:54 Completed POST /api/v1/repos/migrate 409 Conflict in 37.199026ms ``` ## Description 1. We are creating a new migration from a public github.com repository using the API `/api/v1/repos/migrate` The API is returning the following error: ``` 422 Unprocessable Entity Migration failed: Clone: exit status 128 - fatal: unable to access 'https://github.com/go-gitea/gitea.git/': Could not resolve host: github.com ``` If we try to connect with github from the gitea instance, it fails: ``` # curl -vv https://github.com * Could not resolve host: github.com * Closing connection 0 curl: (6) Could not resolve host: github.com ``` The OS that is using the gitea docker image is: ``` # cat /etc/alpine-release 3.13.5 ``` Could be it related to https://github.com/gliderlabs/docker-alpine/issues/539?
GiteaMirror added the topic/distributionissue/needs-feedbacktype/bug labels 2025-11-02 07:20:12 -06:00
Author
Owner

@zeripath commented on GitHub (May 12, 2021):

Is this still a problem?

@zeripath commented on GitHub (May 12, 2021): Is this still a problem?
Author
Owner

@angelsanchez commented on GitHub (May 17, 2021):

I have tested the new version 1.14.2 and the problem persists:

Could not resolve host: github.com

If I execute the following command inside the gitea instance, there is a DNS issue:

# ping github.com
ping: bad address 'github.com'

# nslookup -debug github.com
Server:		10.96.0.10
Address:	10.96.0.10:53
Query #0 completed in 2ms:
Name:	github.com
Address: 140.82.121.3
Query #1 completed in 2ms:
** server can't find github.com: NXDOMAIN

After researching and testing, it seems a problem with DNS resolution using the alpine:3.13 images on Minikube with the VirtualBox driver and it is related to: https://github.com/kubernetes/minikube/issues/10830

@angelsanchez commented on GitHub (May 17, 2021): I have tested the new version `1.14.2` and the problem persists: ``` Could not resolve host: github.com ``` If I execute the following command inside the gitea instance, there is a DNS issue: ``` # ping github.com ping: bad address 'github.com' # nslookup -debug github.com Server: 10.96.0.10 Address: 10.96.0.10:53 Query #0 completed in 2ms: Name: github.com Address: 140.82.121.3 Query #1 completed in 2ms: ** server can't find github.com: NXDOMAIN ``` After researching and testing, it seems a problem with DNS resolution using the `alpine:3.13` images on Minikube with the VirtualBox driver and it is related to: https://github.com/kubernetes/minikube/issues/10830
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7226