#4646 Parent instance is not bound to a Session
Opened 5 years ago by onosek. Modified 5 years ago

I have just seen this during git push for branch master. It looks code (rpkg) is pushed, but do not know, what does it mean and if something is broken. See it in traceback:

git push
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 4 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 5.11 KiB | 871.00 KiB/s, done.
Total 8 (delta 3), reused 0 (delta 0)
remote: Emitting a message to the fedmsg bus.
remote: * Publishing information for 1 commits
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 319, in post_receive
remote:     session, project, repodir, username, refname, commits, forced
remote:   File "/usr/lib/python2.7/site-packages/pagure/hooks/default.py", line 151, in send_notifications
remote:     if not isinstance(project, six.string_types)
remote:   File "/usr/lib/python2.7/site-packages/pagure/lib/model.py", line 1018, 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 0x7f0431e44410> 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 667c617b5307376cd5ae162059243abeca2040bc')
remote: (u'*', u'Author: Ond\u0159ej Nosek <onosek@redhat.com>')
remote: (u'*', u'Date:   Fri Oct 25 13:16:05 2019 +0000')
remote: (u'*', u'')
remote: (u'*', u'Backporting some fixes and features')
remote: (u'*', u'')
remote: (u'*', u'- container-build: add --isolated and --koji-parent-build arguments')
remote: (u'*', u'- Pass skip_build option to buildContainer')
remote: (u'*', u'- Reuse koji_cli.lib.unique_path')
remote: (u'*', u'')
remote: (u'*', u'Signed-off-by: Ond\u0159ej Nosek <onosek@redhat.com>')
remote: Sending to redis to log activity and send commit notification emails
remote: * Publishing information for 1 commits
To ssh://pkgs.fedoraproject.org/rpms/rpkg.git
   c2ee9d5..667c617  master -> master

Log in to comment on this ticket.

Metadata