mainSavannah Administration - Support: sr #108993, can't push to git repo

 
 

sr #108993: can't push to git repo

Submitter:  Arun Persaud <apersaud>
Submitted:  Fri 11 Mar 2016 04:57:36 PM UTC
   
 
Category:  Source code repositories - developer access Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  rwp
Operating System:  GNU/Linux Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 12 Mar 2016 07:02:24 PM UTC, comment #3: 

You may have had other tickets to have had a conversions or some typical thing. This ticket discussion is CC'd to savannah-help-public mailing list which is read by the other Savannah volunteers as well.

After I posted my previous response I continued looking and found the problem. The root cause of the problem is that the sgid bit on the directory was missing. Normally it is set on any group shared project directory. This means when files are created they will be created as the user's default group and not the project group.

This means that things could have been in a somewhat broken state for quite a long time. The objects are read-only creations, mostly, up until they get repacked into pack objects. Meaning that it is likely uploads have been continuing but the files created would not be of the correct group. The correct group is 'xboard' but most users will be in the 'svusers' group for the default. And there will be interaction on the refs/heads/master and other shared files. Which if not the proper shared group will work okay if the groups happen to be compatible and not if they don't and it all depends upon the mix of users that have uploaded and the order of it being done.

This was definitely an error in the way the repository was initially created. But as I said this could have been a hanging problem for quite a long time before it eventually cause the recent problems. After having found and fixed the missing sgid bit I think this both explains and solves the problem.

Bob Proulx <rwp>
Site Administrator
Sat 12 Mar 2016 05:34:17 PM UTC, comment #2: 

It's working now. Thanks...

We didn't do any rsync, but I guess you were addressing other admins ;

Arun Persaud <apersaud>
Sat 12 Mar 2016 08:30:53 AM UTC, comment #1: 

Strangely there did seem to be some permissions problems with the back end repository.  Has there been some recent work done on the back end?  Some rsync copying of files or some such?  The group was incorrect on some of the files.

I reset the permissions on the files.  Please try it again and let us know if things are okay now or not.  I will leave the ticket open for now.

Bob Proulx <rwp>
Site Administrator
Fri 11 Mar 2016 04:57:36 PM UTC, original submission:  

Hi

when trying to push to the xboard git repo, I get the following error:

Counting objects: 17, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (17/17), done.
Writing objects: 100% (17/17), 2.74 KiB | 0 bytes/s, done.
Total 17 (delta 13), 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 apersaud@git.sv.gnu.org:/srv/git/xboard.git
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'apersaud@git.sv.gnu.org:/srv/git/xboard.git'


This also happened a few days ago and other members of our project reported similar errors.

Arun Persaud <apersaud>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rwp (Posted a comment)
  • -email is unavailable- added by apersaud (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-12 rwp Open/ClosedOpen Closed
    2016-03-12 rwp StatusNone Done
        Assigned toNone rwp

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code