site down: how to triage those first minutes

31
Site Down: How to Triage Those First Important Minutes John P. Gamboa jpgamboa.com @jgamboa WordCamp Tampa 2016

Upload: john-gamboa

Post on 17-Jan-2017

181 views

Category:

Technology


6 download

TRANSCRIPT

Page 1: Site Down: How to Triage Those First Minutes

Site Down: How to Triage Those First Important Minutes

John P. Gamboajpgamboa.com

@jgamboa

WordCamp Tampa 2016

Page 2: Site Down: How to Triage Those First Minutes

@jgamboa• Technical Project Manager, WP

Engine

• 2+ years in technical support

• Developed and managed sites in China

Page 3: Site Down: How to Triage Those First Minutes

Is it just you?• Downforeveryoneorjustme.c

om• GeoPeeker.com• Check on mobile Internet• Webpagetest.org

Page 4: Site Down: How to Triage Those First Minutes
Page 5: Site Down: How to Triage Those First Minutes
Page 6: Site Down: How to Triage Those First Minutes
Page 7: Site Down: How to Triage Those First Minutes
Page 8: Site Down: How to Triage Those First Minutes

Is it just you?• Downforeveryoneorjustme.c

om• GeoPeeker.com• Check on mobile Internet• Webpagetest.org

Page 9: Site Down: How to Triage Those First Minutes

What if it is just me?• Reconnect to Network/Restart Computer or Router• Ensure no changes to network

security/firewall/NetNanny• Cached DNS after domain changes• Run Traceroute to server to confirm hole in connection

Page 10: Site Down: How to Triage Those First Minutes

It’s not me. The site’s still down

• What is the error code on the site?• What kind of error is it?• Is it a WordPress problem, or a server problem?• Is the DNS configured correctly?

Page 11: Site Down: How to Triage Those First Minutes

My site’s down! Help!Working, but not ideal

• SSL Error• Google Malware

Message• Non-fatal Theme and

Plugin error

Page 12: Site Down: How to Triage Those First Minutes
Page 13: Site Down: How to Triage Those First Minutes
Page 14: Site Down: How to Triage Those First Minutes
Page 15: Site Down: How to Triage Those First Minutes

My site’s down! Help!Working, but not ideal

• SSL Error• Google Malware

Message• Non-fatal Theme and

Plugin error

Page 16: Site Down: How to Triage Those First Minutes
Page 17: Site Down: How to Triage Those First Minutes
Page 18: Site Down: How to Triage Those First Minutes
Page 19: Site Down: How to Triage Those First Minutes

My site’s down! Help!Working, but not ideal Site is down

• SSL Error• Google Malware

Message• Non-fatal Theme and

Plugin error

• White Screen of Death (WSoD)

• Redirect Loops

• Fatal Error in Plugin and Theme

Page 20: Site Down: How to Triage Those First Minutes

Site Down, cont.• Database error• Multisite

registration/domain mapping issue

• Datacenter issue/Connection Timeout

Page 21: Site Down: How to Triage Those First Minutes

Know Your HTTP Codes• 500 – Internal Server Error• 502 – Bad Gateway• 504 – Gateway Timeout• 522 – CloudFlare Connection

Issue

• 200 – HTTP OK• 301/302 – Permanent

and Temporary Redirect

• 404 – Not Found• 403 - Forbidden

Page 22: Site Down: How to Triage Those First Minutes

Know Your HTTP Codes• 500 – Fatal Error or

bad .htaccess• 502 – Server issue or

overload• 504 – Server issue or bad

process• 522 – A likely 504 or 502

without CloudFlare

• 200 – Page loads• 301/302 – Permanent and

Temporary Redirect• 404 – Not Found• 403 – Security or

Authentication

Page 23: Site Down: How to Triage Those First Minutes

cURL the site

• Use Terminal/Putty or any command line tool to confirm site down.

• Cross check HTTP code with common causes.

Page 24: Site Down: How to Triage Those First Minutes

cURL Examplesfile:///Users/john.gamboa/Desktop/

wso200.swf

Videos of site down curls which can’t be embedded.

Page 25: Site Down: How to Triage Those First Minutes

What to do with the results• Check your Error logs. They are a window into 500

Errors

• Use WordPress debug for additional data

• If system issue, contact your server administrator/host

Page 26: Site Down: How to Triage Those First Minutes

Questions to Ask, Things To Do

• What changes have been made?

• Is system maintenance expected?

• What am I seeing?• Are all pages on the site

down?

• Take a screenshot• Make note of the

domain• Is this multisite-

related?

Page 27: Site Down: How to Triage Those First Minutes

When asking for help

• Don’t just say “Help! My site is down.” More info, the better

• Provide screenshots and cURL results• Stay calm!

Page 28: Site Down: How to Triage Those First Minutes

Common WordPress Site Down Causes

• Old plugins breaking after core updates• Bad code changes to plugins, themes or or

core• Malformed changes to .htaccess and wp-

config.php• Database issues in multisite management

Page 29: Site Down: How to Triage Those First Minutes

When The Dust Settles

• Pingdom, Uptime Robot, and Jetpack (be careful of false positives!)

• Keep your plugins, theme and core updated

• Don’t modify code on your live site

• Website IP browser extension

Page 30: Site Down: How to Triage Those First Minutes

Knowledge for Future Resolution

• Know your server architecture (NGINX, Apache, IIS)

• Learn WP-CLI• Track hosting maintenance and status pages• Don’t be afraid of PHPMyAdmin

Page 31: Site Down: How to Triage Those First Minutes

Q & A

John P. Gamboa@jgamboa

jpgamboa.com