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

XTCHost’s picture

See 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

traceelements’s picture

Version: 7.x-dev » 7.0-rc4

It'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).

traceelements’s picture

I changed the file path in Configuration > File System > Temporary Directory to home/MYUSERNAME/tmp and now the errors are gone.

droplet’s picture

Status: Active » Postponed (maintainer needs more info)

please check permission of your tmp folders

spacereactor’s picture

i 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?

David_Rothstein’s picture

Component: install system » update.module
Status: Postponed (maintainer needs more info) » Closed (duplicate)

This 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.

Anonymous’s picture

Worked 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

dibya’s picture

thanks.It worked for me.

brandonbferrell’s picture

D8.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

avpaderno’s picture

Version: 7.0-rc4 » 7.x-dev
Issue tags: -function.unlink, -file permissions