[Spacewalk-list] Issue with initial Spacewalk Install

Jan Pazdziora jpazdziora at redhat.com
Mon Jul 11 13:03:20 UTC 2011


On Mon, Jun 27, 2011 at 04:43:15PM -0400, Brian Rahn wrote:
> This happened to me when the Oracle DBI module itself failed.  In my
> case, I had installed the 32-bit client on an otherwise 64-bit server,
> so perl couldn't load it.  If you remove the eval {} protection around
> the test, it will crash out with a real error.

Brian, thanks for the hint.

> On Mon, Jun 27, 2011 at 11:15 AM, Barnes, Mike
> <Mike.Barnes at servicelinkfnf.com> wrote:
> > Anyone doing a fresh install of Spacewalk? I am encountering the below; but
> > am not 100% what is flaking…
> >
> >
> >
> > [root at NNNNspacewalk-02 pluginconf.d]# spacewalk-setup --disconnected
> >
> > * Setting up Oracle environment.
> >
> > * Setting up database.
> >
> > ** Database: Setting up database connection for Oracle backend.
> >
> > Database service name (SID)? XE
> >
> > Use of uninitialized value in numeric eq (= =) at
> > /usr/lib/perl5/vendor_perl/5.8.8/Spacewalk/Setup.pm line 681, <STDIN> line
> > 1.
> >
> > Use of uninitialized value in numeric eq (= =) at
> > /usr/lib/perl5/vendor_perl/5.8.8/Spacewalk/Setup.pm line 681, <STDIN> line
> > 1.
> >
> >
> >
> > <at this point, the install script appears to just hang. Strace does not
> > show any activity).

Mike, could you please patch your
/usr/lib/perl5/vendor_perl/5.8.8/Spacewalk/Setup.pm
with patch like

diff --git a/spacewalk/setup/lib/Spacewalk/Setup.pm b/spacewalk/setup/lib/Spacewalk/Setup.pm
index b6c1ef7..93fb6ef 100644
--- a/spacewalk/setup/lib/Spacewalk/Setup.pm
+++ b/spacewalk/setup/lib/Spacewalk/Setup.pm
@@ -678,6 +678,9 @@ sub _oracle_check_connect_info {
                # We were able to connect to the database. Good.
                return 2;
        }
+       if (not defined DBI->err()) {   # maybe we failed to load the DBD?
+               die $@;
+       }
        if (DBI->err() == 1017 or DBI->err() == 1005) {
                # We at least knew the connect string, so we
                # were able to communicate with the database.

to see the error?

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list