cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrading Magento Version from 2.1.7 to 2.1.12

Upgrading Magento Version from 2.1.7 to 2.1.12

We are trying to upgrade Magento Version from 2.1.7 to 2.1.12. Upgrade process went well but after running static content deploy we are facing below issue. Like this many less files failed.

Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/email.less

Compilation from source:
frontend/Codazon/fastest_outdoor/en_US/css/email.less
Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Magento_Bundle/css/source/_email.less'

......

Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/email-inline.less

Compilation from source:
frontend/Codazon/fastest_outdoor/en_US/css/email-inline.less
Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Magento_Bundle/css/source/_email.less'

......................

Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/styles-l.less

Compilation from source:
frontend/Codazon/fastest_outdoor/en_US/css/styles-l.less
Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Codazon_AjaxLayeredNav/css/source/_module.less'

......

Compilation from source: /var/www/html/btf_prod/app/design/frontend/Codazon/fastest/outdoor/web/css/styles-m.less

Compilation from source:
frontend/Codazon/fastest_outdoor/en_US/css/styles-m.less
Unable to get content for 'frontend/Codazon/fastest_outdoor/en_US/Codazon_AjaxLayeredNav/css/source/_module.less'



We tried many different solutions. Here are they

1. Disabled redis and Varnish in our server and tested. Tried in our local machine also, same error.

2. Some other source suggested to change the name and place underscore before the less files. In that case they are ignored but deployment is successful as a result UI is breaking.

3. We logged all the files which are going through the static content deployment process found that _email.less is getting generated after the error, which is of no issue. How can we control the order of static content deploy.

4. Added jobs=0 to the command while running.

None of the above is helping. Please suggest if there is anything else we can try.

2 REPLIES 2

Re: Upgrading Magento Version from 2.1.7 to 2.1.12

Previously i have face the same problem but in my case was an empty CSS file is there in
 
app -> design -> frontend -> YourVerndorName > YouurThemeName -> web -> css
 
Make sure you don't have any empty files.
 
not exact solution but still just to share - this might help you 
 
if issue solved,Click Kudos & Accept as Solution

Re: Upgrading Magento Version from 2.1.7 to 2.1.12

Hi @Manthan Dave

Thanks for the suggestion but there are no empty files. We are running out of all possible options.