Prestashop: PS 1.7.6.0 - It is necessary to install Redis

Created on 16 May 2019  路  13Comments  路  Source: PrestaShop/PrestaShop

este es el error al instalar prestashop 1.7.6.0
en escaware.com/prueba

Fatal error: Uncaught RedisException: Redis server went away in /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php:47 Stack trace: #0 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php(47): Redis->setOption(1, 1) #1 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(203): DoctrineCommonCacheRedisCache->setRedis(Object(Redis)) #2 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(147): DoctrineORMToolsSetup::createCacheInstance(false, Object(DoctrineCommonCacheRedisCache)) #3 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(125): DoctrineORMToolsSetup::createCacheConfiguration(false, '/tmp', NULL) #4 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(71): DoctrineORMToolsSetup::createConfiguration(false, '/tmp in /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php on line 47

1.7.6.0 Fixed

Most helpful comment

@escaware by any chance do you have a longer stack trace for this error
I'm suspecting this call to be at the origin https://github.com/PrestaShop/PrestaShop/blob/3471afe722c4d7a335a991e8f76fe9fb07e79de2/src/Adapter/ContainerBuilder.php#L192

But I would like to be sure (even though in any cas we should change the call with an explicit cache)

All 13 comments

Hi @escaware,

Please, send your request in English.
English is the norm on this bug tracker.
Thank you!

hello

inn prestashop 1.7.6.0 is it necessary to install redis?

because i have problem whit this

my web on install prestashop 1.7.6.0

http://escaware.com/prueba

in my web gives this error.
Fatal error: Uncaught RedisException: Redis server went away in /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php:47 Stack trace: #0 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php(47): Redis->setOption(1, 1) #1 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(203): DoctrineCommonCacheRedisCache->setRedis(Object(Redis)) #2 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(147): DoctrineORMToolsSetup::createCacheInstance(false, Object(DoctrineCommonCacheRedisCache)) #3 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(125): DoctrineORMToolsSetup::createCacheConfiguration(false, '/tmp', NULL) #4 /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Setup.php(71): DoctrineORMToolsSetup::createConfiguration(false, '/tmp in /var/www/vhosts/escaware.com/httpdocs/prueba/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php on line 47

thanks

jose luis

Hi @escaware, no Redis is not necessary for PS 1.7.6.0.
Do you have "redis" php extension enabled ?

@escaware, in my case, I successfully PrestaShop 1.7.6.0, without installing Redis - PHP
Thanks!

@escaware by any chance do you have a longer stack trace for this error
I'm suspecting this call to be at the origin https://github.com/PrestaShop/PrestaShop/blob/3471afe722c4d7a335a991e8f76fe9fb07e79de2/src/Adapter/ContainerBuilder.php#L192

But I would like to be sure (even though in any cas we should change the call with an explicit cache)

Hello

at the moment it works, I have removed the lines that comments

jolelievre

and it work

@khouloudbelguith and @jolelievre do you know if it is the same issue with PS 1.7.5.2 ?

@colinegin, this line https://github.com/PrestaShop/PrestaShop/blob/3471afe722c4d7a335a991e8f76fe9fb07e79de2/src/Adapter/ContainerBuilder.php#L192 is added to ps1.7.6.0 with this PR: https://github.com/PrestaShop/PrestaShop/pull/12564
in my case, I successfully installed ps 1.7.6.0, without installing Redis - PHP
@jolelievre What do you think?
Thanks!

Hello
I made a clean installation of prestashop 1.7.6.0 test and that error arose,
jolelievre solution is correct, delete that line and it works, I do not have redis installed on the server and I ignore this installation failure, versions 1.7.5.2 works correctly
Thank you
Jose Luis

Hell @colinegin I haven't heard of this problem with 1752, unless there is another issue
The problem is on 176 with doctrine initialization, if a similar problem occurs on 1752 then it comes from another wrong init that I don't know of

@escaware I strongly discourage you, or anyone, to comment/remove this line because it is used for new feature in PrestaShop to allow using Doctrine in modules, any module using Doctrine won't work on your shop if you remove this line (but at least it confirms our hunch that the problems comes from this call 馃槈)

I don't have redis extension on my environment so I couldn't test it yet, but I proposed a PR to fix this issue https://github.com/PrestaShop/PrestaShop/pull/13885
Instead of removing the line, which is needed, I force an ArrayCache so that Doctrine uses it right away instead of trying to init a non existent connection

Could you please try if this fixes your issue? Thank you

Hello @escaware we have tested the PR with @PierreRambaud and it fixes the problem.
It will be merged soon.

Was this page helpful?
0 / 5 - 0 ratings