I was applying patches to a system yesterday and ran into a problem.
The yum transaction (initiated from Katello as part of a host_collection
update operation) failed with a "too many open files" type error.
Transaction ID : 22
Begin time : Sun Apr 23 06:58:51 2017
Begin rpmdb : 577:26374e5863e3ea247fb52909e95e53f8062161aa
End time : 06:58:56 2017 (5 seconds)
End rpmdb : 577:26374e5863e3ea247fb52909e95e53f8062161aa
User : System <unset>
Return-Code : Failure: 1
Scriptlet output:
1 error: systemd-libs-219-30.el7_3.8.x86_64: install failed
2 error: nspr-4.13.1-1.0.el7_3.x86_64: install failed
3 error: nss-util-3.28.4-1.0.el7_3.x86_64: install failed
4 error: libgudev1-219-30.el7_3.8.x86_64: install failed
5 error: libuuid-2.23.2-33.el7_3.2.x86_64: install failed
6 error: libblkid-2.23.2-33.el7_3.2.x86_64: install failed
7 error: audit-libs-2.6.5-3.el7_3.1.x86_64: install failed
8 error: libsss_idmap-1.14.0-43.el7_3.14.x86_64: install failed
9 error: ipa-common-4.4.0-14.el7.centos.7.noarch: install failed
10 error: libmount-2.23.2-33.el7_3.2.x86_64: install failed
11 error: error creating temporary file /var/tmp/rpm-tmp.DO30rh: Too many
open files
12 error: Couldn't create temporary file for
%pre(systemd-219-30.el7_3.8.x86_64): Too many open files
13 error: systemd-219-30.el7_3.8.x86_64: install failed
14 error: util-linux-2.23.2-33.el7_3.2.x86_64: install failed
15 error: error creating temporary file /var/tmp/rpm-tmp.UOeiAX: Too many
open files
16 error: Couldn't create temporary file for
%pre(openssh-6.6.1p1-35.el7_3.x86_64): Too many open files
Everything after that was just more of the same (Too many open files).
Do I need to bump up the number of open files for goferd?
Regards,
–Tony
Hi Tony,
Based on the output below this error appears to be coming from yum. Since yum transactions typically require root access it would seem that you have limited the number of open files for the root user.
Have you intentionally lowered the number of open files on your system? I would check the output of "ulimit -n" on the system that failed.
Regards,
j
···
From: "Tony Coffman"
To: "Foreman Users"
Sent: Monday, April 24, 2017 1:50:20 PM
Subject: [foreman-users] Too many open files during a patching operation
I was applying patches to a system yesterday and ran into a problem.
The yum transaction (initiated from Katello as part of a host_collection update operation) failed with a “too many open files” type error.
Transaction ID : 22
Begin time : Sun Apr 23 06:58:51 2017
Begin rpmdb : 577:26374e5863e3ea247fb52909e95e53f8062161aa
End time : 06:58:56 2017 (5 seconds)
End rpmdb : 577:26374e5863e3ea247fb52909e95e53f8062161aa
User : System
Return-Code : Failure: 1
Scriptlet output:
1 error: systemd-libs-219-30.el7_3.8.x86_64: install failed
2 error: nspr-4.13.1-1.0.el7_3.x86_64: install failed
3 error: nss-util-3.28.4-1.0.el7_3.x86_64: install failed
4 error: libgudev1-219-30.el7_3.8.x86_64: install failed
5 error: libuuid-2.23.2-33.el7_3.2.x86_64: install failed
6 error: libblkid-2.23.2-33.el7_3.2.x86_64: install failed
7 error: audit-libs-2.6.5-3.el7_3.1.x86_64: install failed
8 error: libsss_idmap-1.14.0-43.el7_3.14.x86_64: install failed
9 error: ipa-common-4.4.0-14.el7.centos.7.noarch: install failed
10 error: libmount-2.23.2-33.el7_3.2.x86_64: install failed
11 error: error creating temporary file /var/tmp/rpm-tmp.DO30rh: Too many open files
12 error: Couldn’t create temporary file for %pre(systemd-219-30.el7_3.8.x86_64): Too many open files
13 error: systemd-219-30.el7_3.8.x86_64: install failed
14 error: util-linux-2.23.2-33.el7_3.2.x86_64: install failed
15 error: error creating temporary file /var/tmp/rpm-tmp.UOeiAX: Too many open files
16 error: Couldn’t create temporary file for %pre(openssh-6.6.1p1-35.el7_3.x86_64): Too many open files
Everything after that was just more of the same (Too many open files).
Do I need to bump up the number of open files for goferd?
Regards,
–Tony
–
You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [ mailto:foreman-users+unsubscribe@googlegroups.com | foreman-users+unsubscribe@googlegroups.com ] .
To post to this group, send email to [ mailto:foreman-users@googlegroups.com | foreman-users@googlegroups.com ] .
Visit this group at [ https://groups.google.com/group/foreman-users | https://groups.google.com/group/foreman-users ] .
For more options, visit [ https://groups.google.com/d/optout | https://groups.google.com/d/optout ] .