1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #6731 resolved

Unable to push objects to git repo (unpacker error)

Aseem Shakuntal
created an issue

Hello,

I am unable to push anything to my git repo on your server.

You might be interested in the below git log I see on my terminal.

http://pastebin.com/kuJdD3Sv

Comments (46)

  1. Aseem Shakuntal reporter

    And right now, I was able to push also using the git protocol. It still makes some sense to go through the logs and avoid any such problems in the future.

    NOT marking this as resolved to make sure someone from your team read it and if there was a bug somewhere.. they did fix it.

    PS: I respect the work you people are doing.

  2. Aseem Shakuntal reporter
    • changed status to open

    I do not think that this problem is local to my machine.

    I just now faced the same problem when trying to push over the git protocol and I had to fallback to https protocol and then push worked just fine.

    Moreover, the logs itself say that the remote rejected the changeset..

  3. Erik van Zijst staff

    I found a directory that had incorrect permissions and fixed that. Please give it another go.

    N.B.

    This would also explain why it was protocol-specific, because HTTPS and SSH run as different users on our servers and the file permissions still allowed the HTTPS user to write.

  4. liquorvicar

    Erik van Zijst Same problem here:

    Counting objects: 17, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (16/16), done.
    Writing objects: 100% (17/17), 3.10 KiB | 0 bytes/s, done.
    Total 17 (delta 11), reused 0 (delta 0)
    remote: error: insufficient permission for adding an object to repository database objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    

    Is this something that needs fixing on our repo at your end?

  5. Aseem Shakuntal reporter

    Please re-open this bug if you see the problem. Please note that I reported this bug sometime ago and I have just now confirmed that push for me works OK.

    EDIT 1: although, I must specify that I pushed an empty commit to the server. (git commit --allow-empty && git push)

    EDIT 2: And tested with an actual commit and this worked fine too.

    So, I assume the error has already been fixed by BitBucket. :)

  6. Aseem Shakuntal reporter

    David, the issue is marked as resolved since the problem has occurred in the past and it was resolved then. I assume that the problem has occurred again. So, you might want to re-open the issue. In case, you don't have rights to do that, I can do it for you.

  7. David Vartanian

    This is my last try a minute ago:

    Counting objects: 37, done. Delta compression using up to 4 threads. Compressing objects: 100% (15/15), done. Writing objects: 100% (15/15), 1.49 KiB, done. Total 15 (delta 11), reused 0 (delta 0) remote: error: insufficient permission for adding an object to repository database objects remote: fatal: failed to write object error: unpack failed: unpack-objects abnormal exit To git@bitbucket.org:{git file} ! [remote rejected] {branch name} -> {branch name} (unpacker error) error: failed to push some refs to 'git@bitbucket.org:{git file}'

  8. Aseem Shakuntal reporter

    David, btw, if its so crucial for you to push, can you try it over https??

    $ git remote add origin_https <https_url_of_your_repo>
    $ git push origin_https <your branch>
    

    For me, it worked last time.

  9. Anonymous

    Here is my log:

    $ git push origin {branchName}
    Enter passphrase for key '/home/user/.ssh/id_rsa':
    Counting objects: 275, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (84/84), done.
    Writing objects: 100% (86/86), 11.71 KiB | 0 bytes/s, done.
    Total 86 (delta 62), reused 0 (delta 0)
    remote: error: insufficient permission for adding an object to repository database objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    To git@bitbucket.org:{repositoryUrl}
     ! [remote rejected] {branchName} -> {branchName} (unpacker error)
    error: failed to push some refs to 'git@bitbucket.org:{reposityUrl}'
    
  10. Diwa del Mundo

    Having the same error message:

    Delta compression using up to 8 threads. Compressing objects: 100% (20/20), done. Writing objects: 100% (20/20), 2.09 KiB | 0 bytes/s, done. Total 20 (delta 16), reused 0 (delta 0) remote: error: insufficient permission for adding an object to repository database objects remote: fatal: failed to write object error: unpack failed: unpack-objects abnormal exit

  11. Elod Peter

    same here - any suggestion?

    elod@machine:~/{project_name} ({branch_name})$ git push origin {branch_name} 
    Counting objects: 117, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (18/18), done.
    Writing objects: 100% (19/19), 3.39 KiB | 0 bytes/s, done.
    Total 19 (delta 16), reused 4 (delta 1)
    remote: error: insufficient permission for adding an object to repository database objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    To git@bitbucket.org:{organization_name}/{project_name}.git
     ! [remote rejected] {branch_name} -> {branch_name} (unpacker error)
    error: failed to push some refs to 'git@bitbucket.org:{organization_name}/{project_name}.git'
    

    tried to push it over https - it worked! but this is still annoying

  12. Mike Peachey

    Same here:

    Counting objects: 222, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (25/25), done.
    Writing objects: 100% (29/29), 3.29 KiB | 0 bytes/s, done.
    Total 29 (delta 17), reused 0 (delta 0)
    remote: error: insufficient permission for adding an object to repository database objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    To git@bitbucket.org:<ourgroup>/<ourrepo>.git
    
  13. Jorge Arévalo

    Same problem here, with our repo

    Counting objects: 62, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (12/12), done.
    Writing objects: 100% (13/13), 1.90 KiB | 0 bytes/s, done.
    Total 13 (delta 10), reused 0 (delta 0)
    remote: error: insufficient permission for adding an object to repository database objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    Transferred: sent 5976, received 21208 bytes, in 0.9 seconds
    Bytes per second: sent 6474.6, received 22977.5
    

    It works with HTTPS. The problem is with SSH.

  14. Ron Elledge

    I'm having the same issue. It was working fine until just before lunch this morning. As suggested above, I added an https remote and pushed using https. That worked fine.

    X11 forwarding request failed on channel 0 Counting objects: 108, done. Delta compression using up to 4 threads. Compressing objects: 100% (36/36), done. Writing objects: 100% (36/36), 4.10 KiB | 0 bytes/s, done. Total 36 (delta 28), reused 0 (delta 0) remote: error: insufficient permission for adding an object to repository database objects remote: fatal: failed to write object error: unpack failed: unpack-objects abnormal exit

  15. Paul Harper

    Same error here:

    $ git push --set-upstream origin [branch]
    Counting objects: 60, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (9/9), done.
    Writing objects: 100% (9/9), 996 bytes | 0 bytes/s, done.
    Total 9 (delta 6), reused 0 (delta 0)
    remote: error: insufficient permission for adding an object to repository database objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    To [repo]
     ! [remote rejected] [branch] -> [branch] (unpacker error)
    error: failed to push some refs to [repo]
    
  16. thadeudepaula

    Same here

    Counting objects: 61, done.
    Delta compression using up to 2 threads.
    Compressing objects: 100% (29/29), done.
    Writing objects: 100% (29/29), 2.35 KiB, done.
    Total 29 (delta 27), reused 0 (delta 0)
    remote: error: insufficient permission for adding an object to repository database objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    To git@bitbucket.org:<ourpath>.git
     ! [remote rejected] master -> master (unpacker error)
    error: failed to push some refs to 'git@bitbucket.org:<ourpath>.git
    
  17. Jonathan Adams

    Same as well.

    Counting objects: 20, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (4/4), done.
    Writing objects: 100% (4/4), 684 bytes | 0 bytes/s, done.
    Total 4 (delta 3), reused 0 (delta 0)
    remote: error: insufficient permission for adding an object to repository database objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    To git@bitbucket.org:<path>.git
     ! [remote rejected] feature/MCFSFT-84a -> feature/MCFSFT-84a (unpacker error)
    error: failed to push some refs to 'git@bitbucket.org:<path>.git'
    
  18. Jose Tomas Robles Hahn

    I have successfully pushed many commits today, but approximately three hours ago I started having permission errors.

    $ git push origin foobar
    Counting objects: 47, done.
    Delta compression using up to 2 threads.
    Compressing objects: 100% (6/6), done.
    Writing objects: 100% (6/6), 569 bytes | 0 bytes/s, done.
    Total 6 (delta 4), reused 0 (delta 0)
    remote: error: insufficient permission for adding an object to repository database objects
    remote: fatal: failed to write object
    error: unpack failed: unpack-objects abnormal exit
    To git@bitbucket.org:FooTeam/bar.git
     ! [remote rejected] foobar -> foobar (unpacker error)
    error: failed to push some refs to 'git@bitbucket.org:FooTeam/bar.git'
    $
    

    Only some commits cause problems, and even cloning the Bitbucket repository and re-doing the changes doesn't fix anything.

  19. Log in to comment