Bug 1262953

Summary: FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'
Product: [Fedora] Fedora Reporter: A.J. Werkman <aj.werkman>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, ffesti, g.kaviyarasu, jonathan, jorton, jsilhan, jzeleny, mark, mluscon, novyjindrich, packaging-team-maint, pknirsch, pnemade, tim.lauridsen, vanmeeuwen+fedora, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d2bd0b532bb3590ef5316fa7248f86918ab1af9dd9b8ff3c37017661f9528d23
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-25 19:43:53 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: anaconda.log
none
File: dnf.log
none
File: dnf.rpm.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description A.J. Werkman 2015-09-14 17:58:42 UTC
Description of problem:
Basic Server install

Version-Release number of selected component:
anaconda-23.19.3-1

The following was filed automatically by anaconda:
anaconda 23.19.3-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.4/subprocess.py", line 1457, in _execute_child
    raise child_exception_type(errno_num, err_msg)
  File "/usr/lib64/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/iutil.py", line 201, in startProgram
    preexec_fn=preexec, cwd=root, env=env, **kwargs)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/iutil.py", line 279, in _run_program
    env_prune=env_prune)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/iutil.py", line 358, in execWithRedirect
    log_output=log_output, binary_output=binary_output)[0]
  File "/usr/lib64/python3.4/site-packages/pyanaconda/iutil.py", line 336, in execInSysroot
    return execWithRedirect(command, argv, stdin=stdin, root=getSysroot())
  File "/usr/lib64/python3.4/site-packages/pyanaconda/kickstart.py", line 1653, in execute
    iutil.execInSysroot("systemctl", ["enable", svc])
  File "/usr/lib64/python3.4/site-packages/pyanaconda/install.py", line 79, in doConfiguration
    ksdata.services.execute(storage, ksdata, instClass)
  File "/usr/lib64/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.4/site-packages/pyanaconda/threads.py", line 253, in run
    threading.Thread.run(self, *args, **kwargs)
FileNotFoundError: [Errno 2] No such file or directory: 'systemctl'

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz noselinux ip=172.18.92.70::172.18.92.65:255.255.255.192:cfl.lc.digifarma.nl::off noipv6 nameserver=172.18.92.65 inst.stage2=hd:UUID=c98f6f60-f5fe-4bf9-b500-8e918649636a
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.0-300.fc23.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        23

Comment 1 A.J. Werkman 2015-09-14 17:58:48 UTC
Created attachment 1073377 [details]
File: anaconda-tb

Comment 2 A.J. Werkman 2015-09-14 17:58:50 UTC
Created attachment 1073378 [details]
File: anaconda.log

Comment 3 A.J. Werkman 2015-09-14 17:58:52 UTC
Created attachment 1073379 [details]
File: dnf.log

Comment 4 A.J. Werkman 2015-09-14 17:58:55 UTC
Created attachment 1073380 [details]
File: dnf.rpm.log

Comment 5 A.J. Werkman 2015-09-14 17:58:57 UTC
Created attachment 1073381 [details]
File: environ

Comment 6 A.J. Werkman 2015-09-14 17:58:59 UTC
Created attachment 1073382 [details]
File: lsblk_output

Comment 7 A.J. Werkman 2015-09-14 17:59:00 UTC
Created attachment 1073383 [details]
File: nmcli_dev_list

Comment 8 A.J. Werkman 2015-09-14 17:59:01 UTC
Created attachment 1073384 [details]
File: os_info

Comment 9 A.J. Werkman 2015-09-14 17:59:03 UTC
Created attachment 1073385 [details]
File: program.log

Comment 10 A.J. Werkman 2015-09-14 17:59:05 UTC
Created attachment 1073386 [details]
File: storage.log

Comment 11 A.J. Werkman 2015-09-14 17:59:07 UTC
Created attachment 1073387 [details]
File: syslog

Comment 12 A.J. Werkman 2015-09-14 17:59:09 UTC
Created attachment 1073388 [details]
File: ifcfg.log

Comment 13 A.J. Werkman 2015-09-14 17:59:10 UTC
Created attachment 1073389 [details]
File: packaging.log

Comment 14 David Shea 2015-09-14 18:19:08 UTC
Sep 15 11:04:40 CRIT systemd-222-2.fc23.x86_64 was supposed to be installed but is not!

I have no idea how it happened, but based on dnf.log your rpm transaction got hosed.

Comment 15 A.J. Werkman 2015-09-14 18:37:12 UTC
The error shows when installing from a network repo. I checked and the package is there. From the http log I found that the package is downloaded during the installation process.

After that I reproduced this in an installation from the server dvd iso images.

Can I conclude that the package is not corrupt?

Comment 16 A.J. Werkman 2015-09-14 20:36:01 UTC
It looks like this error is relating to a problem in installing the efi bootloader, as I see a message saying there might be aproblem in kernel or firmware that may give a problem in installing the bootloader. With this message the error occupeer. Without this message I don't see the error.

Comment 17 Vojtech Trefny 2015-09-17 07:42:44 UTC
*** Bug 1263944 has been marked as a duplicate of this bug. ***

Comment 18 A.J. Werkman 2015-09-19 19:19:31 UTC
This error is a regression from Beta_23_TC1, where it does not occure.

The error is related to the 'noselinux' cli parameter. Without 'noselinux' Fedora installs without a problem.

Comment 19 Michal Luscon 2015-09-21 09:32:48 UTC
Does not look like dnf issue => reassigning back to anaconda.

Comment 20 David Shea 2015-09-21 20:24:14 UTC
(In reply to Michal Luscon from comment #19)
> Does not look like dnf issue => reassigning back to anaconda.

What would cause all of the "<package> was supposed to be installed but is not!" messages, then?

Comment 21 David Shea 2015-09-24 18:03:50 UTC
Assigning back to dnf since it is absolutely a dnf issue to either install the packages requested or raise an exception.

Comment 22 Michal Luscon 2015-09-25 09:24:05 UTC
Ok, I mistakenly supposed that you expected packages to be installed. The whole responsibility of transaction processing is on RPM and unfortunately, it does not provide any useful error information to DNF in this case.

Florian, I would guess this is similar to the issue which we had discussed on IRC recently (see comment #18).

Comment 23 Florian Festi 2015-09-25 09:52:43 UTC
Looks like this is cause by the failing scriptlets. RPM skips the installation of packages if the PREIN scriptlet fails. Unfortunately I did not find any error message from the scriptlet themselves. As a large number of scriptlets fails it is likely that the install root is broken in some important way - like not having /proc mounted.

Comment 24 Honza Silhan 2015-10-02 09:59:24 UTC
*** Bug 1266170 has been marked as a duplicate of this bug. ***

Comment 25 Florian Festi 2016-02-19 12:06:58 UTC
Is this still broken? I think we fixed that somehow but I can't find the fix right now...