26
TROUBLESHOOTING ON PREMISES SHAREPOINT March 12, 2016 Jason Warren Bonzai Intranet

Jason warren troubleshooting share point sps-vancouver 2016

Embed Size (px)

Citation preview

TROUBLESHOOTING ON PREMISES SHAREPOINT

March 12, 2016

Jason WarrenBonzai Intranet

Sponsors

DYNAMICOWL.COM

Jason Warren

SharePoint Server MVP

Infrastructure Architect at Dynamic Owl – [email protected](We make Bonzai Intranet www.bonzai-intranet.com)

Twitter: @jaspnwarren

Blog: jasonwarren.ca

Who Am I

4 | What We’re All About

DYNAMICOWL.COM

Today’s Agenda

01 Audience and Scope

02 Permissions for Troubleshooting

03 Windows and IIS

04 Diagnosing SharePoint

05 Other Tools

5 |

Audience and Scope

DYNAMICOWL.COM

Target AudienceSharePoint Developers

“SharePoint Administrators”• Actual job title• Other IT groups with SharePoint responsibility• Help Desk

7 | Technical Upgrade Guidance

DYNAMICOWL.COM

Session ScopeReal-world troubleshooting on-premises SharePoint• Server, Foundation, 2007, 2010, 2013, 2016

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

8 | Technical Upgrade Guidance

DYNAMICOWL.COM

Out of ScopeSharePoint Online

Exam prep

Troubleshooting SQL Server (beyond connectivity)

Troubleshooting customizations/third party tools

SharePoint development

9 | Technical Upgrade Guidance

DYNAMICOWL.COM

The SharePoint Black BoxSharePoint is built on common Microsoft technologies

Windows ServerInternet Information Services (IIS).NETSQL Server

10 | Technical Upgrade Guidance

Permissions for Troubleshooting

DYNAMICOWL.COM

Access to Troubleshoot SharePointMember of the Administrators local machine group on all servers running SharePoint

12 | Technical Upgrade Guidance

DYNAMICOWL.COM

Access to Troubleshoot SharePointMember of the SharePoint Farm Administrators Group

13 | Technical Upgrade Guidance

DYNAMICOWL.COM

Access to Troubleshoot SharePointSharePoint Shell Admin for running PowerShell

14 | Technical Upgrade Guidance

DYNAMICOWL.COM

Access to Troubleshoot SharePointPowerShell to grant a user Shell Admin on all content databases in the farm:

$ContentDatabases = Get-SPContentDatabaseforeach ($db in $ContentDatabases) {

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

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

15 | Technical Upgrade Guidance

DYNAMICOWL.COM

Access ReviewMember of the Administrators local machine group on all servers running SharePoint

Member of the SharePoint Farm Administrators Group

SharePoint Shell Admin for running PowerShell

16 | Technical Upgrade Guidance

Windows and IIS(Live Demo)

DYNAMICOWL.COM

Windows SummaryReboot!

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!

18 | Technical Upgrade Guidance

Windows and IIS(Live Demo)

DYNAMICOWL.COM

Common HTTP Status Codes

20 | 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

Diagnosing SharePoint(Live Demo)

DYNAMICOWL.COM

SharePoint Diagnostic logsText 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!

22 | Technical Upgrade Guidance

DYNAMICOWL.COM

ULS PowerShell ReferenceNew-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

23 | Technical Upgrade Guidance

DYNAMICOWL.COM

Tool ReferencePAL 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

24 | Technical Upgrade Guidance

Questions and AnswersPICK OUR BRAINS

Let’s Keep In TouchCONTACT DETAILS

DYNAMICOWL.COM

Wrap-up: Contact Details

Jason Warren

E [email protected]| T @jaspnwarrenW dynamicowl.comB jasonwarren.ca

27 | Contact Details