Bug 463299 - spacewalk-setup runs out of memory
Summary: spacewalk-setup runs out of memory
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Spacewalk
Classification: Community
Component: Installation
Version: 0.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jan Pazdziora
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space03
TreeView+ depends on / blocked
 
Reported: 2008-09-22 20:44 UTC by Pradeep Kilambi
Modified: 2008-09-23 13:58 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-09-23 13:58:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Pradeep Kilambi 2008-09-22 20:44:21 UTC
Description of problem:

when setting up spacewalk, seems to run out of memory and end up in segmentation fault.

rlx-0-16 ~]# spacewalk --disconnected
-bash: spacewalk: command not found
[root@rlx-0-16 ~]# spacewalk-setup --disconnected
* Loading answer file: /usr/share/spacewalk/setup/defaults.conf.
* Setting up environment and users.
** GPG: Initializing GPG and importing key.
** GPG: Creating /root/.gnupg directory
* Setting up database.
** Database: Setting up database connection.
DB User? spacewalk
DB Password? 
DB SID? xe
DB hostname? localhost
DB port [1521]? 
DB protocol [TCP]? 
Out of memory!

top:

  127 root      10  -5     0    0    0 S 19.6  0.0   0:39.23 kswapd0            
   10 root      10  -5     0    0    0 S  0.3  0.0   0:00.69 kblockd/0          
 1921 haldaemo  18   0  5220  720  636 D  0.3  0.0   0:00.63 hald               
11871 root      18   0 3057m 1.9g  828 R  0.3 95.0   1:35.44 spacewalk-setup 


# cat /proc/meminfo
MemTotal:      2075696 kB
MemFree:         50680 kB
Buffers:           276 kB


Version-Release number of selected component (if applicable):
spacewalk-0.2

How reproducible:
always

Comment 1 Pradeep Kilambi 2008-09-22 20:58:06 UTC
another interesting thing is first time i enter the right info it fails with:

# spacewalk-setup --disconnected
* Loading answer file: /usr/share/spacewalk/setup/defaults.conf.
* Setting up environment and users.
** GPG: Initializing GPG and importing key.
* Setting up database.
** Database: Setting up database connection.
DB User? spacewalk
DB Password? 
DB SID? xe
DB hostname? localhost
DB port [1521]? 
DB protocol [TCP]? 
Could not connect to the database.  Your connection information may be incorrect.  Error: install_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: /usr/lib/oracle/10.2.0/client/lib/libnnz10.so: cannot restore segment prot after reloc: Permission denied at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230, <STDIN> line 6.
 at (eval 784) line 3
Compilation failed in require at (eval 784) line 3, <STDIN> line 6.
Perhaps a required shared library or dll isn't installed where expected
 at /usr/bin/spacewalk-setup line 1492

DB User? 


inspite of all the entries being correct it fails the first time, then the second it it works but quickly runs out of memory

Comment 2 Pradeep Kilambi 2008-09-23 13:58:32 UTC
was selinux issue. setting it to permissive fixed it... closing!!


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