#4294 remote traceback while pushing to dist-git with `Closes #6` in the commit message
Closed: Duplicate 5 years ago by pingou. Opened 5 years ago by kdudka.

$ git remote get-url origin
ssh://kdudka@pkgs.fedoraproject.org/rpms/file

$ git push
Counting objects: 6, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.37 KiB | 1.37 MiB/s, done.
Total 6 (delta 3), reused 0 (delta 0)
remote: Emitting a message to the fedmsg bus.
remote: * Publishing information for 1 commits
remote: No handlers could be found for logger "pagure.hooks.pagure_hook"
remote: Traceback (most recent call last):
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/__init__.py", line 394, in run_project_hooks
remote:     changes=changes,
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/__init__.py", line 111, in runhook
remote:     changes=changes,
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/default.py", line 279, in post_receive
remote:     session, project, repodir, username, refname, commits, forced
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/default.py", line 96, in send_notifications
remote:     if not isinstance(project, six.string_types)
remote:   File "/usr/lib/python2.7/site-packages/pagure/lib/model.py", line 986, in to_json
remote:     custom_keys = [[key.name, key.key_type] for key in self.issue_keys]
remote:   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 239, in __get__
remote:     return self.impl.get(instance_state(instance), dict_)
remote:   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/attributes.py", line 591, in get
remote:     value = self.callable_(state, passive)
remote:   File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/strategies.py", line 507, in _load_for_state
remote:     (orm_util.state_str(state), self.key)
remote: DetachedInstanceError: Parent instance <Project at 0x7f8724a54390> is not bound to a Session; lazy load operation of attribute 'issue_keys' cannot proceed
remote: Detailed log of new commits:
remote: 
remote: 
remote: (u'*', u'commit 325a9464bcbc0edfe8065c0b6cb64e8540c7b351')
remote: (u'*', u'Author: Siteshwar Vashisht <svashisht@redhat.com>')
remote: (u'*', u'Date:   Thu Feb 21 15:04:02 2019 +0100')
remote: (u'*', u'')
remote: (u'*', u'update to new version 5.36')
remote: (u'*', u'')
remote: (u'*', u'Resolves: CVE-2019-8907 - remote denial of service in do_core_note in readelf.c')
remote: (u'*', u'Resolves: CVE-2019-8905 - stack-based buffer over-read in do_core_note in readelf.c')
remote: (u'*', u'Resolves: CVE-2019-8904 - stack-based buffer over-read in do_bid_note in readelf.c')
remote: (u'*', u'Resolves: CVE-2019-8906 - out-of-bounds read in do_core_note in readelf.c')
remote: (u'*', u'')
remote: (u'*', u'Closes #6')
remote: (u'ERROR', ProgrammingError('(ProgrammingError) permission denied for relation pull_requests\n',))
remote: Sending to redis to log activity and send commit notification emails
remote: * Publishing information for 1 commits
To ssh://pkgs.fedoraproject.org/rpms/file
   3b07fcd..325a946  master -> master

This is a duplicate of https://pagure.io/pagure/issue/2874

Thanks for your report though, always appreciated :)

Metadata Update from @pingou:
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

5 years ago

I did not do anything special, just wanted to close a pull request without the utterly misleading status closed without merging. What is the suggested workaround in this case?

What is the suggested workaround in this case?

Unfortunately there are none right now, it's due to the way our dist-git is setup.

Login to comment on this ticket.

Metadata