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..
I have a P&S issue. The product data in ElasticSearch is out of sync with the database. I’m tryi
I have a P&S issue. The product data in ElasticSearch is out of sync with the database. I’m trying to sync it, but something is not going well. I tried to run vendor/bin/console sync:data product_abstract <id>
, I get the following error.
I triggered events for the products I want to sync, nothing changed.
Do you have any suggestions about what can I try/check?
Comments
-
Hi Florin, Spryker already fixed this and released new plugins please remove deprecated ones
0 -
this is deprecated
\Spryker\Zed\SynchronizationExtension\Dependency\Plugin\SynchronizationDataRepositoryPluginInterface
0 -
Just to make sure I get it right, I should replace the plugins from \Pyz\Zed\Synchronization\SynchronizationDependencyProvider::getSynchronizationDataPlugins with the “bulk” ones?
0 -
usually if they are deprecated, the PHP storm can highlight them
0 -
yes, but I cannot remove them from vendor, I can only remove the plugins from the dependency provider
0 -
btw you either need sync:data or event:trigger not both together
0 -
I’m changing the plugins now.
0 -
yes you need to replace the deprecated plugin with a new plugin in dependency provider in
Pyz
0 -
and also check your
propel.log
to see which query takes the whole memory?0 -
@UK9N7MP96 we can also replace the all plugin with a bulk plugin that implements the new interface (Bulk) but the bulk plugin need also a new find method in repository that take care to filter transfer etc...
I think that we have to wait until the new bulk plugins come in core otherwise there is a lot of code to create/extend.0 -
@UL65CH0MC It’s correct, but we have ticket to replace all deprecated plugins with a ones. we only recommend
extend
approach when this is an urgent issue for you.0 -
I updated the plugins, nothing changed. FYI the product has 38 entries in spy_product_abstract_page_search .
0 -
how many abstract products do u have imported/created?
0 -
I want to sync 1 product
0 -
ok, let me understand..
do u need to publish or synchronize this product?
0 -
yes, elasticsearch is out of sync with the database
0 -
the data from the tables is right but not in elasticsearch
0 -
I triggered events for the product
0 -
tried to run sync:data command and it runs out of memory
0 -
ok, then synchronize...
did u called thequeue:worker:start
?
or do u have jenkins enabled?0 -
@UNTTWV4JK did you also check the
propel.log
?0 -
FYI the environment is multistore (20 stores with several locales), spy_product_abstract_page_search has 38 entries for this product
0 -
I don’t have propel.log on production
0 -
and exception.log?
0 -
Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in
0 -
also, this one if I try with several products
0 -
Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 12288 bytes) in /data/vendor/spryker/util-encoding/src/Spryker/Service/UtilEncoding/Model/Json.php on line 32 ErrorException - Exception: FATAL ERROR - Allowed memory size of 2147483648 bytes exhausted (tried to allocate 12288 bytes) in /data/vendor/spryker/util-encoding/src/Spryker/Service/UtilEncoding/Model/Json.php (32)
0 -
I don’t have propel.log on production
Can you enable it? or somehow reproduce it on your local machine?
0 -
yes i know the memory allocation problem..
u have maybe to purge the event queue and trigger the event only for 1 product to check if the synch for this product work as well..
It can be possible that your event is still in event queue and cannot be consumed... please check if everything is clear and start again..
I need more infos about the status of your rmq and jenkins etc.. to ensure that everything is fine and then we can test the scenario only with 1 product..
0 -
Is that a full trace?
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 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
- 70 Spryker Safari Questions
- 50 Random