sps toronto - troubleshooting on-premises sharepoint

23
Jason Warren Dynamic Owl Consulting @jaspnwarren

Upload: jason-warren

Post on 22-Jan-2018

485 views

Category:

Technology


1 download

TRANSCRIPT

Jason Warren

Dynamic Owl Consulting

@jaspnwarren

Jason Warren

SharePoint Server MVP

Infrastructure Architect @ Dynamic Owl Consulting

[email protected]

Twitter: @jaspnwarren

Reddit: /u/JasonWarren in /r/SharePoint and others

Blog: jasonwarren.ca

2

Audience and scope

What’s in SharePoint

Permissions for troubleshooting

Windows tools

IIS

SharePoint diagnostics

Other tools

3

SharePoint Developers

“SharePoint Administrators”

Actual job title

Other IT people/groups who are responsible for SharePoint

Helpdesk

4

Real-world troubleshooting on-premises SharePoint

Server, Foundation, 2016, 2013, 2010, 2007

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

5

SharePoint Online

Exam prep

Troubleshooting SQL Server (beyond connectivity)

Troubleshooting customizations/third party tools

SharePoint development

Personal troubleshooting session

6

SharePoint is built on common Microsoft technologies

Windows Server

Internet Information Services (IIS)

.NET

SQL Server

7

8

Member of the Administrators local machine group on all servers running SharePoint

9

10

Member of the SharePoint Farm Administrators Group

SharePoint Shell Admin for running PowerShell

11

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

12

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

13

14

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!

15

SharePoint runs on IIS

Web application

Servers communicate using web services

16

3xx Redirection

301 Moved Permanently302 Found304 Not Modified

2xx Success

200 OK

17

4xx User Error

400 Bad Request401 Unauthorized403 Forbidden404 Not Found

5xx Server Error

500 Internal Server Error503 Service Unavailable

18

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!

19

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 TOOL

20

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

21

GO

LD

RA

FF

LE

SIL

VE

R

PLATINUM

Thank you!Toronto Enterprise Collaboration User GroupChange Management, Governance, SharePoint, Office 365, Yammer, PowerBI, etc

http://www.meetup.com/TSPBUG/Toronto SharePoint Business Users Grouphttp://www.meetup.com/TorontoSPUG/

Saturday July 9, 2016

See you next year!