2015年11月26日 星期四

[研究] K2 blackpearl 之 Message Queuing Enabled (MSMQ) 問題解決

[研究] K2 blackpearl 之 Message Queuing Enabled (MSMQ) 問題解決

2015-11-26

安裝環境

  • Windows Server 2012 R2 + AD (Active Directory) + IIS SMTP + MSMQ ( Microsoft Message Queuing)
  • SQL Server 2008 R2 with Service Pack 3
  • SharePoint Foundation 2010 with Service Pack 2
  • Visio 2007 + 2007 Microsoft Office System Update Redistributable Primary Interop Assemblies (PIA)
  • Visual Studio 2010 Ultimate + Visual Studio 2010 Web Deployment Projects - RTW
  • K2 blackpearl 4.5 (4.10060.1.0) with Update KB001420.exe


(下圖) 執行 K2 blackpearl Setup Manager



(下圖) 執行 K2 blackpearl Setup Manager


(下圖) 執行 K2 blackpearl Setup Manager 後,發生了無法 Repair 的問題 - Message Queuing Enabled

(下圖) 訊息說 MSMQ Workgroup flag in the registry is incorrect, its value should be 0 for domain machines.

(下圖) 點下 Visit help to learn more about this configuration option 觀看說明





(下圖) 啟動 命令提示字元

(下圖) 啟動 registry.exe  (登錄編輯程式)


(下圖) 左邊樹狀結構找 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters,右邊找 Workgroup 值


(下圖) 把值從 1改為0,按下「確定」按鈕 


(下圖) 到「服務」視窗,把 Message Queuing 開頭的服務 (可能1個或2個) 重新啟動




(下圖) 按下 Repair All   (或 Analyze All,或 Analyze ),錯誤依舊

請再次執行 registry.exe,會發現 Workgroup 值又變回1,再改0一次,再重新啟動一次,再按 Repair All 一次

(下圖) 現在訊息變成
物件擁有人無效。例如,MQCreateQueue因為Queue Manager物件無效而失敗。

















(下圖) 發現教學說明不全,做不下去了

線上說明
http://help.k2.com/onlinehelp/k2blackpearl/userguide/1420/webframe.html

線上版的 Install Message Queuing 說明,但是情況依舊,是殘缺不全的
http://help.k2.com/onlinehelp/k2blackpearl/icg/4.6.4/webframe.html#msmq.html

2015-12-08 得到廠商回覆,畫面是擷取自下面網址:
https://technet.microsoft.com/en-us/library/cc730960.aspx

在 Windows Server 2008 R2 環境上測試抓圖

To grant the Network Service account the Create MSMQ Configuration Objects permission to the computer object in Active Directory Domain Services before installing the Directory Services Integration feature on a computer that is a domain controller
1.Click Start , point to Programs , point to Administrative Tools , and then click Active Directory Users and Computers to open Active Directory Users and Computers .
2.Click the View menu and click to enable the options for Users, Groups, and Computers as containers and Advanced Features .

(下圖)
3.Click to expand the Domain container for the domain, click to expand the Computers container, right-click the computer object on which the Directory Services Integration feature is being installed, and then click Properties to display the computer properties dialog box.


(下圖)
4.Click to select the Security tab of the computer properties dialog box.
5.Click the Advanced button to display the Advanced Security Settings for <computer> dialog box.

 (下圖)
6.Click the Add button to display the Select User, Computer, or Group dialog box.


7.Type Network Service into the Enter the object name to select edit box. Click Check Names , and then click OK .


(下圖)
8.Click to enable Allow for the Create MSMQ Configuration objects permission, and then click OK to close the Permissions Entry for <computer> dialog box.
9.Click OK to close the Advanced Security Settings for <computer> dialog box.
10.Click OK to close the computer properties dialog box.

這裡要特別說明一下,「Create MSMQ Configuration objects permission」和「建立 MSMQ 佇列別名 物件」看起來好像不符合。


(下圖) 所以敝人又找到 Domain Controllers 下的 WIN2008R2 主機找了一次





這次「Create MSMQ Configuration objects permission」和「建立 MSMQ 組態物件 物件」看來一致了,後來推想是因為這台是 Domain Controller,所以出現在 Domain Controllers 之下,而非出現在 Computers 之下。

(下圖) Message Queuing 要再重新啟動一次 (微軟官方沒有說),否則後面 Repair All 會失敗








