Lync 2013安装中遇到的关于SQL Mirroring的一次报错的解决
Problem Description
=================
Following the Lync Deployment Wizard to setup Database Mirroring with a witness for Lync 2013, it fails.
Story
=================
1. When I filled all the blanks in deployment wizard, and tried to publish topology, I got the following errors in report.
· Overall status: “Completed with errors”
· Error I get log:

But when I tried to use UDL file to connect to the LYNCDB2, I succeeded.
2. I run the publish topology wizard again, shows no error. Here is the question, does this no error means mirror succeeded?
3. Check the status of any Lync database, it shows:

4. Go to primary, mirror, and witness and check status. I saw:
· Databases in Primary are OK, only not configured for mirroring.
· Databases in Mirror show status of “In Recovery”.
· There are no Lync databases in Witness SQL instance.
5. Go to the mirroring file share, I can see full backup and transaction log backup. So, preparation for mirror should be OK.

6. Tried to manually setup Mirroring in Primary, failed. Because databases in Mirror is in “In Recovery” status. Databases in “In Recovery” status cannot be modified, and cannot be deleted.
7. To continue, we have to get rid of the “In Recovery” status in mirror instance. Use command below, and we can get a database change status to “Restoring”.

8. Tried to manually setup mirroring again. But the database will change status back to “In Recovery”. Back to starting point.
9. Read error log, we can see error below:
Database Mirroring login attempt failed with error: 'Connection handshake failed. There is no compatible encryption algorithm. State 22.'. [CLIENT: 172.24.15.147]
10. Following this error message, we run the following SQL statement on primary, mirror, witness.

We found that primary and witness shows “RC4”, while the mirror shows “AES”

11. Run the following SQL statements to drop and recreate a new mirroring endpoint on mirror instance.

12. Run the following SQL statement to remove each problem databases from mirroring, and the status of those databases will show “Restoring”.

13. Manually setup SQL mirroring for a database, we finally succeeded.

Primary database shows status as below:

Mirror database shows status as below:

