#9623 Unable to push changes to src.fedoraproject.org
Closed: Fixed 3 years ago by mobrien. Opened 3 years ago by eeickmeyer.

$ fedpkg push
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 2 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 813 bytes | 813.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 42, in <module>
remote:     pagure.utils.set_up_logging()
remote:   File "/usr/lib/python3.6/site-packages/pagure/utils.py", line 45, in set_up_logging
remote:     logging.config.dictConfig(pagure_config.get("LOGGING") 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/studio-controls
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://pkgs.fedoraproject.org/rpms/studio-controls'
Could not execute push: Failed to execute command.
  • When do you need this? (2020/07/23)

  • When is this no longer needed or useful? N/A

  • If we cannot complete your request, what is the impact?
    The package studio-controls will be unable to be updated.


Please try again now? I have fixed the perms on that log file...

Excellent, that did it. Thanks!

Metadata Update from @eeickmeyer:
- Issue close_status updated to: It's all good
- Issue status updated to: Closed (was: Open)

3 years ago

We may need a actual long term fix tho. :)

@pingou this seemed to take on the user/group of the first user who hit it after the previous file was rotated. ;(

Can you look at it for a fix?

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

3 years ago

We may need a actual long term fix tho. :)
@pingou this seemed to take on the user/group of the first user who hit it after the previous file was rotated. ;(
Can you look at it for a fix?

We deployed that piece yesterday and I wanted to check today how it behave, looks like I have my answer :)

We'll see if we can make the owner and group stick.

Thanks for the heads-up!

I believe this should be fixed by: https://pagure.io/fedora-infra/ansible/pull-request/176 which adds the sticky bit to make the group membership stick.

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #176 Merged 3 years ago