Transactional replication problem

  • Hi everyone,

    We encountered some strange error when we were trying to add a subscriber.

    Following steps were performed:

    1. Publsher and distributor (2 different machines) were created

    2. Publication was created

    3. Few (12) subscribers were successfully added to the publication

    When some time after everything is successfully running we tried to add 2 or more subscribers and got an error:

    Message

    The replication agent encountered a failure. See the previous job step history message or Replication Monitor for more information. The step failed.

    Checking replication monitor it sends us to job and job sends us to replication monitor. Removing newly added subscribers make everything looks good again.

    Any ideas if we need to check some settings?

    Thanks.

  • What is the error in the previous job step history message?

  • The problem is that there is no previous message at all. In replication monitor it says - check the job.

  • The error is in the job history of the SQL Server Agent job that is the Distribution Agent (named <distributor_name>-<publication_name>-<subscriber_name>).

    Possibly it will tell you the distributor cannot connect to the Subscriber database (make sure the user that the Distribution Agent is in the dbo role in the Subscriber database)

  • this is exactly where I took a look:

    -Publisher [ASH2VCL05INST4\CLSAVCL05INST4] -PublisherDB [VS_VALIDATION] -Distributor [ASH2VCL05INST3\CLSAVCL05INST3] -Publication [VS_VALIDATION] -DistributorSecurityMode 1 -Continuous

    The replication agent encountered an error and is set to restart within the job step retry interval. See the previous job step history message or Replication Monitor for more

    information.

    Previous step doesn't have any message at all.

  • I don't see the subscriber.

    What job category is it? REPL-Distribution?

  • Did you generate a new snapshot?

  • yes. When we setup everything first time with n number of subscribers it went through without problems. Replication is working perfectly. When later on we tried to add another subscribers and initialize the subscription with new snapshot creation - this is where it happens.

  • Which agent job has the error. There should be a separate distributor job for each subscription

  • True. Each job (for publication we are trying to add subscriptions) gives the same error

  • What happens if you restart one of the existing Distribution jobs.

    You may get cleaner errors in the job history.

  • Still experiencing a problem. Maybe someone can give us any directions.

    All I found online was about some user/persmissions issues. We dropped everything and re-created from the scratch publisher-distributor-subscriber using 1 user with DBA role.

    Adding several subscriptions went well and everything is working. The minute we add another subscription we have a problem.

    We have 10 publications with 12 subscribers to each running successfully. Adding new subscribers is an issue.

    Is it any capacity problem? Should we modify any parameters?

    Any input will be welcome.

    Thanks.

  • we tried to restart job which failed. No luck, the same error messages

  • Do all the subscriptions fail, or only the new ones you add?

  • all old subscriptions are working, just the added one shoes agent failure when we try to initialize it.

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in to reply to this topic. Login to reply