Closed derekoco closed 6 years ago
Building from Master or Stable branches results in the exact same behaviour
There is clearly some requirement that ellis must have access to the containers local mysql server while intsalling, can you confim?
Installed /usr/share/clearwater/ellis/env/lib/python2.7/site-packages/tornado-2.3-py2.7.egg
Processing dependencies for tornado==2.3
Finished processing dependencies for tornado==2.3
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dpkg: error processing package ellis (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
ellis
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command '/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes ellis' returned a non-zero code: 100
Is this down to how you are attempting to start the mysql server in the Dockerfile?
RUN /etc/init.d/mysql start
Once this RUN command completes the deamon will stop again will it not?
I am just baffled by this. I cleaned out my containers, deleted the images, and ran exactly the commands you specified. It all worked perfectly for me.
I assume that ellis needs to use the mysql server, though don't know. One for Clearwater support (I'll ask them directly to get involved).
My gut feel is that this is a side effect of the version of Docker or OS you are using. I'll try again on Windows since it might be a whacky Windows issue, but for now here is what I am running - can you let me know the Docker and OS version for a failing system?
plw@PC4003:~/nobackup/git/clearwater-docker$ uname -a
Linux PC4003 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
plw@PC4003:~/nobackup/git/clearwater-docker$ docker version
Client:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4
Git commit: b9f10c9
Built: Wed Jun 1 22:00:43 2016
OS/Arch: linux/amd64
Server:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4
Git commit: b9f10c9
Built: Wed Jun 1 22:00:43 2016
OS/Arch: linux/amd64
Windows builds don't work for other reasons - we don't support them.
However, I have now tried on a few different servers and all worked. The one exception is that I found a box that was failing (with a different error, but maybe related) because one of the base images was corrupted. I fixed that by deleting the ubuntu:14.04
image and then rerunning. Worth trying that.
My questions.
uname -a
or docker version
show anything different? What OS is this on?Experienced the exact same issue on when building on Photon OS, interestingly enough when I run the container in an interactive session and try to start mysqld everything works perfectly fine.
I just installed an Ubuntu 16.04 which seems to build the images all fine, so I am guessing the Photon OS is missing something or as mentioned before some kernel or docker version variation might be causing this.
I was facing the same issue on Ubuntu 16.04 kernel version 4.4. Mysql wasn't starting at all. After updating the kernel version to 4.10, the issue doesn't appear very frequently, but still not completely resolved. Update: I also tested it with the ubuntu 14LTS kernel version 3.13.0-100. It is not working at all.
I am having the same error. Please let me know if there is some workaround. In OPNFV we have been steady users of Clearwater and are trying to get this docker version running under k8s. Any help on this blocking issue is appreciated.
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial
$ uname -a Linux opnfv-admin 4.4.0-92-generic #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ docker version Client: Version: 17.09.0-ce API version: 1.32 Go version: go1.8.3 Git commit: afdb6d4 Built: Tue Sep 26 22:42:18 2017 OS/Arch: linux/amd64
Server: Version: 17.09.0-ce API version: 1.32 (minimum version 1.12) Go version: go1.8.3 Git commit: afdb6d4 Built: Tue Sep 26 22:40:56 2017 OS/Arch: linux/amd64 Experimental: false
@plwhite 1- this issue happens even if I force it to download the new base ubuntu image. 2- Yes, this happens on multiple hosts 3- Used ubuntu 16.04 LTS to build the image
Hi Guys, I have the problems with mysql: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) dpkg: error processing package ellis (--configure): subprocess installed post-installation script returned error exit status 1
Hi guys, I've changed the Ellis' Dockerfile to this: RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes mysql-server && find /var/lib/mysql -type f -exec touch {} \; && service mysql start RUN find /var/lib/mysql -type f -exec touch {} \; && service mysql start && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes ellis && /usr/sbin/dnsmasq --interface=lo --bind-interfaces --user=root
The issue with Mysql was fixed for me.
BR
Should be resolved by #84
@plwhite @MatMeredith
Symptoms
The ellis container image fails to build with mysql error "Starting MySQL database server mysqld ...fail!"
Impact
Unable to build and deploy clearwater-docker
Release and environment
$ git clone https://github.com/Metaswitch/clearwater-docker.git
$ git branch = master
Steps to reproduce
git clone https://github.com/Metaswitch/clearwater-docker.git
cd clearwater-docker/
for i in base astaire cassandra chronos bono ellis homer homestead homestead-prov ralf sprout ; do docker build -t clearwater/$i $i ; done