Showing posts with label Error. Show all posts
Showing posts with label Error. Show all posts

Friday, August 29, 2014

Event ID 8311, certificate validation errors : SharePoint

שלום חברים,
היום נתקלתי ב-Error  לאחר שבדקתי את ה-Event Viewer כחלק מבדיקות תשתית שאני מבצע אצל לקוחותיי.
ה-Error מתריע על בעיית Certificate :
Log Name        Application
Source           :  Microsoft-SharePoint Products-SharePoint Foundation
Event ID          8311
Task Category:  Topology
Level              :  Error
Description      


An operation failed because the following certificate has validation errors:\n\n Subject Name: CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US \n Issuer Name: CN=SharePoint Root Authority, OU=SharePoint, O=Microsoft, C=US\nThumbprint: 7884622F8B008E7AFAAFD3DDF98BE8AC69D4F952\n\n
Errors:\n\n The root of the certificate chain is not a trusted root authority.

בד"כ הבעיה נובעת ממחיקת ה- "local" trust relationship של החווה מהגדרות ה-Security ב-Central Admin . (Central Administration > Security > Manage Trust)
נראה כי ה-root certificate חסר ב- SharePoint certificate store . כתוצאה מכך claims authentication בחווה לא עובד כראוי. כדי לפתור את הבעיה צריך לייצא את ה-certificate  מה- Certificate Store בשרת ולהוסיף אותו ל-SharePoint Certificate Store.    רצוי להשתמש ב"טביעת האצבע" של התעודה שנמצא ב-Event Log, הייצוא מבוצע ע"י פקודת PowerShell  :

$rootCert = (Get-SPCertificateAuthority).RootCertificate
New-SPTrustedRootAuthority -Name "localNew" -Certificate $rootCert


אחרי הרצת הפקודה יש לבצע IISRESET.
לי זה פתר את הבעיה.. מקווה שגם לכם J

בהצלחה,
רון נס.


============================================================================================================================================================================================================================================================


Hello friends,
Today I found an Error after I checked the Event Viewer as Part of Health Check that I do on my Customers SharePoint Environment
The Error alerts on Certificate problem:
Log Name: Application
Source: Microsoft-SharePoint Products-SharePoint Foundation
Event ID: 8311
Task Category: Topology
Level: Error
Description:


An operation failed because the following certificate has validation errors: \ n \ n Subject Name: CN = SharePoint Security Token Service, OU = SharePoint, O = Microsoft, C = US \ n Issuer Name: CN = SharePoint Root Authority, OU = SharePoint, O = Microsoft, C = US \ nThumbprint: 7884622F8B008E7AFAAFD3DDF98BE8AC69D4F952 \ n \ n
Errors: \ n \ n The root of the certificate chain is not a trusted root authority.

Usually the problem is due to deletion off of the "local" farm trust relationship of the Security settings in Central Admin. (Central Administration> Security> Manage Trust)
It seems that the root certificate is missing in SharePoint certificate store. As a result, farm claims authentication does not work properly. To solve the problem you need to export the certificate from the Certificate Store on the server and add it to SharePoint Certificate Store. Use the certificate thumb print that found in the Event Log, the export is done by PowerShell command:

$rootCert = (Get-SPCertificateAuthority).RootCertificate
New-SPTrustedRootAuthority -Name "localNew" -Certificate $rootCert


After running the command you must do IISRESET.
For me it solved the problem... hope for you too J  

Good luck,

Ron Ness.

Tuesday, November 19, 2013

SharePoint list view threshold : " This view cannot be displayed because it exceeds the list view threshold "


שלום חברים,
היום לקוח פנה אליי עם בעיה בספריית מסמכים, הוא בחר בתצוגה מסויימת וקיבל את ההודעה הבאה :
" אין אפשרות להציג תצוגה זו מכיוון שהיא חורגת מסף התצוגה של הרשימה (60000 פריטים) שמנהל המערכת אוכף.
כדי להציג פריטים, נסה לבחור תצוגה אחרת או ליצור תצוגה חדשה. אם אין לך הרשאות מספיקות ליצירת תצוגות עבור רשימה זו, בקש ממנהל המערכת לשנות את התצוגה כדי להתאים אותה לסף התצוגה של הרשימה.
למד אודות יצירת תצוגות עבור רשימות גדולות. "

המשמעות היא שנתוני ה-View לא מוצגים בגלל שיש מגבלה ב-WebApplication בשם "List View Threshold ",  כלומר מציין את המספר המרבי של פריטי רשימה או ספריית מסמכים שבפעולת מסד נתונים, כגון שאילתה, יכולה לעבד באותו הזמן מחוץ לחלון הזמן היומי המוגדר על ידי מנהל המערכת.
הפתרון :
1.       פתח את הניהול המרכזי של SharePoint,
2.       לך לניהול יישומים -> ניהול יישומי אינטרנט
3.       לחץ כדי לבחור את יישום האינטרנט שמארח את הרשימה שלך (למשל SharePoint - 80)
4.       ברצועת הכלים, בחר את הגדרות כלליות ובחר ויסות משאבים
5.       ואז, אתה יכול לראות את מגבלת סף תצוגת רשימת 5000 ואתה יכול לערוך את הערך שאתה רוצה.
6.       לחץ על OK כדי לשמור אותו.

סף זה בעל ערך ברירת מחדל של 5000, בנסיבות מסוימות ניתן לערוך את חריגת הסף, אבל חשוב להבין שפעולה זו עשויה להשפיע על ביצועיי החווה, בנוסף לערך האפקטיבי של מגבלות אחרות.



חשוב שתדעו ש Microsoft  מגדירים -3- רמות של מגבלות :
1.       Boundaries : גבולות הם גבולות מוחלטים שלא יכולה להיות חריגה מהן. חשוב להבין את המגבלות הללו על מנת להבטיח כי לא נעשה הנחות שגויות בעת עיצוב החווה בעתיד.
דוגמה של גבול היא גבול גודל מסמך GB 2, לא ניתן להגדיר את SharePoint Server שיאחסן מסמכים שהם גדולים יותר מ 2 GB. זה מובנה בערך מוחלט, ולא יכול להיות חריגה על ידי עיצוב.
2.       Thresholds  : ספים הם אלה שיש להם ערך ברירת מחדל שניתן לשינוי. בנסיבות מסוימות,יכולות להיות חריגות מהספים כדי להכיל סטיות בעיצוב החווה, אבל חשוב להבין ששינוי של הערך תגרור השפעה על ביצועיי החווה, בנוסף לערך האפקטיבי של מגבלות אחרות. ערך ברירת המחדל של סף מסוים יכול לחרוג רק עד ערך מרבי מוחלט.
דוגמה טובה לכך היא מגבלת גודל המסמך. כברירת מחדל, את סף גודל המסמך המוגדר כברירת מחדל מוגדר 50
MB, אך ניתן לשינוי כדי לתמוך בגבול המקסימאלי של 2GB.
3.       Supported : גבולות נתמכים מגדירים את ערך המבחן לפרמטר נתון. ערכי ברירת המחדל עבור גבולות אלה הוגדרו על ידי בדיקות, ומייצגים את המגבלות הידועות של המוצר. חריגות נתמכות עלולה לגרום לתוצאות בלתי צפויות, ירידה משמעותית בביצועים, או השפעות מזיקות אחרות. כמה מגבלות נתמכות הן פרמטרים הניתנים להגדרה שנקבעו כברירת מחדל לערך המומלץ, ואילו מגבלות נתמכות אחרות מתייחסות לפרמטרים שאינם מיוצגים על ידי ערך להגדרה.

בהצלחה !
רון נס.



============================================================================================================================================================================================================================================================


Hello Friends,
Today a client approached me with a problem in a document library, he chose a certain view and got the following message:
" This view cannot be displayed because it exceeds the list view threshold (60000 items) enforced by the administrator.
To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for this list, ask your administrator to modify the view so that it conforms to the list view threshold.
Learn about creating views for large lists. "

This means the View don't shown because there is a limitation in WebApplication called "List View Threshold", ie specifies the maximum number of items in a list or document library database operations such as query, can process at the same time outside the daily time window defined by the administrator.
The solution:
1.       Open the SharePoint Central Administration,
2.       go to Application Management --> Manage Web Applications
3.       Click to select the web application that hosts your list (eg. SharePoint - 80)
4.       At the Ribbon, select the General Settings and select Resource Throttling
5.       Then, you can see the 5000 List View Threshold limit and you can edit the value you want.
6.       Click OK to save it.

This threshold has a default value of 5000, under certain circumstances can edit the deviation threshold, but it is important to understand that this may affect my performances farm, in addition to the effective value of other limits.




It is important to know that Microsoft define -3 - levels of restrictions :
1 . Boundaries : boundaries are absolute limits can not be exceeded them. It is important to understand these limits to ensure that no false assumptions made ​​when designing future farm .
An example of a limit is a limit 2 GB document size , you can not configure SharePoint Server machine that would store documents that are larger than 2 GB. This built- in absolute value , and can not be exceeded by design .
2 . Thresholds : thresholds are those that have a default value that can change. In certain circumstances, funds may be exceptions to accommodate deviations farm design , but is important to understand that a change of the drag effect on my performances farm , in addition to the effective value of other limits . The default value can exceed a certain threshold value only to the absolute maximum .
A good example is the document size limit . By default, the document size threshold default is set to 50MB , but can be changed to support the maximum limit of 2GB .
3 . Supported : Supported limits define the value of a given parameter test . The default values ​​for these limits were defined by testing, and represent the known limitations of the product. Supported abnormalities may cause unexpected results , a significant reduction in performance, or other harmful effects . Some supported limits are configurable parameters to the default value recommended , while the other supported limits relate to parameters that are not represented by a configurable value .

Good Luck :)
Ron Ness.

Wednesday, November 13, 2013

Search Service Application : "Cannot convert 'System.Object[]' to the type 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceInstancePipeBind"

שלום חברים,

היום במהלך בתקנת Search Service Application בחוות SharePoint 2013 התקבלה שגיאה ב-Console של PowerShell (אני יוצר את ה-Service Application  בעזרת PowerShell) :




PS C:\Users\User> New-SPEnterpriseSearchAdminComponent -SearchTopology $clone
-SearchServiceInstance $SearchServiceInstance
New-SPEnterpriseSearchAdminComponent: Cannot convert 'System.Object []' to the
Type 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceInstancePipeBind'
Required by parameter 'SearchServiceInstance'. Specified method is not
Supported........

כדי לפתור את הבעיה יש להגדיר על איזה מכונה רץ ה-Instance של ה-Search. לי יש 3 מכונות בחווה (FE/APP/DB). בשורת קוד שהגדרתי את ה-Instance הוספתי את הפרמטר –Local או שאתם יכולים להוסיף אובייקט של השרת עליו אתם מעוניינים שירוץ ה-Instance לדוגמא:

$SearchServiceInstance = Get-SPEnterpriseSearchServiceInstance $SearchServerName

$SearchServiceInstance = Get-SPEnterpriseSearchServiceInstance -Local

לאחר הוספת הפרמטר הכל עבד והמשיך לרוץ !

בהצלחה,
רון נס!


============================================================================================================================================================================================================================================================


Hello Friends,

Today during the installation of Search Service Application in a SharePoint 2013 I get ​​an error in the PowerShell console (I create the Service Application using PowerShell):


PS C:\Users\User> New-SPEnterpriseSearchAdminComponent -SearchTopology $clone
-SearchServiceInstance $SearchServiceInstance
New-SPEnterpriseSearchAdminComponent : Cannot convert 'System.Object[]' to the
type 'Microsoft.Office.Server.Search.Cmdlet.SearchServiceInstancePipeBind'
required by parameter 'SearchServiceInstance'. Specified method is not
supported........

I solve this error, by adding  $SearchServerName variable or the –Local Parameter.
1.     $SearchServiceInstance = Get-SPEnterpriseSearchServiceInstance $SearchServerName
2.     $SearchServiceInstance = Get-SPEnterpriseSearchServiceInstance -Local
Good Luck
Ron Ness :)