Snapshot timing out on restore

I am trying to restore a snapshot – that I created on my live site to my localhost. Everything seems to go fine until the process get to the FILES: Media part where it times out.

What do I have to do to fix this?

Thanks

Stacey

  • Atkotech
    • Recruit

    The Segment size should be at least 1000, maybe increase it more if need be. The more records you have in the database the more you would probably need to increase it. The default is 5000. Somewhere between 1000 & 5000 should be okay. Increase the Memory Limit to 256. Try that & let us know how you get on.

  • Atkotech
    • Recruit

    Absolutely Adam, I was ready to paste the following permissions from the Settings page if it still didn’t work :wink:

    Writable (0755) – /wp-content/uploads/snapshots

    Writable (0755) – /wp-content/uploads/snapshots/_backup

    Writable (0755) – /wp-content/uploads/snapshots/_locks

    Writable (0755) – /wp-content/uploads/snapshots/_logs

    Writable (0755) – /wp-content/uploads/snapshots/_restore

    Thanks :slight_smile:

  • Stacey
    • Flash Drive

    Hi Coremedia & Adam

    Using WAMP. Is that OK or should I use something else?

    Well there was partial success – had to exclude the media file :slight_frown:

    What do I do with the above? I assume I go Snapshot>Settings, then what do I put where @coremedia ? I would like to try again and get everything!

    See screenshot of my server info per snapshot. https://drive.example.com/file/d/0B8ez8B8nCbb7VUhaVDhpeXd4M1E/view?usp=sharing

    Untitled Link

    Cheers,

    Stacey

  • Stacey
    • Flash Drive

    I think I should have sent you the settings of the localhost site as that is where the problem seems to be (times out when trying to restore) . So here are some screenshots for the Snapshot Server Info section:

    https://drive.example.com/file/d/0B8ez8B8nCbb7U0d1REJlY1k2QkU/view?usp=sharing

    https://drive.example.com/file/d/0B8ez8B8nCbb7WTZQUWNYdEc0Vnc/view?usp=sharing

    https://drive.example.com/file/d/0B8ez8B8nCbb7bGoxczJyRllCWU0/view?usp=sharing

    Thanks

    Stacey

  • Atkotech
    • Recruit

    Hi Stacey,

    Your settings seem to be okay, pretty much the same as mine excluding the version of php & mysql – I’m on 5.4.41 for php & 5.5.42 for mysql. I’m not aware your versions cause an error though. Only other difference my permissions are all 755 as opposed to 777 but again that wouldn’t affect it. Now the one thing I’m not familiar with is WAMP so I am unsure as to whether that would have an impact. Maybe Adam can jump back in here & shed some light on that & whether he is aware of any issues with your software versions. Aside from that though, as I say, mine works on dropbox using mostly the same settings as yours as far as I can see.

  • Adam
    • Support Gorilla

    Hey Stacey,

    I hope you’re well today!

    In case of WAMP file/folder permissions aren’t that important: most likely it will be always set to 0777 as Windows doesn’t support UNIX-style access credentials :slight_smile:

    I took a look at your settings and I think you may want these two tricks a try:

    1. The “Max Execution Time” seems to be set to 120 seconds and in case of large file (I suppose this is the case) this may not be enough. It’s a PHP setting and in WAMP you can change it this way:

    – click on a WAMP icon

    – hover over PHP menu option

    – from a submenu select “php.ini” option

    – inside the file that opens please find this line:

    max_execution_time = 120

    and replace it with

    max_execution_time = 360

    – Save file and restart WAMP

    2. I’m not sure what’s the maximum file upload size set on your server but by default it would be 64M. This might also not be enough so I’d suggest increasing it. First, please try to find out what’s the size of the file that snapshot gets stuck at. If this is for example 86M you may want to set top limit to 96M.

    To do this, follow the same steps as for step 2 except instead of replacing “max_execution_time” value, find this line:

    upload_max_filesize = 64M

    and increase the value like e.g. this:

    upload_max_filesize = 128M

    I think this should fix the issue. You may need however to increase these values even more. Please also make sure that you’ve fully restarted WAMP before giving Snapshot another try :slight_smile:

    Let me know how how it worked for you!

    Cheers,

    Adam