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.

asked Apr 29, 2019 at 11:51
8
  • 1
    so do you get this error when running setup:upgrade Commented Apr 29, 2019 at 11:53
  • Yes. When i enable production mode. Commented Apr 29, 2019 at 11:54
  • Can you please check dev/static/sign value in core config data table Commented Apr 29, 2019 at 11:55
  • ibb.co/2t81spD Commented Apr 29, 2019 at 12:00
  • Can you please switch its value to 0 and do a check Commented 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
answered Apr 29, 2019 at 14:43

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.