8000 Problems with cache clear · Issue #10942 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Problems with cache clear #10942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
desarrolla2 opened this issue May 19, 2014 · 8 comments
Closed

Problems with cache clear #10942

desarrolla2 opened this issue May 19, 2014 · 8 comments

Comments

@desarrolla2
Copy link
Contributor

Hi for all.

I just updated my symfony dependencies, since them i can not clear cache with symfony command.

php app/console cache:clear --env=dev

I'm getting next error:

  [Symfony\Component\Filesystem\Exception\IOException]                             
  Cannot rename "/home/dgonzalez/Projects/lapera/app/cache/prod/." to "/home/dgon  
  zalez/Projects/lapera/app/cache/prod/._old".  

I'm getting the same error in several projects so i think that maybe can be a bug.

Regards!

@stof
Copy link
Member
stof commented May 19, 2014

@fabpot it looks like your changes making the paths relatives broke the cache warmup

@Sander-Toonen
Copy link
Contributor

I get the same error after upgrading from v2.4.4 to the current dev-master. Here is the backtrace:

$ console cache:clear --env=dev -vvv
[2014-05-19 19:01:57] event.DEBUG: Notified event "console.command" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onCommand". [] []
Clearing the cache for the dev environment with debug true
  Clearing outdated warmup directory
  Warming up cache

  [Symfony\Component\Filesystem\Exception\IOException]                                                 
  Cannot rename "/srv/www/artikelbank/app/cache/dev/." to "/srv/www/artikelbank/app/cache/dev/._old".  

Exception trace:
 () at /srv/www/artikelbank/vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php:256
 Symfony\Component\Filesystem\Filesystem->rename() at /srv/www/artikelbank/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:92
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() at /srv/www/artikelbank/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at /srv/www/artikelbank/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:894
 Symfony\Component\Console\Applic
8000
ation->doRunCommand() at /srv/www/artikelbank/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:193
 Symfony\Component\Console\Application->doRun() at /srv/www/artikelbank/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /srv/www/artikelbank/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:124
 Symfony\Component\Console\Application->run() at /srv/www/artikelbank/app/console:27

cache:clear [--no-warmup] [--no-optional-warmers]

@fabpot
Copy link
Member
fabpot commented May 19, 2014

This one should have been fixed thanks to #10937, can you confirm?

@inssein
Copy link
inssein commented May 20, 2014

I am having the same issue, and was about to test out @fabpot's changes, but "composer update" isn't getting the me the latest changes. I even tried "composer update symfony/symfony".

My composer file was referencing "2.5.x-dev", but I even tried "dev-master" and no luck. For some reason, I am stuck at ref#492f7a38c7a70b8006e2e1cedb3100792ab20276.

Anybody have an idea on what could be wrong? Sorry not trying to derail this bug, just want to confirm it.

Edit: Apparently this is a composer bug (composer/composer#563). I just ended up requesting "dev-master#b2855a55dd0428a22f799a4298a57599e209cfd4" for now and I can confirm this issue is fixed.

@fabpot
Copy link
Member
fabpot commented May 20, 2014

So, Packagist was not up to date (for whatever reason). Now, we need to wait for the Packagist cache to be in sync.

@peshi
Copy link
peshi commented May 20, 2014

I can confirm that this is working for me now.

@jakzal
Copy link
Contributor
jakzal commented Jun 1, 2014

@peshi @desarrolla2 new Symfony versions were tagged. This issue should go away. Can you confirm it works with latest stable for you?

@peshi
Copy link
peshi commented Jun 1, 2014

@jakzal The issue for me was what fabpot wrote above, packagist wasn't up to date. As soon as it was updated I had a working copy as of May 20th. Thanks for the follow up!

@fabpot fabpot closed this as completed Jun 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3B29
Development

No branches or pull requests

7 participants
0