Bug 2185835 - pyanaconda.modules.common.errors.general.AnacondaError: [Errno 17] File exists: '/proc/self/mounts' -> '/mnt/sysroot/etc/mtab'
Summary: pyanaconda.modules.common.errors.general.AnacondaError: [Errno 17] File exist...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a3103d2f7b16ee2ff417935c5df...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-11 11:14 UTC by Ádám Aladár Nagy
Modified: 2023-07-27 17:14 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-27 17:14:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (1.04 MB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: backtrace (3.26 KB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: os_info (712 bytes, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: environ (669 bytes, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: journalctl (736.88 KB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: description (3.24 KB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: storage.log (172.94 KB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: program.log (106.74 KB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: nmcli_dev_list (1.59 KB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: anaconda.log (43.79 KB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: dbus.log (3.59 KB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details
File: lsblk_output (2.44 KB, text/plain)
2023-04-11 11:14 UTC, Ádám Aladár Nagy
no flags Details

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)


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