[ckan-dev] Apache problem (98)Address already in use when testing CKAN2.2 in docker
Colum McCoole
colum.mccoole at btinternet.com
Thu Jan 30 17:18:54 UTC 2014
I'm wondering if someone with more knowledge of Apache might be able to
help.
I have been testing CKAN setups using docker, as per
https://github.com/kindly/ckan_dockered
This particular set-up was for version 2.1 and it has been working fine
running within a docker container.
Today, I wanted to test aspects of CKAN 2.2 and so tweaked the ckan_docker
repo locally to download *2.2-6_amd64.deb file from the build index here:
http://packaging.ckan.org/build/
The docker container builds fine and launches. However, I'm getting a 502
gateway error when trying to access port 5000. Any attempt to restart the
apache2 service fails with:
[Thu Jan 30 16:57:21 2014] [warn] NameVirtualHost *:8800 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:8800
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
Obviously my old container was shut down, so there were no obvious conflicts
in terms of port usage between containers.
I tried rebooting the EC2 instance . which didn't resolve things.
I also stopped and restarted on another instance . which also didn't make a
difference.
I am able to bring up the old container running 2.1 and point to the
<ip_address>:5000 fine.
I came across this possible resolution to '(98) Address already in use'
problem here: http://ubuntuforums.org/showthread.php?t=1636667
It suggests that that root of the problem is with a pass-phrase associated
with an SSL key which can cause Apache to crash. While I do use one when
attaching to an EC2 using Putty, I can't believe that could be the source of
the problem ... or could it?
Thanks for any assistance you can offer.
Colum
ubuntu at ip-10-50-47-64:~$ docker ps
CONTAINER ID IMAGE COMMAND
CREATED STATUS
PORTS NAMES
b2b619112dca ubuntu/ckan_dockered:latest bash startup.sh 2
hours ag o Up 51 seconds
0.0.0.0:5000->80/tcp ckan22test
ubuntu at ip-10-50-47-64:~$
ubuntu at ip-10-50-47-64:~$ docker attach ckan22test
root at b2b619112dca:/usr/lib/ckan# service apache2 restart
* Restarting web server apache2
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not
permitted)
apache2: Could not reliably determine the server's fully qualified domain
name, using 172.17.0.2 for ServerName
[Thu Jan 30 16:57:20 2014] [warn] NameVirtualHost *:8800 has no VirtualHosts
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not
permitted)
apache2: Could not reliably determine the server's fully qualified domain
name, using 172.17.0.2 for ServerName
[Thu Jan 30 16:57:21 2014] [warn] NameVirtualHost *:8800 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:8800
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
[fail]
root at b2b619112dca:/usr/lib/ckan# cd /var/log
root at b2b619112dca:/var/log# ls
alternatives.log apt bootstrap.log dmesg faillog fsck
nginx tomcat6 wtmp
apache2 boot btmp dpkg.log fontconfig.log lastlog
postgresql upstart
root at b2b619112dca:/var/log# cd apache2
root at b2b619112dca:/var/log/apache2# ls
access.log datapusher.custom.log datapusher.error.log error.log
other_vhosts_access.log
root at b2b619112dca:/var/log/apache2# cat error.log
[Thu Jan 30 14:44:52 2014] [warn] mod_wsgi: Compiled for Python/2.7.2+.
[Thu Jan 30 14:44:52 2014] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Thu Jan 30 14:44:52 2014] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3
Python/2.7.3 configured -- resuming normal operations
root at b2b619112dca:/var/log/apache2# ls
access.log datapusher.custom.log datapusher.error.log error.log
other_vhosts_access.log
root at b2b619112dca:/var/log/apache2# ls -l
total 4
-rw-r----- 1 root adm 0 Jan 30 14:44 access.log
-rw-r--r-- 1 root root 0 Jan 30 14:44 datapusher.custom.log
-rw-r--r-- 1 root root 0 Jan 30 14:44 datapusher.error.log
-rw-r----- 1 root adm 270 Jan 30 14:44 error.log
-rw-r--r-- 1 root root 0 Jan 30 14:44 other_vhosts_access.log
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140130/d6358fd5/attachment-0002.html>
More information about the ckan-dev
mailing list