Skip to content

Migrating a private gitbucket repo - could not read Username: terminal prompts disabled #35069

Open
@blazej222

Description

@blazej222

Description

When trying to migrate a private repository from gitbucket to gitea, it fails with authentication failed: clone error: exit status 128 - fatal: could not read Username for 'http://gitbucket:8080': terminal prompts disabled
Public repos migrate just fine.

Steps to reproduce:

1.Create docker compose the same as the one I included into this report.
2.Create an empty repo on gitbucket, initialize it with README.
3.Try to migrate the repo to gitea (uncheck releases as a workaround of #35049)
4.The described error occurs

Gitea Version

1.24.2 built with GNU Make 4.4.1, go1.24.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

https://gist.github.com/blazej222/b15d0cd702bbc8a484fa047cbae09e30

Screenshots

No response

Git Version

2.49.0

Operating System

Windows 11

How are you running Gitea?

Docker image, here's the whole docker compose:

services:
  db:
    image: postgres:16
    container_name: gitea-db
    restart: unless-stopped
    environment:
      POSTGRES_DB: gitea
      POSTGRES_USER: gitea
      POSTGRES_PASSWORD: xxx
    volumes:
      - ./postgres:/var/lib/postgresql/data
    networks:
      - gitea-net

  gitea:
    image: gitea/gitea:latest
    container_name: gitea
    restart: unless-stopped
    environment:
      DB_TYPE: postgres
      DB_HOST: db:5432
      DB_NAME: gitea
      DB_USER: gitea
      DB_PASSWD: xxx
    volumes:
      - ./gitea:/data
    ports:
      - "3000:3000"  
      - "222:22"   
    networks:
      - gitea-net
    depends_on:
      - db
  gitbucket:
    image: gitbucket/gitbucket:latest
    container_name: gitbucket
    ports:
      - "8080:8080"  
    volumes:
      - ./gitbucket:/gitbucket
    environment:
      - GITBUCKET_HOME=/gitbucket
    restart: unless-stopped
    networks:
      - gitea-net

volumes:
  gitea-db-data:
  gitea-data:

networks:
  gitea-net:
    driver: bridge

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailtopic/repo-migrationMigrate repos from other platforms to Gitea, or from Gitea to themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions