Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-220

error with "default" bucket. named bucket work OK: CouchbaseLibcouchbaseException Failed to get a value from server: Network error.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: library
    • Security Level: Public
    • Labels:
      None
    • Environment:
      centos 6.4 x86_64. php-fpm 5.4.13-1.el6.remi.x86_64

      Description

      php-ext-couchbase version: https://github.com/couchbase/php-ext-couchbase/commit/ff2ed89c6255a2f364640b62d9930732ce597075

      duplicates to #PCBC-169, but with php 5.4

      I use php-fpm 5.4.13-1.el6.remi.x86_64 ( with nginx-1.3.15-1.el6.ngx.x86_64).
      It work OK yesterday. But today: CouchbaseLibcouchbaseException Failed to get a value from server: Network error.

      $bk = isset($_GET['bk'])? $_GET['bk'] : 'default';
      $cb = new Couchbase("$host:8091", 'user', 'password', $bk);
      $a = $cb->get('aaa'); //-> error here

      Error with /test.php (& /test.php?bk=default). But OK with /test.php?bk=mybk

      After: # service php-fpm restart
      Then all (with 'default' & with named bucket) test OK.

      I can not reproduce this error now.

      1. CouchbaseLibcouchbaseException.txt
        86 kB
        thanhbv
      2. no-error-if-downgrade.txt
        6 kB
        thanhbv
      3. repos.repo
        1 kB
        thanhbv
      4. yum.log
        6 kB
        thanhbv
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        trond Trond Norbye added a comment -

        which libcouchbase2 packages do you have installed? and does this problem occur if you never suspend the vm's?

        Show
        trond Trond Norbye added a comment - which libcouchbase2 packages do you have installed? and does this problem occur if you never suspend the vm's?
        Hide
        thanhbv thanhbv added a comment -

        If I downgrade libcouchbase as in the attached file => no error!

        Show
        thanhbv thanhbv added a comment - If I downgrade libcouchbase as in the attached file => no error!
        Hide
        trond Trond Norbye added a comment -

        Given the last comment in the bug report I assume this is a duplicate of https://www.couchbase.com/issues/browse/CCBC-246

        Show
        trond Trond Norbye added a comment - Given the last comment in the bug report I assume this is a duplicate of https://www.couchbase.com/issues/browse/CCBC-246
        Hide
        thanhbv thanhbv added a comment -

        >>which libcouchbase2 packages do you have installed?
        you can found it in the attached file no-error-if-downgrade.txt
        The error occured before the commands in no-error-if-downgrade.txt. And the after running the commands => no error.

        >>and does this problem occur if you never suspend the vm's?
        I'm sorry. From the first comment on 03/Sep/13, the issue is NOT relate to vm (I run Centos 6.4 on a physical machine)
        It is probably a different issue (than the original one).

        >>I assume this is a duplicate of CCBC-246
        I don't think so. Because CCBC-246 say that if I install libcouchbase2-libevent => no error. But with the following packages installed, the error still occur:
        libcouchbase2-core-2.1.2-1.x86_64
        libcouchbase2-libevent-2.1.2-1.x86_64
        libcouchbase-devel-2.1.2-1.x86_64
        couchbase-server-2.1.1-764.x86_64

        Show
        thanhbv thanhbv added a comment - >>which libcouchbase2 packages do you have installed? you can found it in the attached file no-error-if-downgrade.txt The error occured before the commands in no-error-if-downgrade.txt. And the after running the commands => no error. >>and does this problem occur if you never suspend the vm's? I'm sorry. From the first comment on 03/Sep/13, the issue is NOT relate to vm (I run Centos 6.4 on a physical machine) It is probably a different issue (than the original one). >>I assume this is a duplicate of CCBC-246 I don't think so. Because CCBC-246 say that if I install libcouchbase2-libevent => no error. But with the following packages installed, the error still occur: libcouchbase2-core-2.1.2-1.x86_64 libcouchbase2-libevent-2.1.2-1.x86_64 libcouchbase-devel-2.1.2-1.x86_64 couchbase-server-2.1.1-764.x86_64
        Hide
        thanhbv thanhbv added a comment -

        I have just test on a clean system, still error:
        1. install centos 6.4 x86_64 minimal
        2. yum update
        3. add some yum repos as in file repos.repo
        4. yum clean all && yum update
        5. yum install couchbase-server-enterprise_x86_64_2.1.1.rpm
        6. yum install libcouchbase2-libevent libcouchbase-devel php php-pecl-couchbase
        (I attached file /var/log/yum.log to this issue)
        7. service iptables stop
        then use browser, goto <host>:8091 to setup couchbase
        8. remove bucket default. add bucket fodi (type: couchbase, has password). I don't know if this step is related to the issue, just note here all step I do.
        9. create file cb.php as in step 2 in http://www.couchbase.com/communities/php/getting-started
        10. php cb.php => error:

        PHP Fatal error: Uncaught exception 'CouchbaseLibcouchbaseException' with message 'Failed to create libcouchbase instance' in /root/dl/cb.php:3
        Stack trace:
        #0 /root/dl/cb.php(3): Couchbase->__construct('127.0.0.1:8091', 'user', 'password', 'fodi')
        #1

        {main}

        thrown in /root/dl/cb.php on line 3

        Show
        thanhbv thanhbv added a comment - I have just test on a clean system, still error: 1. install centos 6.4 x86_64 minimal 2. yum update 3. add some yum repos as in file repos.repo 4. yum clean all && yum update 5. yum install couchbase-server-enterprise_x86_64_2.1.1.rpm 6. yum install libcouchbase2-libevent libcouchbase-devel php php-pecl-couchbase (I attached file /var/log/yum.log to this issue) 7. service iptables stop then use browser, goto <host>:8091 to setup couchbase 8. remove bucket default. add bucket fodi (type: couchbase, has password). I don't know if this step is related to the issue, just note here all step I do. 9. create file cb.php as in step 2 in http://www.couchbase.com/communities/php/getting-started 10. php cb.php => error: PHP Fatal error: Uncaught exception 'CouchbaseLibcouchbaseException' with message 'Failed to create libcouchbase instance' in /root/dl/cb.php:3 Stack trace: #0 /root/dl/cb.php(3): Couchbase->__construct('127.0.0.1:8091', 'user', 'password', 'fodi') #1 {main} thrown in /root/dl/cb.php on line 3

          People

          • Assignee:
            trond Trond Norbye
            Reporter:
            thanhbv thanhbv
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes