#9781 dist-git push (non-fatal) error
Closed: Fixed a year ago by pingou. Opened 2 years ago by zbyszek.

  • Describe the issue
$ git remote -v |grep origin
origin  ssh://zbyszek@pkgs.fedoraproject.org/rpms/systemd (fetch)
origin  ssh://zbyszek@pkgs.fedoraproject.org/rpms/systemd (push)
$ git push
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 4 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 854 bytes | 854.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 323, in run_project_hooks
remote:     authbackend = get_git_auth_helper()
remote:   File "/usr/lib/python3.6/site-packages/pagure/lib/git_auth.py", line 66, in get_git_auth_helper
remote:     _log.info("Looking for backend: %s", backend)
remote: Message: 'Looking for backend: %s'
remote: Arguments: ('distgit',)
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 197, in check_acl
remote:     self.debug("Protected namespaces: %s" % self.protected_namespaces)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: "Protected namespaces: ['rpms', 'modules', 'container']"
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 198, in check_acl
remote:     self.debug("Blocking unspecified refs: %s" % self.block_unspecified)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Blocking unspecified refs: False'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 199, in check_acl
remote:     self.debug("Blacklists: %s" % self.blacklists)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: "Blacklists: [re.compile('refs/heads/c[0-9]+.*')]"
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 200, in check_acl
remote:     self.debug("User: %s" % user)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'User: User: 1683 - name zbyszek'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 201, in check_acl
remote:     self.debug("User groups: %s" % usergroups)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: "User groups: {'scitech_sig', 'packager', 'provenpackager', 'java-maint-sig', 'neuro-sig', 'rust-sig', 'python-sig'}"
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 202, in check_acl
remote:     self.debug("Committer: %s" % is_committer)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Committer: True'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 203, in check_acl
remote:     self.debug("SIG memberships: %s" % user_sigs)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'SIG memberships: set()'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 204, in check_acl
remote:     self.debug("RCM: %s" % is_rcm)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'RCM: False'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 205, in check_acl
remote:     self.debug("By-pass PR-only: %s" % bool(bypass_pr_only))
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'By-pass PR-only: True'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 249, in check_acl
remote:     self.debug("Branch %s is supported" % refname)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Branch refs/heads/master is supported'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 270, in check_acl
remote:     self.debug("Unspecified branch push")
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Unspecified branch push'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/pre-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 287, in check_acl
remote:     self.debug("Committer push")
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Committer push'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 323, in run_project_hooks
remote:     authbackend = get_git_auth_helper()
remote:   File "/usr/lib/python3.6/site-packages/pagure/lib/git_auth.py", line 66, in get_git_auth_helper
remote:     _log.info("Looking for backend: %s", backend)
remote: Message: 'Looking for backend: %s'
remote: Arguments: ('distgit',)
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 197, in check_acl
remote:     self.debug("Protected namespaces: %s" % self.protected_namespaces)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: "Protected namespaces: ['rpms', 'modules', 'container']"
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 198, in check_acl
remote:     self.debug("Blocking unspecified refs: %s" % self.block_unspecified)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Blocking unspecified refs: False'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 199, in check_acl
remote:     self.debug("Blacklists: %s" % self.blacklists)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: "Blacklists: [re.compile('refs/heads/c[0-9]+.*')]"
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 200, in check_acl
remote:     self.debug("User: %s" % user)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'User: User: 1683 - name zbyszek'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 201, in check_acl
remote:     self.debug("User groups: %s" % usergroups)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: "User groups: {'scitech_sig', 'python-sig', 'rust-sig', 'provenpackager', 'neuro-sig', 'packager', 'java-maint-sig'}"
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 202, in check_acl
remote:     self.debug("Committer: %s" % is_committer)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Committer: True'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 203, in check_acl
remote:     self.debug("SIG memberships: %s" % user_sigs)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'SIG memberships: set()'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 204, in check_acl
remote:     self.debug("RCM: %s" % is_rcm)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'RCM: False'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 205, in check_acl
remote:     self.debug("By-pass PR-only: %s" % bool(bypass_pr_only))
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'By-pass PR-only: True'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 249, in check_acl
remote:     self.debug("Branch %s is supported" % refname)
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Branch refs/heads/master is supported'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 270, in check_acl
remote:     self.debug("Unspecified branch push")
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Unspecified branch push'
remote: Arguments: ()
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "hooks/update", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 353, in run_project_hooks
remote:     repodir=repodir,
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 287, in check_acl
remote:     self.debug("Committer push")
remote:   File "/usr/lib/python3.6/site-packages/dist_git_auth.py", line 128, in debug
remote:     _log.debug(msg)
remote: Message: 'Committer push'
remote: Arguments: ()
remote: Emitting a message to the fedora-messaging message bus.
remote: * Publishing information for 1 commits
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/files/post-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 323, in run_project_hooks
remote:     authbackend = get_git_auth_helper()
remote:   File "/usr/lib/python3.6/site-packages/pagure/lib/git_auth.py", line 66, in get_git_auth_helper
remote:     _log.info("Looking for backend: %s", backend)
remote: Message: 'Looking for backend: %s'
remote: Arguments: ('distgit',)
remote: --- Logging error ---
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 72, in emit
remote:     self.doRollover()
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 396, in doRollover
remote:     self.rotate(self.baseFilename, dfn)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 113, in rotate
remote:     os.rename(source, dest)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log' -> '/var/log/pagure/pagure_auth.log.2020-09-30'
remote: Call stack:
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/files/post-receive", line 48, in <module>
remote:     run_hook_file(hooktype)
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 547, in run_hook_file
remote:     pull_request,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 392, in run_project_hooks
remote:     changes=changes,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/__init__.py", line 111, in runhook
remote:     changes=changes,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/default.py", line 425, in post_receive
remote:     oldrev,
remote:   File "/usr/lib/python3.6/site-packages/pagure/hooks/default.py", line 203, in send_notifications
remote:     pagure.lib.notify.blinker_publish(topic, msg)
remote:   File "/usr/lib/python3.6/site-packages/pagure/lib/notify.py", line 138, in blinker_publish
remote:     _log.info("Sending blinker signal to: pagure - topic: %s", topic)
remote: Message: 'Sending blinker signal to: pagure - topic: %s'
remote: Arguments: ('git.receive',)
remote: Sending to redis to log activity and send commit notification emails
remote: * Publishing information for 1 commits
remote:   - to fedora-message
To ssh://pkgs.fedoraproject.org/rpms/systemd
   7d7120d566..283a994776  master -> master

