Bug 1527670

Summary: [abrt] system-config-language: perform(): repo.py:926:load:dnf.exceptions.RepoError: Failed to synchronize cache for repo 'updates'
Product: [Fedora] Fedora Reporter: ricky.tigg
Component: system-config-languageAssignee: Parag Nemade <pnemade>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: i18n-bugs, nav007, pnemade, psatpute
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e1712902a33e9cfc261dcd9a8f0cdbf4ff0a3eda
Whiteboard: abrt_hash:3ee5eeb7b15cfa8430387828acb8ba8c82a47ba5;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 12:39:25 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:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description ricky.tigg 2017-12-19 20:49:56 UTC
Version-Release number of selected component:
system-config-language-3.4.2-3.fc27

Additional info:
reporter:       libreport-2.9.3
cmdline:        /usr/bin/python3 /usr/share/system-config-language/system-config-language.py
crash_function: perform
exception_type: librepo.LibrepoException
executable:     /usr/share/system-config-language/system-config-language.py
kernel:         4.14.6-300.fc27.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
repo.py:926:load:dnf.exceptions.RepoError: Failed to synchronize cache for repo 'updates'

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 229, in _perform
    return super(_Handle, self).perform(result)
  File "/usr/lib64/python3.6/site-packages/librepo/__init__.py", line 1522, in perform
    _librepo.Handle.perform(self, result)
librepo.LibrepoException: (8, "Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f27&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]", 'An Curl handle error')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 914, in load
    self._handle_load(handle)
  File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 657, in _handle_load
    return self._handle_load_core(handle)
  File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 670, in _handle_load_core
    result = handle._perform()
  File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 233, in _perform
    raise _DetailedLibrepoError(exc, source)
dnf.repo._DetailedLibrepoError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/system-config-language/language_gui.py", line 307, in ok_btn
    installed = self.instpkg.install_packages3(dlang)
  File "/usr/share/system-config-language/install_packages3.py", line 237, in install_packages3
    self.base.fill_sack()
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 353, in fill_sack
    self._add_repo_to_sack(r)
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 118, in _add_repo_to_sack
    repo.load()
  File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 926, in load
    raise dnf.exceptions.RepoError(msg)
dnf.exceptions.RepoError: Failed to synchronize cache for repo 'updates'

Local variables in innermost frame:
dmsg: "Cannot download '%s': %s."
handle: <dnf.repo._Handle object at 0x7f2f211bd5f8>
tmpdir: '/tmp/dnf-kf7twm62'
msg: "Failed to synchronize cache for repo 'updates'"
self: <Repo updates>

Comment 1 ricky.tigg 2017-12-19 20:50:02 UTC
Created attachment 1370165 [details]
File: backtrace

Comment 2 ricky.tigg 2017-12-19 20:50:03 UTC
Created attachment 1370166 [details]
File: cgroup

Comment 3 ricky.tigg 2017-12-19 20:50:05 UTC
Created attachment 1370167 [details]
File: cpuinfo

Comment 4 ricky.tigg 2017-12-19 20:50:06 UTC
Created attachment 1370168 [details]
File: environ

Comment 5 ricky.tigg 2017-12-19 20:50:08 UTC
Created attachment 1370169 [details]
File: mountinfo

Comment 6 ricky.tigg 2017-12-19 20:50:09 UTC
Created attachment 1370170 [details]
File: namespaces

Comment 7 ricky.tigg 2017-12-19 20:50:10 UTC
Created attachment 1370171 [details]
File: open_fds

Comment 8 Parag Nemade 2017-12-20 05:35:56 UTC
This is the issue with either your network setup ( that is network is not working) or mirror is not working from which its going to download metadata of "updates" repository.

Please fix any network issue and try again. Also, reply here your feedback when you attempt again running system-config-language.

Comment 9 ricky.tigg 2017-12-20 09:50:06 UTC
Issue occurred on virtual machine installed from Fedora 27 Xfce spin on QEMU/KVM. Possibly ethernet network connection "ens3" get from DHCP was not yet active when setting the language from tool ($ sudo system-config-language) whose set indeed requires connection to internet to be established unlike the activation of a language chosen in LightDM GTK. Since then the tool worked as intended.

Comment 10 Parag Nemade 2017-12-20 12:39:25 UTC
Thank you for your feedback. I assume there is no bug to fix here then.

Yes system-config-language assumes you have a working network connection as it also installs required language packages for your set language from system-config-language.

Feel free to reopen this or new bug if you got any issue against system-config-language.