Server only listens on IPv6 address

3,496 views
Skip to first unread message

Guy

unread,
May 14, 2012, 8:52:46 PM5/14/12
to rundeck...@googlegroups.com
I installed rundeck using the official deb file, haven't changed any settings and started the server. However I wasn't able to reach the web interface at all. This is on an AWS instance, so I opened up port 4440 for 0.0.0.0/0 but still wasn't able to access it. I had a look at the output from netstat:

tcp6       0      0 :::4440                 :::*                    LISTEN      30914/java 

I'm able to SSH into the instance and this shows up as:

tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      488/sshd

So it looks to me like rundeck is only listening on the IPv6 address. How do I configure it to listen on the IPv4 address?

Thanks,
Guy

Moses Lei

unread,
May 14, 2012, 9:17:50 PM5/14/12
to rundeck...@googlegroups.com
Guy, what distro/version is this? And what is localhost listed as in /etc/hosts?

Moses

--
Moses Lei
[ Professional Services | DTO Solutions, Inc. ]
[ mobile: +1 703.901.5969 | e-mail: ml...@dtosolutions.com | aim/gtalk: ml...@controltier.com | yahoo: moseslei | windows live (msn): ml...@dtosolutions.com ]

Guy

unread,
May 15, 2012, 6:02:46 PM5/15/12
to rundeck...@googlegroups.com
Hi Moses,

The system is Ubuntu 11.10 (oneiric) and below is my hosts file:

127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
# Added by cloud-init
127.0.1.1    domU-x-x-x-x-x-x.compute-1.internal domU-x-x-x-x-x-x

Thanks,
Guy

Guy

unread,
May 15, 2012, 6:04:03 PM5/15/12
to rundeck...@googlegroups.com
Hi Moses:

The system is Ubuntu 11.10 and my hosts file is below:


127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
# Added by cloud-init
127.0.1.1    domU-xx-xx-xx-xx-xx-xx.compute-1.internal domU-xx-xx-xx-xx-xx-xx


Thanks,
Guy

On Monday, 14 May 2012 18:17:50 UTC-7, Moses Lei wrote:

Moses Lei

unread,
May 15, 2012, 9:57:19 PM5/15/12
to rundeck...@googlegroups.com
How odd. What is the rundeck command line as shown by ps? There seem to be a bunch of these binding-to-ipv6 and not ipv4 issues lately.

Moses

--
Moses Lei
[ Professional Services | DTO Solutions, Inc. ]
[ mobile: +1 703.901.5969 | e-mail: ml...@dtosolutions.com | aim/gtalk: ml...@controltier.com | yahoo: moseslei | windows live (msn): ml...@dtosolutions.com ]



Guy

unread,
May 16, 2012, 1:25:57 PM5/16/12
to rundeck...@googlegroups.com
Here's the command from ps:

/usr/bin/java -Djava.security.auth.login.config=/etc/rundeck/jaas-loginmodule.conf -Dloginmodule.name=RDpropertyfilelogin -Drdeck.config=/etc/rundeck -Drdeck.base=/etc/rundeck -Drundeck.server.configDir=/etc/rundeck -Dserver.datastore.path=/var/lib/rundeck/data -Drundeck.server.serverDir=/var/lib/rundeck -Drdeck.projects=/var/rundeck/projects -Drdeck.runlogs=/var/lib/rundeck/logs -Drundeck.config.name=/etc/rundeck/rundeck-config.properties -Xmx1024m -Xms256m -cp /var/lib/rundeck/bootstrap/jetty-naming-6.1.21.jar:/var/lib/rundeck/bootstrap/rundeck-server-1.4.2.1.jar:/var/lib/rundeck/bootstrap/jetty-6.1.21.jar:/var/lib/rundeck/bootstrap/jetty-plus-6.1.21.jar:/var/lib/rundeck/bootstrap/jetty-util-6.1.21.jar:/var/lib/rundeck/bootstrap/servlet-api-2.5-20081211.jar::/etc/rundeck com.dtolabs.rundeck.RunServer /etc/rundeck 4440

Thanks,
Guy

Guy

unread,
May 16, 2012, 6:02:42 PM5/16/12
to rundeck...@googlegroups.com
 Hi again Moses,

I worked out what the issue was. In framework.properties I changed server.hostname, server.name and server.url to the instance's public DNS, from localhost. It seems to be working now. It seems like it *is* actually listening on the IPv4 address but just didn't show in netstat.

Thanks for your help,
Guy
Reply all
Reply to author
Forward
0 new messages