This ticket is opened Just FYI, the push seems to have worked, so I don't care.


It might be the updates we were running which might have caused the issue for some time.

I am closing it for now and please reopen it if you notice the issue again.

Thanks.

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

2 years ago

The permission error is now 100% fatal:

$ git push origin --all
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 4 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 676 bytes | 676.00 KiB/s, done.
Total 5 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Traceback (most recent call last):
remote:   File "/usr/lib64/python3.6/logging/config.py", line 565, in configure
remote:     handler = self.configure_handler(handlers[name])
remote:   File "/usr/lib64/python3.6/logging/config.py", line 738, in configure_handler
remote:     result = factory(**kwargs)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 202, in __init__
remote:     BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay)
remote:   File "/usr/lib64/python3.6/logging/handlers.py", line 57, in __init__
remote:     logging.FileHandler.__init__(self, filename, mode, encoding, delay)
remote:   File "/usr/lib64/python3.6/logging/__init__.py", line 1032, in __init__
remote:     StreamHandler.__init__(self, self._open())
remote:   File "/usr/lib64/python3.6/logging/__init__.py", line 1061, in _open
remote:     return open(self.baseFilename, self.mode, encoding=self.encoding)
remote: PermissionError: [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log'
remote: 
remote: During handling of the above exception, another exception occurred:
remote: 
remote: Traceback (most recent call last):
remote:   File "hooks/pre-receive", line 45, in <module>
remote:     pagure.utils.set_up_logging(configkey=confkey)
remote:   File "/usr/lib/python3.6/site-packages/pagure/utils.py", line 46, in set_up_logging
remote:     logging.config.dictConfig(pagure_config.get(configkey) or {"version": 1})
remote:   File "/usr/lib64/python3.6/logging/config.py", line 802, in dictConfig
remote:     dictConfigClass(config).configure()
remote:   File "/usr/lib64/python3.6/logging/config.py", line 573, in configure
remote:     '%r: %s' % (name, e))
remote: ValueError: Unable to configure handler 'auth_handler': [Errno 13] Permission denied: '/var/log/pagure/pagure_auth.log'
To ssh://pkgs.fedoraproject.org/rpms/golang-github-tdewolff-parse
 ! [remote rejected] f31 -> f31 (pre-receive hook declined)
 ! [remote rejected] f32 -> f32 (pre-receive hook declined)
 ! [remote rejected] f33 -> f33 (pre-receive hook declined)
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://qulogic@pkgs.fedoraproject.org/rpms/golang-github-tdewolff-parse'

