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..
is `docker/sdk up` (without `-x`) to run env. without xdebug? my xdebug's still running even without
is docker/sdk up
(without -x
) to run env. without xdebug? my xdebug's still running even without -x
which could be my timeout issue on ubuntu, anyone has the same thing?
https://sprykercommunity.slack.com/archives/G01D3R3TDGQ/p1603184671011500?thread_ts=1603182704.009100&cid=G01D3R3TDGQ
Comments
-
maybe @ULYHPR789 can help too (after meeting) ? π
0 -
You could try connecting to the gateway container via docker (shell is
ash
)and checking the env vars via export0 -
i'm sure xdebug is enabled even with
docker/sdk up
0 -
Like
docker exec -t spryker_b2c_dev_gateway_1 ash -c export
should showexport SPRYKER_XDEBUG_ENABLE=''
for it to be disabled0 -
export SPRYKER_XDEBUG_ENABLE='' export SPRYKER_XDEBUG_MODE_ENABLE='1'
0 -
Hm this should pass the request correctly without debugging, it would be set to
SPRYKER_XDEBUG_ENABLE='1'
otherwise (MODE
is not used when debug is disabled)0 -
Currently
docker/sdk up
is running both xdebug and non-xebug processes.So debug session is controlled by request. If you set cookie XDEBUG_SESSION debugging will be enabled.
0 -
how can I do it, removing all the cookie & disabling xdebug addon, and having all xdebug params like this doesn't help?
export SPRYKER_XDEBUG_ENABLE='0' export SPRYKER_XDEBUG_MODE_ENABLE='0'
0 -
-
No. Just cookie. If it is about HTTP request.
CLI is controlled by -x argument.
0 -
What are the symptoms?
0 -
so i removed all the cookies from browser like this, I thnk it should be enough ist it?
0 -
most of the times I still always get
Fail whale
0 -
But why do you think it is connected to xdebug?
0 -
maybe not, but that is the only reason I can see now, since i got timeout issue & xdebug seems to be always enabled even when I run
docker/sdk up
without -x and i already removed all the cookie0 -
is there anyway to correctly disable xdebug so we can see if it works in this case to make sure xdebug is/isn't the reason?
0 -
Do the following to check:
β’ rundocker exec spryker_b2c_dev_yves_eu_1 ps auxf
- look at the PIDs of the FPM workers
β’ rundocker logs spryker_b2c_dev_yves_eu_1 --follow
β’ do your request on the browser and look where it ends up, you will get a log entry that contains the PID, and then you can check whther it's from the debug FPM or the normal one (like "child XX said into stderr")0 -
$ docker exec spryker_b2c_dev_yves_eu_1 ps auxf spryker 14 0.0 0.0 499296 6308 ? S 07:05 0:00 \_ php-fpm: pool worker spryker 15 0.0 0.0 499296 6372 ? S 07:38 0:00 \_ php-fpm: pool worker
0 -
[21-Oct-2020 07:38:53] NOTICE: [pool worker] child 15 started [21-Oct-2020 07:51:48] WARNING: [pool worker] child 14 said into stderr: "{"@timestamp":"2020-10-21T07:51:07.240714+00:00","@version":1,"host":"97c991da4ddf","message":"WEB Request YVES [GET] /","type":"YVES","channel":"Yves","level":"INFO","monolog_level":200,"extra":{"environment":{"application":"YVES","environment":"docker.dev","store":"DE","codeBucket":"DE","locale":"en_US"},"server":{"url":"<http://yves.de.spryker.local/>","is_https":false,"hostname":"yves.de.spryker.local","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36","user_ip":"172.22.0.21","request_method":"GET","referer":null},"request":{"requestId":"428d549b","type":"WEB","request_params":[]}}}" [21-Oct-2020 07:51:48] WARNING: [pool worker] child 14 said into stderr: "{"@timestamp":"2020-10-21T07:51:48.376643+00:00","@version":1,"host":"97c991da4ddf","message":"WEB Response YVES [200]","type":"YVES","channel":"Yves","level":"INFO","monolog_level":200,"extra":{"environment":{"application":"YVES","environment":"docker.dev","store":"DE","codeBucket":"DE","locale":"en_US"},"server":{"url":"<http://yves.de.spryker.local/>","is_https":false,"hostname":"yves.de.spryker.local","user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36","user_ip":"172.22.0.21","request_method":"GET","referer":null},"request":{"requestId":"428d549b","type":"WEB","request_params":[]}}}" [21-Oct-2020 07:55:53] WARNING: [pool worker] child 15, script '/data/public/Yves/index.php' (request: "GET /index.php") execution timed out (64.053657 sec), terminating [21-Oct-2020 07:55:53] WARNING: [pool worker] child 15 exited on signal 15 (SIGTERM) after 1020.003735 seconds from start [21-Oct-2020 07:55:53] NOTICE: [pool worker] child 22 started
0 -
I don't think we have much info from here @U01D7EW4N73
0 -
PID 14 handled the request, which fpm does that belong to? debug or normal? (btw it was confirmed yesterday in the foundations-channel that only the cookie should control the debugging)
0 -
Is it possible to change index.php file to just boot the app and then exit?
0 -
Oh yeah, that works, just throw a
phpinfo(); die();
into that0 -
not sure what just happened, what i've done just to delete some file from
deployment/default
folder then clone againdocker-sdk
and it seems work now, though still slowly0 -
PID14 & 15 are fpm worker as you can see here https://sprykercommunity.slack.com/archives/CMYFJCG2E/p1603267026115900?thread_ts=1603184920.103700&cid=CMYFJCG2E
0 -
That are 2 php-fpm
0 -
yes, they're PID of these 2 php-fpm
0 -
huh, looks like when i disable xdebug addons it turns out again the
fail whale
0 -
and when i enable it, it works again but very slow!
0 -
you can disable xdebug images completely:
deploy.dev.yml
... docker: ... debug: enabled: true xdebug: enabled: false
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 894 Developer Corner
- 757 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random