Download & Extend

error message about renaming tmp file

Project:backup
Version:5.x-3.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

Hi,
When I try to make a backup I get the following message:

* warning: rename(drupal-backup-db-20070910173902-944336942.sql.gz) [function.rename]: failed to open stream: Permission denied in /home/sites/webhosting/robbastiaansen/itmasterclass/www/modules/backup/functions.inc.php on line 82.
* warning: rename(/tmp/drupal-backup-db-kgFW6g,drupal-backup-db-20070910173902-944336942.sql.gz) [function.rename]: Success in /home/sites/webhosting/robbastiaansen/itmasterclass/www/modules/backup/functions.inc.php on line 82.
* backup_database(): Renaming file '/tmp/drupal-backup-db-kgFW6g' to 'drupal-backup-db-20070910173902-944336942.sql.gz' failed

I have tried to change the funtions.inc.php to use a local tmp folder in my webspace, but that did not work.
When I go to the host through SSH I can create and rename files in the /tmp directory.
So I hope you can help me out with this.

Comments

#1

Category:support request» bug report

I also get the same or a remarkably similar error:

* warning: rename(/tmp/drupal-backup-db-qPNnxi,drupal-backup-db-20080204105326-460780238.sql.gz): Permission denied in /home/jacy/alumni.fenwayhs.org/html/sites/all/modules/backup/functions.inc.php on line 82.
* backup_database(): Renaming file '/tmp/drupal-backup-db-qPNnxi' to 'drupal-backup-db-20080204105326-460780238.sql.gz' failed

No word on this?

#2

subscribing

* warning: rename(/tmp/drupal-backup-db-ONrWOZ,drupal-backup-db-20080422100932-472922228.sql.gz) [function.rename]: Operation not permitted in /home/clickconsult/domains/10cadouri.ro/public_html/sites/all/modules/backup/functions.inc.php on line 82.
* warning: rename(/tmp/backup-htdocs-4WhRnh,drupal-backup-20080422100934-785706947.tar.gz) [function.rename]: Operation not permitted in /home/clickconsult/domains/10cadouri.ro/public_html/sites/all/modules/backup/functions.inc.php on line 305.

#3

Priority:normal» critical

I get the same problems.

* warning: rename(/tmp/drupal-backup-db-vM70CG,drupal-backup-db-20080526221358-58231825.sql.gz) [function.rename]: Permission denied in /xxx/xxx/xxxx/xxx/html/modules/backup/functions.inc.php on line 82.
* backup_database(): Renaming file '/tmp/drupal-backup-db-vM70CG' to 'drupal-backup-db-20080526221358-58231825.sql.gz' failed

#4

Has anyone solved this yet?

#5

I ran into this problem after upgrading Drupal. It appears that write access is required to the web site root directory, even if you specify a backup location. Normally I chown all the files on the web site to the web server user after I extract all the Drupal distribution files, but I forgot to chown the root web site directory itself. Once I did that, the backup rename error went away for me.

nobody click here