[openstack-dev] [devstack][keystone] (98)Address already in use: make_sock: could not bind to address [::]:5000 & 0.0.0.0:5000

Rich Megginson rmeggins at redhat.com
Wed Jul 16 15:05:21 UTC 2014


On 07/16/2014 08:43 AM, Brian Haley wrote:
> On 07/16/2014 07:34 AM, Joe Jiang wrote:
>> Hi all,
>>
>> When I just set up my develope environment use devstack at CentOS 6.5,
>> that fetch devstack source via github.com and checkout stable/icehouse branch.
>> and bellow[1] is the error log fragment.
>> I'm not sure if I am ok to ask my question in this mail list or not,
>> because I search all of the web and still not resolve it.
>> Anyway, I need you help. and, your help is a highly appreciated.
> I tripped over a similar issue with Horizon yesterday and found this bug:
>
> https://bugs.launchpad.net/devstack/+bug/1340660
>
> The error I saw was with port 80, so I was able to disable Horizon to get around
> it, and I didn't see anything obvious in the apache error logs to explain it.
>
> -Brian

Another problem with port 5000 in Fedora, and probably more recent 
versions of RHEL, is the selinux policy:

# sudo semanage port -l|grep 5000
...
commplex_main_port_t           tcp      5000
commplex_main_port_t           udp      5000

There is some service called "commplex" that has already "claimed" port 
5000 for its use, at least as far as selinux goes.

>
>
>> 2014-07-16 11:08:53.282 | + sudo sed '/^Listen/s/^.*$/Listen 0.0.0.0:80/' -i
>> /etc/httpd/conf/httpd.conf
>> 2014-07-16 11:08:53.295 | + sudo rm -f '/var/log/httpd/horizon_*'
>> 2014-07-16 11:08:53.310 | + sudo sh -c 'sed -e "
>> 2014-07-16 11:08:53.310 |         s,%USER%,stack,g;
>> 2014-07-16 11:08:53.310 |         s,%GROUP%,stack,g;
>> 2014-07-16 11:08:53.310 |         s,%HORIZON_DIR%,/opt/stack/horizon,g;
>> 2014-07-16 11:08:53.310 |         s,%APACHE_NAME%,httpd,g;
>> 2014-07-16 11:08:53.310 |         s,%DEST%,/opt/stack,g;
>> 2014-07-16 11:08:53.310 |         s,%HORIZON_REQUIRE%,,g;
>> 2014-07-16 11:08:53.310 |     " /home/devstack/files/apache-horizon.template
>>> /etc/httpd/conf.d/horizon.conf'
>> 2014-07-16 11:08:53.321 | + start_horizon
>> 2014-07-16 11:08:53.321 | + restart_apache_server
>> 2014-07-16 11:08:53.321 | + restart_service httpd
>> 2014-07-16 11:08:53.321 | + is_ubuntu
>> 2014-07-16 11:08:53.321 | + [[ -z rpm ]]
>> 2014-07-16 11:08:53.322 | + '[' rpm = deb ']'
>> 2014-07-16 11:08:53.322 | + sudo /sbin/service httpd restart
>> 2014-07-16 11:08:53.361 | Stopping httpd:                  [FAILED]
>> 2014-07-16 11:08:53.532 | Starting httpd: httpd: Could not reliably determine
>> the server's fully qualified domain name, using 127.0.0.1 for ServerName
>> 2014-07-16 11:08:53.533 | (98)Address already in use: make_sock: could not bind
>> to address [::]:5000
>> 2014-07-16 11:08:53.533 | (98)Address already in use: make_sock: could not bind
>> to address 0.0.0.0:5000
>> 2014-07-16 11:08:53.533 | no listening sockets available, shutting down
>> 2014-07-16 11:08:53.533 | Unable to open logs
>> 2014-07-16 11:08:53.547 |                                  [FAILED]
>> 2014-07-16 11:08:53.549 | + exit_trap
>> 2014-07-16 11:08:53.549 | + local r=1
>> 2014-07-16 11:08:53.549 | ++ jobs -p
>> 2014-07-16 11:08:53.550 | + jobs=
>> 2014-07-16 11:08:53.550 | + [[ -n '' ]]
>> 2014-07-16 11:08:53.550 | + exit 1
>> [stack at stack devstack]$
>>
>>
>>
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list