DYNAMICOWL.COM Troubleshooting On Premises SharePoint VanSPUG – November 5, 2015
DYNAMICOWL.COM
Troubleshooting On Premises
SharePointVanSPUG – November 5, 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
DYNAMICOWL.COM
Today’s Agenda
01 Audience and Scope
02 Permissions for Troubleshooting
03 Windows and IIS
04 Diagnosing SharePoint
05 Other Tools
3 |
Audience and Scope
DYNAMICOWL.COM
Target Audience
SharePoint Developers
“SharePoint Administrators”
• Actual job title
• Other IT groups with SharePoint responsibility
• Help Desk
5 | Technical Upgrade Guidance
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
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
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
Permissions for Troubleshooting
DYNAMICOWL.COM
Access to Troubleshoot SharePoint
Member of the Administrators
local machine group on all
servers running SharePoint
10 | Technical Upgrade Guidance
DYNAMICOWL.COM
Access to Troubleshoot SharePoint
Member of the SharePoint Farm Administrators Group
11 | Technical Upgrade Guidance
DYNAMICOWL.COM
Access to Troubleshoot SharePoint
SharePoint Shell Admin for running PowerShell
12 | Technical Upgrade Guidance
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
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
Windows and IIS
(Live Demo)
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
Windows and IIS
(Live Demo)
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
Diagnosing SharePoint
(Live Demo)
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
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
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
Questions and AnswersPICK OUR BRAINS
Let’s Keep In TouchCONTACT DETAILS
DYNAMICOWL.COM
Wrap-up: Contact Details
Jason Warren
T @jaspnwarren
W dynamicowl.com
B jasonwarren.ca
25 | Contact Details