Forum

Unable to use service state on redis (v. 3.2.0 RC2)

edited February 20 in Support

Hi,
I tried to set service state persistent on redis.

I added in file config/generis/persistences.conf.php:
'serviceState' => array(
'driver' => 'phpredis',
'host' => '127.0.0.1',
'port' => 6379
)

but I have this error "An error occured while retrieving AssessmentTestSession." when I enter in one test.

What have I done wrong?
Thanks

Comments

  • Can you verify that port 6379 is open?

    Thanks,

    Amy

  • yes is open. I have used same configuration for deliveryExecution and I didn't have any problem.

  • From the code you supplied it looks like you are using () vs {}. Can you verify you are using curly braces{}?

    Thanks,

    Amy

  • Hello,

    I have the same issue.

    I have configured a local redis and it works perfectly fine for:
    - deliveryExecution
    - uriProvider
    - session
    - keyValueResult

    But, if I enable the same configuration for serviceState as well I get an error during the test execution:

    "An error occured while retrieving AssessmentTestSession."

    The configuration for session (that works) and serviceState (that doesn't work) is exactly the same:

    'session' => array(
    'driver' => 'phpredis',
    'host' => '127.0.0.1',
    'port' => 6379
    ),
    'serviceState' => array(
    'driver' => 'phpredis',
    'host' => '127.0.0.1',
    'port' => 6379
    ),

    serviceState seems to work only if configured for phpfile.

    Any idea or suggestion?

    Thanks

  • amyamy
    edited February 22

    You may need to configure this setting with the internal IP of the redis server vs localhost(127.0.0.1).

    Thanks,

    Amy

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

×