Uploaded image for project: 'CentOS Stream Pipeline'
  1. CentOS Stream Pipeline
  2. CS-1701

c9s mock build fails with Permission denied: '/var/lib/mock/centos-stream-9-x86_64'

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • None
    • None
    • False
    • None
    • False
    • Testable

      https://gitlab.com/redhat/centos-stream/rpms/setools/-/merge_requests/13
      https://centos.softwarefactory-project.io/zuul/t/centos/build/afcf3d6a7b734befa74452c7f64335e6

      DEBUG:     __jinja_expand:  True
      DEBUG:     verbose:  2
      DEBUG:     print_main_output:  False
      DEBUG:     cache_alterations:  False
      DEBUG:     enable_disable_repos:  []
      DEBUG:     build_log_fmt_str:  %(message)s
      DEBUG:     root_log_fmt_str:  %(levelname)s %(filename)s:%(lineno)d:  %(message)s
      DEBUG:     state_log_fmt_str:  %(asctime)s - %(message)s
      Start: clean chroot
      Finish: clean chroot
      DEBUG: ensuring that dir exists: /var/lib/mock/centos-stream-9-x86_64/result
      DEBUG: creating dir: /var/lib/mock/centos-stream-9-x86_64/result
      ERROR: Could not create dir /var/lib/mock/centos-stream-9-x86_64/result. Error: [Errno 13] Permission denied: '/var/lib/mock/centos-stream-9-x86_64'
      Traceback (most recent call last):
        File "/usr/lib/python3.11/site-packages/mockbuild/file_util.py", line 22, in mkdirIfAbsent
          os.makedirs(dirName)
        File "<frozen os>", line 215, in makedirs
        File "<frozen os>", line 225, in makedirs
      PermissionError: [Errno 13] Permission denied: '/var/lib/mock/centos-stream-9-x86_64'
      DEBUG: ensuring that dir exists: /var/lib/mock/centos-stream-9-x86_64-bootstrap
      DEBUG: kill orphans in chroot /var/lib/mock/centos-stream-9-x86_64-bootstrap/root
      ERROR: 
      Could not create output directory for built rpms. The directory specified was:
          /var/lib/mock/centos-stream-9-x86_64/result
      
      Try using the --resultdir= option to select another location. Recommended location is --resultdir=~/mock/.
      

              Unassigned Unassigned
              rhn-engineering-plautrba Petr Lautrbach
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: