1

I have magento CE 2.2.2 I have a problem when i try to enable production mode.

Store give me this error:

Unable to retrieve deployment version of static files from the file system.

If i run:

php bin/magento setup:static-content:deploy -f  

I have the sample problem. But if i try to add it_IT , my default language .

php bin/magento setup:static-content:deploy -f it_IT

Works! But when i run:

php bin/magento setup:upgrade

The problem returns to the origin : Unable to retrieve deployment version of static files from the file system.

8
  • 1
    so do you get this error when running setup:upgrade Apr 29, 2019 at 11:53
  • Yes. When i enable production mode. Apr 29, 2019 at 11:54
  • Can you please check dev/static/sign value in core config data table Apr 29, 2019 at 11:55
  • ibb.co/2t81spD Apr 29, 2019 at 12:00
  • Can you please switch its value to 0 and do a check Apr 29, 2019 at 12:04

1 Answer 1

1

Please comment properly in /home/gyps2440/public_html/app/design/frontend/TemplateMonster/theme066/Magento_Cms/layout/default.xml line no 10

<!-- <referenceBlock name="privacy-policy-link"> -->

Disable the module TemplateMonster/SiteMaintenance/ as it is creating issues in removing maintenance flag. Remove the maintenance flag manually.

Run the below code to set the proper file permissions

find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + 
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + 
sudo chown -R :<web server group> . 
chmod u+x bin/magento

If you are running setup:upgrade deploy the content. So you need to deploy separately for the Italian store

php bin/magento setup:static-content:deploy it_IT

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.