Metadata Update from @kevin:
- Issue status updated to: Open (was: Closed)

2 years ago

@pingou this seems to be caused by pagure rotating the log and whatever user pushes after that gets owner/group...

We possibly need some facls here?

We possibly need some facls here?

I thought we had them (for the reasons you mentioned) but I'm not seeing them in ansible so that's a bummer :(

In addition: @ngompa it looks like the update of the package changed/reset the ACLs on the /var/log/pagure folder. Is that something we can prevent in the packaging? (Don't change back the ACLs if they changed)

Metadata Update from @mohanboddu:
- Issue tagged with: medium-gain, medium-trouble, ops

2 years ago

Ah, so it is in ansible, in roles/distgit/pagure/tasks/main.yml:

  • name: create the /var/log/pagure folder where to store the logs
    file: state=directory
    path=/var/log/pagure
    owner=pagure group=packager mode=u+rwx,g+rwxs,o+rx

So, I think this just needs adjusting in the package. ie, now when we upgrade it changes that and we have to run the playbook again to fix it.

Should we keep this to track that, or file a bugzilla bug on the package or ?

Metadata Update from @kevin:
- Issue untagged with: medium-gain, medium-trouble, ops

2 years ago

Metadata Update from @pingou:
- Issue tagged with: medium-gain, medium-trouble, ops

2 years ago

We are currently not setting any ownership stuff in RPM, so I don't know why it would change them over and over.

We could make RPM not verify owner and mode on the directory (which might prevent this flip-flopping that breaks stuff). I don't recall exactly how to do that, but I know it's possible.

Perhaps I can fix this by changing %dir %{_localstatedir}/log/pagure to %verify(not user group mode) %dir %{_localstatedir}/log/pagure?

I think that only means rpm will not verify it, it still will change permissions/ownership.

Perhaps there's no easy way to do this... I suppose you could look at getting rid of the log file and just make sure everything goes to the journal?

Perhaps there's no easy way to do this... I suppose you could look at getting rid of the log file and just make sure everything goes to the journal?

It's all in the configuration file, so that could/should be doable.

I was thinking, another idea maybe to use a different folder, say
/var/log/pagure_distgit/ which then will not be considered/touched by the rpm
and thus not affected by upgrades.

Thoughts?

This issue has been resolved, closing the ticket.

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

2 years ago

Issue status updated to: Open (was: Closed)

a year ago

Issue status updated to: Closed (was: Open)
Issue close_status updated to: Fixed

a year ago

Login to comment on this ticket.

Metadata
Boards 1
Ops Status: Done