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
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
was selinux issue. setting it to permissive fixed it... closing!!