martes, 18 de junio de 2013

MySite – Distributed Cache Sharepoint 2013

Configurando MySites de Sharepoint 2013, me dí cuenta que el web part de “I´m Following”, no aparecía en la sección de la derecha de NewsFeeds

Untitled

Revisando los logs, aparecía el error:

"The operation failed because an internal error occurred. Internal type name: Microsoft.Office.Server.Microfeed.MicrofeedException. Internal error code: 55."

“SPMicrofeedFeedCacheService.GetUserProfile() - UserProfileApplicationProxy not available”

También puede aparecer el error: "We're still collection the latest news. You may see more if you try again a little later."

Este error indica “ServerErrorFetchingConsolidatedFeed”, por lo tanto supuse que era un problema de la feature Distributed Cache, la cual está relacionada con la cache de Feeds del User Profile.

A continuación, revise la configuración de la distributed cache.

use-cachecluster

get-cachehost

add-PSSnapin Microsoft.SharePoint.PowerShell

get-AFCacheHostConfiguration -ComputerName WFEName1 -CachePort "22233"

get-AFCacheHostConfiguration -ComputerName WFEName1 -CachePort "22233"

get-CacheClusterHealth

image

Los dos cache host estaban “Up” y funcionando correctamente. Por lo tanto el problema debería algún permiso faltante en la configuración, y en estaba en lo correcto:

Los permisos correctos son los siguientes:

  • Al usuario de Distributed Cache (Ej: SP_AppFabric) darle permisos de full control sobre el User Profile Service Application, y de administrador sobre el mismo.

$account = New-SPClaimsPrincipal <domain\user> -IdentityType WindowsSamAccountName

$UPA = Get-SPServiceApplication <ID>,

donde el <ID> es el ID del service application  de USer Profile.

$sec = Get-SPServiceApplicationSecurity $UPA

Grant-SPObjectSecurity $sec2 -Principal $account -Rights "Full Control"

Set-SPServiceApplicationSecurity -Identity $UPA -ObjectSecurity $sec

Estos permisos también lo puedes realizar desde el Central Administration –> Service Application –> Seleccionar User Profile Service Application –> Permissions

image

  • Al usuario de App Pool que ejecuta los services application (Ej: SP_ServiceApps ) darle permisos de full control sobre el User Profile Service Application y de administrador sobre el service.
  • Darle permisos al grupo WSS_WPG

use-CacheCluster

Grant-AFCacheAllowedClientAccount WSS_WPG

Después de setear los permisos, reinicie los servers WFE1 y WFE 2, y empezó a aparecer “I´m Following” de NewsFeeds:

Untitledcorrecto

A continuación te listo todos los errores posibles de excepciones microfeed:

"The operation failed because an internal error occurred. Internal type name: Microsoft.Office.Server.Microfeed.MicrofeedException. Internal error code: XY."

Code

Description

0

Success

1

ServerError

2

InsufficientPermissions

3

InterimPlaceholderEntity

4

InvalidItemId

5

InvalidThreadId

6

InvalidUriInPostOptions

7

InvalidMediaLinkName

8

InvalidMediaLinkURI

9

InvalidMediaLinkSnippetURI

10

MediaLinkAddFailure

11

NoServiceContext

12

Invalid_MicroBlogType_Requested

13

Only_One_ContentUri_Allowed_Per_Post

14

Invalid_Content_Null_Or_Empty

15

Invalid_Content_Length_Greater_Than_512_Chars

16

Invalid_KeyWord_Found_In_Content

17

Invalid_MediaLinks_SerializedString

18

Invalid_MicroBlogPost_SerializedString

19

MicroBlogEntity_Error_PublishedFeedList_NotFound

20

MicroBlogEntity_Invalid_GetPublishedFeed

21

MicroBlogPost_Error_SavingToPublishedFeed

22

MicroBlogPost_Error_PublishingToCache

23

MicroBlogPost_Error_DeletingFromCache

24

MicroBLogList_Error_FetchingList

25

MicroBlogList_Error_ExecutingQuery

26

MicroBlogList_Error_FetchingItem

27

MicroBlogList_Error_AddingItem

28

MicroBlogList_Error_Updating_Item

29

MicroBlogList_Error_FetchMBProfileItem

30

MicroBlogList_Error_AccessingProperty

31

InvalidRequest

32

InvalidLikeRequest

33

InvalidLockRequest

34

InvalidRootPost

35

InvalidReplyRequest

36

InvalidReplyRequest_MaxRepliesPerRootPost_LimitReached

37

InvalidLikeRequest_AlreadyMarkedAsLiked

38

InvalidUnLikeRequest_AlreadyMarkedAsUnLike

39

InvalidEMailSubscriptionRequest_AlreadyUnsubscribed

40

InvalidEMailSubscriptionRequest_AlreadySubscribed

41

InvalidEMailSubscriptionRequest_NotThread

42

InvalidLockRequest_AlreadyMarkedAsLocked

43

InvalidUnLockRequest_AlreadyMarkedAsUnLocked

44

InvalidLockRequest_LockingNonRootPost

45

ServerErrorCanReplyIsFalse

46

ServerErrorFeatureDisabled

47

ServerErrorSiteNotFound

48

ServerErrorMicroBlogListNotFound

49

ServerErrorRootPostNotFound

50

ServerErrorPublishedFeedListNotFound

51

ServerErrorPublishedFeedListItemNotFound

52

ServerErrorSavingListItemField

53

ServerErrorInvalidFeedRequest

54

ServerErrorFetchingPublishedFeed

55

ServerErrorFetchingConsolidatedFeed

56

ServerErrorFetchingCategoricalFeed

57

ServerErrorFetchingActivityFeed

58

ServerErrorSecurityTrimmer

59

ServerErrorDuplicateMessageId

60

ServerErrorOpeningPersonalSite

61

ServerError_Initialization

62

ServerErrorInvalidContentURI

63

ServerErrorInvalidFollowedItemType

64

ServerErrorPublishingToList

65

ServerErrorPublishingToCache

66

MicroBlogDeletionError_NotOwner

67

ServerCacheError_CacheNotFound

68

ServerCacheError_NotAuthorized

69

ServerCacheError_ThreadNotFound

70

IncorrectTenantPartition

71

InvalidUserAccount

72

InvalidKeywordTag

73

Taxonomy_TagNotAvailabelForTagging

74

Taxonomy_TermStoreNotFound

75

InvalidEntityIdentifier

76

UnexpectedEntityType

77

WarningPersonalSiteNotFoundCannotCreate

78

WarningPersonalSiteNotFoundCanCreate

79

WarningPersonalSiteNotFoundCanCreateNoPermissions

80

WarningPersonalSiteNotFoundCanCreateError

81

ErrorPersonalSiteNotFound

82

GuidStringConversionError

83

ServerErrorUnableToFetchUserProfile

84

SP_MFPD_DataBase_Exception

85

SP_MFPD_DataBase_DefinitionNotFound

86

SP_MFPD_Invalid_Operation

87

SP_MFPD_Invalid_Value

88

SP_MFPD_Partition_Mismatch

89

SP_MFPD_Definition_Disabled

90

Invalid_MicroBlogPost_DefinitionNameIsRequired

91

Invalid_MicroBlogPost_InvalidDefinitionName

92

InvalidRequest_PostIsLocked

93

ServerErrorUnableToAttachPicture

94

InvalidFeedCacheEntity_UserMissingURI

95

InvalidFeedCacheEntity_DocMissingURI

96

RestrictedListStorageCompromised

97

InvalidPostTarget

No hay comentarios:

Publicar un comentario