Calling Developers!
We are reenergizing our code contribution process! Learn More

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

I am walking through the Spryker bootcamp and am trying to install the b2c demo shop in development

Options
U01ETA7QTST
U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet

I am walking through the Spryker bootcamp and am trying to install the b2c demo shop in development mode via Docker on Windows. Looks all good till I am trying to run "docker/sdk bootstrap deploy.dev.yml" where I get following error. Looking into the "/data/deployment" folder I am missing the project.yml file it is trying to read for some reason.

PHP Fatal error:  Uncaught Symfony\Component\Yaml\Exception\ParseException: File "/data/deployment/project.yml" does not exist. in /data/vendor/symfony/yaml/Parser.php:53
Stack trace:
#0 /data/index.php(20): Symfony\Component\Yaml\Parser->parseFile('/data/deploymen...')
#1 {main}
  thrown in /data/vendor/symfony/yaml/Parser.php on line 53
«1

Comments

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

    I would recommend to try with WSL2 using attached installation guide.
    It's still not public as we are testing it at the moment. But after that hopefully it will be published as an alternative because many people have problems using published installation guide.

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options

    @valerii.trots Thank for the new guide. I was able to complete the docker setup and the containers are running. However I am getting a 404 trying to load up the site. Any suggestions?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 🏛 - Council (mod)
    Options

    @U01ETA7QTST can you please ping the endpoint and show its ip? also please share the WSL2 environment ip address output. Thanks

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options
    C:\>ping zed.de.spryker.local
    
    Pinging zed.de.spryker.local [127.0.0.1] with 32 bytes of data:
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    
    Ping statistics for 127.0.0.1:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 0ms, Average = 0ms
    
    C:\>
    
  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options
    gkirschner@IT-BO-197:~/development/b2c-demo-shop$ ip address
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host
           valid_lft forever preferred_lft forever
    2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
        link/ether 12:d8:25:c5:9f:b5 brd ff:ff:ff:ff:ff:ff
    3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
        link/ether ca:01:d8:36:50:df brd ff:ff:ff:ff:ff:ff
    4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 00:15:5d:93:da:ab brd ff:ff:ff:ff:ff:ff
        inet 172.18.39.142/28 brd 172.18.39.143 scope global eth0
           valid_lft forever preferred_lft forever
        inet6 fe80::215:5dff:fe93:daab/64 scope link
           valid_lft forever preferred_lft forever
    5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
        link/sit 0.0.0.0 brd 0.0.0.0
    gkirschner@IT-BO-197:~/development/b2c-demo-shop$
    
  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 🏛 - Council (mod)
    Options

    Please adjust the IP from 127.0.0.1 in your etc/hosts to 172.18.39.142

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options

    Switched out the IP but getting page is not working after

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options

    @tom.lehner @valerii.trots I did not install any of the other prerequisites in the current official Windows Docker prerequisites guide i.e. OCaml or Unison. Are any of the steps in https://documentation.spryker.com/docs/docker-installation-prerequisites-windows still required with Valerii’s latest guide?

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

    Nope, my version of installation guide should be enough on its own.

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

    At least it works for me this way.

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 🏛 - Council (mod)
    Options

    can you please run netstat -tlpn on your ubuntu?

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options

    @tom.lehner Getting

    gkirschner@IT-BO-197:~$ netstat -tlpn
    (Not all processes could be identified, non-owned process info
     will not be shown, you would have to be root to see it all.)
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp6       0      0 :::5672                 :::*                    LISTEN      -
    
  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 🏛 - Council (mod)
    Options

    sudo netstat -tlpn please

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options

    shows the same log i think

    gkirschner@IT-BO-197:~$ sudo netstat -tlpn
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp6       0      0 :::5672                 :::*                    LISTEN      -
    
  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 🏛 - Council (mod)
    Options

    then there is nothing running that could serve anything

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options

    Is this an issue with IIS or within Ubuntu?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 🏛 - Council (mod)
    Options

    did you docker/sdk boot deploy.dev.yml && docker/sdk up?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 🏛 - Council (mod)
    Options

    try docker ps

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options

    yes docker seems to be up and running

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options
    CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS                    PORTS                                                                                                                                        NAMES
    b626768d97a1        spryker_b2c_dev_gateway:dev                           "/docker-entrypoint.…"   39 minutes ago      Up 38 minutes             0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:5432->5432/tcp, 0.0.0.0:5672->5672/tcp, 0.0.0.0:9200->9200/tcp, 0.0.0.0:16379->16379/tcp   spryker_b2c_dev_gateway_1
    975b1146bfe3        spryker_b2c_dev_run_frontend:dev                      "/entrypoint.sh ngin…"   39 minutes ago      Up 38 minutes             80/tcp                                                                                                                                       spryker_b2c_dev_frontend_1
    2480a77cc5bc        spryker_b2c_dev_run_app:dev-zed_us                    "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_zed_us_1aa3457b77365        spryker_b2c_dev_run_app:dev-zed_eu                    "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_zed_eu_1947ac2356f4a        spryker_b2c_dev_run_app:dev-glue_us                   "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_glue_us_1
    bba81622862e        spryker_b2c_dev_run_app:dev-yves_eu                   "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_yves_eu_1
    554cb3827f26        spryker_b2c_dev_run_app:dev-glue_eu                   "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_glue_eu_1
    3ed8856aa9c6        spryker_b2c_dev_run_app:dev-yves_us                   "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000-9001/tcp                                                                                                                                spryker_b2c_dev_yves_us_1
    292a3130e5ca        spryker_b2c_dev_run_cli:dev                           "docker-php-entrypoi…"   39 minutes ago      Up 39 minutes             9000/tcp                                                                                                                                     spryker_b2c_dev_cli_1
    65506f119d7f        rediscommander/redis-commander:latest                 "/usr/bin/dumb-init …"   5 days ago          Up 39 minutes (healthy)   8081/tcp                                                                                                                                     spryker_b2c_dev_redis-gui_1
    638fa5f3149b        spryker/rabbitmq:3.7.14                               "docker-entrypoint.s…"   5 days ago          Up 39 minutes (healthy)   4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 25672/tcp                                                                                          spryker_b2c_dev_broker_1fb6612203204        redis:5.0-alpine                                      "docker-entrypoint.s…"   5 days ago          Up 39 minutes (healthy)   6379/tcp                                                                                                                                     spryker_b2c_dev_key_value_store_1
    292578538ee4        redis:5.0-alpine                                      "docker-entrypoint.s…"   5 days ago          Up 39 minutes (healthy)   6379/tcp                                                                                                                                     spryker_b2c_dev_session_1
    984811428d45        spryker/jenkins:2.176                                 "/sbin/tini -- /usr/…"   5 days ago          Up 39 minutes (healthy)   8080/tcp, 50000/tcp                                                                                                                          spryker_b2c_dev_scheduler_1
    2f13a1ff71cc        postgres:9.6-alpine                                   "docker-entrypoint.s…"   5 days ago          Up 39 minutes (healthy)   5432/tcp                                                                                                                                     spryker_b2c_dev_database_1
    481c5fecf10f        [docker.elastic.co/elasticsearch/elasticsearch:6.8.4](http://docker.elastic.co/elasticsearch/elasticsearch:6.8.4)   "/usr/local/bin/dock…"   5 days ago          Up 39 minutes (healthy)   9200/tcp, 9300/tcp                                                                                                                           spryker_b2c_dev_search_16572e9200aa4        swaggerapi/swagger-ui:v3.24.3                         "sh /usr/share/nginx…"   5 days ago          Up 39 minutes (healthy)   80/tcp, 8080/tcp                                                                                                                             spryker_b2c_dev_swagger_1
    65a34f12e59e        mailhog/mailhog:v1.0.0                                "MailHog"                5 days ago          Up 39 minutes (healthy)   1025/tcp, 8025/tcp                                                                                                                           spryker_b2c_dev_mail_catcher_1
    c97b2f21c8d6        spryker_b2c_dev_dashboard                             "docker-entrypoint.s…"   5 days ago          Up 39 minutes             3000/tcp, 6689/tcp                                                                                                                           spryker_b2c_dev_dashboard_1
    2eeed2b9ef0f        bpack/socat                                           "socat UNIX-LISTEN:/…"   5 days ago          Up 39 minutes                                                                                                                                                          spryker_b2c_dev_cli_ssh_relay_1
    
  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 🏛 - Council (mod)
    Options

    @U01ETA7QTST please do a complete reset of your docker environment by

    docker sdk/down
    sudo docker system prune -a
    sudo docker system prune --volumes
    sudo docker network prune -a
    

    The fact that your docker seems to be up, but your ubuntu not reporting any ports used is strange. After everything is reset, bring it up again check with netstat again

  • U01ETA7QTST
    U01ETA7QTST Posts: 15 🧑🏻‍🚀 - Cadet
    Options

    @tom.lehner Thanks for the further debug steps. Still getting same error on page refresh, but netstat has another entry.

    gkirschner@IT-BO-197:~/development/b2c-demo-shop$ sudo netstat -tlpn
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp6       0      0 :::5432                 :::*                    LISTEN      -
    tcp6       0      0 :::34651                :::*                    LISTEN      4305/node
    tcp6       0      0 :::5672                 :::*                    LISTEN      -
    
  • U01FWMEHHPX
    U01FWMEHHPX Posts: 17 🧑🏻‍🚀 - Cadet
    Options

    May I bump this thread back to life? QUESTION: Where in SPRYKER config is the equivalent of the docker run -p 88:80 command run? (Or maybe it isn't run).

  • U01FWMEHHPX
    U01FWMEHHPX Posts: 17 🧑🏻‍🚀 - Cadet
    Options

    My problem is similar to Georgie's above. What I want to do is to be able to connect from my windows machine into the container running in docker. Normally if I had some app in a container that was configured to listen to port 80 then I could do something like "docker run -p 88:80 myappimagename and then I could get to the app on port 88 from outside the container (like from windows).

  • U01FWMEHHPX
    U01FWMEHHPX Posts: 17 🧑🏻‍🚀 - Cadet
    Options

    In the b2c demo shop I cannot find where the docker run is done.

  • U01FWMEHHPX
    U01FWMEHHPX Posts: 17 🧑🏻‍🚀 - Cadet
    Options

    (Also I don't know if I should be changing the docker run command, but for a test to verify if this is the nature of the networking problem...)

  • U01FWMEHHPX
    U01FWMEHHPX Posts: 17 🧑🏻‍🚀 - Cadet
    Options

    In short, the question is: "Where could I modify the Spryker config to map a port for use outside of the container?" And is this allowed?

  • U01FWMEHHPX
    U01FWMEHHPX Posts: 17 🧑🏻‍🚀 - Cadet
    Options

    (if this isn't feasible, then maybe it isn't possible to do development on windows using containers??? Has anyone else come to that conclusion? Or overcome it?) -- Like does everyone who needs to use a windows workstation end up going the Virtual Machine route instead of Docker Containers?

  • U01FWMEHHPX
    U01FWMEHHPX Posts: 17 🧑🏻‍🚀 - Cadet
    Options

    Thanks in advance for any clues! 🙂

  • U01FWMEHHPX
    U01FWMEHHPX Posts: 17 🧑🏻‍🚀 - Cadet
    Options

    Oh boy, I'm sorry, I just found out it was a problem with my windows -- I still had an IIS instance running from a project I finished some time ago (it was restarting by default), and once I noticed and stopped it, my Spryker in Docker started working on port 80. Well, maybe that will help somebody else someday.