cancel
Showing results for 
Search instead for 
Did you mean: 

static:deploy not compiling css files

static:deploy not compiling css files

I have ran a command

$ php -dmemory_limit=5G bin/magento setup:static-content:deploy en_GB -f

 

but it's getting errors and not compiling less files. All the css files are missing in pub/static folder.

Do you have any suggestions to fix this error? It's been a long time so I might have to re install magento2.

 

 

Deploy using quick strategy
adminhtml/Magento/backend/en_GB 0/2055 >--------------------------- 0% % < 1 sec
?[1A?[2Kadminhtml/Magento/backend/en_GB 38/2055 >--------------------------- 1% % 1 sec
?[1A?[2Kadminhtml/Magento/backend/en_GB 214/2055 ==>------------------------- 10% % 2 secs
?[1A?[2Kadminhtml/Magento/backend/en_GB 406/2055 =====>---------------------- 19% % 3 secs
?[1A?[2Kadminhtml/Magento/backend/en_GB 600/2055 ========>------------------- 29% % 4 secs
?[1A?[2Kadminhtml/Magento/backend/en_GB 711/2055 =========>------------------ 34% % 5 secs
#0 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Filesystem\Directory\Write.php(155): Magento\Framework\Filesystem\Driver\File->symlink('C:/wa
mp64/www/m...', 'C:/wamp64/www/m...', Object(Magento\Framework\Filesystem\Driver\File))
#1 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink.php(30): Magento\Framework\Filesystem\Director
y\Write->createSymlink('_variables.less', 'adminhtml/Magen...', Object(Magento\Framework\Filesystem\Directory\Write))
#2 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\Publisher.php(78): Magento\Framework\App\View\Asset\MaterializationStrategy\Sy
mlink->publishFile(Object(Magento\Framework\Filesystem\Directory\Write), Object(Magento\Framework\Filesystem\Directory\Write), '_variables.less', 'adm
inhtml/Magen...')
#3 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\Publisher.php(61): Magento\Framework\App\View\Asset\Publisher->publishAsset(Ob
ject(Magento\Framework\View\Asset\File))
#4 C:\wamp64\www\magento2\app\code\Magento\Developer\Model\Css\PreProcessor\FileGenerator\PublicationDecorator.php(76): Magento\Framework\App\View\Ass
et\Publisher->publish(Object(Magento\Framework\View\Asset\File))
#5 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Css\PreProcessor\FileGenerator\RelatedGenerator.php(55): Magento\Developer\Model\Css\PreProce
ssor\FileGenerator\PublicationDecorator->generateRelatedFile('module/_variabl...', Object(Magento\Framework\View\Asset\File))
#6 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Css\PreProcessor\Instruction\Import.php(71): Magento\Framework\Css\PreProcessor\FileGenerator
\RelatedGenerator->generate(Object(Magento\Framework\Css\PreProcessor\Instruction\Import))
#7 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\PreProcessor\Pool.php(77): Magento\Framework\Css\PreProcessor\Instruction\Import->
process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#8 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(152): Magento\Framework\View\Asset\PreProcessor\Pool->process(Object(Ma
gento\Framework\View\Asset\PreProcessor\Chain))
#9 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(121): Magento\Framework\View\Asset\Source->preProcess(Object(Magento\Fr
amework\View\Asset\File))
#10 C:\wamp64\www\magento2\app\code\Magento\Developer\Model\View\Asset\PreProcessor\FrontendCompilation.php(119): Magento\Framework\View\Asset\Source-
>getContent(Object(Magento\Framework\View\Asset\File))
#11 C:\wamp64\www\magento2\app\code\Magento\Developer\Model\View\Asset\PreProcessor\FrontendCompilation.php(90): Magento\Developer\Model\View\Asset\Pr
eProcessor\FrontendCompilation->processContent('mage/gallery/ga...', '', '', Object(Magento\Framework\View\Asset\File\FallbackContext))
#12 C:\wamp64\www\magento2\app\code\Magento\Developer\Model\View\Asset\PreProcessor\PreprocessorStrategy.php(74): Magento\Developer\Model\View\Asset\P
reProcessor\FrontendCompilation->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#13 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\PreProcessor\Pool.php(77): Magento\Developer\Model\View\Asset\PreProcessor\Prepro
cessorStrategy->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#14 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(152): Magento\Framework\View\Asset\PreProcessor\Pool->process(Object(M
agento\Framework\View\Asset\PreProcessor\Chain))
#15 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(105): Magento\Framework\View\Asset\Source->preProcess(Object(Magento\F
ramework\View\Asset\File))
#16 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\File.php(157): Magento\Framework\View\Asset\Source->getFile(Object(Magento\Framew
ork\View\Asset\File))
#17 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\Publisher.php(73): Magento\Framework\View\Asset\File->getSourceFile()
#18 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\Publisher.php(61): Magento\Framework\App\View\Asset\Publisher->publishAsset(O
bject(Magento\Framework\View\Asset\File))
#19 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployStaticFile.php(89): Magento\Framework\App\View\Asset\Publisher->publish(Object(Magent
o\Framework\View\Asset\File))
#20 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployPackage.php(189): Magento\Deploy\Service\DeployStaticFile->deployFile('mage/gallery/g
a...', Array)
#21 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployPackage.php(136): Magento\Deploy\Service\DeployPackage->processFile(Object(Magento\De
ploy\Package\PackageFile), Object(Magento\Deploy\Package\Package))
#22 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployPackage.php(107): Magento\Deploy\Service\DeployPackage->deployEmulated(Object(Magento
\Deploy\Package\Package), Array, false)
#23 [internal function]: Magento\Deploy\Service\DeployPackage->Magento\Deploy\Service\{closure}()
#24 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\State.php(186): call_user_func_array(Object(Closure), Array)
#25 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployPackage.php(108): Magento\Framework\App\State->emulateAreaCode('adminhtml', Object(Cl
osure))
#26 C:\wamp64\www\magento2\app\code\Magento\Deploy\Process\Queue.php(300): Magento\Deploy\Service\DeployPackage->deploy(Object(Magento\Deploy\Package\
Package), Array)
#27 C:\wamp64\www\magento2\app\code\Magento\Deploy\Process\Queue.php(219): Magento\Deploy\Process\Queue->execute(Object(Magento\Deploy\Package\Package
))
#28 C:\wamp64\www\magento2\app\code\Magento\Deploy\Process\Queue.php(162): Magento\Deploy\Process\Queue->assertAndExecute('adminhtml/Magen...', Array,
Array)
#29 C:\wamp64\www\magento2\app\code\Magento\Deploy\Strategy\QuickDeploy.php(76): Magento\Deploy\Process\Queue->process()
#30 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployStaticContent.php(109): Magento\Deploy\Strategy\QuickDeploy->deploy(Array)
#31 C:\wamp64\www\magento2\setup\src\Magento\Setup\Console\Command\DeployStaticContentCommand.php(140): Magento\Deploy\Service\DeployStaticContent->de
ploy(Array)
#32 C:\wamp64\www\magento2\vendor\symfony\console\Command\Command.php(241): Magento\Setup\Console\Command\DeployStaticContentCommand->execute(Object(S
ymfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#33 C:\wamp64\www\magento2\vendor\symfony\console\Application.php(843): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Consol
e\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#34 C:\wamp64\www\magento2\vendor\symfony\console\Application.php(193): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Conso
le\Command\DeployStaticContentCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#35 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Console\Cli.php(104): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\
Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36 C:\wamp64\www\magento2\vendor\symfony\console\Application.php(117): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\Ar
gvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 C:\wamp64\www\magento2\bin\magento(23): Symfony\Component\Console\Application->run()
#38 {main}
?[1A?[2Kadminhtml/Magento/backend/en_GB 849/2055 ===========>---------------- 41% % 6 secs
?[1A?[2Kadminhtml/Magento/backend/en_GB 1023/2055 =============>-------------- 49% % 7 secs
?[1A?[2Kadminhtml/Magento/backend/en_GB 1203/2055 ================>----------- 58% % 8 secs
?[1A?[2Kadminhtml/Magento/backend/en_GB 1397/2055 ===================>-------- 67% % 9 secs
?[1A?[2Kadminhtml/Magento/backend/en_GB 1588/2055 =====================>------ 77% % 10 secs
?[1A?[2Kadminhtml/Magento/backend/en_GB 1783/2055 ========================>--- 86% % 11 secs
#0 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Filesystem\Directory\Write.php(155): Magento\Framework\Filesystem\Driver\File->symlink('C:/wa
mp64/www/m...', 'C:/wamp64/www/m...', Object(Magento\Framework\Filesystem\Driver\File))
#1 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink.php(30): Magento\Framework\Filesystem\Director
y\Write->createSymlink('_actions-toolba...', 'adminhtml/Magen...', Object(Magento\Framework\Filesystem\Directory\Write))
#2 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\Publisher.php(78): Magento\Framework\App\View\Asset\MaterializationStrategy\Sy
mlink->publishFile(Object(Magento\Framework\Filesystem\Directory\Write), Object(Magento\Framework\Filesystem\Directory\Write), '_actions-toolba...', '
adminhtml/Magen...')
#3 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\Publisher.php(61): Magento\Framework\App\View\Asset\Publisher->publishAsset(Ob
ject(Magento\Framework\View\Asset\File))
#4 C:\wamp64\www\magento2\app\code\Magento\Developer\Model\Css\PreProcessor\FileGenerator\PublicationDecorator.php(76): Magento\Framework\App\View\Ass
et\Publisher->publish(Object(Magento\Framework\View\Asset\File))
#5 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Css\PreProcessor\FileGenerator\RelatedGenerator.php(55): Magento\Developer\Model\Css\PreProce
ssor\FileGenerator\PublicationDecorator->generateRelatedFile('_actions-toolba...', Object(Magento\Framework\View\Asset\File))
#6 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Css\PreProcessor\Instruction\Import.php(71): Magento\Framework\Css\PreProcessor\FileGenerator
\RelatedGenerator->generate(Object(Magento\Framework\Css\PreProcessor\Instruction\Import))
#7 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\PreProcessor\Pool.php(77): Magento\Framework\Css\PreProcessor\Instruction\Import->
process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#8 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(152): Magento\Framework\View\Asset\PreProcessor\Pool->process(Object(Ma
gento\Framework\View\Asset\PreProcessor\Chain))
#9 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(121): Magento\Framework\View\Asset\Source->preProcess(Object(Magento\Fr
amework\View\Asset\File))
#10 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\File.php(184): Magento\Framework\View\Asset\Source->getContent(Object(Magento\Fra
mework\View\Asset\File))
#11 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Css\PreProcessor\FileGenerator\RelatedGenerator.php(70): Magento\Framework\View\Asset\File->
getContent()
#12 C:\wamp64\www\magento2\app\code\Magento\Developer\Model\Css\PreProcessor\FileGenerator\PublicationDecorator.php(70): Magento\Framework\Css\PreProc
essor\FileGenerator\RelatedGenerator->generateRelatedFile('source/lib/_lib...', Object(Magento\Framework\View\Asset\File))
#13 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Css\PreProcessor\FileGenerator\RelatedGenerator.php(55): Magento\Developer\Model\Css\PreProc
essor\FileGenerator\PublicationDecorator->generateRelatedFile('source/lib/_lib...', Object(Magento\Framework\View\Asset\File))
#14 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Css\PreProcessor\Instruction\Import.php(71): Magento\Framework\Css\PreProcessor\FileGenerato
r\RelatedGenerator->generate(Object(Magento\Framework\Css\PreProcessor\Instruction\Import))
#15 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\PreProcessor\Pool.php(77): Magento\Framework\Css\PreProcessor\Instruction\Import-
>process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#16 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(152): Magento\Framework\View\Asset\PreProcessor\Pool->process(Object(M
agento\Framework\View\Asset\PreProcessor\Chain))
#17 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(121): Magento\Framework\View\Asset\Source->preProcess(Object(Magento\F
ramework\View\Asset\File))
#18 C:\wamp64\www\magento2\app\code\Magento\Developer\Model\View\Asset\PreProcessor\FrontendCompilation.php(119): Magento\Framework\View\Asset\Source-
>getContent(Object(Magento\Framework\View\Asset\File))
#19 C:\wamp64\www\magento2\app\code\Magento\Developer\Model\View\Asset\PreProcessor\FrontendCompilation.php(90): Magento\Developer\Model\View\Asset\Pr
eProcessor\FrontendCompilation->processContent('css/styles-old....', '', '', Object(Magento\Framework\View\Asset\File\FallbackContext))
#20 C:\wamp64\www\magento2\app\code\Magento\Developer\Model\View\Asset\PreProcessor\PreprocessorStrategy.php(74): Magento\Developer\Model\View\Asset\P
reProcessor\FrontendCompilation->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#21 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\PreProcessor\Pool.php(77): Magento\Developer\Model\View\Asset\PreProcessor\Prepro
cessorStrategy->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#22 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(152): Magento\Framework\View\Asset\PreProcessor\Pool->process(Object(M
agento\Framework\View\Asset\PreProcessor\Chain))
#23 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\Source.php(105): Magento\Framework\View\Asset\Source->preProcess(Object(Magento\F
ramework\View\Asset\File))
#24 C:\wamp64\www\magento2\lib\internal\Magento\Framework\View\Asset\File.php(157): Magento\Framework\View\Asset\Source->getFile(Object(Magento\Framew
ork\View\Asset\File))
#25 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\Publisher.php(73): Magento\Framework\View\Asset\File->getSourceFile()
#26 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\View\Asset\Publisher.php(61): Magento\Framework\App\View\Asset\Publisher->publishAsset(O
bject(Magento\Framework\View\Asset\File))
#27 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployStaticFile.php(89): Magento\Framework\App\View\Asset\Publisher->publish(Object(Magent
o\Framework\View\Asset\File))
#28 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployPackage.php(189): Magento\Deploy\Service\DeployStaticFile->deployFile('css/styles-old
....', Array)
#29 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployPackage.php(136): Magento\Deploy\Service\DeployPackage->processFile(Object(Magento\De
ploy\Package\PackageFile), Object(Magento\Deploy\Package\Package))
#30 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployPackage.php(107): Magento\Deploy\Service\DeployPackage->deployEmulated(Object(Magento
\Deploy\Package\Package), Array, false)
#31 [internal function]: Magento\Deploy\Service\DeployPackage->Magento\Deploy\Service\{closure}()
#32 C:\wamp64\www\magento2\lib\internal\Magento\Framework\App\State.php(186): call_user_func_array(Object(Closure), Array)
#33 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployPackage.php(108): Magento\Framework\App\State->emulateAreaCode('adminhtml', Object(Cl
osure))
#34 C:\wamp64\www\magento2\app\code\Magento\Deploy\Process\Queue.php(300): Magento\Deploy\Service\DeployPackage->deploy(Object(Magento\Deploy\Package\
Package), Array)
#35 C:\wamp64\www\magento2\app\code\Magento\Deploy\Process\Queue.php(219): Magento\Deploy\Process\Queue->execute(Object(Magento\Deploy\Package\Package
))
#36 C:\wamp64\www\magento2\app\code\Magento\Deploy\Process\Queue.php(162): Magento\Deploy\Process\Queue->assertAndExecute('adminhtml/Magen...', Array,
Array)
#37 C:\wamp64\www\magento2\app\code\Magento\Deploy\Strategy\QuickDeploy.php(76): Magento\Deploy\Process\Queue->process()
#38 C:\wamp64\www\magento2\app\code\Magento\Deploy\Service\DeployStaticContent.php(109): Magento\Deploy\Strategy\QuickDeploy->deploy(Array)
#39 C:\wamp64\www\magento2\setup\src\Magento\Setup\Console\Command\DeployStaticContentCommand.php(140): Magento\Deploy\Service\DeployStaticContent->de
ploy(Array)
#40 C:\wamp64\www\magento2\vendor\symfony\console\Command\Command.php(241): Magento\Setup\Console\Command\DeployStaticContentCommand->execute(Object(S
ymfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#41 C:\wamp64\www\magento2\vendor\symfony\console\Application.php(843): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Consol
e\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#42 C:\wamp64\www\magento2\vendor\symfony\console\Application.php(193): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Conso
le\Command\DeployStaticContentCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#43 C:\wamp64\www\magento2\lib\internal\Magento\Framework\Console\Cli.php(104): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\
Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#44 C:\wamp64\www\magento2\vendor\symfony\console\Application.php(117): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\Ar
gvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#45 C:\wamp64\www\magento2\bin\magento(23): Symfony\Component\Console\Application->run()


[Magento\Framework\Exception\FileSystemException]
Cannot read contents from file "C:/wamp64/www/magento2/pub/static/adminhtml/Magento/backend/en_GB/mage/gallery/gallery.css" Warning!file_get_cont
ents(C:/wamp64/www/magento2/pub/static/adminhtml/Magento/backend/en_GB/mage/gallery/gallery.css): failed to open stream: No such file or director
y

 

I have tried deleting var/cache files, cache:clean, cache:flush, changing folder permissions. None of them fixed the problem. 

1 REPLY

Re: static:deploy not compiling css files

Hi @tvgarden

 

I understand the issue which you are facing !

 

Refer this link - https://magento.stackexchange.com/questions/64802/magento-2-404-error-for-scripts-and-css

 

It might have same issue , which you are facing still i am not sure , so just suggesting you to go with the above link and try the solution which mention over there 

 

Then check it might works 

if issue solved,Click Kudos & Accept as Solution