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
Comment #1
greg.1.anderson CreditAttribution: greg.1.anderson commentedMaybe you ran drush as root once to download the console table?
To fix:
chown -R $USER ~/.drush
Comment #3
BParticle CreditAttribution: BParticle commentedI 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
Comment #4
mattrweaver CreditAttribution: mattrweaver commentedI am having this problem. I ran
but it has not worked. I am running Ubuntu 12.04 LTS (desktop)
Comment #5
ressa CreditAttribution: ressa commentedI installed Drush on an LEMP (Linux, Nginx, MySQL, PHP) server running Ubuntu 12.04, with these commands:
I also had to run this to overcome permissions problems mentioned above:
After that it worked just fine.
NOTE: I believe I had to run the
sudo drush version
beforesudo chown -R $USER ~/.drush
, otherwise it wouldn't work. Perhaps some directory is created after the first Drush command you issue?Comment #6
baltazarz3 CreditAttribution: baltazarz3 commentedchown -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!
Comment #7
bigsony CreditAttribution: bigsony as a volunteer and commentedsudo chown -R $USER ~/.drush
worked fine for me.Comment #8
gourav.yadav CreditAttribution: gourav.yadav commentedsudo chown -R $USER ~/.drush worked fine for me. Thanks!
Comment #9
donrichards CreditAttribution: donrichards commentedSame worked for me:
sudo chown -R $USER ~/.drush
Comment #10
sunil-kumar CreditAttribution: sunil-kumar as a volunteer and commentedyes, below code is working fine.
sudo chown -R $USER ~/.drush
Comment #11
delacosta456 CreditAttribution: delacosta456 commentedhi
Thanks chown -R $USER ~/.drush work for me too on os x el capitan