Hi, I have the docker spryker setup with docker-sy...
# docker
p
Hi, I have the docker spryker setup with docker-sync and the newest Spryker docker/sdk. Since the debug “-x” flag does not work anymore I have to use the debug cookie. The Problem: As soon as the debug session begins the code is frozen, so it is not synced anymore. When I quit the debugging session everything ist fine. BUT when is start the debug session again the code is again in the state of the first debug session. It looks like the Spryker debug thing is using a different codebase and is not synchronising my code there. =´(
c
@high-pencil-62400 do you have any suggestions here?
h
Hi Fabian, What OS do you use?
p
macOS, but a colleague of mine is using windows and has the same issue
h
I know the problem you’ve faced. However it is not reproducible on my side (MacOS). I thought it is Linux issue and CLI only. We have ticket for investigation. I will add that it is not related to OS. However I have a workaround for you. Change deploy.dev.yml (or copy to deploy.local.yml)
Copy code
image:
    tag: spryker/php:7.3
    php:
        ini:
            "opcache.revalidate_freq": 0
            "opcache.enable_cli": 0
            "opcache.enable": 0
run
docker/sdk boot deploy.dev.yml && docker/sdk up
Debugging should work fine. Do not forget to remove that after debugging. 🙂
👍 2
p
Sadly this does not seem to work =(
h
It seems you have quite different case.
p
Should I write a Bug report?
h
I assume that is file sync. If so it is not point to create a bug.
docker/sdk sync logs
- follow if files you changed are synced inside.
p
The Sync process works perfectly. I even checked the files inside the containers.
For visualisation purposes here a screen shot where the error occurs in a comment. That means the code loaded by the error page is the correct one, but the code that got compiled was not (I think).
h
If opcache is really disabled (please check), there is no other caching mechanism.
p
Can I check it via cli somehow?
It looks like the Cache is still enabled :0
h
You lost
image:php:
look in my example. Sorry, validation is still WIP.
p
Oh I see sry
It works 🤩
Tank you
f
@high-pencil-62400 I am experiencing that syncing problem with xdebug on linux. Tried to apply your suggestion to deactivate opcache, but I cannot boot anymore then. It gets stuck at "Building generator...". Any hint?
h
No clue, Jochen. Try docker/sdk boot -v deploy…
f
nothing
h
bash -x docker/sdk boot deploy…
And please list latest several commands when it stuck. Thanks.
Did it work before?
It seems generator fails or does not push on host.
f
wait sorry my bad, new shot coming
stuck there, does not exit
h
That’s docker issue. If you can restart docker deamon and prune - do that.
f
will try later, thanks
i think my vpn connection went crazy and blocked some docker stuff. works now, thank you!
h
Glad it is ok now