naaguv
By:
naaguv

Error 521 website down, backup corrupted

November 16, 2016 103 views
Backups

I am facing an error 521 for my website www.cookingandme.com and so far haven't found a solution (I am not at all technically savvy, getting help from professionals).

It seems like the mistake I made is to create a snapshot without powering down my droplet. Could this really result in me losing all the data on my website? Can't access my Wordpress admin console or my website. I don't have any other backups either. So far tried restoring and rebuilding the droplet to no effect.

7 Answers

Can you sftp into the droplet?

What do you see when you try to go to your wordpress admin console?

Did you get a new IP address on your droplet when you re-created it? If so, you might need to update your DNS.

Also, you might consider disabling cloudflare or whatever cache you are using while you trouble-shoot

Thanks for getting back!

I am not sure of the answer to the first question.

I get the same 521 error when I try to access my WP admin console. I am completely locked out of anything to do with my website.

I managed to create a new droplet from a backup image (not snapshot) and yes it does have a new IP address. Working with my admin to see best next step. I understand I can try to retain the same IP if I create a snapshot from the droplet image, destroy the original droplet, and then create a new one from the snapshot backup. Is it easier to update my DNS rather than the above though?

I'll disable cloudflare before doing anything else, thanks for that!

  • I would say that changing your DNS would probably be easier, but either way will work.

    Basically your DNS points your domain to the IP address of your droplet. Since you now have a new IP address, your domain is pointing to a non-existing address...so nothing is going to show up.

    If I ping your domain right now, I get the IP address 104.18.54.47. If that is not your new droplets address you will need to update your DNS to tell it the correct IP address.

Thank you!

I have now updated the DNS records with my new IP and my site is back up. Lost 3-4 recent posts but I am able to retrieve the content from Google cache so all in all, very little damage.

My next question would be, can I now delete the older droplet which was corrupt and didn't work?

  • You might consider keeping it for a few day...just in case! Then delete it if you decide things are working smoothly and you have all the data you need.

That makes sense! Thanks again for your replies, appreciate it!

At some point you should think of a good back-up plan for your website files and database.

DigitalOcean has block-storage for a very good rate, and you could create a 25gb block of storage, add it to your droplet, and run a small backup script that backs everything up every night at midnight.

That is just one option..tons of others. I prefer the most simple and secure.

Once it is set up your backups should just run automatically and you will never have to think of it again until you need to restore your website.

I was actually looking into exactly this. Was considering signing up with Vaultpress for backups since a few fellow bloggers recommended that. I wouldn't know how to run the backup script on DO if I were to go the block-storage route although that would be a cheaper option I believe.

Yes, a 20gb block of storage will cost you $2.00 a month, but you would need to have someone set up the backup script, and then if you ever needed to restore you would (maybe) have to find someone to restore your site from the backups...

Vaultpress looks like it is 9.00 per month...I have never used it so I do not know how easy it would be to restore from their backups...which is when it will really count.
If your website is down, you will not be able to login and press a button.

Have another answer? Share your knowledge.