What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi, we are trying to get Spryker connected to a redis cluster via sentinel. But it doesn't work as d

UP957L8F3
UP957L8F3 Posts: 44 🧑🏻‍🚀 - Cadet

Hi, we are trying to get Spryker connected to a redis cluster via sentinel. But it doesn't work as documented here: https://documentation.spryker.com/v2/docs/redis-configruation-201903 . Has someone already used this and can help?

Comments

  • UP957L8F3
    UP957L8F3 Posts: 44 🧑🏻‍🚀 - Cadet

    First Error simply trying to connect we got this:

    [2020-01-13 07:36:03] Zed.CRITICAL: Predis\Connection\ConnectionException - `SELECT` failed: ERR unknown command `SELECT`, with args beginning with: `1`,  [<tcp://rfs-spryker-redis:26379>] in "/data/vendor/predis/predis/src/Connection/AbstractConnection.php::155" {"exception":"[object] (Predis\\Connection\\ConnectionException(code: 0): `SELECT` failed: ERR unknown command `SELECT`, with args beginning with: `1`,
    
  • UP957L8F3
    UP957L8F3 Posts: 44 🧑🏻‍🚀 - Cadet

    then we switched to the Config mentioned in the Docs, we got following Error: PHP message: PHP Fatal error:  Uncaught Error: Class 'SessionConstants' not found in /data/config/Shared/config_default-production.php:36

  • Denis Turkov
    Denis Turkov VP Architecture Sprykee Posts: 40 🏛 - Council (mod)

    Hey Ulrich,
    You need to specify the class namespace with use \Spryker\Shared\Storage\StorageConstants; at the top.

    We will update the doc to avoid such confusion.

  • UPY0ME3CK
    UPY0ME3CK Posts: 1 🧑🏻‍🚀 - Cadet

    Hi Denis;

    we set this include, but the error remained

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    It complains about SessionConstants:
    use Spryker\Shared\Session\SessionConstants;

  • Denis Turkov
    Denis Turkov VP Architecture Sprykee Posts: 40 🏛 - Council (mod)

    Ah ya, I followed depreciations 😬