Hello all,

I have just upgraded drush from 4.5 to 5, and can't get rid of the following annoying error that appears both before and after every drush output:

Directory ~/.drush/cache/usage exists, but is not writable. Please check directory permissions.

It doesn't seem to prevent drush from working, but it affects performance significantly. I found something that seemed similar in this thread http://drupal.org/node/1397278, but I couldn't apply the patches that were committed there, and didn't understand what the problem was about. Does anyone know more about this? Not sure where to start looking for answers on this one.

Thanks in advance, if you need any more information please ask me!

Bruno

Comments

greg.1.anderson’s picture

Status: Active » Fixed

Maybe you ran drush as root once to download the console table?

To fix:

chown -R $USER ~/.drush

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

BParticle’s picture

I was already getting used to that error when I found your answer, very late. I did what you suggested and drush runs as it's supposed to now. Silly problem, I should have found that out myself! Thanks a lot though.

Cheers! Bruno

mattrweaver’s picture

Version: » 7.x-5.8

I am having this problem. I ran

sudo chown -R $USER ~/.drush

but it has not worked. I am running Ubuntu 12.04 LTS (desktop)

ressa’s picture

I installed Drush on an LEMP (Linux, Nginx, MySQL, PHP) server running Ubuntu 12.04, with these commands:

sudo apt-get install php-pear
sudo pear channel-discover pear.drush.org
sudo pear install drush/drush

I also had to run this to overcome permissions problems mentioned above:

sudo drush version
sudo chown -R $USER ~/.drush

After that it worked just fine.

NOTE: I believe I had to run the sudo drush version before sudo chown -R $USER ~/.drush, otherwise it wouldn't work. Perhaps some directory is created after the first Drush command you issue?

baltazarz3’s picture

Issue summary: View changes

chown -R $USER ~/.drush worked fine for me.

My error was:
>> Directory /home/baltazar/.drush/cache/download exists, but is not[error]
writable. Please check directory permissions.

while trying to run the "platform build" command.

Ubuntu 14, drush 8
Thanks guys!

bigsony’s picture

sudo chown -R $USER ~/.drush worked fine for me.

gourav.yadav’s picture

sudo chown -R $USER ~/.drush worked fine for me. Thanks!

donrichards’s picture

Same worked for me: sudo chown -R $USER ~/.drush

sunil-kumar’s picture

yes, below code is working fine.

sudo chown -R $USER ~/.drush

delacosta456’s picture

hi

Thanks chown -R $USER ~/.drush work for me too on os x el capitan