Hello, I’ve just installed almost fresh demoshop t...
# docker
t
Hello, I’ve just installed almost fresh demoshop to M2 pro MacBook, containers are all started
Copy code
106a1f5755d   spryker_b2b_dev_run_frontend:dev                 "/entrypoint.sh ngin…"   22 minutes ago   Up 18 minutes             80/tcp                spryker_b2b_dev_frontend_1
886821abffe5   spryker_b2b_dev_run_app:dev-backend_api_eu       "docker-php-entrypoi…"   24 minutes ago   Up 18 minutes             9000-9001/tcp         spryker_b2b_dev_backend_api_eu_1
22a06f882ed6   spryker_b2b_dev_run_app:dev-backoffice_eu        "docker-php-entrypoi…"   24 minutes ago   Up 18 minutes             9000-9001/tcp         spryker_b2b_dev_backoffice_eu_1
ceb3035398a9   spryker_b2b_dev_run_app:dev-glue_eu              "docker-php-entrypoi…"   24 minutes ago   Up 18 minutes             9000-9001/tcp         spryker_b2b_dev_glue_eu_1
f79219e532eb   spryker_b2b_dev_run_app:dev-backend_gateway_eu   "docker-php-entrypoi…"   24 minutes ago   Up 18 minutes             9000-9001/tcp         spryker_b2b_dev_backend_gateway_eu_1
dcb24b3b2448   spryker_b2b_dev_run_app:dev-yves_eu              "docker-php-entrypoi…"   24 minutes ago   Up 18 minutes             9000-9001/tcp         spryker_b2b_dev_yves_eu_1
f7b435f208d7   redis:5.0-alpine                                 "docker-entrypoint.s…"   39 minutes ago   Up 18 minutes (healthy)   6379/tcp              spryker_b2b_dev_session_1
f061f2621526   spryker/elasticsearch:7.10                       "/tini -- /usr/local…"   39 minutes ago   Up 18 minutes (healthy)   9200/tcp, 9300/tcp    spryker_b2b_dev_search_1
ebf80229f8af   redis:5.0-alpine                                 "docker-entrypoint.s…"   39 minutes ago   Up 18 minutes (healthy)   6379/tcp              spryker_b2b_dev_key_value_store_1
f86f8aa5aff6   spryker/mailhog:v1.0.0                           "MailHog"                39 minutes ago   Up 18 minutes (healthy)   1025/tcp, 8025/tcp    spryker_b2b_dev_mail_catcher_1
41c2e1b1f30a   spryker/jenkins:2.324                            "/sbin/tini -- /usr/…"   39 minutes ago   Up 18 minutes (healthy)   8080/tcp, 50000/tcp   spryker_b2b_dev_scheduler_1
1f6e58a59e58   spryker/swagger-ui:v3.24.3                       "sh /usr/share/nginx…"   39 minutes ago   Up 18 minutes (healthy)   80/tcp, 8080/tcp      spryker_b2b_dev_swagger_1
a1fb7f07daad   mariadb:10.4                                     "docker-entrypoint.s…"   39 minutes ago   Up 18 minutes (healthy)   3306/tcp              spryker_b2b_dev_database_1
9b39ce18c2db   spryker/redis-commander:0.8.0                    "/usr/bin/dumb-init …"   39 minutes ago   Up 18 minutes (healthy)   8081/tcp              spryker_b2b_dev_redis-gui_1
9d894254f3ef   spryker_b2b_dev_dashboard                        "docker-entrypoint.s…"   39 minutes ago   Up 18 minutes             3000/tcp, 6689/tcp    spryker_b2b_dev_dashboard_1
ef6982bd7a9f   spryker_b2b_dev_run_cli:dev                      "docker-php-entrypoi…"   40 minutes ago   Up 18 minutes             9000/tcp              spryker_b2b_dev_cli_1
191a423a9b2c   spryker/socat:latest                             "socat UNIX-LISTEN:/…"   40 minutes ago   Up 18 minutes                                   spryker_b2b_dev_cli_ssh_relay_1
b26ecc38bd81   mutagenio/sidecar:0.17.2-sspl                    "mutagen-sidecar"        40 minutes ago   Up 18 minutes                                   spryker_b2b_dev_mutagen_1
I’ve added hosts to /etc/hosts, added ssl certificate. When I try to access it in chrome browser, it immediately returns refused to connect. Anyone can help? I have other Spryker project installed and works fine.
b
hm, since it seems to be project related: Do you maybe have different endpoints in the deploy.dev.yml file? Especially the dashboard for an overview under spryker.local (by default)? in deploy.dev.yml:
Copy code
dashboard:
    engine: dashboard
    endpoints:
        spryker.local:
