SnapShot Pro already saved my live… :) But, uploading via

Hello,

SnapShot Pro already saved my live… :slight_smile:

But, uploading via ftp does not work. I have created a destiantion on one of my ftp servers. Connection tests OK.

After creating and zipping the backup I get this log entry:

2015-03-01 13:10:37: rename: backupZipFile[/Applications/MAMP/htdocs/die4Dwerkstatt_Blog/wp-content/uploads/snapshots/_backup/1419969398/snapshot-backup.zip] backupZipFileFinal[/Applications/MAMP/htdocs/die4Dwerkstatt_Blog/wp-content/uploads/snapshots/snapshot-1419969398-150301-121014-54811330.zip]

2015-03-01 13:10:37: memory limit: 256M: memory usage current: 63.44M: memory usage peak: 65.54M

2015-03-01 13:10:37: finish: snapshot-1419969398-150301-121014-54811330.zip

2015-03-01 13:11:06: Warning: errno:2 ftp_put(): php_connect_nonb() failed: Operation now in progress (36) /Applications/MAMP/htdocs/die4Dwerkstatt_Blog/wp-content/plugins/snapshot/lib/destinations/ftp/index.php on line 665

2015-03-01 13:11:06: Warning: errno:2 ftp_put(): Type set to I. /Applications/MAMP/htdocs/die4Dwerkstatt_Blog/wp-content/plugins/snapshot/lib/destinations/ftp/index.php on line 665

This repeats serveral times, then the connection:

2015-03-01 13:16:00: Sending Archive: snapshot-1419969398-150301-121014-54811330.zip 22.49M

2015-03-01 13:16:00: Destination: ftp: Rackstation

2015-03-01 13:16:29: Warning: errno:2 ftp_put(): php_connect_nonb() failed: Operation now in progress (36) /Applications/MAMP/htdocs/die4Dwerkstatt_Blog/wp-content/plugins/snapshot/lib/destinations/ftp/index.php on line 665

2015-03-01 13:16:29: Warning: errno:2 ftp_put(): Type set to I. /Applications/MAMP/htdocs/die4Dwerkstatt_Blog/wp-content/plugins/snapshot/lib/destinations/ftp/index.php on line 665

2015-03-01 13:16:29: Using FTP with TSL/SSL connection

2015-03-01 13:16:29: Connecting to host: rackstation.4d-consulting.com Port: 21 Timeout: 90

2015-03-01 13:16:29: Passive mode on.

2015-03-01 13:16:29: Timeout set to 90

2015-03-01 13:16:29: Login success.

2015-03-01 13:16:29: Home/Root: /

2015-03-01 13:16:29: Changing Directory: /WordPress-SnapShots/die4dwerkstatt/

2015-03-01 13:16:29: Current Directory: /WordPress-SnapShots/die4dwerkstatt

2015-03-01 13:16:29: ftp_put failed: snapshot-1419969398-150301-121014-54811330.zip

2015-03-01 13:16:29: ERROR: Constant WP_MEMORY_LIMIT already defined

WP_MEMORY_LIMIT is defined in wp_config.php:

define(‘WP_MEMORY_LIMIT’, ‘1024M’:wink:;

The archiv stays local – the transfer did already work, I don’t can figure out why it stopped.

WordPress 4.1.1

MAMP 3.0.6

OS X 10.10.2

Greetings,

Peter

  • Michelle Shull
    • DEV MAN’s Apprentice

    Hi, Peter!

    Let’s do a quick and simple test first, and see which version of PHP you’re using on your server.

    There’s a chance it’s an older version that is incompatible with Snapshot. If that’s the case, a friendly note to your host gently encouraging them to update is usually all that’s needed.

    Let me know the version number for PHP that comes up when you run the test I linked above.

    Thanks, Peter! And thanks for the nice words about Snapshot. :slight_smile: I’ll be sure to pass them on to the dev.

  • Jude
    • DEV MAN

    Hi there @peterinwiesbaden,

    Sorry the response took a while longer than expected. Appreciate your patience. Looks like Michelle is really busy and this one slipped through the gaps, I’m gonna take the liberty of chipping in here.

    This looks like a case of the memory running out during the FTP operation. Snapshot works with files – it writes your backup locally and zips it. If the unzipped data exceeds what your server allows you to do, it fails.

    You can use the following methods to increase the limits:

    Add to theme’s functions.php at the top.

    @ini_set( 'upload_max_size' , '100M' );
    @ini_set( 'post_max_size', '100M');
    @ini_set( 'max_execution_time', '300' );

    php.ini (in your site’s root folder, change php.ini with these values, if php.ini does not exist, you can create it in your site’s root)

    upload_max_filesize = 100M
    post_max_size = 100M
    max_execution_time = 300

    .htaccess (if running on Apache)

    php_value upload_max_filesize 100M
    php_value post_max_size 100M
    php_value max_execution_time 300
    php_value max_input_time 300

    I’d try it in that order and try to avoid having to modify .htaccess.

    Also please add/modify this line in your wp-config.php:

    define( 'WP_MEMORY_LIMIT', '2048M' );

    Let us know if this solves your issue.

    Cheers

    Jude