I got a working Drupal installation running on a server but want to copy it to my local computer using Drush rsync and sql-sync.

The content show (even log in boxes) but there seem to be no theme running so it is play HTML and the error message:

Error message

The file could not be created.
The file could not be created.
The file could not be created.

Changing rights to 775 on sites/default/files reduced the number of "The File could not be created" to 2 (instead of 3 repeats) and going to localhost/sitename/update.php show a longer error message. But I really do not know how to proceede from here.

The error message on update.php.

The file could not be created.
The file could not be created.
Warning: opendir(sites/all/themes/molmeth): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).
Warning: opendir(sites/all/themes/zen): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).
Warning: opendir(sites/all/modules): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).
Warning: opendir(sites/all/themes/molmeth): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).
Warning: opendir(sites/all/themes/zen): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).
Warning: opendir(sites/all/themes/molmeth): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).
Warning: opendir(sites/all/themes/zen): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).
Warning: opendir(sites/all/modules): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).
Warning: opendir(sites/all/themes/molmeth): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).
Warning: opendir(sites/all/themes/zen): failed to open dir: Permission denied in file_scan_directory() (line 2118 of /var/www/mold/includes/file.inc).

Comments

VM’s picture

did you check the file/folder permissions on the themes directory and the contents within it?

Sigvard’s picture

Oh dear god, now I got a pretty good guess of what I did wrong.

I must have blanked out completely yesterday (can I blame it on not being allowed to drink coffee anymore?). Obviously the error is in the themes directory permissions and not the file.inc. That was a major brain fart and I really appreciate that you asked that question instead of ignoring me for being stupid :P.