#6260 Cannot push to "rpms/platform-python"
Closed: Fixed 6 years ago Opened 6 years ago by churchyard.

Followup to https://pagure.io/releng/fedora-scm-requests/issue/59 where the ticket seams to only be read in an automated fashion.

I cannot push to https://src.fedoraproject.org/rpms/platform-python

$ fedpkg clone platform-python && cd platform-python
$ ... git commit ...
$ git push 
Counting objects: 35, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (34/34), done.
Writing objects: 100% (35/35), 55.11 KiB | 5.01 MiB/s, done.
Total 35 (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/platform-python
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'ssh://churchyard@pkgs.fedoraproject.org/rpms/platform-python'

Also cannot push to my fork:

$ git push -u churchyard master 
FATAL: W any forks/churchyard/rpms/platform-python churchyard DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

(Waited couple of minutes)

$ git push -u churchyard master 
Counting objects: 35, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (34/34), done.
Writing objects: 100% (35/35), 55.11 KiB | 6.89 MiB/s, done.
Total 35 (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/forks/churchyard/rpms/platform-python.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'ssh://pkgs.fedoraproject.org/forks/churchyard/rpms/platform-python.git'

To reproduce: Fork the repo and try to push new commits (with new files):

$ fedpkg clone platform-python && cd platform-python
$ git remote add $USERNAME ssh://pkgs.fedoraproject.org/forks/$USERNAME/rpms/platform-python.git
$ git checkout -b test
Switched to a new branch 'test'
$ touch bbbb
$ git add bbbb 
$ git commit 
[test 9190975] Test add bbb
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 bbbb
$ git push -u $USERNAME test 
...

cc @limb @pingou @torsava


$ git push 
Counting objects: 35, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (34/34), done.
Writing objects: 100% (35/35), 55.11 KiB | 6.89 MiB/s, done.
Total 35 (delta 0), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "./hooks/post-receive.default", line 19, in <module>
remote:     import pagure  # noqa: E402
remote:   File "/usr/lib/python2.7/site-packages/pagure/__init__.py", line 62, in <module>
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
To ssh://pkgs.fedoraproject.org/rpms/platform-python
   cf65d68..325be6d  master -> master

The push happened, however the hook tracebacks on me.

It errors out on everyone and it's being tracked on: https://pagure.io/fedora-infrastructure/issue/6235

Glad it's working :)

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue tagged with: src.fp.o

6 years ago

Login to comment on this ticket.

Metadata