Urgent! Problem install couchbase server on Ubuntu 16.04LTS/Cloud

server

#1

Iḿ trying to install on Cloud server with Ubuntu 16.04LTS and i try to do dpkg -i couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb

But Im getting

dpkg: error processing package couchbase-server (--install):
 subprocess installed post-installation script returned error exit status 127
Processing triggers for systemd (229-4ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 couchbase-server

I already installed on my PC with Ubuntu 16.04 and it worked fine!

Thanks to advance


#2

Could you be more specific? Official release page http://releases.ubuntu.com/16.04/ does not have any “Could server” release listed. Please, describe your environment, how did you install this version?


#3

Hi jkjunior,
I am able to reproduce your issue in AWS with AMI ID {ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20161020 (ami-40d28157)}

root@ip-172-31-4-24:/home/ubuntu# dpkg -i couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb 
Selecting previously unselected package couchbase-server.
(Reading database ... 53664 files and directories currently installed.)
Preparing to unpack couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb ...
libssl1.0.0 is installed. Continue installing
Warning: Transparent hugepages looks to be active and should not be.
Please look at http://bit.ly/1ZAcLjD as for how to PERMANENTLY alter this setting.
Warning: Swappiness is not set to 0.
Please look at http://bit.ly/1k2CtNn as for how to PERMANENTLY alter this setting.
Minimum RAM required  : 4 GB
System RAM configured : 7.30 GB

Minimum number of processors required : 4 cores
Number of processors on the system    : 4 cores
Unpacking couchbase-server (4.5.0-2601-1) ...
Setting up couchbase-server (4.5.0-2601-1) ...
[....] Starting couchbase-server (via systemctl): couchbase-server.serviceFailed to start couchbase-server.service: Unit couchbase-server.service not found.
 failed!
dpkg: error processing package couchbase-server (--install):
 subprocess installed post-installation script returned error exit status 5
Processing triggers for systemd (229-4ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 couchbase-server
root@ip-172-31-4-24:/home/ubuntu# 

I check if python preinstall on this instance. The result is No.

root@ip-172-31-4-24:/home/ubuntu# python
The program 'python' can be found in the following packages:
 * python-minimal
 * python3
Try: apt install <selected package>

I remove Couchbase Server from the instance.

After doing update instance (apt-get update) and install python (apt-get install python), Couchbase Server 4.5.0 was installed on this instance successfully.

root@ip-172-31-4-24:/home/ubuntu# dpkg -i couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb 
Selecting previously unselected package couchbase-server.
(Reading database ... 54475 files and directories currently installed.)
Preparing to unpack couchbase-server-enterprise_4.5.0-ubuntu14.04_amd64.deb ...
libssl1.0.0 is installed. Continue installing
Warning: Transparent hugepages looks to be active and should not be.
Please look at http://bit.ly/1ZAcLjD as for how to PERMANENTLY alter this setting.
Warning: Swappiness is not set to 0.
Please look at http://bit.ly/1k2CtNn as for how to PERMANENTLY alter this setting.
Minimum RAM required  : 4 GB
System RAM configured : 7.30 GB

Minimum number of processors required : 4 cores
Number of processors on the system    : 4 cores
Unpacking couchbase-server (4.5.0-2601-1) ...
Setting up couchbase-server (4.5.0-2601-1) ...
Upgrading couchbase-server ...
  /opt/couchbase/bin/install/cbupgrade -c /opt/couchbase/var/lib/couchbase/config -a yes 
Automatic mode: running without interactive questions or confirmations.
Analysing...
Done: no previous config.dat found; nothing to upgrade.
[ ok ] Starting couchbase-server (via systemctl): couchbase-server.service.

You have successfully installed Couchbase Server.
Please browse to http://ip-172-31-4-24: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:
4369, 8091 to 8094, 9100 to 9105, 9998, 9999, 11209 to 11211,
11214, 11215, 18091 to 18093, and from 21100 to 21299.

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

Processing triggers for systemd (229-4ubuntu11) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@ip-172-31-4-24:/home/ubuntu# 

root@ip-172-31-4-24:/home/ubuntu# service couchbase-server status
● couchbase-server.service - LSB: Couchbase server
   Loaded: loaded (/etc/init.d/couchbase-server; bad; vendor preset: enabled)
   Active: active (running) since Mon 2016-11-28 19:39:48 UTC; 39min ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/couchbase-server.service
           ├─12911 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/epmd -daemon
           ├─12945 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -A 16 -- -root /opt/couchbase/lib/erlang -progname erl -- -home /opt/couchbase -- -smp enable -kernel inet_dist_listen_min 21100 inet_dist_listen_max 21299 error_logger false global_enable_
           ├─12974 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -A 16 -sbt u -P 327680 -K true -swt low -MMmcs 30 -e102400 -- -root /opt/couchbase/lib/erlang -progname erl -- -home /opt/couchbase -- -smp enable -setcookie nocookie -kernel inet_dist_list
           ├─13004 sh -s disksup
           ├─13006 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/memsup
           ├─13007 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/cpu_sup
           ├─13008 inet_gethost 4
           ├─13009 inet_gethost 4
           ├─13129 /opt/couchbase/bin/saslauthd-port
           ├─13159 /opt/couchbase/bin/memcached -C /opt/couchbase/var/lib/couchbase/config/memcached.json
           ├─13221 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -P 327680 -K true -- -root /opt/couchbase/lib/erlang -progname erl -- -home /opt/couchbase -- -pa /opt/couchbase/lib/erlang/lib/appmon-2.1.14.2/ebin /opt/couchbase/lib/erlang/lib/asn1-2.0.4
           ├─13242 /opt/couchbase/bin/goport
           ├─13252 /opt/couchbase/bin/goxdcr -localProxyPort=11215 -sourceKVAdminPort=8091 -xdcrRestPort=9998 -isEnterprise=true
           ├─13262 sh -s disksup
           ├─13264 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/memsup
           ├─13265 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/cpu_sup
           ├─13271 /opt/couchbase/bin/priv/godu
           ├─13272 sh -s ns_disksup
           ├─13273 /opt/couchbase/bin/priv/godu
           ├─13286 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -P 327680 -K true -- -root /opt/couchbase/lib/erlang -progname erl -- -home /opt/couchbase -- -pa /opt/couchbase/lib/erlang/lib/appmon-2.1.14.2/ebin /opt/couchbase/lib/erlang/lib/asn1-2.0.4
           ├─13290 portsigar for ns_1@127.0.0.1
           ├─13313 inet_gethost 4
           ├─13314 inet_gethost 4
           ├─13335 /opt/couchbase/bin/goport
           ├─13340 /opt/couchbase/bin/projector -kvaddrs=127.0.0.1:11210 -adminport=:9999 -diagDir=/opt/couchbase/var/lib/couchbase/crash 127.0.0.1:8091
           ├─13366 /opt/couchbase/bin/goport
           ├─13371 /opt/couchbase/bin/cbq-engine --datastore=http://127.0.0.1:8091 --http=:8093 --configstore=http://127.0.0.1:8091 --enterprise=true --https=:18093 --certfile=/opt/couchbase/var/lib/couchbase/config/ssl-cert-key.pem --keyfile=/opt/couchbase/var/lib
           ├─13383 /opt/couchbase/bin/moxi -Z port_listen=11211,default_bucket_name=default,downstream_max=1024,downstream_conn_max=4,connect_max_errors=5,connect_retry_interval=30000,connect_timeout=400,auth_timeout=100,cycle=200,downstream_conn_queue_timeout=200,
           ├─13392 /opt/couchbase/bin/goport
           └─13397 /opt/couchbase/bin/indexer -vbuckets=1024 -cluster=127.0.0.1:8091 -adminPort=9100 -scanPort=9101 -httpPort=9102 -streamInitPort=9103 -streamCatchupPort=9104 -streamMaintPort=9105 -storageDir=/opt/couchbase/var/lib/couchbase/data/@2i -diagDir=/opt

Nov 28 19:39:43 ip-172-31-4-24 systemd[1]: Starting LSB: Couchbase server...
Nov 28 19:39:48 ip-172-31-4-24 couchbase-server[12886]:  * Started couchbase-server
Nov 28 19:39:48 ip-172-31-4-24 systemd[1]: Started LSB: Couchbase server.
lines 1-39/39 (END)
root@ip-172-31-4-24:/home/ubuntu# 

So the issue here is the Ubuntu 14.04 in AWS cloud does not preinstall with python. This may happen in your cloud too. Could you check if python is preinstalled on your cloud?
If you still have any issue, drop me a line.
Thanks for using our Couchbase Server.
Thuan Nguyen


#4

Note that Ubuntu 16.04 is /not/ a supported platform at present - and I’ve seen issues with the Breakpad component of the memcached process failing on some installs.

I suggest you stick to a supported OS - e.g. Ubuntu 14.04.


#5

May be this will help you.

https://askubuntu.com/questions/654951/failed-to-connect-to-socket-com-ubuntu-upstart-connection-refused-errors-were