Magento Cloud read-only file system problem with bin/magento weltpixel:css:generate
:~$ php bin/magento weltpixel:css:generate --store=all
Css generation started for store: default
The "/en_US/css/styles-l-temp.css" file can't be deleted. Warning!unlink(/en_US/css/styles-l-temp.css): Read-only file system : default
When we try to compile weltpixel css, we get this error. We have followed all of the provided instructions. Less generation works fine.
We reached out to Adobe Support and they told us that they can't symlink that css folder in pub/static so they suggested that you should fix your application instead.
Any ideas?
-
As a follow up to this. I was able to find the problem. The SKIP_SCD:false has to be in the deploy step as stated in the instructions. However, at the time of writing this, Magento Cloud has a problem that will cause your deployment to fail -- sometimes without any error message. The patch is ACSD-50165_EE_2.4.4_v1.patch. Put this into /m2-hotfixes/ and redeploy. The error will be gone and the theme will compile properly afterward. Note: By moving SKIP_SCD from the build to the deploy step, deployment time increased to 20-30 minutes! There doesn't appear to be any other way around it if you want to be able to recompile Pearl theme less/css settings on-the-fly.
Please sign in to leave a comment.
Comments
1 comment