* A sudden lack of permission
@ 2010-09-27 14:52 Ivan Uemlianin
2010-09-27 16:07 ` Jeff King
0 siblings, 1 reply; 5+ messages in thread
From: Ivan Uemlianin @ 2010-09-27 14:52 UTC (permalink / raw)
To: Git Mailing List
Dear All
I have been using git quite happily for a good while, pushing to my
remote. Suddenly this afternoon the remote told me I didn't have
permission:
$ git push
ivan@remote.org's password:
Counting objects: 19, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 1.04 KiB, done.
Total 11 (delta 8), 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 ivan@remote.org:/var/www/git/my_repos.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to
'ivan@remote.org:/var/www/git/my_repos.git'
I had sufficient permission even this morning!
Please could someone tell me what might have happened and, more
importantly, how I can start pushing to the remote again? The project
in my_repos is large, so I'd rather not start a new repos from scratch.
With thanks and best wishes
Ivan
--
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development
ivan@llaisdy.com
www.llaisdy.com
llaisdy.wordpress.com
www.linkedin.com/in/ivanuemlianin
"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
(Schiller, Beethoven)
============================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A sudden lack of permission
2010-09-27 14:52 A sudden lack of permission Ivan Uemlianin
@ 2010-09-27 16:07 ` Jeff King
2010-09-27 16:16 ` Ivan Uemlianin
0 siblings, 1 reply; 5+ messages in thread
From: Jeff King @ 2010-09-27 16:07 UTC (permalink / raw)
To: Ivan Uemlianin; +Cc: Git Mailing List
On Mon, Sep 27, 2010 at 03:52:52PM +0100, Ivan Uemlianin wrote:
> I have been using git quite happily for a good while, pushing to my
> remote. Suddenly this afternoon the remote told me I didn't have
> permission:
>
> $ git push
> ivan@remote.org's password:
> Counting objects: 19, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (11/11), done.
> Writing objects: 100% (11/11), 1.04 KiB, done.
> Total 11 (delta 8), 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 ivan@remote.org:/var/www/git/my_repos.git
> ! [remote rejected] master -> master (n/a (unpacker error))
> error: failed to push some refs to
> 'ivan@remote.org:/var/www/git/my_repos.git'
>
> I had sufficient permission even this morning!
>
> Please could someone tell me what might have happened and, more
> importantly, how I can start pushing to the remote again? The
> project in my_repos is large, so I'd rather not start a new repos
> from scratch.
Presumably the permissions on the server changed for some reason. Can
you ssh to the remote host and confirm that user "ivan" has permissions
to write to the repo's objects dir? If not, then you will have to figure
out what happened, but it is likely outside the scope of git (e.g., an
overly inclusive chmod by some cron job or admin on the box).
If you do have permissions, then we will have to dig deeper into why git
would fail, but the permissions would appear fine.
-Peff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A sudden lack of permission
2010-09-27 16:07 ` Jeff King
@ 2010-09-27 16:16 ` Ivan Uemlianin
2010-09-27 16:22 ` Jeff King
0 siblings, 1 reply; 5+ messages in thread
From: Ivan Uemlianin @ 2010-09-27 16:16 UTC (permalink / raw)
To: Jeff King; +Cc: Git Mailing List
Dear Peff
Thanks for your help.
Yes, I can ssh onto the server, cd to /var/www/git/my_repos.git and add,
edit files, etc.
There is another person on the box doing sysadmin. I'll ask.
Is there any reason the repos could have just broken somehow? A corrupt
push?
Best wishes
Ivan
On 27/09/2010 17:07, Jeff King wrote:
> On Mon, Sep 27, 2010 at 03:52:52PM +0100, Ivan Uemlianin wrote:
>
>> I have been using git quite happily for a good while, pushing to my
>> remote. Suddenly this afternoon the remote told me I didn't have
>> permission:
>>
>> $ git push
>> ivan@remote.org's password:
>> Counting objects: 19, done.
>> Delta compression using up to 2 threads.
>> Compressing objects: 100% (11/11), done.
>> Writing objects: 100% (11/11), 1.04 KiB, done.
>> Total 11 (delta 8), 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 ivan@remote.org:/var/www/git/my_repos.git
>> ! [remote rejected] master -> master (n/a (unpacker error))
>> error: failed to push some refs to
>> 'ivan@remote.org:/var/www/git/my_repos.git'
>>
>> I had sufficient permission even this morning!
>>
>> Please could someone tell me what might have happened and, more
>> importantly, how I can start pushing to the remote again? The
>> project in my_repos is large, so I'd rather not start a new repos
>> from scratch.
> Presumably the permissions on the server changed for some reason. Can
> you ssh to the remote host and confirm that user "ivan" has permissions
> to write to the repo's objects dir? If not, then you will have to figure
> out what happened, but it is likely outside the scope of git (e.g., an
> overly inclusive chmod by some cron job or admin on the box).
>
> If you do have permissions, then we will have to dig deeper into why git
> would fail, but the permissions would appear fine.
>
> -Peff
--
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development
ivan@llaisdy.com
www.llaisdy.com
llaisdy.wordpress.com
www.linkedin.com/in/ivanuemlianin
"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
(Schiller, Beethoven)
============================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A sudden lack of permission
2010-09-27 16:16 ` Ivan Uemlianin
@ 2010-09-27 16:22 ` Jeff King
2010-09-27 16:30 ` Ivan Uemlianin
0 siblings, 1 reply; 5+ messages in thread
From: Jeff King @ 2010-09-27 16:22 UTC (permalink / raw)
To: Ivan Uemlianin; +Cc: Git Mailing List
On Mon, Sep 27, 2010 at 05:16:43PM +0100, Ivan Uemlianin wrote:
> Thanks for your help.
>
> Yes, I can ssh onto the server, cd to /var/www/git/my_repos.git and
> add, edit files, etc.
Did you check specifically the /var/www/git/my_repos.git/objects
directory?
> Is there any reason the repos could have just broken somehow? A
> corrupt push?
I can't imagine a corrupt push would do it. Git shouldn't be changing
the permissions on the objects directory at all.
-Peff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: A sudden lack of permission
2010-09-27 16:22 ` Jeff King
@ 2010-09-27 16:30 ` Ivan Uemlianin
0 siblings, 0 replies; 5+ messages in thread
From: Ivan Uemlianin @ 2010-09-27 16:30 UTC (permalink / raw)
To: Jeff King; +Cc: Git Mailing List
On 27/09/2010 17:22, Jeff King wrote:
> On Mon, Sep 27, 2010 at 05:16:43PM +0100, Ivan Uemlianin wrote:
>
>> Yes, I can ssh onto the server, cd to /var/www/git/my_repos.git and
>> add, edit files, etc.
> Did you check specifically the /var/www/git/my_repos.git/objects
> directory?
I can add files to the objects directory, but files in subdirectories
(eg ff/, info/, pack/) are read only.
I have tried pushing to other reposes on the same server and some I can
push to some I can't. Ones I /can/ push to, their objects/ff/ etc
directories are read only.
I'm using git a lot, but as (a) it generally just works and (b) I'm
doing very basic things (pull, push, add, commit, status), I know very
little about what is really going on.
Best wishes
Ivan
--
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development
ivan@llaisdy.com
www.llaisdy.com
llaisdy.wordpress.com
www.linkedin.com/in/ivanuemlianin
"Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
(Schiller, Beethoven)
============================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-09-27 16:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27 14:52 A sudden lack of permission Ivan Uemlianin
2010-09-27 16:07 ` Jeff King
2010-09-27 16:16 ` Ivan Uemlianin
2010-09-27 16:22 ` Jeff King
2010-09-27 16:30 ` Ivan Uemlianin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.