#6248 Cannot push to newly created repo for package preeny (f27)
Closed: Fixed Opened by jskarvad.

Hi, I cannot push to newly created repo for preeny (f27):100:
$ git push
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 1.11 KiB | 0 bytes/s, done.
Total 5 (delta 0), 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 ssh://pkgs.fedoraproject.org/rpms/preeny
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'ssh://jskarvad@pkgs.fedoraproject.org/rpms/preeny'

The ssh works for me:
ssh -T jskarvad@pkgs.fedoraproject.org
hello jskarvad, this is jskarvad@pkgs02 running gitolite3 3.6.7-1.el7 on git 1.8.3.1


Sorry, I fixed this a couple of hours ago but forgot to mention it here.

You should be able to push now.

Sorry for the delay.

Ah, no this is the permission error on the objects on the git repo, not the one I was the error I first thought (and tried addressing).

I'll need to look further into it (but being currently AFK I'll see if someone else has the time for this).

This specific instance should be fixed, but the problem was that Pagure creates object dirs as g-w.
We need to get this fixed, or we're going to get this a lot more.

This specific instance should be fixed, but the problem was that Pagure creates object dirs as g-w.
We need to get this fixed, or we're going to get this a lot more.

Thanks it seems it's better, I got now:
remote: Traceback (most recent call last):
remote: File "./hooks/post-receive.default", line 19, in
remote: import pagure # noqa: E402
remote: File "/usr/lib/python2.7/site-packages/pagure/init.py", line 60, in
remote: APP.config.from_envvar('PAGURE_CONFIG')
remote: File "/usr/lib/python2.7/site-packages/flask/config.py", line 108, in from_envvar
remote: return self.from_pyfile(rv, silent=silent)
remote: File "/usr/lib/python2.7/site-packages/flask/config.py", line 128, in from_pyfile
remote: with open(filename) as config_file:
remote: IOError: [Errno 13] Unable to load configuration file (Permission denied): '/etc/pagure/pagure.cfg'
remote: Hook ./hooks/post-receive.default failed with error code 1

IIRC it has been reported somewhere, but it seems it builds at least now.

Metadata Update from @pingou:
- Issue tagged with: src.fp.o

I am having the same problem with my package

$ fedpkg push
/usr/lib/python2.7/site-packages/fedora/client/bodhi.py:48: DeprecationWarning: fedora.client.bodhi has been deprecated. Please use bodhi.client.bindings instead.
DeprecationWarning)
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 1.40 KiB | 1.40 MiB/s, done.
Total 6 (delta 0), reused 0 (delta 0)
remote: error: insufficient permission for adding an object to repository database ./objects
remote: fatal: failed to write object
error: remote unpack failed: unpack-objects abnormal exit
To ssh://pkgs.fedoraproject.org/rpms/deepin-notifications
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'ssh://zsun@pkgs.fedoraproject.org/rpms/deepin-notifications'
Could not execute push: Command '['git', 'push']' returned non-zero exit status 1

@zsun your issue should be fixed now

@jskarvad this is being tracked in https://pagure.io/fedora-infrastructure/issue/6235 it's an annoyance but not a blocker to do anything :)

Metadata Update from @pingou:
- Issue close_status updated to: Fixed

Metadata