t
Basically it is a project which worked on another mac in parallel. I cloned it on new M2 pro and did readme process as on the old one. So configuration should be fine I assume
This project is almost a basic demo shop from spryker with little to no adjustments. The other one which works is more customised.
b
oh wow, I have the same with one project, I just tested starting it again with docker/sdk up, and I also have docker containers started and get a connection refused, still 😮
👀 1
p
@best-sundown-96727 are you also on m1/m2 ?
t
@fresh-musician-59410 can confirm that it works properly on M1, right?
b
M1
🤯 1
not sure, might be a different problem here, but it worked the last time I started it
p
what happens if you execute
docker/sdk install
?
b
ok I found my problem: I had another docker container blocking the mysql port 3306, so the DB container was not started. For some reason then I got the connection refused error
p
For some reason then I got the connection refused error
likely because the docker/sdk up script was interrupted and therefore the other container did not start properly
2
b
But I also got an according error message at the end of docker/sdk up. So it was easy to resolve... in my case at least
I think your missing the gateway container, which should look something like this?
☝️ 1
p
good catch. this seems to be a problem.
t
I pruned everything. I’ll check if that port is used by default or something like that. I am booting project again and then will check.
p
is the port 80 maybe already in use?
b
same probably for 443, 3306, 5672, 9200, 16379
if any of the ports is blocked, the gateway container will fail to start
p
but without any exception? O.o
b
I think so, they are all mapped to the respective host ports, at least in my project currently
t
I am aware of port things, no exception thrown. In general I stopped all containers before start project,
But your explanation sounds as a case here, I just need to find out what is blocking the script.
p
sudo lsof -i -n -P | grep TCP
could maybe help
t
Copy code
[+] Running 20/21
 ⠿ Container spryker_b2b_dev_redis-gui_1                                                                                                                    Started                                              0.9s
 ⠿ Container spryker_b2b_dev_webdriver_1                                                                                                                    Started                                              0.7s
 ⠿ Container spryker_b2b_dev_session_1                                                                                                                      Started                                              1.2s
 ⠿ Container spryker_b2b_dev_search_1                                                                                                                       Started                                              0.6s
 ⠿ Container spryker_b2b_dev_cli_1                                                                                                                          Running                                              0.0s
 ⠿ Container spryker_b2b_dev_backend_api_eu_1                                                                                                               Star...                                              0.7s
 ⠿ Container spryker_b2b_dev_glue_eu_1                                                                                                                      Started                                              1.5s
 ⠿ Container spryker_b2b_dev_yves_eu_1                                                                                                                      Started                                              0.5s
 ⠿ Container spryker_b2b_dev_backend_gateway_eu_1                                                                                                           Started                                              1.3s
 ⠿ Container spryker_b2b_dev_scheduler_1                                                                                                                    Started                                              1.3s
 ⠿ Container spryker_b2b_dev_backoffice_eu_1                                                                                                                Start...                                             0.8s
 ⠿ Container spryker_b2b_dev_mail_catcher_1                                                                                                                 Starte...                                            0.8s
 ⠿ Container spryker_b2b_dev_dashboard_1                                                                                                                    Started                                              1.5s
 ⠿ Container spryker_b2b_dev_key_value_store_1                                                                                                              Sta...                                               1.4s
 ⠿ Container spryker_b2b_dev_database_1                                                                                                                     Started                                              1.0s
 ⠿ Container spryker_b2b_dev_broker_1                                                                                                                       Started                                              0.5s
 ⠿ Container spryker_b2b_dev_swagger_1                                                                                                                      Started                                              1.5s
 ⠿ Container spryker_b2b_dev_cli_ssh_relay_1                                                                                                                Runni...                                             0.0s
 ⠙ webdriver The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested                                                      0.0s
 ⠿ Container spryker_b2b_dev_frontend_1                                                                                                                     Started                                              1.6s
 ⠿ Container spryker_b2b_dev_gateway_1                                                                                                                      Started                                              2.0s
[+] Running 1/1
 ⠿ Container spryker_b2b_dev_webdriver_1  Stopped                                                                                                                                                                0.2s
[+] Running 2/2
 ⠿ Container spryker_b2b_dev_frontend_1  Started                                                                                                                                                                 0.3s
 ⠿ Container spryker_b2b_dev_gateway_1   Started
It could be due to image platform
2
p
at what commit hash is your docker repo right now?
afaik: in some projects the docker-sdk version is fixed and committed to the project repository. An idea is that your docker-sdk is outdated
f
All is good on M1, the version of docker-sdk in the specific project is 1.58.0 a584e23c0b36d1d073bdc21b6bcf526bcf6dc992
p
hm yeah, this should then also not be the problem…
t
@plain-city-95899 do you see something suspicious here? All docker containers are down ATM
Copy code
$ sudo lsof -i -n -P | grep TCP
apsd        319           root   10u  IPv4 0x826a31b9edf7bda3      0t0    TCP 192.168.2.19:50006->17.57.146.132:5223 (ESTABLISHED)
ztnafw      525           root   22u  IPv4 0x826a31b9edfbdc73      0t0    TCP 127.0.0.1:53535 (LISTEN)
ControlCe 16909    ivanjurisic    5u  IPv4 0x826a31b9edfbbb43      0t0    TCP *:7000 (LISTEN)
ControlCe 16909    ivanjurisic    6u  IPv6 0x826a31b518e4233b      0t0    TCP *:7000 (LISTEN)
ControlCe 16909    ivanjurisic    7u  IPv4 0x826a31b9edfbc653      0t0    TCP *:5000 (LISTEN)
ControlCe 16909    ivanjurisic    8u  IPv6 0x826a31b518e42b3b      0t0    TCP *:5000 (LISTEN)
rapportd  16925    ivanjurisic    9u  IPv4 0x826a31b9eea808b3      0t0    TCP *:49294 (LISTEN)
rapportd  16925    ivanjurisic   10u  IPv6 0x826a31b51969eb3b      0t0    TCP *:49294 (LISTEN)
rapportd  16925    ivanjurisic   14u  IPv6 0x826a31b51969f33b      0t0    TCP [fe80:f::458:32bf:ef6c:3f94]:49294->[fe80:f::be:2170:4c2b:f8ed]:54788 (ESTABLISHED)
ztagent   17844    ivanjurisic    9u  IPv4 0x826a31b9edfbb033      0t0    TCP 127.0.0.1:49170 (LISTEN)
Google    18454    ivanjurisic   22u  IPv4 0x826a31b9edf87293      0t0    TCP 192.168.2.19:55359->66.102.1.188:5228 (ESTABLISHED)
Google    18454    ivanjurisic   24u  IPv4 0x826a31b9eea88653      0t0    TCP 192.168.2.19:54753->66.102.1.188:5228 (ESTABLISHED)
Google    18454    ivanjurisic   32u  IPv4 0x826a31b9edfb5163      0t0    TCP 192.168.2.19:57301->140.82.113.26:443 (ESTABLISHED)
Google    18454    ivanjurisic   34u  IPv4 0x826a31b9eea7b033      0t0    TCP 192.168.2.19:59025->142.250.186.37:443 (ESTABLISHED)
Google    18454    ivanjurisic   38u  IPv4 0x826a31b9edf77b43      0t0    TCP 10.17.25.170:50337->10.2.54.14:443 (ESTABLISHED)
Google    18454    ivanjurisic   39u  IPv4 0x826a31b9eea7f293      0t0    TCP 192.168.2.19:63830->64.233.166.188:5228 (ESTABLISHED)
Google    18454    ivanjurisic   42u  IPv4 0x826a31b9edfb93c3      0t0    TCP 10.17.25.170:59307->10.2.54.14:443 (ESTABLISHED)
Google    18454    ivanjurisic  120u  IPv4 0x826a31b9edfb88b3      0t0    TCP 192.168.2.19:52169->34.237.73.95:443 (ESTABLISHED)
com.docke 19744    ivanjurisic  136u  IPv4 0x826a31b9edf9d163      0t0    TCP 192.168.2.19:58708->99.86.4.117:443 (ESTABLISHED)
Mattermos 28157    ivanjurisic   14u  IPv4 0x826a31b9edf93da3      0t0    TCP 192.168.2.19:51123->195.4.143.148:443 (ESTABLISHED)
Mattermos 28157    ivanjurisic   17u  IPv4 0x826a31b9edf79c73      0t0    TCP 192.168.2.19:50244->195.4.143.148:443 (ESTABLISHED)
Mattermos 28157    ivanjurisic   23u  IPv4 0x826a31b9edf79163      0t0    TCP 192.168.2.19:50243->195.4.143.148:443 (ESTABLISHED)
Mattermos 28157    ivanjurisic   29u  IPv4 0x826a31b9edf7d3c3      0t0    TCP 192.168.2.19:50245->195.4.143.148:443 (ESTABLISHED)
com.forti 28260           root    6u  IPv4 0x826a31b9eea993c3      0t0    TCP 192.168.2.19:50261->212.89.129.200:443 (ESTABLISHED)
Slack\x20 41786    ivanjurisic   13u  IPv4 0x826a31b9eea7bb43      0t0    TCP 192.168.2.19:59521->108.138.17.85:443 (ESTABLISHED)
Slack\x20 41786    ivanjurisic   14u  IPv4 0x826a31b9eeae5163      0t0    TCP 192.168.2.19:56939->3.68.175.98:443 (ESTABLISHED)
Slack\x20 41786    ivanjurisic   16u  IPv4 0x826a31b9eea89163      0t0    TCP 192.168.2.19:51692->52.200.46.145:443 (ESTABLISHED)
Slack\x20 41786    ivanjurisic   17u  IPv4 0x826a31b9edf953c3      0t0    TCP 192.168.2.19:51742->3.65.102.105:443 (ESTABLISHED)
Slack\x20 41786    ivanjurisic   19u  IPv4 0x826a31b9edf948b3      0t0    TCP 192.168.2.19:51743->3.65.102.105:443 (ESTABLISHED)
Slack\x20 41786    ivanjurisic   21u  IPv4 0x826a31b9edf90653      0t0    TCP 192.168.2.19:51744->3.65.102.105:443 (ESTABLISHED)
Slack\x20 41786    ivanjurisic   23u  IPv4 0x826a31b9edf8fb43      0t0    TCP 192.168.2.19:51745->3.65.102.105:443 (ESTABLISHED)
Slack\x20 41786    ivanjurisic   24u  IPv4 0x826a31b9edf8f033      0t0    TCP 192.168.2.19:51746->3.65.102.105:443 (ESTABLISHED)
Slack\x20 41786    ivanjurisic   28u  IPv4 0x826a31b9eead2783      0t0    TCP 192.168.2.19:52620->3.65.102.105:443 (ESTABLISHED)
phpstorm  51132    ivanjurisic   39u  IPv6 0x826a31b5196a033b      0t0    TCP 127.0.0.1:63342 (LISTEN)
phpstorm  51132    ivanjurisic   40u  IPv6 0x826a31b5196a0b3b      0t0    TCP 127.0.0.1:9001 (LISTEN)
phpstorm  51132    ivanjurisic  293u  IPv6 0x826a31b519697b3b      0t0    TCP 127.0.0.1:63342->127.0.0.1:55611 (ESTABLISHED)
phpstorm  51132    ivanjurisic  307u  IPv6 0x826a31b519693b3b      0t0    TCP 127.0.0.1:63342->127.0.0.1:55618 (ESTABLISHED)
phpstorm  51132    ivanjurisic  308u  IPv6 0x826a31b51969633b      0t0    TCP 127.0.0.1:63342->127.0.0.1:55614 (ESTABLISHED)
phpstorm  51132    ivanjurisic  309u  IPv6 0x826a31b519692b3b      0t0    TCP 127.0.0.1:63342->127.0.0.1:55615 (ESTABLISHED)
phpstorm  51132    ivanjurisic  310u  IPv6 0x826a31b51969433b      0t0    TCP 127.0.0.1:63342->127.0.0.1:55619 (ESTABLISHED)
jcef\x20H 51201    ivanjurisic   21u  IPv4 0x826a31b9eea7c653      0t0    TCP 127.0.0.1:55611->127.0.0.1:63342 (ESTABLISHED)
jcef\x20H 51201    ivanjurisic   23u  IPv4 0x826a31b9eeae88b3      0t0    TCP 127.0.0.1:55614->127.0.0.1:63342 (ESTABLISHED)
jcef\x20H 51201    ivanjurisic   24u  IPv4 0x826a31b9edfbd163      0t0    TCP 127.0.0.1:55615->127.0.0.1:63342 (ESTABLISHED)
jcef\x20H 51201    ivanjurisic   26u  IPv4 0x826a31b9edfb7da3      0t0    TCP 127.0.0.1:55618->127.0.0.1:63342 (ESTABLISHED)
jcef\x20H 51201    ivanjurisic   28u  IPv4 0x826a31b9eeae3033      0t0    TCP 127.0.0.1:55619->127.0.0.1:63342 (ESTABLISHED)
jcef\x20H 51201    ivanjurisic   29u  IPv4 0x826a31b9edfabda3      0t0    TCP 192.168.2.19:55895->34.104.35.123:80 (CLOSED)
I see this during the init of application. Propel\Runtime\Exception\PropelException - Exception: Database map was not initialized. Please check the database loader script included by your conf. Visit https://github.com/propelorm/Propel2/wiki/Exception-Target:-Loading-the-database for information on how to fix this.
p
Something like that?
Copy code
Error - Exception: Undefined constant Orm\Zed\Acl\Persistence\Map\SpyAclGroupArchiveTableMap::TABLE_PHP_NAME 
in /data/vendor/propel/propel/src/Propel/Runtime/Map/DatabaseMap.php (193)

