LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-16-2010, 01:19 PM   #1
odbod
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora
Posts: 26

Rep: Reputation: 0
Running Cobbler on CentOS Machine Hangs


I've tried IRC channels for CentOS and Cobbler and have yet to get the help I need for my current issue.

Using the EPEL Repository, I went in and installed Cobbler to my DHCP/Gateway box. Everything went smoothly on the installation front. I went ahead and modified the cobbler settings file (/etc/cobbler/settings) to point to my server IP (same box), and then got tftp running properly. Now here's the problem.

Normally, you need to run `cobbler check` to find issues and correct them. I run that, and all I get is blank. Nothing. It just hangs at the prompt until I kill it using CTRL+C. When I CTRL+C from the hanging, it states "cobblerd does not appear to be running/accessible"...

Code:
[root@PalaceRedirect ~]# service cobblerd status
cobblerd (pid 6991) is running...
[root@PalaceRedirect ~]#
A friend who uses Red Hat Enterprise Linux 5.5 has everything running smoothly, and he went into my machine and did the same steps he did on his own system, starting over from what I did. Still, same issue. Just sits there and hangs.

So, I went ahead and did strace -p (pid) on the PID that had cobbler running. And this is what I would get...

Code:
[root@PalaceRedirect tmp]# strace -p 6991
Process 6991 attached - interrupt to quit
accept(17,

...

[root@PalaceRedirect tmp]# strace -p 7011
Process 7011 attached - interrupt to quit
connect(3, {sa_family=AF_INET, sin_port=htons(25151), sin_addr=inet_addr("127.0.0.1")}, 16
I can't seem to decipher what's happening right here.

Perhaps someone can point my in the right direction, because I'm really stumped.

Code:
[root@PalaceRedirect tmp]# getenforce
Permissive
 
Old 11-16-2010, 01:47 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Obviously this is a temporary test. You should undo any of these steps if you'd like to keep things the way they are.

You can look up on Centos site how to do these things:

Disable IP6
Disable iptables / ip6tables
Disable selinux completely
Reboot
Make sure your hostname is set
/etc/hosts should list your actual ip address and hostname on a seperate line
Set your cobbler config to point at the IP address, not 127.0.0.1
 
Old 11-16-2010, 02:08 PM   #3
odbod
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by szboardstretcher View Post
Obviously this is a temporary test. You should undo any of these steps if you'd like to keep things the way they are.

You can look up on Centos site how to do these things:

Disable IP6
Disable iptables / ip6tables
Disable selinux completely
Reboot
Make sure your hostname is set
/etc/hosts should list your actual ip address and hostname on a seperate line
Set your cobbler config to point at the IP address, not 127.0.0.1
IPv6 already disabled.
Iptables is for my firewall. This box is my gateway to the internet. Disabling this will prevent access for all systems on my network to the internet, as well as leave my machine open to the internet. However, disabling it temporarily allows the cobbler check to run promptly.
Hostname is already set. /etc/hosts already has my actual IP address to my hostname.
My cobbler configuration already points to the correct IP address.

I've now disabled selinux, rebooted. Same issue while iptables is on.
 
Old 11-16-2010, 02:23 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
If cobbler check runs fine when iptables is off, then iptables must be the issue.

Sounds like you are going to have to modify your iptables rules to let Cobbler run locally.

http://www.redhat.com/docs/en-US/Red...-reqs-security

Last edited by szboardstretcher; 11-16-2010 at 02:25 PM.
 
Old 11-16-2010, 02:28 PM   #5
odbod
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by szboardstretcher View Post
If cobbler check runs fine when iptables is off, then iptables must be the issue.

Sounds like you are going to have to modify your iptables rules to let Cobbler run locally.

http://www.redhat.com/docs/en-US/Red...-reqs-security
I've gone through and added the proper ports. I've already had port 80 on, so that isn't an issue. I can access my server fine from a web browser. Going through and adding the ports ends up yielding me this:

Code:
httpd does not appear to be running and proxying cobbler
 
Old 11-16-2010, 05:57 PM   #6
odbod
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora
Posts: 26

Original Poster
Rep: Reputation: 0
Solved: It seems that '-A INPUT -i lo -j ACCEPT' was nowhere to be found in my iptables rules. I'm not sure why it wasn't in there anymore.
 
Old 11-16-2010, 07:53 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Good to see you fixed things. Just don't forget to re-enable SELinux and any other features you disabled for testing purposes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Running a second (faster) machine through a linux machine Paul_linux_newbie Linux - Newbie 6 06-14-2010 05:41 PM
Can't Ping Linux CentOS 5.3 Machine to XP SP2 Windows Machine Moderns Linux - Networking 20 11-04-2009 12:33 AM
LXer: Running Solaris 10 (11/06) Virtual Machine on CentOS 5.0 (VMWare Server 1.0.3) LXer Syndicated Linux News 0 05-25-2007 12:46 AM
my machine running on linux 9.1 hangs hameed.ahmed LinuxQuestions.org Member Intro 2 02-08-2007 12:24 AM
CentOS machine + XP machine = XP invisible for Linux achtung_linux Linux - Networking 10 08-18-2006 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration