Bug 1636461 - [abrt] dnf: _get_copr_repo(): copr.py:483:_get_copr_repo:IndexError: list index out of range
Summary: [abrt] dnf: _get_copr_repo(): copr.py:483:_get_copr_repo:IndexError: list ind...
Keywords:
Status: CLOSED DUPLICATE of bug 1644563
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:9556b6900db999710e848787185...
: 1653355 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-05 13:05 UTC by Christian Stadelmann
Modified: 2018-11-26 15:48 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-11-26 12:46:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.44 KB, text/plain)
2018-10-05 13:05 UTC, Christian Stadelmann
no flags Details
File: cpuinfo (1.35 KB, text/plain)
2018-10-05 13:05 UTC, Christian Stadelmann
no flags Details
File: dnf-makecache.log (344.46 KB, text/plain)
2018-10-05 13:06 UTC, Christian Stadelmann
no flags Details
File: namespaces (129 bytes, text/plain)
2018-10-05 13:06 UTC, Christian Stadelmann
no flags Details
File: _var_log_dnf.log (13.51 MB, text/plain)
2018-10-05 13:09 UTC, Christian Stadelmann
no flags Details

Description Christian Stadelmann 2018-10-05 13:05:51 UTC
Version-Release number of selected component:
dnf-3.6.1-1.fc29

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/dnf copr remove nphilipp/gimp-unstable
crash_function: _get_copr_repo
exception_type: IndexError
executable:     /usr/bin/dnf
interpreter:    python3-3.7.0-9.fc29.x86_64
kernel:         4.18.11-301.fc29.x86_64
runlevel:       N 5
type:           Python3

Truncated backtrace:
copr.py:483:_get_copr_repo:IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 179, in user_main
    errcode = main(args)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 115, in cli_run
    cli.run()
  File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 1051, in run
    return self.command.run()
  File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 268, in run
    self._remove_repo(copr_username, copr_projectname)
  File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 493, in _remove_repo
    repo = self._get_copr_repo(copr_username, copr_projectname)
  File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 483, in _get_copr_repo
    copr_hostname = file_name.rsplit(':', 2)[0].split(':', 1)[1]
IndexError: list index out of range

Local variables in innermost frame:
self: <dnf.plugin.dynamic.copr.CoprCommand object at 0x7fbdfb5e0630>
copr_username: 'nphilipp'
copr_projectname: 'gimp-unstable'
repo_id: 'nphilipp-gimp-unstable'
file_name: '_copr_nphilipp-gimp-unstable.repo'

Comment 1 Christian Stadelmann 2018-10-05 13:05:58 UTC
Created attachment 1490838 [details]
File: backtrace

Comment 2 Christian Stadelmann 2018-10-05 13:05:59 UTC
Created attachment 1490839 [details]
File: cpuinfo

Comment 3 Christian Stadelmann 2018-10-05 13:06:05 UTC
Created attachment 1490840 [details]
File: dnf-makecache.log

Comment 4 Christian Stadelmann 2018-10-05 13:06:07 UTC
Created attachment 1490841 [details]
File: namespaces

Comment 5 Christian Stadelmann 2018-10-05 13:09:59 UTC
Created attachment 1490842 [details]
File: _var_log_dnf.log

Comment 6 rugk 2018-11-10 20:42:17 UTC
Similar problem has been detected:

I've tried to disable a COPR repo:

$ sudo dnf copr disable copr.fedorainfracloud.org/neteler/remarkable 
[sudo] Passwort für rugk: 
Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 179, in user_main
    errcode = main(args)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 115, in cli_run
    cli.run()
  File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 1055, in run
    return self.command.run()
  File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 264, in run
    self._disable_repo(copr_username, copr_projectname)
  File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 504, in _disable_repo
    repo = self._get_copr_repo(copr_username, copr_projectname)
  File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 483, in _get_copr_repo
    copr_hostname = file_name.rsplit(':', 2)[0].split(':', 1)[1]
IndexError: list index out of range

reporter:       libreport-2.9.6
cmdline:        /usr/bin/python3 /usr/bin/dnf copr remove copr.fedorainfracloud.org/neteler/remarkable
crash_function: _get_copr_repo
exception_type: IndexError
executable:     /usr/bin/dnf
interpreter:    python3-3.7.0-9.fc29.x86_64
kernel:         4.18.16-300.fc29.x86_64
package:        dnf-4.0.4-1.fc29
reason:         copr.py:483:_get_copr_repo:IndexError: list index out of range
runlevel:       N 5
type:           Python3
uid:            0

Comment 7 rugk 2018-11-10 20:47:03 UTC
BTW for me abrt points me to https://retrace.fedoraproject.org/faf/reports/2355249/ for the automatic error report.

Comment 8 rugk 2018-11-22 08:27:31 UTC
BTW this is the config of the repo likely causing this:

/etc/yum.repos.d/_copr_neteler-remarkable.repo

[neteler-remarkable]
name=Copr repo for remarkable owned by neteler
baseurl=https://copr-be.cloud.fedoraproject.org/results/neteler/remarkable/fedora-$releasever-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/neteler/remarkable/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1

Anyone cares to take take of this? It is always reproducible.

I now just deletes this config and the issue is gone.

Comment 9 Miroslav Suchý 2018-11-26 12:46:33 UTC

*** This bug has been marked as a duplicate of bug 1644563 ***

Comment 10 Zoran Regvart 2018-11-26 15:48:20 UTC
*** Bug 1653355 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.