Command: vendor/bin/console transfer:generate

Trace: 
#0 [internal function]: Propel\Runtime\Map\DatabaseMap->registerTableMapClass('\\Orm\\Zed\\Acl\\Pe...')
#1 /data/vendor/propel/propel/src/Propel/Runtime/Map/DatabaseMap.php(228): array_map(Array, Array)
#2 /data/vendor/propel/propel/src/Propel/Runtime/ServiceContainer/StandardServiceContainer.php(272): Propel\Runtime\Map\DatabaseMap->registerTableMapClasses(Array)
#3 /data/data/cache/propel/generated-conf/loadDatabase.php(6): Propel\Runtime\ServiceContainer\StandardServiceContainer->initDatabaseMaps(Array)
#4 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Business/Model/PropelTableMapLoader.php(45): require('/data/data/cach...')
#5 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Business/PropelFacade.php(317): Spryker\Zed\Propel\Business\Model\PropelTableMapLoader->loadTableMap()
#6 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Plugin/Application/PropelApplicationPlugin.php(46): Spryker\Zed\Propel\Business\PropelFacade->loadPropelTableMap()
#7 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(87): Spryker\Zed\Propel\Communication\Plugin\Application\PropelApplicationPlugin->provide(Object(Spryker\Shared\Kernel\Container\ContainerProxy))
#8 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(76): Spryker\Shared\Application\Application->registerApplicationPlugin(Object(Spryker\Zed\Propel\Communication\Plugin\Application\PropelApplicationPlugin))
#9 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/ConsoleCommunicationFactory.php(30): Spryker\Shared\Application\Application->__construct(Object(Spryker\Shared\Kernel\Container\ContainerProxy), Array)
#10 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/Bootstrap/ConsoleBootstrap.php(108): Spryker\Zed\Console\Communication\ConsoleCommunicationFactory->createApplication()
#11 /data/vendor/symfony/console/Application.php(171): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /data/vendor/spryker/console/bin/console(27): Symfony\Component\Console\Application->run()
#13 /data/vendor/bin/console(120): include('/data/vendor/sp...')
#14 {main}
In CommandLineExecutable.php line 118:
                      
  Aborted install...