做到這裡似乎成功了。

後來從 4.10060.1290 升級到 4.10060.1420,又出問題,而且 Message Queuing Enabled 問題改 registry 和重新啟動 服務也沒用。還多了 Host Server Namespace Permissions 問題。(待解...)




********************************************************************************

(可以跳過不看,僅供參考)

下面是自己研究的方法 (在 2015-12-08 得到廠商回覆前),可以過關,但是不保證所有功能正常。



(下圖) 注意,一旦切換為 "本機系統帳戶",無法再切回 Network Service 帳戶,除非移除 MSMQ,再次重新安裝







(下圖) 按下 Repair All 後,左邊 Message Queuing Enabled 從紅色叉叉變成綠色了 (只是左邊紅色訊息依然不會消失)

(下圖) 重新跑一次 K2 blackpearl Setup Manager

(下圖) 不會再停在 Configuration Analysis,直接通過了


(下圖) 啟動 K2 blackpearl Workspace,似乎正常






(完)


相關

[研究] K2 blackpearl 之 Log on as a batch job 問題解決
http://shaurong.blogspot.com/2015/11/k2-blackpearl-log-on-as-batch-job.html

[研究] 2007 Microsoft Office System Update Redistributable Primary Interop Assemblies (PIA) 安裝
http://shaurong.blogspot.com/2015/11/2007-microsoft-office-system-update.html

[研究] K2 blackpearl 之 Message Queuing Enabled 問題解決
http://shaurong.blogspot.com/2015/11/k2-blackpearl-message-queuing-enabled.html

[研究] K2 blackpearl 之 K2 Services - Set Virtual Directory Anonymous Authentication 問題解決
http://shaurong.blogspot.com/2015/11/k2-blackpearl-k2-services-set-virtual.html

[研究] K2 blackpearl 4.5 (4.10060.1.0) with Update KB001420.exe 安裝筆記
http://shaurong.blogspot.com/2015/11/k2-blackpearl-45-41006010-with-update_80.html

[研究] K2 blackpearl 4.5 (4.10060.1.0) with Update KB001420.exe 安裝軟體需求
http://shaurong.blogspot.com/2015/11/k2-blackpearl-45-41006010-with-update_23.html

[研究] K2 blackpearl 4.5 (4.10060.1.0) with Update KB001290.exe 安裝軟體需求
http://shaurong.blogspot.com/2015/11/k2-blackpearl-45-41006010-with-update_44.html

[研究] Microsoft SharePoint Foundation 2010繁體中文版安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2015/11/microsoft-sharepoint-foundation-2010.html

[研究] SharePoint Foundation 2013 SP1 繁體中文版安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2015/11/sharepoint-foundation-2013-sp1-windows_19.html


[研究] Microsoft Message Queuing (MSMQ) 訊息佇列安裝 (Windows 2012 R2)
http://shaurong.blogspot.tw/2015/11/microsoft-message-queuing-msmq-windows.html

Slipstreaming Patches in SharePoint 2010
http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=295

Microsoft SharePoint Foundation 2010 Service Pack 2 繁體中文版
https://www.microsoft.com/zh-tw/download/details.aspx?id=39646

[研究] Microsoft SharePoint Server 2013 with SP1 安裝記 (Windows 2012 R2)
http://shaurong.blogspot.tw/2015/10/microsoft-sharepoint-server-2013-with.html

[研究] Microsoft SharePoint Server 2013 on Windows 2008 R2 安裝測試
http://shaurong.blogspot.tw/2013/07/microsoft-sharepoint-server-2013-on.html

[研究] Microsoft SharePoint Foundation 2010繁體中文版安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2015/11/microsoft-sharepoint-foundation-2010.html

[研究] Microsoft SharePoint Server 2010 on Windows 2008 R2 安裝
http://shaurong.blogspot.com/2013/07/microsoft-sharepoint-server-2010-on_3.html

Slipstreaming Patches in SharePoint 2010
http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=295

[研究] Windows SharePoint Services 3.0 x64 with SP2 安裝 (Windows 2008 R2)
http://shaurong.blogspot.com/2015/11/microsoft-sharepoint-foundation-2010.html

研究] Windows SharePoint Services 3.0 x64 with SP2 安裝 (Windows 2012 R2)
http://shaurong.blogspot.com/2015/11/windows-sharepoint-services-30-x64-with.html


沒有留言:

張貼留言