Lcb_network_error

hello, im running CentOs 7 , php 5.6, couchbase community 6.0.
Sdk installation follow exactly this: https://docs.couchbase.com/php-sdk/current/start-using-sdk.html

My PHP node and Couchbase server Node are in the same subnet (im using digital ocean).

function getBucket($bucket) {
$authenticator = new \Couchbase\ClassicAuthenticator();
$authenticator->bucket($bucket, COUCHBASE_SERVER_PASSWD);
$cluster = new CouchbaseCluster(“couchbase://” . COUCHBASE_SERVER_IP);
$cluster->authenticate($authenticator);
$bucket = $cluster->openBucket($bucket);
return $bucket;
}

and i got:
Uncaught exception ‘Couchbase\Exception’ with message ‘LCB_NETWORK_ERROR: Generic network failure. Enable detailed error codes (via LCB_CNTL_DETAILED_ERRCODES, or via detailed_errcodes in the connection string) and/or enable logging to get more information’ in /var/www/html/systemchart.php:20 Stack trace: #0 /var/www/html/systemchart.php(20): Couchbase\Cluster->openBucket(‘ft_static’) #1

I tried to telnet to port 11210, 8091, 8091…, everything ok. One thing make me confuse: i run the same model on aws and everything work fine. I also have some node run java, and they work with couchbase ok.

Pls help!!!

you can modify your connection bucket to show mmost log

function getBucket($bucket) {
$authenticator = new \Couchbase\ClassicAuthenticator();
$authenticator->bucket($bucket, COUCHBASE_SERVER_PASSWD);
$cluster = new CouchbaseCluster(“couchbase://” . COUCHBASE_SERVER_IP?detailed_errcodes=1);
$cluster->authenticate($authenticator);
$bucket = $cluster->openBucket($bucket);
return $bucket;
}

Hi, thanks for your help.
My php.ini:
extension=couchbase.so
error_log = syslog
couchbase.log_level = DEBUG

journalctl -t php:
– Logs begin at Wed 2020-01-08 13:40:52 UTC, end at Wed 2020-01-08 14:56:50 UTC. –

Jan 08 14:45:33 centos-gw php[10247]: [cb,DEBG] (pcbc/ext L:241) json module globals has been hijacked successfully

Jan 08 14:47:30 centos-gw php[10274]: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/couchbase.so’ - /usr/lib64/php/modules/couchbase.so: undefined symbol: php_json_deco

Jan 08 14:49:57 centos-gw php[10337]: [cb,DEBG] (pcbc/ext L:241) json module globals has been hijacked successfully

Jan 08 14:55:51 centos-gw php[10421]: [cb,DEBG] (pcbc/ext L:241) json module globals has been hijacked successfully

Jan 08 14:55:55 centos-gw php[10422]: [cb,DEBG] (pcbc/ext L:241) json module globals has been hijacked successfully