Running couchbase in a docker swarm shots down. Following this
I do the following on/in docker swarm:
-
docker network create -d overlay couchbase
-
docker service create --name couchbase-master -p 8091:8091 --replicas 1 --network couchbase -e TYPE=MASTER arungupta/couchbase:swarm
I can see that it is down with:
docker service ps couchbase-master
Note: I can run nginx and other services. Do you know how to debug/ see the log from Couchbase(not just the log from docker service logs)
Hi @issacthomas,
I would like to clarify few things
A. We don’t support Couchbase deployment on docker swarm. I would highly recommend you using ‘Couchbase Autonomous Operator for Kubernetes’. Below is the link to get started with our Kubernetes Operator.
URL: Introduction | Couchbase Docs
B. We do support Couchbase deployment on Docker. On below mentioned link you can find more details on single & multi-node node docker deployment.
URL:Install Couchbase Server Using Docker | Couchbase Docs
Talking about the couchbase-server logs,
By default, couchbase-server log files are saved in the following directories:
On Linux systems: /opt/couchbase/var/lib/couchbase/logs.
On MacOSP: /Users/username/Library/Application Support/Couchbase/var/lib/couchbase/logs.
On Windows: C:\Program Files\Couchbase\Server\var\lib\couchbase\logs.
However, I would like to look into an issue with docker swarm deployment. I would request you to provide the logs of your service on docker-swarm
docker service inspect couchbase-master
docker service logs couchbase-master
Also provide the output of the command you mentioned - docker service ps couchbase-master
Regards,
Roshani S
Product Manager - CAO Kubernetes.
I am getting the similar error. Is there any solution yet?
create a new cluster, load sample data. After some time, everything gets deleted automatically
My logs:
[ec2-user@ip-172-31-47-112 ~]$ docker service logs couchbase_62
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | Starting Couchbase Server -- Web UI available at http://<ip>:8091
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | and logs available in /opt/couchbase/var/lib/couchbase/logs
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal |
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | The maximum number of open files for the couchbase user is set too low (1024).
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | It must be at least 200000.
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal |
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | Normally this can be increased by adding the following lines to
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | /etc/security/limits.conf:
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal |
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | couchbase soft nofile <value>
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | couchbase hard nofile <value>
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal |
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | Where <value> is greater than 200000. The procedure may be totally
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | different if you're running so called "non-root/non-sudo install" or
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal | if you've built Couchbase Server from source.
couchbase_62.1.ru6zr731i2sn@ip-172-31-7-235.us-west-2.compute.internal |
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | Starting Couchbase Server -- Web UI available at http://<ip>:8091
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | and logs available in /opt/couchbase/var/lib/couchbase/logs
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | The maximum number of open files for the couchbase user is set too low (1024).
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | It must be at least 200000.
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | Normally this can be increased by adding the following lines to
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | /etc/security/limits.conf:
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | couchbase soft nofile <value>
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | couchbase hard nofile <value>
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | Where <value> is greater than 200000. The procedure may be totally
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | different if you're running so called "non-root/non-sudo install" or
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal | if you've built Couchbase Server from source.
couchbase_62.1.ibjvkmhl28rp@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | Starting Couchbase Server -- Web UI available at http://<ip>:8091
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | and logs available in /opt/couchbase/var/lib/couchbase/logs
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | The maximum number of open files for the couchbase user is set too low (1024).
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | It must be at least 200000.
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | Normally this can be increased by adding the following lines to
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | /etc/security/limits.conf:
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | couchbase soft nofile <value>
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | couchbase hard nofile <value>
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | Where <value> is greater than 200000. The procedure may be totally
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | different if you're running so called "non-root/non-sudo install" or
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal | if you've built Couchbase Server from source.
couchbase_62.1.qo2z5ppt77cx@ip-172-31-47-251.us-west-2.compute.internal |
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | Starting Couchbase Server -- Web UI available at http://<ip>:8091
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | and logs available in /opt/couchbase/var/lib/couchbase/logs
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal |
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | The maximum number of open files for the couchbase user is set too low (1024).
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | It must be at least 200000.
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal |
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | Normally this can be increased by adding the following lines to
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | /etc/security/limits.conf:
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal |
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | couchbase soft nofile <value>
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | couchbase hard nofile <value>
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal |
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | Where <value> is greater than 200000. The procedure may be totally
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | different if you're running so called "non-root/non-sudo install" or
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal | if you've built Couchbase Server from source.
couchbase_62.1.qf6hqkigrpa5@ip-172-31-47-112.us-west-2.compute.internal |
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | Starting Couchbase Server -- Web UI available at http://<ip>:8091
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | and logs available in /opt/couchbase/var/lib/couchbase/logs
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal |
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | The maximum number of open files for the couchbase user is set too low (1024).
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | It must be at least 200000.
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal |
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | Normally this can be increased by adding the following lines to
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | /etc/security/limits.conf:
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal |
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | couchbase soft nofile <value>
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | couchbase hard nofile <value>
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal |
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | Where <value> is greater than 200000. The procedure may be totally
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | different if you're running so called "non-root/non-sudo install" or
couchbase_62.1.4s9r20vucxnl@ip-172-31-47-112.us-west-2.compute.internal | if you've built Couchbase Server from source.
And container status:
docker service ps couchbase_62
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
4s9r20vucxnl couchbase_62.1 couchbase:7.0.0 ip-172-31-47-112.us-west-2.compute.internal Running Running 38 minutes ago
ibjvkmhl28rp \_ couchbase_62.1 couchbase:7.0.0 ip-172-31-47-251.us-west-2.compute.internal Shutdown Shutdown 34 minutes ago
qf6hqkigrpa5 \_ couchbase_62.1 couchbase:7.0.0 ip-172-31-47-112.us-west-2.compute.internal Shutdown Shutdown 46 minutes ago
ru6zr731i2sn \_ couchbase_62.1 couchbase:7.0.0 ip-172-31-7-235.us-west-2.compute.internal Shutdown Shutdown about an hour ago
qo2z5ppt77cx \_ couchbase_62.1 couchbase:7.0.0 ip-172-31-47-251.us-west-2.compute.internal Shutdown Shutdown 2 days ago