New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS7: Couchbase server expects /etc/init.d/functions to be there #339

Closed
tleyden opened this Issue Dec 3, 2014 · 9 comments

Comments

Projects
None yet
3 participants
@tleyden

tleyden commented Dec 3, 2014

I'm trying to install Couchbase Server with this dockerfile:

https://github.com/couchbaselabs/couchbase-server-docker/blob/master/3.0.1/Dockerfile

but the /etc/init.d/couchbase-server script expects an /etc/init.d/functions file, which is not in the CentOS image.

https://gist.github.com/tleyden/b46eedf729006d71fd36#file-gistfile1-txt-L23

And so it gives an error: /etc/init.d/couchbase-server: line 22: /etc/init.d/functions: No such file or directory

Any idea why /etc/init.d/functions is not on the CentOS7 image? When I installed CentOS7 from CentOS-7.0-1406-x86_64-DVD.iso, it contained an /etc/init.d/functions file.

Steps to reproduce:

$ sudo docker run -ti centos /bin/bash
$ yum install -y wget pkgconfig openssl tar hostname
$ rpm --install http://packages.couchbase.com/releases/3.0.1/couchbase-server-community-3.0.1-centos6.x86_64.rpm

Result:

Warning: Swappiness is not 0.
You can set the swappiness at runtime with
sysctl vm.swappiness=0
Minimum RAM required  : 4 GB
System RAM configured : 3.67 GB

Minimum number of processors required : 4 cores
Number of processors on the system    : 1 cores



/etc/init.d/couchbase-server: line 22: /etc/init.d/functions: No such file or directory

You have successfully installed Couchbase Server.
Please browse to http://f63f31b276ba:8091/ to configure your server.
Please refer to http://couchbase.com for additional resources.

Please note that you have to update your firewall configuration to
allow connections to the following ports: 11211, 11210, 11209, 4369,
8091, 8092, 18091, 18092, 11214, 11215 and from 21100 to 21299.

By using this software you agree to the End User License Agreement.
See /opt/couchbase/LICENSE.txt.
@tleyden

This comment has been minimized.

Show comment
Hide comment
@tleyden

tleyden Dec 3, 2014

I spoke to Nick_ZWG on IRC, and he mentioned he ran into the exact same problem and downgraded to CentOS6 to work around it.

tleyden commented Dec 3, 2014

I spoke to Nick_ZWG on IRC, and he mentioned he ran into the exact same problem and downgraded to CentOS6 to work around it.

@tleyden

This comment has been minimized.

Show comment
Hide comment
@tleyden

tleyden Dec 3, 2014

This worked:

$ sudo docker run -ti centos:centos6 /bin/bash
$ yum install -y wget pkgconfig openssl tar hostname
$ rpm --install http://packages.couchbase.com/releases/3.0.1/couchbase-server-community-3.0.1-centos6.x86_64.rpm

tleyden commented Dec 3, 2014

This worked:

$ sudo docker run -ti centos:centos6 /bin/bash
$ yum install -y wget pkgconfig openssl tar hostname
$ rpm --install http://packages.couchbase.com/releases/3.0.1/couchbase-server-community-3.0.1-centos6.x86_64.rpm
@yosifkit

This comment has been minimized.

Show comment
Hide comment
@yosifkit

yosifkit Dec 3, 2014

Member

Maybe @jperrin would know what is wrong with centos7, if anything? Perhaps make an issue on the repo or file a ticket?

Member

yosifkit commented Dec 3, 2014

Maybe @jperrin would know what is wrong with centos7, if anything? Perhaps make an issue on the repo or file a ticket?

@tleyden

This comment has been minimized.

Show comment
Hide comment
@tleyden

tleyden Dec 3, 2014

@yosifkit what made me think something was wrong with the centos7 image was the fact that if you install it from the CentOS-7.0-1406-x86_64-DVD.iso, it contained the /etc/init.d/functions file.

tleyden commented Dec 3, 2014

@yosifkit what made me think something was wrong with the centos7 image was the fact that if you install it from the CentOS-7.0-1406-x86_64-DVD.iso, it contained the /etc/init.d/functions file.

tleyden added a commit to couchbaselabs/couchbase-server-coreos that referenced this issue Dec 3, 2014

@jperrin

This comment has been minimized.

Show comment
Hide comment
@jperrin

jperrin Dec 4, 2014

Contributor

This file is provided by the initscripts package, which isn't included by default in the centos-7 image. It is however in the centos6 image.

In el6, it's brought in as a dependency for iproute and iputils, where in el7, systemd (or in our case fakesystemd) meet this need.

Long story short, in your Dockerfile for centos7, you should add initscripts to the list of packages you install.

Contributor

jperrin commented Dec 4, 2014

This file is provided by the initscripts package, which isn't included by default in the centos-7 image. It is however in the centos6 image.

In el6, it's brought in as a dependency for iproute and iputils, where in el7, systemd (or in our case fakesystemd) meet this need.

Long story short, in your Dockerfile for centos7, you should add initscripts to the list of packages you install.

@tleyden

This comment has been minimized.

Show comment
Hide comment
@tleyden

tleyden Dec 4, 2014

@jperrin awesome, thank you. I'm closing the ticket since that will solve my problem on centos7.

tleyden commented Dec 4, 2014

@jperrin awesome, thank you. I'm closing the ticket since that will solve my problem on centos7.

@tleyden tleyden closed this Dec 4, 2014

tleyden added a commit to couchbaselabs/couchbase-server-coreos that referenced this issue Dec 4, 2014

@tleyden

This comment has been minimized.

Show comment
Hide comment
@tleyden

tleyden Sep 18, 2015

Note: centos6.7 has this same issue of missing /etc/init.d/functions, and running yum install -y wget pkgconfig openssl tar hostname did not work around it.

tleyden commented Sep 18, 2015

Note: centos6.7 has this same issue of missing /etc/init.d/functions, and running yum install -y wget pkgconfig openssl tar hostname did not work around it.

@jperrin

This comment has been minimized.

Show comment
Hide comment
@jperrin

jperrin Sep 19, 2015

Contributor

This still isn't a problem, and still requires that you install the initscripts package. The centos base containers are designed to be small and thus cannot have all possible packages included.

Contributor

jperrin commented Sep 19, 2015

This still isn't a problem, and still requires that you install the initscripts package. The centos base containers are designed to be small and thus cannot have all possible packages included.

@tleyden

This comment has been minimized.

Show comment
Hide comment
@tleyden

tleyden Sep 21, 2015

@jperrin thanks, I will make sure to install initscripts w/ centos6.7.

tleyden commented Sep 21, 2015

@jperrin thanks, I will make sure to install initscripts w/ centos6.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment