title: An error occurred when executing the "'cache:clear --no-warmup'"
body: <p>Capifony cap deploy fails when clearing cache.</p>
  
  <p>These are the logs.</p>
  
  <p>I have tried many things such as doing app/console cache:clear on server and local.</p>
  
  <p>Could you help me?</p>
  
  <pre><code>$ cap staging deploy
  --&gt; Updating code base with remote_cache strategy
  --&gt; Creating cache directory................................✔
  --&gt; Creating symlinks for shared directories................✔
  --&gt; Creating symlinks for shared files......................✔
  --&gt; Normalizing asset timestamps............................✔
  --&gt; Updating Composer.......................................✔
  --&gt; Installing Composer dependencies........................✘
  *** [err :: somsom.jp] [RuntimeException]
  *** [err :: somsom.jp] An error occurred when executing the "'cache:clear --no-warmup'" command.
  *** [err :: somsom.jp] 
  *** [err :: somsom.jp] Exception trace:
  *** [err :: somsom.jp] () at /var/www/html/somsom.jp/shared/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:182
  *** [err :: somsom.jp] Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeCommand() at /var/www/html/somsom.jp/shared/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:62
  *** [err :: somsom.jp] Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:165
  *** [err :: somsom.jp] Composer\EventDispatcher\EventDispatcher-&gt;executeEventPhpScript() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:138
  *** [err :: somsom.jp] Composer\EventDispatcher\EventDispatcher-&gt;doDispatch() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:107
  *** [err :: somsom.jp] Composer\EventDispatcher\EventDispatcher-&gt;dispatchCommandEvent() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/src/Composer/Installer.php:288
  *** [err :: somsom.jp] Composer\Installer-&gt;run() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/src/Composer/Command/InstallCommand.php:110
  *** [err :: somsom.jp] Composer\Command\InstallCommand-&gt;execute() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:244
  *** [err :: somsom.jp] Symfony\Component\Console\Command\Command-&gt;run() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:897
  *** [err :: somsom.jp] Symfony\Component\Console\Application-&gt;doRunCommand() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:191
  *** [err :: somsom.jp] Symfony\Component\Console\Application-&gt;doRun() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/src/Composer/Console/Application.php:117
  *** [err :: somsom.jp] Composer\Console\Application-&gt;doRun() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
  *** [err :: somsom.jp] Symfony\Component\Console\Application-&gt;run() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/src/Composer/Console/Application.php:83
  *** [err :: somsom.jp] Composer\Console\Application-&gt;run() at phar:///var/www/html/somsom.jp/releases/20131223074835/composer.phar/bin/composer:43
  *** [err :: somsom.jp] require() at /var/www/html/somsom.jp/releases/20131223074835/composer.phar:15
  *** [err :: somsom.jp] 
  *** [err :: somsom.jp] 
  *** [err :: somsom.jp] install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]
  *** [err :: somsom.jp] 
  *** [err :: somsom.jp] 
  *** [deploy:update_code] rolling back
  failed: "TERM=dumb sudo -u app /bin/sh -c 'sh -c '\\''cd /var/www/html/somsom.jp/releases/20131223074835 &amp;&amp; php composer.phar install --no-dev --verbose --prefer-dist --optimize-autoloader --no-progress'\\'''" on somsom.jp
  </code></pre>
  
  <p>with  logger.level = Logger::MAX_LEVEL</p>
  
  <pre><code>--&gt; Installing Composer dependencies
    * executing "sh -c 'cd /var/www/html/somsom.jp/releases/20131223135618 &amp;&amp; php composer.phar install --no-dev --verbose --prefer-dist --optimize-autoloader --no-progress'"
      servers: ["somsom.jp"]
      [somsom.jp] executing command
   ** [out :: somsom.jp] Loading composer repositories with package information
   ** [out :: somsom.jp] Installing dependencies from lock file
   ** [out :: somsom.jp] Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
   ** [out :: somsom.jp] Nothing to install or update
   ** [out :: somsom.jp] Generating autoload files
   ** [out :: somsom.jp] [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]
   ** [out :: somsom.jp] You have requested a non-existent parameter "locale".
   ** [out :: somsom.jp] Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
  *** [err :: somsom.jp] [RuntimeException]
  *** [err :: somsom.jp] An error occurred when executing the "'cache:clear --no-warmup'" command.
  *** [err :: somsom.jp] 
  *** [err :: somsom.jp] Exception trace:
  *** [err :: somsom.jp] () at /var/www/html/somsom.jp/shared/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:182
  *** [err :: somsom.jp] Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::executeCommand() at /var/www/html/somsom.jp/shared/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Composer/ScriptHandler.php:62
  *** [err :: somsom.jp] Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:165
  *** [err :: somsom.jp] Composer\EventDispatcher\EventDispatcher-&gt;executeEventPhpScript() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:138
  *** [err :: somsom.jp] Composer\EventDispatcher\EventDispatcher-&gt;doDispatch() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:107
  *** [err :: somsom.jp] Composer\EventDispatcher\EventDispatcher-&gt;dispatchCommandEvent() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/src/Composer/Installer.php:288
  *** [err :: somsom.jp] Composer\Installer-&gt;run() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/src/Composer/Command/InstallCommand.php:110
  *** [err :: somsom.jp] Composer\Command\InstallCommand-&gt;execute() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:244
  *** [err :: somsom.jp] Symfony\Component\Console\Command\Command-&gt;run() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:897
  *** [err :: somsom.jp] Symfony\Component\Console\Application-&gt;doRunCommand() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:191
  *** [err :: somsom.jp] Symfony\Component\Console\Application-&gt;doRun() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/src/Composer/Console/Application.php:117
  *** [err :: somsom.jp] Composer\Console\Application-&gt;doRun() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
  *** [err :: somsom.jp] Symfony\Component\Console\Application-&gt;run() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/src/Composer/Console/Application.php:83
  *** [err :: somsom.jp] Composer\Console\Application-&gt;run() at phar:///var/www/html/somsom.jp/releases/20131223135618/composer.phar/bin/composer:43
  *** [err :: somsom.jp] require() at /var/www/html/somsom.jp/releases/20131223135618/composer.phar:15
  *** [err :: somsom.jp] 
  *** [err :: somsom.jp] 
  *** [err :: somsom.jp] install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]
  *** [err :: somsom.jp] 
  *** [err :: somsom.jp] 
      command finished in 3638ms
  *** [deploy:update_code] rolling back
    * executing "rm -rf /var/www/html/somsom.jp/releases/20131223135618; true"
      servers: ["somsom.jp"]
      [somsom.jp] executing command
      command finished in 152ms
  failed: "TERM=dumb sudo -u app /bin/sh -c 'sh -c '\\''cd /var/www/html/somsom.jp/releases/20131223135618 &amp;&amp; php composer.phar install --no-dev --verbose --prefer-dist --optimize-autoloader --no-progress'\\'''" on somsom.jp
  </code></pre>
  
  <p>It says that 'You have requested a non-existent parameter "locale"'</p>
  
  <p>in my config.yml. it require %locale%</p>
  
  <pre><code>imports:
      - { resource: parameters.yml }
      - { resource: security.yml }
      - { resource: "@AcmeAdminBundle/Resources/config/admin.yml"}
  
  
  framework:
      translator:      { fallback: %locale% }
  </code></pre>
  
  <p>and in parameters.yml. there is locale value.</p>
  
  <pre><code>parameters:    
      locale: ja
  </code></pre>
  
  <p>And it works correctly in local environment.</p>
  
  <p>What is change on server?</p>