Skip to content

Gitbucket Releases migration - PANIC whilst trying to do migrate task: runtime error: invalid memory address or nil pointer dereference #35049

@blazej222

Description

@blazej222

Description

When trying to migrate a repository from gitbucket to gitea, it fails on Releases step with PANIC whilst trying to do migrate task: runtime error: invalid memory address or nil pointer dereference.

The repo itselfs imports fine, but the problem occurs when trying to import Releases.

Steps to reproduce:

  1. Create docker compose the same as the one I included into this report.
  2. Create an empty repo on gitbucket.
  3. Create a simple test git repo with a single file and a single commit, add a Tag and push it to gitbucket
  4. On gitbucket create a release - attach any random .zip file to the release
  5. Try to migrate the repo to gitea with all options checked (LFS,Wiki,Releases,Labels etc.....)
  6. PANIC whilst trying to do migrate task: runtime error: invalid memory address or nil pointer dereference 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?

No

Log Gist

https://gist.github.com/blazej222/6e24e4a49bcd34811054842556adff03

Screenshots

No response

Git Version

2.49.0

Operating System

Windows with Docker

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions