Strange error via git fsck command

215 views
Skip to first unread message

Guy Levkowitz

unread,
Jun 13, 2022, 5:18:21 AM6/13/22
to Repo and Gerrit Discussion
Hi

we have fsck  that runs on all our repos 
all works fine until last week that suddenly we get strange error for example(on all our repo: 
this is the repo_path--/git/abractool-- /ckp/xl/git/2.11.0/linux70x64/bin/git -C /git/abractool fsck --full notice: HEAD points to an unborn branch (master) error: unable to open ./objects/04: Permission denied error: packfile ./objects/pack/pack-e4c47ae06301c3d271989f9083046378f2be5dc4.pack index not opened fatal: failed to read object 0000000000000000000000000000000000000000: Permission denied


this is a success fsck output before this error :
this is the repo_path--/git/abractool-- /ckp/xl/git/2.11.0/linux70x64/bin/git -C /git/abractool fsck --full dangling tag f058a414c58f58d531eecfb107f26f23477ef0eb /git/abractool-Good-

we have not change anything in the repos

our Gerrit Server is version : 3.2.3
if we run the command with the repo owner (in our case is git) - it works fine 
if we run the command with any other user which works fine before it gives those error : 

 % /ckp/xl/git/2.11.0/linux70x64/bin/git -C /git/abractool fsck --full
notice: HEAD points to an unborn branch (master)
error: unable to open ./objects/04: Permission denied
Checking object directories: 100% (256/256), done.
error: packfile ./objects/pack/pack-e4c47ae06301c3d271989f9083046378f2be5dc4.pack index not opened
Checking objects: 100% (15725/15725), done.
fatal: failed to read object 0000000000000000000000000000000000000000: Permission denied
6.901u 0.099s 0:07.02 99.5%     0+0k 7152+0io 2pf+0w

what can cause this issue suddenly to happened ? 

wait for any Idea 

thanks

Guy





Matthias Sohn

unread,
Jun 13, 2022, 5:27:58 AM6/13/22
to Guy Levkowitz, Repo and Gerrit Discussion
On Mon, Jun 13, 2022 at 11:18 AM Guy Levkowitz <sil...@gmail.com> wrote:
Hi

we have fsck  that runs on all our repos 
all works fine until last week that suddenly we get strange error for example(on all our repo: 
this is the repo_path--/git/abractool-- /ckp/xl/git/2.11.0/linux70x64/bin/git -C /git/abractool fsck --full notice: HEAD points to an unborn branch (master) error: unable to open ./objects/04: Permission denied error: packfile ./objects/pack/pack-e4c47ae06301c3d271989f9083046378f2be5dc4.pack index not opened fatal: failed to read object 0000000000000000000000000000000000000000: Permission denied


this is a success fsck output before this error :
this is the repo_path--/git/abractool-- /ckp/xl/git/2.11.0/linux70x64/bin/git -C /git/abractool fsck --full dangling tag f058a414c58f58d531eecfb107f26f23477ef0eb /git/abractool-Good-

we have not change anything in the repos

our Gerrit Server is version : 3.2.3
if we run the command with the repo owner (in our case is git) - it works fine 
if we run the command with any other user which works fine before it gives those error : 

Maybe this is caused by missing filesystem permissions for the user running fsck ? 

 % /ckp/xl/git/2.11.0/linux70x64/bin/git -C /git/abractool fsck --full
notice: HEAD points to an unborn branch (master)
error: unable to open ./objects/04: Permission denied
Checking object directories: 100% (256/256), done.
error: packfile ./objects/pack/pack-e4c47ae06301c3d271989f9083046378f2be5dc4.pack index not opened
Checking objects: 100% (15725/15725), done.
fatal: failed to read object 0000000000000000000000000000000000000000: Permission denied
6.901u 0.099s 0:07.02 99.5%     0+0k 7152+0io 2pf+0w

what can cause this issue suddenly to happened ? 

wait for any Idea 

thanks

Guy





--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/94b9f02f-d701-451b-bb90-3cf4c5dcb924n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages