Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

git push: insufficient permission for adding an object to repository database #1843

Closed
@vincentpaca

Description

@vincentpaca

This just happened out of nowhere. I was able to push to my deis master just fine until this happened.

> git push deis master                                                                                                                                                                            
Counting objects: 9, done.                                                                                                                                                                        
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 477 bytes | 0 bytes/s, done.
Total 5 (delta 3), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./objects

fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To ssh://git@deis.staging.asia.gce.redacted.com:2222/redacted-website.git
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'ssh://git@deis.staging.asia.gce.redacted.com:2222/redacted-website.git'

Edit:
Permissions log: http://pastebin.com/zjsER1e8

Edit 2:
For anyone else that is experiencing this issue, the fix was we deleted the repository from the builder. It works but it's not ideal.

Activity

gabrtv

gabrtv commented on Sep 15, 2014

@gabrtv
Member

@vincentpaca can you take a look at disk space inside the deis-builder component? I wonder if a disk space error could result in an I/O error that looks like a permissions error.

vincentpaca

vincentpaca commented on Sep 16, 2014

@vincentpaca
Author

@gabrtv thanks for your help.

If you look at the logs it looks like the permissions got messed up somehow. Take a look at line 2120 on pastebin. That's when it started to add root.

Could it probably be caused by a failed deploy?

gabrtv

gabrtv commented on Sep 16, 2014

@gabrtv
Member

Note this is on CoreOS 410 and an older version of Deis (which I'm not sure).

It appears root started to own files that should be owned by git starting on Sept 6. Not sure how that happened given how we execute the git-shell and hooks.

vincentpaca

vincentpaca commented on Sep 16, 2014

@vincentpaca
Author

We're currently using Deis v0.11.0

carmstrong

carmstrong commented on Sep 26, 2014

@carmstrong
Contributor

We had another customer report this happening on EC2. We need to figure out the root cause of this.

vincentpaca

vincentpaca commented on Sep 27, 2014

@vincentpaca
Author

Hmm. I haven't had this issue since. This thing is hard to reproduce too and it seems that it was very edge case. I've had this similar issue before though when I had self-hosted git.

justinhennessy

justinhennessy commented on Oct 24, 2014

@justinhennessy

Just letting you know we have had this issue a couple of times. We are currently stuck can't seem to get deploys/builds working again for this app. We are on Deis v0.12

bfosberry

bfosberry commented on Oct 30, 2014

@bfosberry

We came across this issue also just now

Solution was

ssh core@1.2.3.4
nse deis-builder
cd /home/git/myrepo.git/objects
chown -R "git:git" ./
carmstrong

carmstrong commented on Oct 30, 2014

@carmstrong
Contributor

@bfosberry Any insight as to what would have changed around that time to cause this? Node restart? Builder restart?

bfosberry

bfosberry commented on Oct 30, 2014

@bfosberry

Nah, no idea. deis-builder was still running, I dont think anything restarted. We will keep an eye out for this in the future and grab logs

jorihardman

jorihardman commented on Nov 14, 2014

@jorihardman

This has been happening to me once a day since upgrading to 1.0.0. I haven't noticed any pattern yet, but will check my logs the next time it happens.

carmstrong

carmstrong commented on Nov 14, 2014

@carmstrong
Contributor

@jorihardman I think that's the most often we've seen this occur, so while I'm sorry you're seeing it, I'm glad that it's reproducible. Please let us know if anything jumps out at you as relevant. We really want to get to the bottom of this, but it seems hard to reproduce.

jorihardman

jorihardman commented on Nov 17, 2014

@jorihardman

I just noticed something that may have caused this. I canceled a push (^C) just after compressing and writing objects. I pushed about 10 seconds later and got this error.

34 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @mboersma@jorihardman@evadne@rjocoleman@gabrtv

      Issue actions

        git push: insufficient permission for adding an object to repository database · Issue #1843 · deis/deis