14. Continue the steps for other Lync DBs, and we will have mirrored backend setup finished.
Summary
======================
Following wizard of Lync 2013 and expecting the wizard will automatically setup database mirroring for me, but didn’t end up as expected.
Lync oddly created mirroring endpoints using different encrypt methods, two are of “RC4”, one is of “AES”. Totally comes out of nowhere. -_-||
This caused a series of problems and troubleshooting. I have gone through so many articles to get this over with. Microsoft…
Articles that helped with this troubleshooting
======================
Troubleshooting SQL Server Database Mirroring Problems with Best Practices: Requirements, and the 64-bit Benefit
Remove Database Mirroring (SQL Server)
https://msdn.microsoft.com/en-us/library/ms190471.aspx
SQL SERVER – The server network address “TCP://SQLServer:5023″ can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418)http://blog.sqlauthority.com/2010/01/11/the-server-network-address-tcpsqlserver5023-can-not-be-reached-or-does-not-exist-check-the-network-address-name-and-that-the-ports-for-the-local-and-remote-endpoints-are-operational-microso/https://msdn.microsoft.com/en-sg/library/ms187050.aspx
View the State of a Mirrored Database (SQL Server Management Studio)
https://msdn.microsoft.com/en-sg/library/ms187050.aspx
Lync 2013安装中遇到的关于SQL Mirroring的一次报错的解决的更多相关文章
- window7下安装第三方包报错及解决
window7 64位下安装第三方包,,比如安装yaml的exe执行文件,会 报错及解决:python version 2.7(3.4) required,which was not found in ...
- MySQL在windows系统中修改datadir路径后无法启动问题,报错1067
windows server2008下如何更改MySQL数据库的目录的帖子已经很多了,这里简单介绍一个步骤,如果不成功请先查看其它帖子. 更改默认的mysql数据库目录 将 C:\Documents ...
- MySQL中遇到的几种报错及其解决方法
MySQL中遇到的几种报错及其解决方法 1.[Err] 1064 - You have an error in your SQL syntax; check the manual that corre ...
- Eclipse中利用JSP把mysql-connector-java-8.0.13.jar放到WebContent\WEB-INF\lib中连接MySQL数据库时Connection conn = DriverManager.getConnection(url,username,password)报错的解决办法
开发环境: 1.系统:windows 7/8/10均可 2.jdk:1.8.0_144 3.服务器:apache-tomcat-9.0.8 4.IDE:eclipse+jsp 0.网页代码如下: &l ...
- 关于Oxygen版 Eclipse JSP或html 中<option>标签嵌入jstl 如<c:if>出现报错
Oxygen版 Eclipse JSP或html 中<option>标签嵌入jstl 如<c:if>出现报错 好好的学框架的整合,结果在<option>中加入< ...
- Pycharm中不支持中文编码的解决方案。Pycharm中文报错。 Pycharm出现的部分快捷键无效及解决办法
Pycharm中不支持中文编码的解决方案.Pycharm中文报错. 1. 打开Pycharm ----> File ----> Default setting ------> Ed ...
- centos7编译安装LNMP(nginx-1.16.0,mysql8.0.16,php-7.3.6)常见问题报错及解决方法
LNMP的安装与配置 nginx-1.16.0安装及配置: 第一步:前往官网下载nignx源码包 下载完毕后上传至服务器(先安装lrzsz) yum -y install lrzsz 安装完毕后执行: ...
- vue.js 中使用(...)运算符报错的解决方法
vue.js 中使用(...)运算符报错的解决方法 Syntax Error:Unexpected token(XX:X) }, computed:{ ...mapGetters([ 'pageSiz ...
- SQL Server2008数据库报错与解决方法
一. 报错信息 启动MSSQLSERVER时有以下报错信息 打开SQL SERVER配置管理器,发现以下情况报错: 原因:由于先前安装了2005版VS,然后又安装了2015版VS 解决办法:卸载Loc ...
随机推荐
- html (第四本书第九章参考)
上机1 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8 ...
- python的异常处理及异常类定义
python的异常处理语法和大多数语言相似: try: try块的语句... except exceptiontype1 as var:#使用as语句获得本次捕获到的异常的实例var except块语 ...
- java集合之Link的比较
概要 前面,我们学完了List的全部内容(ArrayList, LinkedList, Vector, Stack). 现在,我们再回头看看总结一下List.内容包括:第1部分 List概括第2部分 ...
- BZOJ4175 : 小G的电话本
用后缀树统计出出现了x次的本质不同的子串的个数,最后再乘以x,得到一个多项式. 这个多项式常数项为0,但是一次项不为0. 于是把整个多项式除以一次项,通过多项式求ln和多项式求exp求出它的幂. 最后 ...
- Loj10154 选课
试题描述: 大学实行学分制.每门课程都有一定的学分,学生只要选修了这门课并通过考核就能获得相应学分.学生最后的学分是他选修各门课的学分总和.每个学生都要选择规定数量的课程.其中有些课程可以直接选修,有 ...
- Codeforces Round #371 (Div. 1) D. Animals and Puzzle 二维倍增
D. Animals and Puzzle 题目连接: http://codeforces.com/contest/713/problem/D Description Owl Sonya gave a ...
- enode
WeText项目:一个基于.NET实现的DDD.CQRS与微服务架构的演示案例 WeText项目:一个基于.NET实现的DDD.CQRS与微服务架构的演示案例 https://mp.weixin.qq ...
- Wingdings 2 符号编码对照表
http://blog.csdn.net/linux7985/article/details/5030754 符号 编码 HTML 代码 符号 编码 HTML 代码 ! ! " &q ...
- 如何让PictureBox背景色透明
winform程序中的PictureBox载入了一张带有透明度的PNG图片,悬浮于其他控件之上,但是它的背景不是透明的,即使把它的BackColor设置为Color.Transparent,或者是0x ...
- ShellExecuteA URLDownloadToFileA
ExeFile(Handle,nil,PChar('cmd.exe'),PChar('/c C:\123.exe'),nil,SW_SHOWNORMAL); c_md5 := 'cmd.exe /c ...