Skip to content

upgrade of sync-gateway doesn't stop process #232

Description

@andreibaranouski
  1. install couchbase-sync-gateway-community_1.0-beta_x86_64

sudo dpkg -i couchbase-sync-gateway-community_1.0-beta_x86_64.deb
Selecting previously unselected package couchbase-sync-gateway.
(Reading database ... 755806 files and directories currently installed.)
Unpacking couchbase-sync-gateway (from couchbase-sync-gateway-community_1.0-beta_x86_64.deb) ...
Setting up couchbase-sync-gateway (1.0.0) ...

You have successfully installed Couchbase-sync-gateway Sync Gateway.

You can start Couchbase Sync Gateway by using the following command:

/opt/couchbase-sync-gateway/bin/sync_gateway

That's it! This command starts Sync Gateway on port 4984, connects to a limited in-memory database
that lives on Sync Gateway called "walrus", and starts the admin server on port 4985.

The command-line options are:

-adminInterface=":4985": Address to bind admin interface to
-bucket="sync_gateway": Name of bucket
-dbname="": Name of CouchDB database (defaults to name of bucket)
-interface=":4984": Address to bind to
-log="": Log keywords, comma separated
-personaOrigin="": Base URL that clients use to connect to the server
-pool="default": Name of pool
-pretty=false: Pretty-print JSON responses
-url="walrus:": Address of Couchbase server
-verbose=false: Log more info about requests

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

andrey@baranouski:~/Downloads$ ls -la /opt/couchbase-sync-gateway/bin/
total 12848
drwxr-xr-x 2 couchbase-sync-gateway couchbase-sync-gateway 4096 Dec 18 14:54 .
drwxr-xr-x 3 couchbase-sync-gateway couchbase-sync-gateway 4096 Dec 18 14:54 ..
-rwxr-xr-x 1 couchbase-sync-gateway couchbase-sync-gateway 13146280 Sep 11 03:37 sync_gateway

  1. start it
    andrey@baranouski:/Downloads$ /opt/couchbase-sync-gateway/bin/sync_gateway &
    [1] 1059
    andrey@baranouski:
    /Downloads$ 14:55:56.749476 Configured Go to use all 4 CPUs; setenv GOMAXPROCS to override this
    14:55:56.749567 Opening db /sync_gateway as bucket "sync_gateway", pool "default", server walrus:
    14:55:56.749624 Opening Walrus database sync_gateway on walrus:
    14:55:56.749937 WARNING: Database "sync_gateway" sync function undefined; using default -- rest.(*ServerContext).AddDatabaseFromConfig() at server_context.go:167
    14:55:56.749955 Starting admin server on 127.0.0.1:4985
    14:55:56.749977 Starting server on :4984 ...
  1. upgrade with 1.0-8 version

andrey@baranouski:/Downloads$
andrey@baranouski:
/Downloads$ sudo dpkg -i couchbase-sync-gateway_1.0-8_amd64.deb
dpkg: warning: downgrading couchbase-sync-gateway from 1.0.0 to 1.0-8.
(Reading database ... 755818 files and directories currently installed.)
Preparing to replace couchbase-sync-gateway 1.0.0 (using couchbase-sync-gateway_1.0-8_amd64.deb) ...
Unpacking replacement couchbase-sync-gateway ...
Setting up couchbase-sync-gateway (1.0-8) ...

You have successfully installed Couchbase Sync Gateway.

You can start Couchbase Sync Gateway by using the following command:

/opt/couchbase-sync-gateway/bin/sync_gateway

That's it! This command starts Sync Gateway on port 4984, connects to a limited in-memory database
that lives on Sync Gateway called "walrus", and starts the admin server on port 4985.

The command-line options are:

-adminInterface=":4985": Address to bind admin interface to
-bucket="sync_gateway": Name of bucket
-dbname="": Name of CouchDB database (defaults to name of bucket)
-interface=":4984": Address to bind to
-log="": Log keywords, comma separated
-personaOrigin="": Base URL that clients use to connect to the server
-pool="default": Name of pool
-pretty=false: Pretty-print JSON responses
-url="walrus:": Address of Couchbase server
-verbose=false: Log more info about requests

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

all files were updated

andrey@baranouski:~/Downloads$ ls -la /opt/couchbase-sync-gateway/bin/
total 19604
drwxr-xr-x 2 couchbase couchbase 4096 Dec 18 14:56 .
drwxr-xr-x 3 couchbase couchbase 4096 Dec 18 14:56 ..
-rwxr-xr-x 1 couchbase couchbase 20065056 Dec 18 04:17 sync_gateway

but previous process sync_gateway is still running

andrey@baranouski:~/Downloads$ /opt/couchbase-sync-gateway/bin/sync_gateway
14:57:19.528071 Configured Go to use all 4 CPUs; setenv GOMAXPROCS to override this
14:57:19.528122 Opening db /sync_gateway as bucket "sync_gateway", pool "default", server walrus:
14:57:19.528163 Opening Walrus database sync_gateway on walrus:
14:57:19.528471 WARNING: Database "sync_gateway" sync function undefined; using default -- rest.(_ServerContext).AddDatabaseFromConfig() at server_context.go:196
14:57:19.528486 Starting profile server on
14:57:19.528507 Starting admin server on 127.0.0.1:4985
14:57:19.529920 Starting server on :4984 ...
14:57:19.529991 FATAL: Failed to start HTTP server on 127.0.0.1:4985: listen tcp 127.0.0.1:4985: bind: address already in use -- rest.(_ServerConfig).serve() at config.go:300

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions