Completed an installation of the 7 dev tree last night and tonight and have had the same issue both times.
The following text is displayed on the Drupal installation complete screen.
Warning: unlink(/tmp/update-cache/pathauto-7.x-1.0-alpha2.tar.gz) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-cache/token-7.x-1.0-alpha3.tar.gz) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-cache/views-7.x-3.x-dev.tar.gz) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-cache/ctools-7.x-1.0-alpha1.tar.gz) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-cache/admin_menu-7.x-3.x-dev.tar.gz) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-cache/wysiwyg-7.x-2.x-dev.tar.gz) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-cache/imageapi-7.x-1.x-dev.tar.gz) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).[... many MANY lines removed ...]
Warning: unlink(/tmp/update-extraction/google_analytics/googleanalytics.install) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-extraction/google_analytics/googleanalytics.js) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-extraction/google_analytics/googleanalytics.module) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-extraction/google_analytics/googleanalytics.test) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: unlink(/tmp/update-extraction/google_analytics/LICENSE.txt) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Warning: rmdir(/tmp/update-extraction/google_analytics) [function.rmdir]: Permission denied in drupal_rmdir() (line 2277 of /home/axisoffat/hamradio.axisoffat.com/includes/file.inc).
Was talking to the good folk in #drupal-support last night and they thought this might be worth raising as a bug. It seems strange that files placed there by drupal are not accessible to be deleted.
I should also note that when the site is live and running, each time cron.php is run similar warnings occur.
Cheers,
Nick
Comments
Comment #1
XTCHost commentedSee http://drupal.org/node/1008328
I have sorted out the problem with this by deleting the root/tmp/update-cache/ folder, as the files where found in there. I had been looking in the home/username/tmp
Interesting that it did not have this problem when installing D7 RC2
Comment #2
traceelements commentedIt's weird. I'm getting these same errors when trying to run cron. I just updated 7.0 rc-3 to 7.0 rc-4. Also, I installed rc-4, but the errors I'm getting are all for rc-3.
Warning: unlink(/tmp/update-extraction/drupal-7.0-rc3/LICENSE.txt) [function.unlink]: Permission denied in drupal_unlink() (line 2139 of /xxx/includes/file.inc).
Also, this error:
Warning: rmdir(/tmp/update-extraction/drupal-7.0-rc3/profiles) [function.rmdir]: Permission denied in drupal_rmdir() (line 2277 of /xxx/includes/file.inc).
Comment #3
traceelements commentedI changed the file path in Configuration > File System > Temporary Directory to home/MYUSERNAME/tmp and now the errors are gone.
Comment #4
droplet commentedplease check permission of your tmp folders
Comment #5
spacereactor commentedi check the server /tmp folder OWNER/GROUP is under root:root user, is it ok? or do i have to change it to www-data:www-data user?
Comment #6
David_Rothstein commentedThis is a duplicate of #1008328: Uniqueify update-cache and update-extraction directories to prevent "Permission denied" errors (the issue that was linked to above). Let's continue any discussion there.
Comment #7
Anonymous (not verified) commentedWorked for me as well. Thanks for the tip!
Had all these error messages on Drupal 7.0. Anyway, happy it's finally here, and so awesome :P
Comment #8
dibya commentedthanks.It worked for me.
Comment #9
brandonbferrell commentedD8.3.3 Here.
I had a similar issue and couldn't rebuild my cache. I changed my temporary directory to another directory, rebuilt the cache, changed it back, and rebuilding the cache works now. Just a heads up
Comment #10
avpaderno