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..

Good morning everyone, can anyone help with the connection to Tideways? I followed the instruction

U01660GHSTT
U01660GHSTT Posts: 80 πŸ§‘πŸ»β€πŸš€ - Cadet

Good morning everyone,
can anyone help with the connection to Tideways?
I followed the instruction here but when I bootstrap my environment I got the following issue:

PHP Notice:  Undefined index: engine in /data/index.php on line 975
PHP Fatal error:  Uncaught Twig\Error\LoaderError: Template "service//default/.yml.twig" is not defined in "docker-compose.yml.twig" at line 146. in /data/vendor/twig/twig/src/Loader/ChainLoader.php:98
Stack trace:
#0 /data/vendor/twig/twig/src/Environment.php(299): Twig\Loader\ChainLoader->getCacheKey('service//defaul...')
#1 /data/vendor/twig/twig/src/Environment.php(381): Twig\Environment->getTemplateClass('service//defaul...')
#2 /data/vendor/twig/twig/src/Template.php(335): Twig\Environment->loadTemplate('service//defaul...', NULL)
#3 /data/vendor/twig/twig/src/Environment.php(418) : eval()'d code(367): Twig\Template->loadTemplate('service//defaul...', 'docker-compose....', 146)
#4 /data/vendor/twig/twig/src/Template.php(407): __TwigTemplate_b72e048a581fa4cde6cefce1e9be0db97cfbb5e96deaf0767d366e5d92d01218->doDisplay(Array, Array)
#5 /data/vendor/twig/twig/src/Template.php(380): Twig\Template->displayWithErrorHandling(Array, Array)
#6 /data/vendor/twig/twig/src/Template.php(392): Twig\Template->display(Array)
#7 /data/vend in /data/vendor/twig/twig/src/Loader/ChainLoader.php on line 98

I wonder why he's complaining about the index "engine" although I didn't add that.
Here's what I added to my deploy.yml:

tideways:
    apikey: 123456abcdefg
    environment-name: development
    cli-enabled: false

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 βš–οΈ - Guardians (admin)

    What docker-compose version do you have?

  • U01660GHSTT
    U01660GHSTT Posts: 80 πŸ§‘πŸ»β€πŸš€ - Cadet

    docker-compose version 1.25.0, build unknown

  • U01660GHSTT
    U01660GHSTT Posts: 80 πŸ§‘πŸ»β€πŸš€ - Cadet

    I see, looks a bit outdated 🀨

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 βš–οΈ - Guardians (admin)

    please use a docker-compose version >=1.28 but lower than v2

  • U01660GHSTT
    U01660GHSTT Posts: 80 πŸ§‘πŸ»β€πŸš€ - Cadet

    OK, will then try 1.29.2.
    Seems to be the last one before 2.
    Thanks

  • U01660GHSTT
    U01660GHSTT Posts: 80 πŸ§‘πŸ»β€πŸš€ - Cadet

    Unfortunately, version 1.29.2 didn't solve the issue.

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 βš–οΈ - Guardians (admin)
    edited October 2021

    can you maybe add some more details? What shop and which release are you using? When was the last time you updated the spryker docker-sdk?

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 βš–οΈ - Guardians (admin)

    and maybe post a bit more from your deploy.yml as snippet (few lines above and after your tideways snippet.

  • U01660GHSTT
    U01660GHSTT Posts: 80 πŸ§‘πŸ»β€πŸš€ - Cadet

    Good questions πŸ˜„
    Honestly, I don't know. Just tried to find some hints and then saw that we use a docker/sdk version that doesn't list tideways in the supported services. Maybe that's already the problem.

    I will ask my team and then try to give you a better answer.
    Thanks for your help so far.

    Here are some lines from my deploy.yml

    services:
      database:
        engine: postgres
        root:
          username: "root"
          password: "mate20mg"
        endpoints:
          localhost:5432:
            protocol: tcp
    
      broker:
        engine: rabbitmq
        username: "MDE_development"
        password: "mate20mg"
        api:
          username: "admin"
          password: "mate20mg"
        endpoints:
          queue.suite.local:
          localhost:5672:
            protocol: tcp
    
      session:
        engine: redis
    
      key_value_store:
        engine: redis
        endpoints:
          localhost:16379:
            protocol: tcp
    
      search:
        engine: elastic
        version: 5.6
        endpoints:
          localhost:9200:
            protocol: tcp
    
      scheduler:
        engine: jenkins
        endpoints:
          scheduler.suite.local:
    
      mail_catcher:
        engine: mailhog
        endpoints:
          mail.suite.local:
    
      swagger:
        engine: swagger-ui
        endpoints:
          swagger.suite.local:
    
      redis-gui:
        engine: redis-commander
        endpoints:
          redis-commander.suite.local:
    
      dashboard:
        engine: dashboard
        endpoints:
          suite.local:
    
      kibana:
        engine: kibana
        endpoints:
          dashboard.suite.local:
    
      tideways:
        apikey: 1236789abcdef
        environment-name: development
        cli-enabled: false
    
    docker:
      ssl:
        enabled: false
        redirect: true
    
      testing:
        store: MDE
    
      debug:
        enabled: true
        xdebug:
          enabled: true
    
      mount:
        native:
          platforms:
            - linux
    
        docker-sync:
          platforms:
            - macos
            - windows
    
  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 βš–οΈ - Guardians (admin)

    But I can now reproduce the exception as well when i do not add this in the end of the file but in the services section. I’ll get back to you once I know more

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 βš–οΈ - Guardians (admin)

    please try the following:

    tideways:
        engine: tideways
        apikey: 123456abcdefg
        environment-name: development
        cli-enabled: false
    
  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 βš–οΈ - Guardians (admin)

    The documentation will also be updated and the missing keyword be added.

  • U01660GHSTT
    U01660GHSTT Posts: 80 πŸ§‘πŸ»β€πŸš€ - Cadet

    Awesome. Thanks a lot.
    That seems to work. πŸŽ‰

  • U018XELUZS9
    U018XELUZS9 Posts: 167 πŸ§‘πŸ»β€πŸš€ - Cadet

    I tried to enable tideways, but it's still not working. When I have a look at phpinfo it looks like the connection to tideways-daemon is the problem:

  • U018XELUZS9
    U018XELUZS9 Posts: 167 πŸ§‘πŸ»β€πŸš€ - Cadet

    I had a quick look at the installation guide in the tideways docs, but I'm lost, since the Spryker Docker SDK adds a layer of abstraction on top of that.

  • U018XELUZS9
    U018XELUZS9 Posts: 167 πŸ§‘πŸ»β€πŸš€ - Cadet

    This made it work in our project: https://github.com/spryker/docker-sdk/pull/260