symfony/AsseticBundle — Issue #70: Cache warmup problem
Author: ralf57
Created: 2012-02-28 09:48:00+00:00
State: open

I am having a problem with the cache warmup using the following setup:

* Symfony Standard 2.0.9
* Assetic v1.0.2
* AsseticBundle v1.0.1

The config:

```php
assetic:
debug: %kernel.debug%
use_controller: false
dump_on_warmup: false
read_from: %kernel.root_dir%/../../web
write_to: %kernel.root_dir%/../../web
filters:
lessphp:
file: %kernel.root_dir%/../../vendor/lessphp/lessc.inc.php
apply_to: "\.less$"
yui_css:
jar: "%kernel.root_dir%/../Resources/java/yuicompressor-2.4.6.jar"
apply_to: "\.css$"
yui_js:
jar: "%kernel.root_dir%/../Resources/java/yuicompressor-2.4.6.jar"
apply_to: "\.js$"
```

and the error

```php
app/main/console --env=prod cache:warmup --no-debug --verbose
Warming up the cache

[RuntimeException]
Unable to write file /home/ralf57/htdocs/liip/skv/app/main/../../web/assets/7a8f53e.css

Exception trace:
() at /home/ralf57/htdocs/liip/skv/vendor/assetic/src/Assetic/AssetWriter.php:54
Assetic\AssetWriter::write() at /home/ralf57/htdocs/liip/skv/vendor/assetic/src/Assetic/AssetWriter.php:44
Assetic\AssetWriter->writeAsset() at /home/ralf57/htdocs/liip/skv/vendor/assetic/src/Assetic/AssetWriter.php:38
Assetic\AssetWriter->writeManagerAssets() at /home/ralf57/htdocs/liip/skv/vendor/bundles/Symfony/Bundle/AsseticBundle/CacheWarmer/AssetWriterCacheWarmer.php:37
Symfony\Bundle\AsseticBundle\CacheWarmer\AssetWriterCacheWarmer->warmUp() at /home/ralf57/htdocs/liip/skv/vendor/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:47
Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /home/ralf57/htdocs/liip/skv/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php:50
Symfony\Bundle\FrameworkBundle\Command\CacheWarmupCommand->execute() at /home/ralf57/htdocs/liip/skv/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:224
Symfony\Component\Console\Command\Command->run() at /home/ralf57/htdocs/liip/skv/vendor/symfony/src/Symfony/Component/Console/Application.php:194
Symfony\Component\Console\Application->doRun() at /home/ralf57/htdocs/liip/skv/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:75
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/ralf57/htdocs/liip/skv/vendor/symfony/src/Symfony/Component/Console/Application.php:118
Symfony\Component\Console\Application->run() at /home/ralf57/htdocs/liip/skv/app/main/console:22

cache:warmup

```

/cc @dbu @lsmith77