Ask Your Question

mkowalski's profile - activity

2015-12-04 12:47:41 -0500 received badge  Nice Question (source)
2015-07-27 03:46:00 -0500 received badge  Student (source)
2015-07-21 19:14:36 -0500 received badge  Famous Question (source)
2015-07-16 09:51:56 -0500 commented answer Keystone port 5000 used by Python

Any of the ways don't work, I'm having an ERROR: openstack Unable to establish connection to http://controller:35357/v2.0/OS-KSADM/services message when trying to openstack service create, so it's still the same situation as it was before

2015-07-16 07:44:50 -0500 received badge  Notable Question (source)
2015-07-16 04:36:30 -0500 commented answer Keystone port 5000 used by Python

After commenting ports apache starts correctly, but does it mean I don't have Keystone service at all? I cannot run openstack service create --name keystone --description "OpenStack Identity" identity as I don't have any service on 35357. If so, how infra will work without identity service?

2015-07-16 00:40:44 -0500 received badge  Enthusiast
2015-07-15 21:02:36 -0500 received badge  Popular Question (source)
2015-07-15 14:38:30 -0500 received badge  Editor (source)
2015-07-15 14:32:49 -0500 commented question Keystone port 5000 used by Python

@Ram.Meena, of course tried it before posting here...

@sunnyarora, problem there refers to Horizon, not Keystone. Anyway I've modified wsgi-keystone.conf to make apache listen on 80 instead of 5000, but it still did not help

2015-07-12 22:59:45 -0500 asked a question Keystone port 5000 used by Python

Hi,

I'm following official OpenStack documentation to build my first environment and got stuck in configuring Keystone (last step from http://docs.openstack.org/kilo/install-guide/install/apt/content/keystone-install.html (http://docs.openstack.org/kilo/instal...))

While trying to restart apache I get error message about port 5000 being used

 * Restarting web server apache2
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:5000
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:5000
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.

Netstat says the port is used by Python and further investigation shows it's somehow related to Keystone

/usr/bin/python /usr/bin/keystone-all --config-file=/etc/keystone/keystone.conf --log-file=/var/log/keystone/keystone.log

Which way should I take up in this situation? Reconfigure apache to use a different port, or try to deal with Python to use a different one?

EDIT

Referring to https://ask.openstack.org/en/question/47137/devstack-fails-to-start-apache2-address-already-in-use-could-not-bind-to-address/ (https://ask.openstack.org/en/question...) I modified /etc/apache2/sites-available/wsgi-keystone.conf from <VirtualHost *:5000> to <VirtualHost *:80>, but the error persisted. The message right now is

 * Restarting web server apache2
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:35357
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:35357
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.

Apache error log obviously is empty, so I cannot go there to find anything helpful.