cannot be run because the QueueReader subsystem failed to load
2018-11-22 14:52 潇湘隐者 阅读(596) 评论(0) 编辑 收藏 举报前阵子一数据库服务器的事务日志开始暴增,当时使用下面脚本检查发现该数据库的log_reuse_wait_desc 一直处于REPLICATION状态, 也就是说在事务复制过程中,与发布相关的事务仍未传递到分发数据库。刚好前一天有个同事配置了AWS的DMS相关作业。
SELECT name, log_reuse_wait_desc FROM sys.databases;
找到具体作业检查发现,该作业的第二步出现了错误,LogReader服务启动失败了。如需截图所示:
Message
Unable to start execution of step 2 (reason: The LogReader subsystem failed to load [see the SQLAGENT.OUT file for details]; The job has been suspended). The step failed.
进一步检查SQL Server Agent的日志输出,发现是因为“because the QueueReader subsystem failed to load”
Date 2018/11/15 14:54:41
Log SQL Server Agent (Archive #1 - 2018/11/20 9:11:00)
Message
[LOG] Step 2 of job 'xxxx' (0xE00DFF76D02DAD47920124DD907A412D) cannot be run because the LogReader subsystem failed to load. The job has been suspended
Date 2018/11/15 14:54:44
Log SQL Server Agent (Archive #1 - 2018/11/20 9:11:00)
Message
[LOG] Step 2 of job 'xxxx' (0x1BC045267CAE2F4A8C3E283921F40641) cannot be run because the QueueReader subsystem failed to load. The job has been suspended
使用下面脚本检查,发现子系统QueueReader的dll是存在的,刚好同事前一天配置AWS时,在SQL Server里面添加了Replication相关组件。而添加组件后,没有重启SQL Server Agent服务。重启SQL Server Agent服务后,问题解决!
select * from msdb.dbo.syssubsystems
参考资料:
https://www.sqlservercentral.com/Forums/783200/Replication-subsystems-failed-to-load

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET10 - 预览版1新功能体验(一)
2016-11-22 DBCC CHECKDB 遭遇Operating system error 112(failed to retrieve text for this error. Reason: 15105) encountered
2016-11-22 SQL Server 如何通过SQL语句定位SSRS中的具体报表