Forum

redis problem

Hi,
I have problem. I am using 2 applications, 1 REDIS, 1 load balancing (HAproxy). REDIS is not local and is running on another server. This is config:

but then I am getting this error:

When servicestate is set to phpfile, everything works, but when to phpredis error occurs. REDIS is setup to accept any type of input.

So is my config setup incorrectly or i am forgetting something else?

Comments

  • Hi,

    Did you edit config/tao/stateStorage.conf.php accordingly, so that the service state is indeed stored in redis?

    return new tao_models_classes_service_StateStorage(array(
    'persistence' => 'redis'
    ));

    The same notice applies to all persistence types changed to key value storage. Please check all of them.

    Regards,
    Cyril

  • Hello,

    Is this problem solved? I am getting the same issue, config/tao/stateStorage.conf.php is configured as 'persistence' => 'serviceState' as mentioned in this article https://hub.taotesting.com/articles/administrator-guide/data-abstractions

    Regards,
    Siva

  • If you can supply the config file that will help.

  • edited November 15

    Attaching the config file contents:

    return new common_persistence_Manager(array(
    'persistences' => array(
    'cache' => array(
    'driver' => 'phpfile'
    ),
    'serviceState' => array(
    'driver' => 'phpfile'
    ),
    'maintenance' => array(
    'driver' => 'phpfile'
    ),
    'deliveryExecution' => array(
    'driver' => 'phpredis',
    'host' => '127.0.0.1',
    'port' => 6379
    ),
    'uriProvider' => array(
    'driver' => 'phpredis',
    'host' => '127.0.0.1',
    'port' => 6379
    ),
    'session' => array(
    'driver' => 'phpredis',
    'host' => '127.0.0.1',
    'port' => 6379
    ),
    'keyValueResult' => array(
    'driver' => 'phpredis',
    'host' => '127.0.0.1',
    'port' => 6379
    )

    The problem seems to be occuring only for servicestate, therefore only that is pointing back to phpfile and the code below is commented out in the config file.

        'serviceState' => array(
            'driver' => 'phpredis',
            'host' => '127.0.0.1',
            'port' => 6379
        ),
    
  • Can we get config/tao/stateStorage.conf.php?

  • return new tao_models_classes_service_StateStorage(array(
    'persistence' => 'serviceState'
    ));

  • Please make sure Redis is available on 127.0.0.1, if so we would need complete logs to help any further as the config is correct.

  • If I type the command redis-cli, I am able to PING a message and get back a response. Since redis-cli connects to 127.0.0.1:6379, I assume availability of redis at 127.0.0.1 is working. Further this issue seems to happen only for servicestate. Hence availability of redis at the designated IP and port is not a problem.

    1) Is my understanding right?
    2) What logs do you require further? Should I configure for debug mode in generis.conf.php?

  • Yes configure debug and send us the tao and redis logs

  • amyamy
    edited November 22

    Also can you confirm you uncommented the code you'd found?

  • Yes, I confirm that the code is uncommented to point to redis.

    Both Apache and Redis logs does not seem to show any error.

    Even after enabling Debug, unable to find any meaningful logs.

Sign In or Register to comment.

We use cookies on our website to support technical features that enhance your user experience. Cookie Policy Privacy Policy

×