Trying to figure out why SharePoint isn't working as expected isn't as overwhelming as it looks on the surface. SharePoint is built on top of familiar Microsoft products and technologies and comes with a lot of out of the box tools to help troubleshoot even the most difficult of issues. And when that doesn't work there are some great (free!) third party tools to aid you in your quest to fixing a farm.
In this session we'll look at how IT pros and developers can troubleshoot any SharePoint farm without having to resort to exorcisms or Microsoft Support.
3. DYNAMICOWL.COM
Jason Warren
SharePoint Server MVP
Infrastructure Architect at Dynamic Owl – jason@dynamicowl.com
(We make Bonzai Intranet www.bonzai-intranet.com)
Twitter: @jaspnwarren
Blog: jasonwarren.ca
Who Am I
4 | What We’re All About
8. DYNAMICOWL.COM
Out of Scope
SharePoint Online
Exam prep
Troubleshooting SQL Server (beyond connectivity)
Troubleshooting customizations/third party tools
SharePoint development
9 | Technical Upgrade Guidance
9. DYNAMICOWL.COM
The SharePoint Black Box
SharePoint is built on common Microsoft technologies
Windows Server
Internet Information Services (IIS)
.NET
SQL Server
10 | Technical Upgrade Guidance
11. DYNAMICOWL.COM
Access to Troubleshoot SharePoint
Member of the Administrators
local machine group on all
servers running SharePoint
12 | Technical Upgrade Guidance
14. 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 EXAMPLEYou -Database $db
}
Note: can only be run against users. Cannot run for AD security groups
15 | Technical Upgrade Guidance
15. 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
16 | Technical Upgrade Guidance
19. DYNAMICOWL.COM
Common HTTP Status Codes
20 | Technical Upgrade Guidance
3xx Redirection
301 Moved Permanently
302 Found
304 Not Modified
2xx Success
200 OK
4xx User Error
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
5xx Server Error
500 Internal Server Error
503 Service Unavailable
21. 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!
22 | Technical Upgrade Guidance
22. 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
23 | Technical Upgrade Guidance