This could be the reason for the non working container
t
Can this be a clue?
Copy code
Command propel-migrate [vendor/bin/console propel:migrate] (In progress...)
Store: DE | Environment: docker.dev
Clean schema directory
Copy and merge schema files
Store: DE | Environment: docker.dev
This command doesn't support chosen DB engine
When I execute docker ps I have container running properly.
p
Can this be a clue?
```Command propel-migrate [vendor/bin/console propel:migrate] (In progress...)
Store: DE | Environment: docker.dev
Clean schema directory
Copy and merge schema files
Store: DE | Environment: docker.dev
This command doesn't support chosen DB engine```
nope, that message is “normal”
does you exception message look like the one i posted?
t
Nope, it’s like this
p
can you pls try
docker/sdk clean && docker/sdk up --build --assets --data
and check if the exception still happens?
t
I am in the middle of running that, yes. I’ll let you know in few minutes how is it going
logs
Yep, again the same
p
Was the project recently updated from an older version? but hmm.. then other devs in your team would have the same problem.
Just to validate more possibilities: Do you have the plugin
PropelApplicationPlugin
defined in the project? https://github.com/spryker-shop/b2b-demo-shop/blob/master/src/Pyz/Zed/Console/ConsoleDependencyProvider.php#L445 ?
t
It is in vendor level, the one from Spryker.
Regarding project specifics, nothing is changed, it works on M1 Pro and Intel the same version of project at the same time.
p
It is in vendor level, the one from Spryker.
yes, but in older project versions the plugin was not needed - just wanted to verify.
👍 1
t
Seems like after running
Copy code
docker/sdk clean && docker/sdk up --build --assets --data
it is running successfully. In between I also did propelmodelbuild command by hand, so I am not sure which of those two exactly helped, but in any case now it is working. Tried to rebuild completely several times and everything is fine.