Hello Team!! I trying to setup B2C Commerce using ...
# docker
t
Hello Team!! I trying to setup B2C Commerce using docker But getting error regarding a dependency of Blackfire Would you like to help me please? help me to overcome from this issue. The issue is:
p
Heyhey, is this a fresh install based on the getting-started guide?
t
Hello @plain-city-95899 Yes, I am getting help from below Spryker Documentation: https://docs.spryker.com/docs/scos/dev/developer-getting-started-guide.html#install-spryker
p
What is your current OS and what CPU architecture are you using?
t
Windows 11 22H2, DOCKER/Ubuntu 22.04 LTS
CPU 64 bit
p
Let me get my windows machine and check it 👀
t
Ok
p
So i could not reproduce this behaviour. Was Spryker installed on the system before or is it the first time?
t
first time
p
in your screenshot i see somewhere written “Could not resolve host packages.blackfire.io” - if the problem still exists it could be a firewall problem of your company
t
Oh! Ok Thanks @plain-city-95899 Contact to my Company Admin and will back to you Thanks! again
Hi @plain-city-95899 I have cunsulted with my Admin team There is no any firewall set regarding packages.blackfire.io But when using WSL ubuntu distro I am getting error after hitting $ curl https://packages.blackfire.io I am not getting what's troubles are there... For reference: <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>4J9JPXQTWNYM3JSE</RequestId><HostId>gaK1QjLEaDvMwMQ44HV0EF6kBzzdy3W4izWLSIId48fVaMMeKTbjpeohZENNgceWxxO0VmPExP8=</HostId></Error>
p
i just noticed: by default blackfire shouldnt be enabled. Did you make a change to your deploy file? because if you just follow the getting started guide it is without blackfire i think
t
@plain-city-95899 I have setup the blackfire image in my container and it is also running well
p
can you please share the deploy.dev.yml with me?
t
Sure
t
deploy.dev.yml
p
I have setup the blackfire image in my container and it is also running well
how did you set this up?
because your deploy.dev.yml file does not look like it is set up. - Actually i am a bit confused. On the one hand you said you followed strictly the getting started guide - on the other hand you said you have set up blackfire somehow.
t
I have used to setup the blackfire https://blackfire.io/docs/php/configuration
image.png
@plain-city-95899 I am new for spryker Could you please guide me to setup the spryker with blackfire once?
It could be very helpful for me
I just gone through blackfire configuration setup and used that
p
Yes, I think I can give you a tipp here. but important things first: does the spryker setup work for you without blackfire?
t
As I have shared the screen it's running with blackfire but when gone through the browser as setup host it's not showing 404 error
@plain-city-95899 I got confused and stuck here.
p
reason why i ask about this: If there is a problem already with the basic setup you have to solve this first before you should add blackfire.
t
@plain-city-95899 I am very new to docker and spryker both I just need to setup spryker b2c commerce and I follow the steps as documented within the spryker doc Is there anything which I need to know to setup the spryker?
As I have setup docker, WSL and distro first
then gone though the spryker doc
p
so without any blackfire stuff - did
docker/sdk up
work for you without exceptions?
t
When I used docker/sdk up it's halt to
image.png
p
what does
git status
return?
t
It's looking like
p
pls revert all these changes
t
Ok
p
after that, just to clean up possible mess pls run
rm -Rf data/cache/propel && rm -Rf src/Orm/Zed/**/Base/ && rm -Rf src/Orm/Zed/**/Map/ && rm -Rf vendor
and then
docker/sdk clean
1
after this, double check if
git status
has no change in it and try
docker/sdk up --build --assets --data --jobs
1
t
Ok
p
maybe before doing the
docker/sdk up
remove also the blackfire container and image with docker-desktop
1
once
docker/sdk up
is running without problems and you can access the services of spryker you can try to follow https://docs.spryker.com/docs/scos/dev/the-docker-sdk/202005.0/services.html#blackfire - but please, make the Spryker standard setup work first 🙂
t
Sure
p
Additionally I can also suggest you to register for free to academy.spryker.com and access our free elearnings: https://academy.spryker.com/learn/public/catalog/view/29
t
@plain-city-95899 Thank you very much!!
Hello @plain-city-95899 I gone though b2c training from spryker academy and when running docker/sdk up 2023-06-07 180118 PHP Fatal error: Uncaught Symfony\Component\Yaml\Exception\ParseException: File "/data/deployment/project.yml" does not exist. in /data/vendor/symfony/yaml/Parser.php:54 2023-06-07 180118 Stack trace: 2023-06-07 180118 #0 /data/deploy-file-generator/src/Processor/Executor/PreExecutors/PrepareDeployFileTransferExecutor.php(45): Symfony\Component\Yaml\Parser->parseFile('/data/deploymen...') 2023-06-07 180118 #1 /data/deploy-file-generator/src/Processor/DeployFileProcessor.php(90): DeployFileGenerator\Processor\Executor\PreExecutors\PrepareDeployFileTransferExecutor->execute(Object(DeployFileGenerator\Transfer\DeployFileTransfer)) 2023-06-07 180118 #2 /data/deploy-file-generator/src/Processor/DeployFileProcessor.php(38): DeployFileGenerator\Processor\DeployFileProcessor->execute(Array, Object(DeployFileGenerator\Transfer\DeployFileTransfer)) 2023-06-07 180118 #3 /data/index.php(1501): DeployFileGenerator\Processor\DeployFileProcessor->process(Object(DeployFileGenerator\Transfer\DeployFileTransfer)) 2023-06-07 180118 #4 /data/index.php(17): buildProjectYaml('/data/deploymen...') 2023-06-07 180118 #5 {main} 2023-06-07 180118 thrown in /data/vendor/symfony/yaml/Parser.php on line 54
Is there anything I am missing?
and on console

