Where does error output go?

I was trying to use the oracle-xe recipe and got this error on execution:

[2014-05-05T15:42:06+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
Chef Client failed. 9 resources updated in 224.123914276 seconds

I looked at the stacktracke.out and the trace didn’t help at all.

I did see that the oracle xe recipe installs an oracle RPM via yum_package
so I simply tried running the RPM directly using

rpm -i /var/chef/cache/oracle-xe-11.2.0-1.0.x86_64.rpm

This revealed the problem: /usr/bin/chef-solo:23:in
`’[root@jenkins~]# rpm -i
/var/chef/cache/oracle-xe-11.2.0-1.0.x86_64.rpm

This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 11g
Express Edition requires 1992 MB of swap space. This system has 0 MB
of swap space. Configure more swap space on the system and retry the
installation.

So my question: does chef log this root cause error anywhere? Am I
missing something obvious? This message was not output to the console and
wasn’t in the tracelog.

Thanks!
phil

This error is thrown in the postinstall script of the RPM, so no, it's
not captured by Chef other than the non-zero exit code from calling
yum.

Personally I think this is silly behavior on the part of Oracle, but I
guess there's no winning that battle...

  • Julian

On Mon, May 5, 2014 at 11:55 AM, phil swenson phil.swenson@gmail.com wrote:

I was trying to use the oracle-xe recipe and got this error on execution:

[2014-05-05T15:42:06+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
Chef Client failed. 9 resources updated in 224.123914276 seconds

I looked at the stacktracke.out and the trace didn’t help at all.

I did see that the oracle xe recipe installs an oracle RPM via yum_package
so I simply tried running the RPM directly using

rpm -i /var/chef/cache/oracle-xe-11.2.0-1.0.x86_64.rpm

This revealed the problem: /usr/bin/chef-solo:23:in `'[root@jenkins
~]# rpm -i /var/chef/cache/oracle-xe-11.2.0-1.0.x86_64.rpm

This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 11g
Express Edition requires 1992 MB of swap space. This system has 0 MB
of swap space. Configure more swap space on the system and retry the
installation.

So my question: does chef log this root cause error anywhere? Am I missing
something obvious? This message was not output to the console and wasn’t in
the tracelog.

Thanks!
phil

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

Oh, that makes sense. Oracle is not very friendly for automation.

appreciate the answer!
phil

On Mon, May 5, 2014 at 7:03 PM, Julian C. Dunn jdunn@aquezada.com wrote:

This error is thrown in the postinstall script of the RPM, so no, it's
not captured by Chef other than the non-zero exit code from calling
yum.

Personally I think this is silly behavior on the part of Oracle, but I
guess there's no winning that battle...

  • Julian

On Mon, May 5, 2014 at 11:55 AM, phil swenson phil.swenson@gmail.com
wrote:

I was trying to use the oracle-xe recipe and got this error on execution:

[2014-05-05T15:42:06+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
Chef Client failed. 9 resources updated in 224.123914276 seconds

I looked at the stacktracke.out and the trace didn’t help at all.

I did see that the oracle xe recipe installs an oracle RPM via
yum_package
so I simply tried running the RPM directly using

rpm -i /var/chef/cache/oracle-xe-11.2.0-1.0.x86_64.rpm

This revealed the problem: /usr/bin/chef-solo:23:in
`'[root@jenkins
~]# rpm -i /var/chef/cache/oracle-xe-11.2.0-1.0.x86_64.rpm

This system does not meet the minimum requirements for swap space.
Based on
the amount of physical memory available on the system, Oracle Database
11g
Express Edition requires 1992 MB of swap space. This system has 0 MB
of swap space. Configure more swap space on the system and retry the
installation.

So my question: does chef log this root cause error anywhere? Am I
missing
something obvious? This message was not output to the console and
wasn’t in
the tracelog.

Thanks!
phil

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]