I am not sure if this is core issue but it happens immediately after D7.8 installation using simplescripts or manuly installing 7.8.

I am on bluehost shared hosting, have several 7.7 installations and this error never happened before.
Started with 7.8.

So out of the box after finishing installation 7.8 i go to modules page and when i click install module i get this error:

Warning: fileowner() [function.fileowner]: stat failed for temporary://update_cFdiB3 in update_manager_local_transfers_allowed() (line 906 of /modules/update/update.manager.inc).

Just to see what happens next i install Admin menu (or any other module) and i get error:

Warning: fileowner() [function.fileowner]: stat failed for temporary://update_n09Wju in update_manager_local_transfers_allowed() (line 906 of /modules/update/update.manager.inc).
Warning: mkdir() [function.mkdir]: No such file or directory in DrupalLocalStreamWrapper->mkdir() (line 631 of /includes/stream_wrappers.inc).
Warning: file_put_contents(temporary://filerAHe2t) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1895 of /includes/file.inc).
The file could not be created.
http://ftp.drupal.org/files/projects/admin_menu-7.x-3.0-rc1.tar.gz could not be saved to temporary://update-cache-1b18bb60/admin_menu-7.x-3.0-rc1.tar.gz.
Unable to retrieve Drupal project from http://ftp.drupal.org/files/projects/admin_menu-7.x-3.0-rc1.tar.gz.
Warning: fileowner() [function.fileowner]: stat failed for temporary://update_HYbpUg in update_manager_local_transfers_allowed() (line 906 of /modules/update/update.manager.inc).

After that i try to disable Update manager and i get this:
"You must enable the Text module to install Comment".
"Would you like to continue with the above?"
After continue, error is gone, but ofcourse i cant install new modules through UI.

Comments

Everett Zufelt’s picture

Title: Drupal 7.8 errors » fileowner() errors with Update module
Version: 7.8 » 8.x-dev
Component: other » update.module
S3bastien’s picture

Got the exact same problem.
I changed the configuration via FTP - working on permissions:
705 on all folders
604 on all files
and then it worked without problem (I did log out and log in from the admin session but it should have no impact logically)
Also went to status report and ran all instructions where there were warnings.
Also had to set-up tmp file to another path (sites/tmp) but not sure if this is safe

BigBrother2010’s picture

Version: 8.x-dev » 7.8

I started this as 7.8 error, and it changed to 8.x.

juno612’s picture

Same here...

Warning: fileowner() [function.fileowner]: stat failed for temporary://update_7F4xAr in update_manager_local_transfers_allowed() (line 906 of /home2/thehigj1/public_html/test/modules/update/update.manager.inc).

drupalycious’s picture

Hello,

the same issue happened to me while making a fresh install of Drupal 7.9.
I deleted all the files/directory excepted the "sites" directory.
Everything was fine until I run an update of the modules.
Then the same error message appeared.

The solution is:
I forgot to create back again my temporary directory that I deleted with the other directories.
As soon as I created it back, and empty the caches, the error message was gone.
Be carefull the name of the directory must be the same as the one you defined in the configuration page admin/config/media/file-system. If this directory doesn't exist you have to create it.

I hope this helps.

VM’s picture

Version: 7.8 » 8.x-dev

The issue was moved to 8.x because that is where fixes go. Those fixes are then backported to 7.x so that they can be rolled into a release.

knalstaaf’s picture

Got it solved by changing the Temporary directory to /tmp (admin/config/media/file-system).

stGeorge-1’s picture

/tmp folder was not my problem but I was able to get around it by simply uploading straight onto server, but not really a solution :(

femrich’s picture

I am also experiencing this having upgraded from 7.10 to 7.12. The tmp folder seems correct: it is set in my drupal installation pointing to the home directory as tmp; that folder exists on my server and has permissions set at 0775. (http://drupal.org/node/1284886#comment-5197312)

In my drupal installation, folder permissions are set at 755 and files at 644.

What to try next?

femrich’s picture

Hmmm... clearing cached seems to make the error disappear, I hope for good...

hmartens’s picture

Status: Active » Fixed

sp-drupy...You did it!!!

Thanks for helping me...the problem layed in the Media>Temporary Directory path...once I set that correctly it worked perfect...so much for using templates that you purchase :)

Thanks again for the help!!!

Status: Fixed » Closed (fixed)

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

fultonchain’s picture

#5, thanks. Simple, but not as obvious as you'd think deep in development.

ccbearyeh’s picture

Thanks a lot for informaiton, I changed includes/file.inc

// If no directory has been found default to 'files/tmp'.
      $temporary_directory = variable_get('file_public_path', conf_path() . '/files') . '/tmp';

to

// If no directory has been found default to 'files/tmp'.
      $temporary_directory = variable_get('file_public_path', conf_path() . '/files') . '/tempdir';

and every thing going good.

bam4ir’s picture

I've Drupal 7.23. when I use it for install new theme or modules I have an alert upper the pages with below details:
"
Warning: fileowner() has been disabled for security reasons in update_manager_local_transfers_allowed() (line 932 of /home/***/public_html/em/modules/update/update.manager.inc).
Warning: fileowner() has been disabled for security reasons in update_manager_local_transfers_allowed() (line 932 of /home/***/public_html/em/modules/update/update.manager.inc).
"
I read website to find solution but its not possible. please help me to solve it.
Good luck.

dmdservice’s picture

#5. This issue ended up being a tmp dir path issue after a host migration.

ashuaviator1987’s picture

just reset the tmp folder in media->filesystem.
By default it is \tmp chnage it to tmp and a new folder 'tmp' will be created in domain dir ..
and error will be gone

jjkktr’s picture

@knalstaaf Suggestion helped me. Just chnaged the temp directory 'tmp' instead local path.

hondaman900’s picture

Yup! Thank you guys! Putting a /tmp directory in my WAMP Drupal site root did the trick.

ricardobabe’s picture

Thanks It worked for me. Always don't forget to reset your filesystem after moving your website

hpadia’s picture

I was facing the same issue. I'd moved my code to another machine and the path of temp was referring to location of old machine on another drive i.e. E and new machine had XAMPP installed on D: drive.

Changing path of Temporary directory at (admin/config/media/file-system) solved the issue.

alula.k’s picture

Same issue here. Except it appears when I try to go to the extend module menu. I can't install any modules because of it