Unpacker error trying to migrate from gitolite

Hello,

I’m trying to migrate my gitolite repositories to gitlab using a script, but I’m getting the following error trying to push to gitlab:

error: unpack failed: index-pack abnormal exit
! [remote rejected] transportRichLogistic -> transportRichLogistic (unpacker error)

A quick search turned out to be a permission problem on the server, but I installed gitlab using default commands available on gitlab webpage for ubuntu 14.04, anyone else had this problem?

I’m using this script https://gist.github.com/benoitzohar/57a93f8edc2a679e360e

Thanks in advance.

Thank you for reporting this and updating that you have been able to solve the issue

Indeed this error is usually caused by not having adequate disk space on the Git server, incorrect permissions on the remote repo which are not writable by the git user and corrupted local repositories.

The permissions check is included on sudo gitlab-rake gitlab:check which is a command that triggers a rake task to ensure that GitLab is correctly set up.

Could you please confirm that this happened on a fresh installation without any additional configuration or permission changes after installation because it the default configuration should work out of the box

Hello @kelvinmutuma

I haven’t resolved the problem, I ran the command you posted and I got this results:

Checking GitLab Shell …

GitLab Shell version >= 2.6.12 ? … OK (2.6.12)
Repo base directory exists? … yes
Repo base directory is a symlink? … no
Repo base owned by git:git? … yes
Repo base access is drwxrws—? … yes
hooks directories in repos are links: …
Administrator / certifactura … repository is empty
crypto / certifactura … repository is empty
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/var/opt/gitlab/git-data/repositories: OK
/var/opt/gitlab/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.8.24
Send ping to redis server: PONG
gitlab-shell self-check successful

Checking GitLab Shell … Finished

Checking Sidekiq …

Running? … yes
Number of Sidekiq processes … 1

Checking Sidekiq … Finished

Checking Reply by email …

Reply by email is disabled in config/gitlab.yml

Checking Reply by email … Finished

Checking LDAP …

LDAP is disabled in config/gitlab.yml

Checking LDAP … Finished

Checking GitLab …

Git configured with autocrlf=input? … yes
Database config exists? … yes
All migrations up? … yes
Database contains orphaned GroupMembers? … no
GitLab config exists? … yes
GitLab config outdated? … no
Log directory writable? … yes
Tmp directory writable? … yes
Uploads directory setup correctly? … skipped (no tmp uploads folder yet)
Init script exists? … skipped (omnibus-gitlab has no init script)
Init script up-to-date? … skipped (omnibus-gitlab has no init script)
projects have namespace: …
Administrator / certifactura … yes
crypto / certifactura … yes
Redis version >= 2.8.0? … yes
Ruby version >= 2.1.0 ? … yes (2.1.8)
Your git bin path is “/opt/gitlab/embedded/bin/git”
Git version >= 2.7.3 ? … yes (2.7.4)
Active users: 2

Checking GitLab … Finished

But I’m still getting the migration error, it was a clean installation using default commands. Maybe its a permissions issue with the user connecting to git?