Webserver not working anymore With Couchbase PHP 2.0.3 / Ubuntu


#1

Hi All,

I have a working installation with Couchbase PHP 1.1.5 but I want to upgrade to 2.0.3.

I just did a pecl install couchbase which overwrites my older .so but after it my Webserver is not able to serve any kind of page anymore.

Apache restarts well, no logging about errors when LogLevel is debug.

My Distro is Ubuntu 14.04

Any idea what goes wrong here ?

Thanks!

Matt


#2

@YamakasY without having much information available, do you know that a major release can (and does) change the API drastically? So just upgrading the .so file will most likely get you into trouble.

You need to rework the application properly after converting to the 2.0 SDK from 1.1.


#3

Hi our app is already modified to run both versions.

The issue is that Apache doesn’t serve a thing anymore after installing 2.0.3, not even from the basic /var/www/html


#4

Looks like the extension is not properly loaded, preventing the whole thing from starting up properly.

Can you check the apache error log (or any other thing that prints out errors in your config?) I’m sure at some point it yells why it’s stuck.


#5

Hi yes I did that already but it doesn’t yell a thing… Apache does restart normally.

On the commandline I get good output:

#php --re couchbase
Extension [ extension #50 couchbase version 2.0.3 ] {

  • Constants [57] {
    Constant [ integer COUCHBASE_PERSISTTO_MASTER ] { 1 }
    Constant [ integer COUCHBASE_PERSISTTO_ONE ] { 1 }
    Constant [ integer COUCHBASE_PERSISTTO_TWO ] { 2 }
    Constant [ integer COUCHBASE_PERSISTTO_THREE ] { 4 }
    Constant [ integer COUCHBASE_REPLICATETO_ONE ] { 16 }
    Constant [ integer COUCHBASE_REPLICATETO_TWO ] { 32 }
    Constant [ integer COUCHBASE_REPLICATETO_THREE ] { 64 }
    Constant [ integer COUCHBASE_CNTL_OP_TIMEOUT ] { 0 }
    Constant [ integer COUCHBASE_CNTL_VIEW_TIMEOUT ] { 1 }
    Constant [ integer COUCHBASE_CNTL_DURABILITY_INTERVAL ] { 14 }
    Constant [ integer COUCHBASE_CNTL_DURABILITY_TIMEOUT ] { 13 }
    Constant [ integer COUCHBASE_CNTL_HTTP_TIMEOUT ] { 15 }
    Constant [ integer COUCHBASE_CNTL_CONFIGURATION_TIMEOUT ] { 18 }
    Constant [ integer COUCHBASE_CNTL_CONFDELAY_THRESH ] { 25 }
    Constant [ integer COUCHBASE_CNTL_CONFIG_NODE_TIMEOUT ] { 27 }
    Constant [ integer COUCHBASE_CNTL_HTCONFIG_IDLE_TIMEOUT ] { 28 }
    Constant [ integer COUCHBASE_SUCCESS ] { 0 }
    Constant [ integer COUCHBASE_AUTH_CONTINUE ] { 1 }
    Constant [ integer COUCHBASE_AUTH_ERROR ] { 2 }
    Constant [ integer COUCHBASE_DELTA_BADVAL ] { 3 }
    Constant [ integer COUCHBASE_E2BIG ] { 4 }
    Constant [ integer COUCHBASE_EBUSY ] { 5 }
    Constant [ integer COUCHBASE_ENOMEM ] { 8 }
    Constant [ integer COUCHBASE_ERANGE ] { 9 }
    Constant [ integer COUCHBASE_ERROR ] { 10 }
    Constant [ integer COUCHBASE_ETMPFAIL ] { 11 }
    Constant [ integer COUCHBASE_EINVAL ] { 7 }
    Constant [ integer COUCHBASE_CLIENT_ETMPFAIL ] { 27 }
    Constant [ integer COUCHBASE_KEY_EEXISTS ] { 12 }
    Constant [ integer COUCHBASE_KEY_ENOENT ] { 13 }
    Constant [ integer COUCHBASE_DLOPEN_FAILED ] { 14 }
    Constant [ integer COUCHBASE_DLSYM_FAILED ] { 15 }
    Constant [ integer COUCHBASE_NETWORK_ERROR ] { 16 }
    Constant [ integer COUCHBASE_NOT_MY_VBUCKET ] { 17 }
    Constant [ integer COUCHBASE_NOT_STORED ] { 18 }
    Constant [ integer COUCHBASE_NOT_SUPPORTED ] { 19 }
    Constant [ integer COUCHBASE_UNKNOWN_COMMAND ] { 20 }
    Constant [ integer COUCHBASE_UNKNOWN_HOST ] { 21 }
    Constant [ integer COUCHBASE_PROTOCOL_ERROR ] { 22 }
    Constant [ integer COUCHBASE_ETIMEDOUT ] { 23 }
    Constant [ integer COUCHBASE_BUCKET_ENOENT ] { 25 }
    Constant [ integer COUCHBASE_CLIENT_ENOMEM ] { 26 }
    Constant [ integer COUCHBASE_CONNECT_ERROR ] { 24 }
    Constant [ integer COUCHBASE_EBADHANDLE ] { 28 }
    Constant [ integer COUCHBASE_SERVER_BUG ] { 29 }
    Constant [ integer COUCHBASE_PLUGIN_VERSION_MISMATCH ] { 30 }
    Constant [ integer COUCHBASE_INVALID_HOST_FORMAT ] { 31 }
    Constant [ integer COUCHBASE_INVALID_CHAR ] { 32 }
    Constant [ integer COUCHBASE_DURABILITY_ETOOMANY ] { 33 }
    Constant [ integer COUCHBASE_DUPLICATE_COMMANDS ] { 34 }
    Constant [ integer COUCHBASE_EINTERNAL ] { 6 }
    Constant [ integer COUCHBASE_NO_MATCHING_SERVER ] { 35 }
    Constant [ integer COUCHBASE_BAD_ENVIRONMENT ] { 36 }
    Constant [ integer COUCHBASE_VALUE_F_JSON ] { 1 }
    Constant [ integer COUCHBASE_TMPFAIL ] { 11 }
    Constant [ integer COUCHBASE_KEYALREADYEXISTS ] { 12 }
    Constant [ integer COUCHBASE_KEYNOTFOUND ] { 13 }
    }

  • Classes [4] {
    Class [ internal:couchbase class CouchbaseException extends Exception ] {

    • Constants [0] {
      }

    • Static properties [0] {
      }

    • Static methods [0] {
      }

    • Properties [4] {
      Property [ protected $message ]
      Property [ protected $code ]
      Property [ protected $file ]
      Property [ protected $line ]
      }

    • Methods [9] {
      Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {

      • Parameters [3] {
        Parameter #0 [ $message ]
        Parameter #1 [ $code ]
        Parameter #2 [ $previous ]
        }
        }

      Method [ <internal:Core, inherits Exception> final public method getMessage ] {
      }

      Method [ <internal:Core, inherits Exception> final public method getCode ] {
      }

      Method [ <internal:Core, inherits Exception> final public method getFile ] {
      }

      Method [ <internal:Core, inherits Exception> final public method getLine ] {
      }

      Method [ <internal:Core, inherits Exception> final public method getTrace ] {
      }

      Method [ <internal:Core, inherits Exception> final public method getPrevious ] {
      }

      Method [ <internal:Core, inherits Exception> final public method getTraceAsString ] {
      }

      Method [ <internal:Core, inherits Exception> public method __toString ] {
      }
      }
      }

    Class [ internal:couchbase class CouchbaseMetaDoc ] {

    • Constants [0] {
      }

    • Static properties [0] {
      }

    • Static methods [0] {
      }

    • Properties [4] {
      Property [ public $error ]
      Property [ public $value ]
      Property [ public $flags ]
      Property [ public $cas ]
      }

    • Methods [0] {
      }
      }

    Class [ internal:couchbase class _CouchbaseCluster ] {

    • Constants [0] {
      }

    • Static properties [0] {
      }

    • Static methods [0] {
      }

    • Properties [0] {
      }

    • Methods [3] {
      Method [ <internal:couchbase, ctor> public method __construct ] {
      }

      Method [ internal:couchbase public method connect ] {
      }

      Method [ internal:couchbase public method http_request ] {
      }
      }
      }

    Class [ internal:couchbase class _CouchbaseBucket ] {


#6

Probably @brett19 can help here further.


#7

I think so.

On some other machine I have it loaded but I don’t see memcached under it.

Which memcached packages does it need ?

I only see:

Version 2.0.3


#8

OK, this seems to be solved as it’s running as it should.

The question still is. Is this all the info which phpinfo(); gives ?

couchbase
Version 2.0.3


#9

How was this resolved?

Also on a side note… I get the same single line of:

couchbase Version 2.0.3

in 1.1.2 I get a few others:

couchbase supportenabled
version 1.1.2
json support yes
fastlz support yes
zlib support yes

I’m not sure if I am doing it right, though.