#1817 Copr_prune_results and ARG_MAX overflow problem
Closed: MIGRATED a year ago by nikromen. Opened 2 years ago by praiskup.

[2021-05-03 15:57:28,346][ ERROR][PID:2941109][copr_prune_results][copr_prune_results.py:run_prunerepo:69] Error pruning chroot @python/python3.10/fedora-rawhide-x86_64
Traceback (most recent call last):
  File "/usr/bin/copr_prune_results.py", line 65, in run_prunerepo
    call_copr_repo(directory=chroot_path, rpms_to_remove=rpms,
  File "/usr/lib/python3.9/site-packages/copr_backend/helpers.py", line 641, in call_copr_repo
    result = run_cmd(cmd, timeout=timeout, logger=logger, catch_timeout=True)
  File "/usr/lib/python3.9/site-packages/copr_backend/helpers.py", line 91, in run_cmd
    process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=shell, encoding="utf-8")
  File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 7] Argument list too long: 'copr-repo'

Again:

Traceback (most recent call last):
  File "/usr/bin/copr_prune_results.py", line 69, in run_prunerepo
    call_copr_repo(directory=chroot_path, rpms_to_remove=rpms,
  File "/usr/lib/python3.10/site-packages/copr_backend/helpers.py", line 687, in call_copr_repo
    result = run_cmd(cmd, timeout=timeout, logger=logger, catch_timeout=True)
  File "/usr/lib/python3.10/site-packages/copr_backend/helpers.py", line 105, in run_cmd
    process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=shell, encoding="utf-8")
  File "/usr/lib64/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.10/subprocess.py", line 1842, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 7] Argument list too long: 'copr-repo'

This is happening in the @python/python3.10/fedora-rawhide-x86_64 chroot.
There's a big potential for cleanup, e.g. (aka the copr-be storage waste topic).

Same for iucar/cran/fedora-35-x86_64,

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

a year ago

Login to comment on this ticket.

Metadata