Skip to content
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

Symfony\Component\Filesystem\Exception\IOException: Unable to write to the "/tmp/ladybug_cache" directory. #52

Open
desarrolla2 opened this issue Mar 11, 2014 · 5 comments
Labels

Comments

@desarrolla2
Copy link

I'm having this Exception.

Symfony\Component\Filesystem\Exception\IOException: Unable to write to the "/tmp/ladybug_cache" directory.

I use ladybug to depure web applications (user www) and console applications (my user), so probably need create /tmp/ladybug_cache with 777 permissions

@truongdk
Copy link

truongdk commented Aug 8, 2014

Hello desarrolla2, to solve this problem you just have to modify the file LadyBug/Application.php:

$cachePath = _DIR _.'/cache/';
$file = sprintf('%s/ladybug_cache/%s.php', $cachePath, $parametersHash);

It works for me

see http://symfony.com/doc/current/components/config/caching.html for more infos

@desarrolla2
Copy link
Author

@truongdk would you send a PR?

Regards!

@raulfraile raulfraile added the DX label Aug 20, 2014
@raulfraile
Copy link
Owner

@truongdk @desarrolla2 that creates a cache directory inside the project, it's not the intended behaviour

@Chrysweel
Copy link

I have the same problem.
I use the version ~1.0, and it is my composer.json:

"php" : ">=5.3.3",
        "symfony/symfony" : "2.3.*",
        "doctrine/orm" : "~2.2,>=2.2.3,<2.5",
        "doctrine/dbal" : "<2.5",
        "doctrine/doctrine-bundle" : "~1.2",
        "twig/extensions" : "1.0.*",
        "symfony/assetic-bundle" : "~2.3",
        "symfony/swiftmailer-bundle" : "~2.3",
        "symfony/monolog-bundle" : "~2.4",
        "sensio/distribution-bundle" : "~2.3",
        "sensio/framework-extra-bundle" : "~3.0,>=3.0.2",
        "sensio/generator-bundle" : "~2.3",
        "incenteev/composer-parameter-handler" : "~2.0",
        "raulfraile/ladybug-bundle" : "~1.0",
        "predis/predis" : "^1.0",
        "snc/redis-bundle" : "1.1.x-dev",
        "jms/translation-bundle" : "1.1.0"

    "require-dev" : {
        "behat/behat" : "2.4.*@stable",
        "behat/mink" : "1.4.*@stable",
        "behat/mink-extension" : "*",
        "behat/mink-goutte-driver" : "*",
        "behat/mink-selenium2-driver" : "*",
        "behat/symfony2-extension" : "*"
    },

@shannera
Copy link

For people that are experiencing the same problem utilizing Plesk 12.5+ and can't get it to work despite chmodding /tmp/ladybug_cache to 777 over and over again, look out for folders named like /tmp/systemd-private-....-plesk-php70-fpm-service-.... - select the one corresponding to your utilized PHP version, within them you can find another tmp/ladybug_cache, which is the actual temporary folder. Seems to be another Plesk feature...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants