Bug 2185835

Summary: pyanaconda.modules.common.errors.general.AnacondaError: [Errno 17] File exists: '/proc/self/mounts' -> '/mnt/sysroot/etc/mtab'
Product: [Fedora] Fedora Reporter: Ádám Aladár Nagy <totallynotlime>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: anaconda-maint-list, jkonecny, vponcova, vslavik, vtrefny, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a3103d2f7b16ee2ff417935c5dfc10119210762ae2a4f369bbf295fdfc24f7a6;VARIANT_ID=budgie;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-27 17:14:38 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: anaconda-tb
none
File: backtrace
none
File: os_info
none
File: environ
none
File: journalctl
none
File: description
none
File: storage.log
none
File: program.log
none
File: nmcli_dev_list
none
File: anaconda.log
none
File: dbus.log
none
File: lsblk_output none

Description Ádám Aladár Nagy 2023-04-11 11:14:33 UTC
Description of problem:
The problem occured during a normal installation

Version-Release number of selected component:
anaconda-core-38.23.1-1.fc38.x86_64


The following was filed automatically by anaconda:
anaconda 38.23.1 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.11/site-packages/dasbus/client/handler.py", line 509, in _handle_method_error
    raise exception from None
  File "/usr/lib/python3.11/site-packages/dasbus/client/handler.py", line 483, in _get_method_reply
    return self._handle_method_error(error)
  File "/usr/lib/python3.11/site-packages/dasbus/client/handler.py", line 450, in _call_method
    return self._get_method_reply(
  File "/usr/lib64/python3.11/site-packages/pyanaconda/modules/common/task/__init__.py", line 46, in sync_run_task
    task_proxy.Finish()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation_tasks.py", line 280, in _run
    sync_run_task(self._task_proxy)
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation_tasks.py", line 188, in _run
    item.start()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation_tasks.py", line 188, in _run
    item.start()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation_tasks.py", line 188, in _run
    item.start()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation.py", line 515, in _run_installation
    queue.start()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/installation.py", line 80, in run
    self._run_installation(
  File "/usr/lib64/python3.11/site-packages/pyanaconda/modules/common/task/task.py", line 109, in _task_run_callback
    self._set_result(self.run())
  File "/usr/lib64/python3.11/site-packages/pyanaconda/modules/common/task/task.py", line 96, in _thread_run_callback
    self._task_run_callback()
  File "/usr/lib64/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.11/site-packages/pyanaconda/threading.py", line 275, in run
    threading.Thread.run(self)
  File "/usr/lib64/python3.11/site-packages/pyanaconda/threading.py", line 166, in raise_if_error
    raise exc_info[1]
  File "/usr/lib64/python3.11/site-packages/pyanaconda/modules/common/task/task.py", line 175, in finish
    threadMgr.raise_if_error(self._thread_name)
  File "/usr/lib64/python3.11/site-packages/pyanaconda/ui/gui/spokes/installation_progress.py", line 75, in _on_installation_done
    self._task.finish()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/core/signal.py", line 41, in emit
    func(obj, *args, **kargs)
  File "/usr/lib64/python3.11/site-packages/pyanaconda/modules/common/task/runnable.py", line 115, in _task_stopped_callback
    self._stopped_signal.emit()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/core/async_utils.py", line 68, in _idle_method
    func(*args, **kwargs)
pyanaconda.modules.common.errors.general.AnacondaError: [Errno 17] File exists: '/proc/self/mounts' -> '/mnt/sysroot/etc/mtab'

Additional info:
comment:        The problem occured during a normal installation
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical
executable:     /sbin/anaconda
hashmarkername: anaconda
product:        Fedora
package:        anaconda-core-38.23.1-1.fc38.x86_64
reason:         pyanaconda.modules.common.errors.general.AnacondaError: [Errno 17] File exists: '/proc/self/mounts' -> '/mnt/sysroot/etc/mtab'
release_type:   pre-release
type:           anaconda
release:        Fedora release 38 (Thirty Eight)
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-Budgie-Live-38_B-1-3 rd.live.image quiet rhgb
dnf.librepo.log: 
addons:         com_redhat_kdump
kernel:         6.2.2-301.fc38.x86_64
version:        38
other involved packages: python3-libs-3.11.2-1.fc38.x86_64, python3-dasbus-1.7-2.fc38.noarch, anaconda-gui-38.23.1-1.fc38.x86_64

Comment 1 Ádám Aladár Nagy 2023-04-11 11:14:35 UTC
Created attachment 1956765 [details]
File: anaconda-tb

Comment 2 Ádám Aladár Nagy 2023-04-11 11:14:37 UTC
Created attachment 1956766 [details]
File: backtrace

Comment 3 Ádám Aladár Nagy 2023-04-11 11:14:38 UTC
Created attachment 1956767 [details]
File: os_info

Comment 4 Ádám Aladár Nagy 2023-04-11 11:14:39 UTC
Created attachment 1956768 [details]
File: environ

Comment 5 Ádám Aladár Nagy 2023-04-11 11:14:41 UTC
Created attachment 1956769 [details]
File: journalctl

Comment 6 Ádám Aladár Nagy 2023-04-11 11:14:43 UTC
Created attachment 1956770 [details]
File: description

Comment 7 Ádám Aladár Nagy 2023-04-11 11:14:45 UTC
Created attachment 1956771 [details]
File: storage.log

Comment 8 Ádám Aladár Nagy 2023-04-11 11:14:46 UTC
Created attachment 1956772 [details]
File: program.log

Comment 9 Ádám Aladár Nagy 2023-04-11 11:14:48 UTC
Created attachment 1956773 [details]
File: nmcli_dev_list

Comment 10 Ádám Aladár Nagy 2023-04-11 11:14:49 UTC
Created attachment 1956774 [details]
File: anaconda.log

Comment 11 Ádám Aladár Nagy 2023-04-11 11:14:51 UTC
Created attachment 1956775 [details]
File: dbus.log

Comment 12 Ádám Aladár Nagy 2023-04-11 11:14:52 UTC
Created attachment 1956776 [details]
File: lsblk_output

Comment 13 Ádám Aladár Nagy 2023-04-11 11:15:33 UTC
The problem occured during a normal installation


comment:        The problem occured during a normal installation
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical
hashmarkername: anaconda
product:        Fedora
package:        anaconda-core-38.23.1-1.fc38.x86_64
packaging.log:  
reason:         pyanaconda.modules.common.errors.general.AnacondaError: [Errno 17] File exists: '/proc/self/mounts' -> '/mnt/sysroot/etc/mtab'
release_type:   pre-release
release:        Fedora release 38 (Thirty Eight)
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-Budgie-Live-38_B-1-3 rd.live.image quiet rhgb
dnf.librepo.log: 
addons:         com_redhat_kdump
kernel:         6.2.2-301.fc38.x86_64
version:        38
other involved packages: python3-libs-3.11.2-1.fc38.x86_64, python3-dasbus-1.7-2.fc38.noarch, anaconda-gui-38.23.1-1.fc38.x86_64

Comment 14 Jiri Konecny 2023-05-02 13:50:53 UTC
Hi Vojto, could you please take a look on this. It fails on make_mtab call.

Comment 15 Vojtech Trefny 2023-06-21 08:41:47 UTC
(In reply to Jiri Konecny from comment #14)
> Hi Vojto, could you please take a look on this. It fails on make_mtab call.

`make_mtab` lives in Anaconda. The function could definitely benefit from refactoring, but it has some checks for existence of the symlink[1], so I have no idea what's going on here.


[1] https://github.com/rhinstaller/anaconda/blob/fe5bfa3dc1558732eceae8f120a10e44bc638ede/pyanaconda/modules/storage/devicetree/model.py#L480

Comment 16 Vladimír Slávik 2023-07-27 17:14:38 UTC
This makes no sense and I don't think we can fix this in any meaningful way.

The error makes no sense, because what we really do is check if the symlink already is what we want, and if not, we remove whatever it is at that path, then make the symlink as we want it. There's literally no way for the code to behave as it did here, unless something else is interfering and either silently ate the deletion, or (re)created the file in between it was checked for removal (or removed) and created again.


There's also tons of this in the logs...

Apr 11 06:58:26 localhost-live udisksd[1025]: Error probing device: Error sending ATA command IDENTIFY PACKET DEVICE to '/dev/sr0': Unexpected sense data returned:
0000: 70 00 05 00  00 00 00 0a  00 58 00 01  21 04 00 00    p........X..!...
0010: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
(g-io-error-quark, 0)