After submitting backup an error is raised:

Command "tar cfz /tmp/drupal_backup_liu3Fp CVS .htaccess CHANGELOG.txt INSTALL.mysql.txt INSTALL.pgsql.txt INSTALL.txt LICENSE.txt MAINTAINERS.txt UPGRADE.txt cron.php index.php update.php xmlrpc.php database includes misc modules scripts sites themes /tmp/drupal_backup_database-2006-10-03-13:34:37-943579.gz 2>&1" returned status -1

It seems that command is wrong?

Comments

dmuth’s picture

Assigned: Unassigned » dmuth

Hmm, that's interesting...

I can assure you that the command is legitimate, for I've run it myself before. Was there any other text on the screen?

Also, can you tell me more about yuor current setup? i.e., what version of Apache you're using, what distro of Linux you're running under, etc.?

Thanks,

-- Doug

iwankgb’s picture

Only error information that I posted yesterday is rendered.

System: Debian 3.1, Apache 2.0.54-5, PHP 5.1.6-0.dotdeb.2, tar 1.14, MySQL 5.0.24a-2.dotdeb.0

I'm running Drupal 4.7.3

Regards,

Maciek :]

mlncn’s picture

And here's my error, same thing but status 2:

Command "tar cfz /tmp/drupal_backup_1J3l1Y cgi-bin .htaccess .ftpquota computer_science database Site Upload Info from AMR _notes phpMyAdmin OLDSITE_backup includes misc modules scripts sites themes nasser dan amr agileProcessAdoptionWiki files CHANGELOG.txt cron.php index.php INSTALL.txt INSTALL.mysql.txt INSTALL.pgsql.txt LICENSE.txt MAINTAINERS.txt update.php UPGRADE.txt xmlrpc.php /tmp/drupal_backup_database-2006-10-04-04:57:01-400271.gz 2>&1" returned status 2

That's at the top of a 404 file not found error. I should note that this 404 error is the most aggressive of any site that I've put up, any change in capitalization sends it there.

A clean install of Drupal 4.7.3. From the top of my PHPinfo:

System Linux exodus.lunarpages.com 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686
Build Date Nov 16 2005 15:53:27
Configure Command './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pgsql=/usr' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib

ron collins’s picture

does drupal have write access to /tmp and is there space there for the file? it can be quite large depending on the size of your site.

vinx2o2o’s picture

Hi,
i've the same problem (exit status 2) on Gentoo
if i run the command by hand seems that it not found the database backup (apache can write to /tmp):

command:

tar cfz /tmp/drupal_backup_ScSc3j cam ftp misc update.php database files sites scripts xmlrpc.php gallery_config.php settings.php.bkp .htaccess gallery2_backup.sql .webapp modules index.php themes includes gallery2 .webapp-drupal-4.7.3 cron.php

output:

tar: Removing leading `/' from member names
tar: /tmp/drupal_backup_database-2006-10-23-12\:19\:19-420248.gz: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

any suggestion?

vinx2o2o’s picture

sorry, I have mistaken to paste.

errata corige:

command:

tar cfz /tmp/drupal_backup_ScSc3j cam ftp misc update.php database files sites scripts xmlrpc.php gallery_config.php settings.php.bkp .htaccess gallery2_backup.sql .webapp modules index.php themes includes gallery2 .webapp-drupal-4.7.3 cron.php /tmp/drupal_backup_database-2006-10-23-12:19:19-420248.gz

output:

tar: Removing leading `/' from member names
tar: /tmp/drupal_backup_database-2006-10-23-12\:19\:19-420248.gz: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

-vinx2o2o

homoludens’s picture

i have the same (ok similar) error, but only on sites which i recovered previously made backup, not on fresh installs. and file iz in servers /tmp directory, only w/o extension and w/ strange name.

dmuth’s picture

Status: Active » Needs work

Hi folks,

Thanks for all of the reports on this. I did some investigation, and it looks like part of the problem was the function backup_page_submit() not behaving properly.

I did some working on that and while I'm not sure if the problem is fixed, I think I've made it less likely to occur.

If folks could download the latest HEAD release and try it out, I'd love to hear what people think.

Thanks,

-- Doug

iwankgb’s picture

Command "tar cfz /tmp/drupal_backup_Q6rO67 CVS .htaccess CHANGELOG.txt INSTALL.mysql.txt INSTALL.pgsql.txt INSTALL.txt LICENSE.txt MAINTAINERS.txt UPGRADE.txt cron.php index.php ole.txt update.php xmlrpc.php database files includes misc modules scripts sites themes /tmp/drupal_backup_database-2006-11-14-11:17:52-503729.gz 2>&1" returned status -1
When I pasted command to shell I got an error:
tar: /tmp/drupal_backup_database-2006-11-14-11\:17\:52-503729.gz: Cannot stat: No such file or directory
It seems that database backup is not created?

dmuth’s picture

klb,

On the subject of your second error, it makes sense that running that command would fail since the database file is a temporary file and is deleted by backup when finished.

As for the first error, (retval of -1), I am not sure what could cause that to happen.

Looking at the date stamps on HEAD, it looks like my most recent commit last night wasn't built until 07:24 this morning, many hours after I uploaded it. Oops. If I could ask you to download HEAD one more time and give it a try, I'd appreciate it.

Thanks,

-- Doug

iwankgb’s picture

Hello Doug,

First of all - sorry for month long delay.

I've downloaded and installed HEAD backup version. Unfortunately I still receive error information:
Command "/bin/tar cfz /tmp/drupal_backup_MRE4Ie CVS .htaccess cron.php index.php update.php xmlrpc.php database files includes lib misc modules scripts sites themes /tmp/drupal_backup_database-2006-12-13-14:23:46-933756.gz 2>&1" returned status -1

Regards,

Maciek.

matt@antinomia’s picture

I ran into this error today after installing backup.module on a new site. In my case, the answer was in the URL on the error page.

http://www.domain.com/%3Cpre%3Etar%3A+themes/mytheme/node-flexinode-2.tpl.php.save%3A+Cannot+open%3A+Permission+denied%0Atar%3A+Error+exit+delayed+from+previous+errors%0A%3C/pre%3E

When the web server tries to tar up the site, it's running into a file, node-flexinode-2.tpl.php, whose permissions are set such that it cannot be included in the tar. If I chmod this file to 644, the error disappears.

Hope this helps.

dmuth’s picture

Status: Needs work » Closed (fixed)

I'm going to mark this one as closed since I'm doing things way differently in Drupal 5.

-- Doug