TAO 3.3 is released. Check out the announcement here - https://forum.taotesting.com/discussion/593/tao-community-edition-3-3-released#latest
Unable to use service state on redis (v. 3.2.0 RC2)
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
You may need to configure this setting with the internal IP of the redis server vs localhost(127.0.0.1).
Thanks,
Amy
Anyone solve this?
I'm having the same error and I'm NOT using localhost or 127.0.0.1.
I'm connecting to Amazon and it does work for session.
@amy I was able to get the message on the Exception
"An error occured while reading a tiny integer."