Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I came across this line in the verbose log on replication QueueReader Agent job startup.

The Queue Reader Agent has encountered the error 'Another queuereader agent for the subscription or subscriptions is running, or the server is working on a previous request by the same agent.' when connecting to 'distribution' on 'Svr01\Inst01'. Ensure that the publication and subscription are defined properly and that both servers are running.

The first clue I had that something was wrong was the vague replication message:

The replication agent has not logged a progress message in 10 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Distributor are still active.

Replication IS working but Replication Monitor is showing red X's. This second error has shown up from time to time and sometimes goes away. For a while now I though this was a bug as it has been reported a few times on Connect.

Assuming the first quoted error is correct, how can I find the double QueueReader or previous request?

tasklist /FI "imagename eq qreader.exe"

Returns nothing.

SELECT job_id, name, enabled FROM msdb..sysjobs WHERE category_id = 19 ORDER BY date_created;

Returns 1 row on each distributor.

Setup:

  1. Svr01 = Publisher, Distributor, SQL 2005
  2. Svr02 = Publisher, Distributor, SQL 2005, Subscribor (Svr01)
  3. Svr03 = SQL 2005, Subscribor (Svr01, Svr02)

Both Svr01 and Svr02 are reporting these errors.

Resources:

DBA.Stackexchange search results

MSDB forum

share|improve this question
    
This is being recorded in the error logs every minute: "[181] Step 2 of job [Svr01\Inst01].11 failed but will be retried in 1 minute(s)" –  Dennis Post Oct 15 '13 at 7:05
    
Step 2: Name : Run Agent Type : Replication Queue Reader Run as : SQL Server Agent Service Account Database : Distribution Command : -Distributor [Svr01\Inst01] -DistributionDB [distribution] -DistributorSecurityMode 1 -Continuous –  Dennis Post Oct 15 '13 at 7:14

1 Answer 1

Solved it.

The Queue Reader agent is only used in snapshot or updatable transactional replications.

I just deleted the job and emptied tables MSqreader_agents & MSqreader_history from the distribution database. Finally I killed the qrdrsvc.exe process.

Helpful links: http://social.msdn.microsoft.com/Forums/en-US/a6de412b-ebae-4a39-b00f-8f724237e14e/queue-reader-agent-error http://technet.microsoft.com/en-us/library/ms147378.aspx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.