troubleshooting on-premises sharepoint - vanspug 2015

25
DYNAMICOWL.COM Troubleshooting On Premises SharePoint VanSPUG November 5, 2015

Upload: jason-warren

Post on 22-Jan-2018

280 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Troubleshooting On Premises

SharePointVanSPUG – November 5, 2015

Page 2: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Jason Warren

SharePoint Server MVP

Infrastructure Architect at Dynamic Owl – [email protected]

Twitter: @jaspnwarren

Blog: jasonwarren.ca

Who Am I

2 | What We’re All About

Page 3: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Today’s Agenda

01 Audience and Scope

02 Permissions for Troubleshooting

03 Windows and IIS

04 Diagnosing SharePoint

05 Other Tools

3 |

Page 4: Troubleshooting On-Premises SharePoint - VanSPUG 2015

Audience and Scope

Page 5: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Target Audience

SharePoint Developers

“SharePoint Administrators”

• Actual job title

• Other IT groups with SharePoint responsibility

• Help Desk

5 | Technical Upgrade Guidance

Page 6: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Session Scope

Real-world troubleshooting on-premises SharePoint

• Server, Foundation, 2007, 2010, 2013, 2016

“What can I do to figure out why SharePoint isn’t working?”

6 | Technical Upgrade Guidance

Page 7: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Out of Scope

SharePoint Online

Exam prep

Troubleshooting SQL Server (beyond connectivity)

Troubleshooting customizations/third party tools

SharePoint development

7 | Technical Upgrade Guidance

Page 8: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

The SharePoint Black Box

SharePoint is built on common Microsoft technologies

Windows Server

Internet Information Services (IIS)

.NET

SQL Server

8 | Technical Upgrade Guidance

Page 9: Troubleshooting On-Premises SharePoint - VanSPUG 2015

Permissions for Troubleshooting

Page 10: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Access to Troubleshoot SharePoint

Member of the Administrators

local machine group on all

servers running SharePoint

10 | Technical Upgrade Guidance

Page 11: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Access to Troubleshoot SharePoint

Member of the SharePoint Farm Administrators Group

11 | Technical Upgrade Guidance

Page 12: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Access to Troubleshoot SharePoint

SharePoint Shell Admin for running PowerShell

12 | Technical Upgrade Guidance

Page 13: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Access to Troubleshoot SharePoint

PowerShell to grant a user Shell Admin on all content databases in the farm:

$ContentDatabases = Get-SPContentDatabase

foreach ($db in $ContentDatabases) {

Add-SPShellAdmin -Username EXAMPLE\You -Database $db

}

Note: can only be run against users. Cannot run for AD security groups

13 | Technical Upgrade Guidance

Page 14: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Access Review

Member of the Administrators local machine group on all servers running

SharePoint

Member of the SharePoint Farm Administrators Group

SharePoint Shell Admin for running PowerShell

14 | Technical Upgrade Guidance

Page 15: Troubleshooting On-Premises SharePoint - VanSPUG 2015

Windows and IIS

(Live Demo)

Page 16: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Windows Summary

Reboot!

Task Manager, Process Explorer, Resource Monitor: quick insight

Performance Monitor: monitoring long-term

Baseline makes trending easier – every quarter or so

PAL: performance reports

Event Logs: Errors!

16 | Technical Upgrade Guidance

Page 17: Troubleshooting On-Premises SharePoint - VanSPUG 2015

Windows and IIS

(Live Demo)

Page 18: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Common HTTP Status Codes

18 | Technical Upgrade Guidance

3xx Redirection

301 Moved Permanently302 Found304 Not Modified

2xx Success

200 OK

4xx User Error

400 Bad Request401 Unauthorized403 Forbidden404 Not Found

5xx Server Error

500 Internal Server Error503 Service Unavailable

Page 19: Troubleshooting On-Premises SharePoint - VanSPUG 2015

Diagnosing SharePoint

(Live Demo)

Page 20: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

SharePoint Diagnostic logs

Text files with:

• Events (something happened!)

• Traces (narrating what happens)

Increase verbosity to aid troubleshooting

Central Admin and PowerShell controls

Get the CORRELATION ID for best results!

20 | Technical Upgrade Guidance

Page 21: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

ULS PowerShell Reference

New-SPLogFile: stops logging to the current file and creates a new logfile on all servers in the farm

Set-SPLogLevel: changes the verbosity of logging• Set-SPLogLevel -EventSeverity Verbose -TraceSeverity VerboseEx

Clear-SPLogLevel: resets verbosity to default

Merge-SPLogFile: consolidates logs from all servers in the farm into a single file

Merge-SPLogFile -Path .\Example.log -Correlation <correlation>• MOST POWERFUL SHAREPOINT TROUBLESHOOTING STEP

21 | Technical Upgrade Guidance

Page 22: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Tool Reference

PAL http://pal.codeplex.com

ULS Viewer https://www.microsoft.com/en-ca/download/details.aspx?id=44020

Fiddler http://www.telerik.com/fiddler

Sysinternals (Process Explorer, TCP View) https://technet.microsoft.com/en-us/sysinternals

PortQry http://www.microsoft.com/en-ca/download/details.aspx?id=17148

SharePoint Search Query Tool https://sp2013searchtool.codeplex.com

SharePoint Manager https://spm.codeplex.com

22 | Technical Upgrade Guidance

Page 23: Troubleshooting On-Premises SharePoint - VanSPUG 2015

Questions and AnswersPICK OUR BRAINS

Page 24: Troubleshooting On-Premises SharePoint - VanSPUG 2015

Let’s Keep In TouchCONTACT DETAILS

Page 25: Troubleshooting On-Premises SharePoint - VanSPUG 2015

DYNAMICOWL.COM

Wrap-up: Contact Details

Jason Warren

E [email protected]|

T @jaspnwarren

W dynamicowl.com

B jasonwarren.ca

25 | Contact Details