PHP problem - filesize(): stat failed, 10GB backup, S3 upload fails | General Questions and Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
PHP problem - filesize(): stat failed, 10GB backup, S3 upload fails
July 27, 2011
9:04 am
Avatar
e
New Member
Members
Forum Posts: 1
Member Since:
July 27, 2011
sp_UserOfflineSmall Offline

I'm trying to get XCloner working on our VPS. The .tar generation works fine (it does spit out a warning though), the .tar is generated, but the S3 upload part fails.

This is the warning that appears :

<b>Generating Backup …</b><br />

PHP Warning:  filesize(): stat failed for /var/www/vhosts/<hostname>/httpdocs/administrator/backups/backup_2011-07-27_18-39_<hostname>-sql-nodrop.tar in /var/www/vhosts/<hostname>/httpdocs/wp-content/plugins/xcloner-backup-and-restore/cloner.functions.php on line 1825
<b>    Archive Name: backup_2011-07-27_18-39_<hostname>-sql-nodrop.tar

 

The backup completes, then goes on to the S3 part which fails:

<b>Backup Done</b><br />

<b>Backup file: /var/www/vhosts/<hostname>/httpdocs/administrator/backups/backup_2011-07-27_18-39_www.<hostname>-sql-nodrop.tar</b><br />

PHP Warning:  filesize(): stat failed for /var/www/vhosts/<hostname>/httpdocs/administrator/backups/backup_2011-07-27_18-39_www.<hostname>-sql-nodrop.tar in /var/www/vhosts/<hostname>/httpdocs/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php on line 190

<b>Total backup size: bytes</b><br />

<b></b><br />

<b>AMAZON S3: Starting communication with the Amazon S3 server…ssl mode 1</b><br />

PHP Warning:  S3::inputFile(): Unable to open input file: /var/www/vhosts/<hostname>/httpdocs/administrator/backups/backup_2011-07-27_18-39_www.<hostname>-sql-nodrop.tar in /var/www/vhosts/<hostname>/httpdocs/wp-content/plugins/xcloner-backup-and-restore/classes/S3.php on line 265

<b>AMAZON S3: Failed to copy file to {<hostname>}//backup_2011-07-27_18-39_www.<hostname>-sql-nodrop.tar</b <br />

I'm guessing this relates to the size of the .tar? The directory is writeable. The VPS is running on 32-bit Linux and PHP 5.3.3.

What can I do?

 

Thanks!

July 27, 2011
7:58 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Yes, you are right, this is a size related issue as most probably your php version is not compiled to be able to read files over 2GB in size, try checking with your hosting support to see if they can help, you might need to upgrade to a 64bit system.

 

Ovidiu

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0