Bug 1636461
| Summary: | [abrt] dnf: _get_copr_repo(): copr.py:483:_get_copr_repo:IndexError: list index out of range | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christian Stadelmann <fedora> | ||||||||||||
| Component: | dnf | Assignee: | Miroslav Suchý <msuchy> | ||||||||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||
| Priority: | unspecified | ||||||||||||||
| Version: | 29 | CC: | 7d28c752, dmach, jorti, mblaha, mhatina, packaging-team-maint, pessoft, rpm-software-management, vmukhame, xbrico, zregvart | ||||||||||||
| Target Milestone: | --- | Keywords: | Triaged | ||||||||||||
| Target Release: | --- | ||||||||||||||
| Hardware: | x86_64 | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/acd52498af1125c61ac89ac10fbf70cdce2c65f1 | ||||||||||||||
| Whiteboard: | abrt_hash:9556b6900db999710e848787185b3cd7da910cc6;VARIANT_ID=workstation; | ||||||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||
| Clone Of: | Environment: | ||||||||||||||
| Last Closed: | 2018-11-26 12:46:33 UTC | Type: | --- | ||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||
| Documentation: | --- | CRM: | |||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||
| Embargoed: | |||||||||||||||
| Attachments: | 
 | ||||||||||||||
| Created attachment 1490838 [details]
File: backtrace
Created attachment 1490839 [details]
File: cpuinfo
Created attachment 1490840 [details]
File: dnf-makecache.log
Created attachment 1490841 [details]
File: namespaces
Created attachment 1490842 [details]
File: _var_log_dnf.log
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
BTW for me abrt points me to https://retrace.fedoraproject.org/faf/reports/2355249/ for the automatic error report. 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. *** This bug has been marked as a duplicate of bug 1644563 *** *** Bug 1653355 has been marked as a duplicate of this bug. *** | 
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'