Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 463299

Summary: spacewalk-setup runs out of memory
Product: [Community] Spacewalk Reporter: Pradeep Kilambi <pkilambi>
Component: InstallationAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-23 13:58:32 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:
Bug Depends On:    
Bug Blocks: 456551    

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!!