I keep getting these nagging errors in Watchdog:

This one:
File temporary://fileCiInt9 could not be copied, because the destination directory public://prepro is not configured correctly.

Then this one:
The file permissions could not be set on public://prepro.

FYI:
In my media settings i've set them to the following settings:

Public files: sites/all/files
Temporary files: /tmp

And i'm using ubuntu 12.04. So i shouldn't be having those weird issues.

I also check the permissions of the prepro folder and they should be correct:

% ls -l sites/all/files/prepro/
total 20
-rw-rw-r-- 1 chris chris 6912 May 17 23:49 base.css
-rw-rw-r-- 1 chris chris 4129 May 17 23:49 front.css
-rw-rw-r-- 1 chris chris 512 May 17 23:49 global.css

How do i fix them? I'm running out of ideas. I've chmod 777 my /sites/all/files, /sites/all/files/prepro recursively as well and my /tmp folder. but each time i do that the error reoccurs. And if i can't get my directory permissions correct sassy doesn't work at all. It shows my website unstyled.

CommentFileSizeAuthor
#3 Untitled-1.jpg137 KBMo Omar
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

richthegeek’s picture

Project: Sassy » Prepro
Version: 7.x-3.x-dev » 7.x-0.x-dev

Odd - I'm running the stack on Ubuntu without errors... assuming you are running a default LAMP the Apache owner should we www-root. Did you create the prepro folder yourself?

Try 777'ing sites/all/files and deleting the sites/all/files/prepro folder. If that doesn't work try chown'ing the prepro folder to your WWW-user (should be www-root unless you explicitly changed it)

(moving this over to Prepro)

richthegeek’s picture

Status: Active » Closed (cannot reproduce)

No updates in a while. Unable to reproduce.

If someone else has this issue please do reopen it and let me know!

Mo Omar’s picture

FileSize
137 KB

I do have this issue and I've trying to fix it for a more than a week now. Any help is very appreciated.
Here are the details:
Any time a user uploads a profile photo I get the error. Please see the error in the attached image.
I am using 7.14 though

BiigNiick’s picture

Status: Closed (cannot reproduce) » Active

i also have this issue. i encounter it while using a feeds importer on a bluehost server. any help would be appreciated.

thanks,
- nick

ladyofthelake’s picture

Yes, I get these too. After every cron run there's at least 20 lines in Watchdog:

The file public://prepro/fresh.css was not deleted, because it does not exist.

richthegeek’s picture

@BiigNiick, Moh: this issue doesnt seem to be anything to do with Prepro, more that your filesystem is not set up to handle uploads correctly. Make sure the web user (www-data, for example) has the correct permissions for writing to the assigned directories.

@ladyofthelake, can you give me some more info on your setup? Prepro's "clear cache" mode deletes only files that it has a record of having compiled since the last cache clear, so there shouldnt be any way that it would be deleted.

YesCT’s picture

I had a similar problem (with drupal 8). If I saved my files settings page (not change any of the settings, just save it). Then I dont get the errors. #1861956: translations imported but error shows: .po could not be copied because the destination directory translations:// is not configur

richthegeek’s picture

Can you try upgrading to 1.x and see if that sorts it?

sense-design’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

erbeck’s picture

It wasn't fixed. It's just that there hasn't been a solution submitted.

I'm having the problem too. I'm pretty sure it has something to do with the path I've specified for Temporary Directory in Configuration > File system. My site is buried pretty deep in a shared server and I don't have administrative privileges over the root directory. I was able to get my sysadmin to let me change my sites/default/files directory to full 777 permissions, so I went ahead and placed my tmp folder there. Site seems to work perfectly fine, but I'm constantly getting the error messages described by other people above.

sense-design’s picture

Have you tried upgrading to current 1.x branch? The 0.x isn't supported any more

sense-design’s picture

Issue summary: View changes

update

Anonymous’s picture

RESOLVED: One solution was after upgrade ensure the specified file locations given in /admin/config/media/file-system are writable by the webserver. This is usually: /sites/default/files

csc4’s picture

Issue summary: View changes

I had this problem and for me the issue was that Locale install (7.31) didn't create the directory sites/all/translations defined at admin/config/regional/language/update

Don't know why, don't know why it wasn't an issue on the Status report page but creating that directory fixed it for me...

nofue’s picture

As it was said before, creating the directory site/all/translations solved the issue.

neorg’s picture

My SOLUTION:

Relevant in the situation:

  • Linux system
  • Apache webserver
  • Using Drush to install my modules

I already had the directory cd /sites/all/translations. But it had the wrong permission due to the fact that I install all modules with drush, so the permission was set to 775 and the owner and group to the dush-user, that's me on the Linux file system. If Drupal want's to write file's to the file system, the user www-data (that's the Apache user) needs permission the write in that directory. So change the group on /sites/all/translations to www-data .

Typ this command on the command line while your in de root of the Drupal installation.
USER@SYSTEM:chgrp www-data /sites/all/translations
This gives Apache (and Drupal) the permission to write in that directory.

yaach’s picture

Very weird issue in my case, I originally did assign 755 with www-data as owner for my /sites/default/files, and then I was getting the error. Re-assigning the same owner again (www-data) fix the issue.