Skip to content

Instantly share code, notes, and snippets.

@robinvanemden
Created January 17, 2018 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinvanemden/ab2b91a614be5c1c48bf155e58f64c53 to your computer and use it in GitHub Desktop.
Save robinvanemden/ab2b91a614be5c1c48bf155e58f64c53 to your computer and use it in GitHub Desktop.
Couchbase Sync Gateway and Server - upgrade 1.3.1 to 1.5.1 and 4.5 to 5.0.1
# Update letsencrypt certificate (TODO: make into cronjob)
cp /etc/letsencrypt/live/cb.mnds.org/* /home/sync_gateway
chown -R sync_gateway.sync_gateway *
# Couchbase 4.5 to 5.0
service sync_gateway stop
/etc/init.d/couchbase-server stop
cd ~
wget http://packages.couchbase.com/releases/couchbase-sync-gateway/1.5.1/couchbase-sync-gateway-community_1.5.1_x86_64.deb
dpkg -i couchbase-sync-gateway-community_1.5.1_x86_64.deb
rm couchbase-server-community_5.0.1-ubuntu16.04_amd64.deb
wget https://packages.couchbase.com/releases/5.0.1/couchbase-server-community_5.0.1-ubuntu16.04_amd64.deb
apt-get install python-httplib2
dpkg -i couchbase-server-community_5.0.1-ubuntu16.04_amd64.deb
rm couchbase-server-community_5.0.1-ubuntu16.04_amd64.deb
cd /opt/couchbase/etc/
wget https://gist.githubusercontent.com/robinvanemden/8ff2d044e1bfeaa918cf3ff11f8103d5/raw/e1612b15545bcca88c09f8d3573cbc513b06a152/couchbase_init.d
joe couchbase_init.d
chown couchbase.couchbase *
chmod 700 couchbase_init.d
cd ~
/etc/init.d/couchbase-server start
service sync_gateway start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment