私のサイトを専用のWebアプリケーションに移動した後のユーザーのサイト作成失敗

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/58338

質問

私は、専用のWSS_Contentデータベース(すなわちベストプラクティス勧告)に格納されているすべての個人サイト作成(すなわち、私のサイト)を有することを意図して、ポート8080で新しいウェブアプリケーションを作成した。

必要なすべてのステップを経て、私は思う:

  • 作成された mySiteScollection エンタープライズテンプレートを使用して "My Site Host" http://SPstaff:8080のルートで、このトップレベルのサイトは正常に作成されました
  • Webアプリケーションのセルフサービスサイトの作成を有効にしました(無線ボタンをオンにしました)。 警告:セルフサービスサイトの作成は、わからなかった共有ホスト名の下にサイトを作成します(多分関連する?)
  • このWebアプリに管理されたパス / mysites を追加しました
  • My Site Host http://spstaff:8080/ Personalサイトの場所を設定して、のセットアップをクリックして、ユーザープロファイルサービスアプリケーションのマイサイト設定を設定しました。 > MySitesに設定します。

    最初にSPSTAFFに閲覧しようとしたとき:8080 / MySites /私はWindowsイベントログで妥当なエラーを得ました:

    Cannot open database "WSS_Content_SPSTAFFMySites" requested by the login. The login failed. Login failed for user 'CBMIWEB\spAppPool'
    
    .

    だから私はこのユーザーをこの新しく作成されたデータベースに追加し、そのエラーを取得しなくなりました。

    代わりに、このシーケンスのようなエラーを起こしています。

    最初のエラーはイベントID:6141タスクカテゴリ:トポロジ

    The site /mysites/joanc could not be created.  The following exception occurred: Attempted to perform an unauthorized operation
    
    .

    アプリケーションログの次のエントリはイベントID:5187タスクカテゴリ:管理

    My Site creation failure for user 'CBMIWEB\joanc' for site url `'http://spstaff:8080/mysites/joanc'`. 
    The exception was: Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site. ---> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
    at Microsoft.SharePoint.SPSecurableObject.CheckPermissions(SPBasePermissions permissionMask)
    at Microsoft.SharePoint.SPSecurity.ValidateSecurityOnOperation(SPOperationCode code, SPSecurableObject obj)
    at Microsoft.SharePoint.SPFeature.AddRowToFeaturesTable(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce)
    at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)
    at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)
    at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, String featureName, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
    at Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedCore(SPSite site, SPWeb web, String sFeatures, Boolean fMarkOnly)
    at Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClassa.<EnsureFeaturesActivatedAtSite>b__9()
    at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)
    at Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedAtSite(Byte[]& userToken, Guid& tranLockerId, Int32 nZone, Guid databaseid, Guid siteid, String sFeatures)
    at Microsoft.SharePoint.Library.SPRequest.SscCreateSite(Guid gApplicationId, String bstrUrl, String bstrServerRelativeUrl, Int32 lZone, Guid gSiteId, Guid gDatabaseId, String bstrDatabaseServer, String bstrDatabaseName, String bstrDatabaseUsername, String bstrDatabasePassword, String bstrTitle, String bstrDescription, UInt32 nLCID, String bstrOwnerLogin, String bstrOwnerUserKey, String bstrOwnerName, String bstrOwnerEmail, String bstrSecondaryContactLogin, String bstrSecondaryContactUserKey, String bstrSecondaryContactName, String bstrSecondaryContactEmail, Boolean bADAccountMode, Boolean bHostHeaderIsSiteName, Int32 iDatabaseVersionMajor, Int32 iDatabaseVersionMinor, Int32 iDatabaseVersionBuild, Int32 iDatabaseVersionRevision)
    at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, SPSiteSubscription siteSubscription, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)
    at Microsoft.SharePoint.SPSite.SelfServiceCreateSite(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String contactLogin, String contactName, String contactEmail, String quotaTemplate, SPSiteSubscription siteSubscription)
    at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
    --- End of inner exception stack trace ---
    at Microsoft.Office.Server.UserProfiles.UserProfile.<>c__DisplayClass2.<CreateSite>b__0()
    at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
    at Microsoft.Office.Server.UserProfiles.UserProfile.CreateSite(String strRequestUrl, Boolean bCollision, Int32 lcid)
    
    .

    他の症状私の個人ログオンブラウジングをhttp://spstaff:8080/mysites/johnaに閲覧することは、有用な「Internet ExplorerはWebページを表示できません」です。

    私は何が悪いのかわからない。

役に立ちましたか?

解決

  • My setup for this was generally OK but my choices for the new web application introduced a need for "host headers" and an arbitrary port of 8080
  • The name requiring "host headers" required unneccessary complication so the entire web application was deleted
  • This new web application still failed (even after all the proper steps taken)
  • Captured HTTP traffic with Fiddler2 and errors led me to suspect Firewall(s) rules
  • Ultimately, the Windows Firewall on our Sharepoint server needed a new rule added for Inbound traffic (to allow port 81).

So the objective has been achieved but I wonder if I could have avoided using a different port number? Could I have added a 2nd web application (to achieve the separation of content to a diffent database) that also used port 80? Could a wildcard managed path for mysites at the root of this 2nd web app have been sufficient?

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top