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..
Hi π I'm currently in the midst of the docker setup of the b2c demo shop and e
Hi π
I'm currently in the midst of the docker setup of the b2c demo shop and elastic is not responding anymore.
This always seems to happen some minutes after starting the cluster (I have stop && boot && trouble && up
'ed many times by now).
Also 90% of the time it won't turn healthy at all after docker/sdk up
and will only start after stop && up
again.
The logs seem uneventful to me but maybe there's something in there I overlooked: http://ix.io/3XGt
Other information: I'm on MacOS, M1 chip. For the setup to run at all I did the following changes:
β’ rabbitmq version pinned to 3.9
β’ redis version pinned to 6.0 (had to copy paste the 5.0 template to docker/generator/src/templates/service/redis/6.0/redis.yml.twig
β’ jenkins version pinned to 2.324
Comments
-
How much resources (CPU, RAM) did you allocate for docker?
0 -
4 CPUs
6 GB Memory
2 GB Swap
64 GB Disk0 -
6GB memory might be too little. Try allocating more (at least double of current value).
0 -
12 might be too much as I only have 16GB in total but let me try some more memory
0 -
well that actually worked. thanks!
Product Detail Pages are still 404'ed but that's a topic for monday I guess π0 -
π
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
Keep us updated pls π - will try to look in here today
0 -
Nothing new for the 404 on product detail pages yet.
The ES is filled with products afterconsole demo-data
ran through without problems.
Still when I try to access one of the products via thesearch-result-data: url
key, I get a 404.Tried to look into the routing but can't find anything related to ProductDetail in
RouterDependencyProvider
and I feel there should be an entry π
Not sure though since I don't believe spryker would just forget to integrate the product detail pages for the newest demo shop.0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
can you try
docker/sdk reset
again?0 -
Tried again, waited for queues to empty and still the same error.
Couldn't find any leads in the logs as well.0 -
Usually when you see the product on PCP and PDP is throwing 404, means that there is a mismatch between ES and Redis (Product data is in ES but not in Redis).
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
i still have the feeling that it could be due to not properly deleted data.
Maybe wipe it completely?docker/sdk down
cd ..
docker system prune -a && docker system prune --volumes
rm -Rf my-folder
mutagen sync list
(it should be empty)
bootstrap with deploy.dev.yml anddocker/sdk up --build --assets --data
0 -
@USZ0XG6SK well I did look into ES and found a
product_abstract
entry in the index and the url was also inside ofredis:kv:url
still 404 on this particular product url0 -
If you have multi-store, you need to check that the entries are there for correct store as well
0 -
but try clean install
0 -
Maybe these problems also arose due to redis update to v6 while the demo shop usually uses v5?
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
could be - as far as i remember redis v5 is not needed for m1, right?
0 -
Not 100% sure what the problem was with that but I changed it because it didn't run properly. Iirc it was something like
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Let me try with 5.0 again though on the complete reset.0 -
Well the reset brought back old errors like elastic not starting (container unhealthy). Fixing this using
bootstrap.system_call_filter: false
still has problem with timeouts, also yves times out now.0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
do you have the normal m1 or something like m1 pro?
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
what is the exact exception?
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
you should stay with the ES version 5 - because there i have at least confirmation that it worked for several others with m1 - we just need to find what is different on your system
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
what is your current branch and commit-hash?
0 -
normal Apple M1 in a Macbook Pro 13" 2020
[zed-backoffice] [backoffice_eu] - [16-May-2022 15:34:28] WARNING: [pool worker] child 12, script '/data/public/Backoffice/index.php' (request: "GET /index.php?documentId=product_abstract%3Ade%3Aen_us%3A72&index=spryker_b2c_dev_de_page") execution timed out (62.402105 sec), terminating [services] [database] - 2022-05-16 15:34:28 1011 [Warning] Aborted connection 1011 to db: 'eu-docker' user: 'spryker' host: '172.21.0.23' (Got an error reading communication packets)
I'm on master (
8d940dff2
) but my changes are the following:diff --git a/deploy.dev.yml b/deploy.dev.yml index e6263864d..7598e3b3b 100644 --- a/deploy.dev.yml +++ b/deploy.dev.yml @@ -159,6 +159,7 @@ services: protocol: tcp broker: engine: rabbitmq + version: '3.9' api: username: "spryker" password: "secret" @@ -181,6 +182,7 @@ services: protocol: tcp scheduler: engine: jenkins + version: '2.324' endpoints: scheduler.spryker.local: mail_catcher:
in docker:
diff --git a/context/elasticsearch/elasticsearch.yml b/context/elasticsearch/elasticsearch.yml index 7df294d..6f3d074 100644 --- a/context/elasticsearch/elasticsearch.yml +++ b/context/elasticsearch/elasticsearch.yml @@ -1,3 +1,6 @@ +# Bootstrap ############################## +bootstrap.system_call_filter: false + # Cluster ################################ cluster.name: "docker-cluster" cluster.routing.allocation.disk.threshold_enabled: false
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
Is this the hash from docker? Because i can not find it: https://github.com/spryker/docker-sdk/commits/master
0 -
no that was the b2c demo shop
docker isee7e4aa
but somehow the complete reset made it work for the old project directory - so now i'm leaving it be as is for the academy later π
but now redis 5 and 6 are running simultaneously, not sure that's got to do with anything though0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,052 βοΈ - Guardians (admin)
in one of my projects i had to update from ES5 to ES6 - whenever i changed to different projects i had to kill the images and containers completely to make it work. Seems like some leftovers in the background if you have version-jumps
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 68 Spryker News
- 890 Developer Corner
- 753 Spryker Development
- 83 Spryker Dev Environment
- 360 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