[MB-8051] [Doc'd] during upgrade 2.0.0->2.1.0 with non default port get 'Failed to stop couchbase-server' in console on Ubuntu Created: 10/Apr/13  Updated: 11/Mar/14

Status: Open
Project: Couchbase Server
Component/s: installer
Affects Version/s: 2.0, 2.0.1, 2.1.0
Fix Version/s: bug-backlog
Security Level: Public

Type: Bug Priority: Minor
Reporter: Andrei Baranouski Assignee: Bin Cui
Resolution: Unresolved Votes: 0
Labels: scrubbed
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Ubuntu 64

Triage: Untriaged

 Description   
Steps:

 dpkg -i couchbase-server-enterprise_x86_64_2.0.0-1976-rel.deb
Selecting previously deselected package couchbase-server.
(Reading database ... 62014 files and directories currently installed.)
Unpacking couchbase-server (from couchbase-server-enterprise_x86_64_2.0.0-1976-rel.deb) ...
libssl0.9.8 is installed. Continue installing
Setting up couchbase-server (2.0.0) ...
 * Started couchbase-server

You have successfully installed Couchbase Server.
Please browse to http://ubu-2502: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 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 ureadahead ...

root@ubu-2502:/opt/couchbase/bin# ./couchbase-cli cluster-init --cluster=10.3.3.19:8091 -u Administrator -p password --cluster-init-user=Administrator --cluster-init-password=password --cluster-init-port=8099
SUCCESS: init 10.3.3.19



root@ubu-2502:/tmp# dpkg -i couchbase-server-enterprise_x86_64_2.0.2-760-rel.deb
(Reading database ... 68049 files and directories currently installed.)
Preparing to replace couchbase-server 2.0.0 (using couchbase-server-enterprise_x86_64_2.0.2-760-rel.deb) ...

=INFO REPORT==== 10-Apr-2013::01:47:20 ===
Initiated server shutdown** at node ns_1@127.0.0.1 **

=INFO REPORT==== 10-Apr-2013::01:47:26 ===
Stopped ns_server application** at node ns_1@127.0.0.1 **
 * Stopped couchbase-server
libssl0.9.8 is installed. Continue installing
Minimum RAM required : 4 GB
System RAM configured : 4060188 kB

Minimum number of processors required : 4 cores
Number of processors on the system : 4 cores
Upgrading previous couchbase ... (2.0.0)
Stopping previous couchbase ... (2.0.0)
 * Failed to stop couchbase-server
Saving previous couchbase config.dat ...
Cleaning symlinks ...
Unpacking replacement couchbase-server ...
dpkg: warning: unable to delete old directory '/opt/couchbase/var/lib/couchbase/mnesia': Directory not empty
Setting up couchbase-server (2.0.2) ...
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...
Previous config.dat file is /opt/couchbase/var/lib/couchbase/config/config.dat.debsave
Target node: ns_1@127.0.0.1
No buckets to be upgraded.
 * Started couchbase-server

You have successfully installed Couchbase Server.
Please browse to http://ubu-2502: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 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 ureadahead ...

 Comments   
Comment by Maria McDuff (Inactive) [ 22/Apr/13 ]
bin, would you be able to fix for 2.0.2?
Comment by Maria McDuff (Inactive) [ 24/Apr/13 ]
andrei, can u pls tell us if you start over and install 2.0.0 to a non-dflt port then upgrade to 2.0.2 to a non-dflt port, what happens? does the upgrade succeed? or the same issue as you stated happen. pls confirm.
Comment by Andrei Baranouski [ 25/Apr/13 ]
upgrade succeed. this is a minor issue, ubuntu specific.
Comment by Ronnie Sun (Inactive) [ 25/Apr/13 ]
This is a minor issue. should not affect but we still need in 2.0.2
Comment by Maria McDuff (Inactive) [ 25/Apr/13 ]
assigning to anil if it can be deferred as this was scrubbed yesterday with PM and now info abt this bug makes it less major.
Comment by Anil Kumar [ 25/Apr/13 ]
this is a minor issue but still needs to fixed in 2.0.2.
Comment by Maria McDuff (Inactive) [ 29/Apr/13 ]
what is the behavior in centos? can you confirm.
Comment by Andrei Baranouski [ 30/Apr/13 ]
new issue for centos 64 with online upgrade non default port
MB-8172 centos64 :online upgrade non default port:rebalance failed/Port server moxi on node 'babysitter_of_ns_1@lh' exited with status 0.curl error:transfer closed with outstanding read data remaining from: lh:8091/pools/default/saslBucketsStreaming EOL on stdin
Comment by kzeller [ 09/May/13 ]
Added to RN 2.0.2 per Wayne:

On Ubuntu if you upgrade from Couchbase Server 2.0 to 2.0.2 and use a non-default
port, the upgrade can fail and return the message 'Failed to stop couchbase-server.' We recommend
you use the default ports on both 2.0 and 2.1.0 when you perform an upgrade.
Generated at Wed Sep 17 05:13:40 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.