https://sprykercommunity.slack.com/files/U05A084K4JK/F05BA1UNLLD/image.png

p
normally there should nothing be missing.
t
But I am not able to access spryker.local as said environment specified in deploy.dev.yml file as I have setup all the etc/hosts changes popuped while docker/sdk boot deploy.dev.yml
image.png
p
this is your setup without blackfire service configured, right?
t
Yes
p
ok, so
git status
has no changes?
t
yes workingtree clean
image.png
p
perfect
what does
docker ps
show?
oh, so the blackfire message is happening while doing
docker/sdk boot deploy.dev.yml
?
t
Yes
p
ok, then i would try something else first
t
Ok
p
do pls a
docker/sdk clean
t
Ok
p
then:
rm -Rf docker/deployment/default*/*
and then try again the
docker/sdk bootstrap deploy.dev.yml
or no, first double check if there is no change in docker folder. go to docker folder (
cd docker
) and do the git status there
t
Ok
It's saw like
image.png
p
good
then you can go back to b2c-demo-shop directory and do the other two steps i mentioned
t
Ok
p
after docker/sdk clean you could also double check wth
docker ps
that really no other container is running
t
Same error coming again
No container is running now
1
p
i asked my colleagues if they have any other idea. This is really strange. The answer will likely take a while
1
t
In docker desktop only images are showing like below
p
Another idea: does
ping <http://packages.blackfire.io|packages.blackfire.io>
work for you?
t
Ok
@plain-city-95899 No, Requesting Time out
p
ok, this one works for me. It seems like a DNS problem on your side
does it work from the powershell outside of the WSL2?
t
Nope
p
then you should maybe contact your sysadmin again 😞
t
Ok, will be back to you soon Thanks!
Hello! @plain-city-95899 I approached to my system admin got the setup of DNS and it looks like May you please have a look and guide me?
p
Hey, sorry, I am not an expert in network administration. I also just google what i need. If its purely about dns you could try to use googles dns server and reboot your system and try again.
t
Ok, Thanks
Hello @plain-city-95899 Now it's working fine Thanks for your help and guidance!! It helped me allot.
p
Great to hear!!! 🙌 What was the problem/solution in the end?
1
t
Configuring the DNS server!! 😀
👌 2