Can't connect to couchbase via php

Hello,

Based on the following error

FastCGI-stderr: PHP Fatal error: Uncaught exception 'CouchbaseLibcouchbaseException' with message 'Failed to create libcouchbase instance: Administrator account must not be used to access the data in the bucket' in /var/www/myapps/Bootstrap.php:149

I think you are connecting from your application using the “Administrator” user and password. You cannot use the Administrator user to connect to your bucket.

If you bucket is not protected by a SASL password you only need to pass the bucket name, something like

$cb = new Couchbase(‘localhost:8091’, ‘’, ‘’, ‘default’, TRUE);

If your bucket is protected by a SASL Password just send it:

$cb = new Couchbase(‘localhost:8091’, ‘’, ‘password’, ‘demo’, TRUE);

So if you change your connection string everything should work as expected.

Regards
Tug
@tgrall