Magento Asked by Yorkshire Bear on November 30, 2021
We’re trying to do a deployment of M2 open source 2.3.5-p1 using the Webgriffe M2 recipe for Deployer. Whilst running:
bin/magento setup:static-content:deploy en_GB en_US
We’re getting:
In PluginList.php line 182:
Plugin class TemandoShippingPluginViewMinificationPlugin doesn't exist
So it looks as though PluginList.php sees this as being an active plugin, but the class hasn’t been defined.
Looking at the Composer files, it looks as though temando/module-shipping
now requires temando/module-shipping-remover
, so it’s trying to remove this module, but it’s still required for generating the static content. We’re deploying in production mode.
Does anyone know the cause of this problem and how to fix?
Knowns:
For the deployment to complain about that file, it seems like it must be reading from the previous release's cache. Or if Redis is being used, the cache is being shared between the current release and the one in progress.
Possible Culprits:
Will add more as I find out...
Successfully just deployed and got around this issue. For me it was Redis cache from the previous deployment interfering with the one in progress. What I ended up doing to get around it:
Manually ssh'd into the production server to enable maintenance mode:
Why?
php bin/magento maintenance:enable
Temporarily commented out Magento cron's
Why?
crontab -e
// comment out crons in editor and save
Why?
Your port numbers may be different
redis-cli -h redis -p 6381 flushall;
redis-cli -h redis -p 6382 flushall;
Our codebase gets synced out to a cluster, so I had to make sure all nodes on the cluster were not serving Magento at all
die
statement at beginning of pub/index.php
This was a key part that kept making my deployment fail even after flushing redis.
redis-cli -h redis -p 6381 KEYS '*'
Should show that there is an empty set/list
Run the deployment
Don't want to forget to re-enable the crons
crontab -e
// uncomment out crons in editor and save
Answered by sdaugherty on November 30, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP