[Errno 111] Connection refused


#1

I keep getting the error:

[Errno 111] Connection refused

Everytime I try to get connect to couchbase in any way (via PHP, cli, etc). I have tried to use the command: service couchbase-server (start/stop/restart) and each has failed. I’m kind of at a standstill as to what the issue is and how to fix it. I’ve used the linux command ‘free’ to see I’ve ran out of RAM but plenty is available. Please help and let me know how to solve this issue and prevent it from happening as this has put a stand still on db requests and post. I’m using Couchbase 2.0 on a ubuntu 12.04 server.

Best regards,

David Paul


#2

Hello,

Can you access the Couchbase using the Administration Console? ( default will be http://127.0.0.1:8091 )

Have you check your firewall configuration to be sure all necessary port are accessible?
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-network-ports.html

Can you access your cluster using a simple telnet connection?
http://www.couchbase.com/docs/couchbase-devguide-2.0/cb-basic-telnet-ops.html

Regards
Tug
@tgrall


#3

tug,

Thank you for responding!

Can you access the Couchbase using the Administration Console? ( default will be http://127.0.0.1:8091 )

No I can’t. When I curl that location nothing is returned.

Have you check your firewall configuration to be sure all necessary port are accessible?
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-network-por

All ports are accessible.

Can you access your cluster using a simple telnet connection?
http://www.couchbase.com/docs/couchbase-devguide-2.0/cb-basic-telnet-ops

No it says connection refused just like for all other requests and connection types.

Please help, I am unable to restart/stop/start service. Not sure what to do or even what caused this.

David Paul


#4

Hello,

I am not sure how to help you, maybe you have some old installation of Couchbase.

So I will invite you to do the following:

  • kill all the services
  • remove /opt/couchbase (this will remove all binary and datafile)

Then reinstall Couchbase Server, ideally the latest release, today it is 2.2.

Regards
Tug
@tgrall