SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Replication Publication issue


Replication Publication issue

Author
Message
anitadba2010
anitadba2010
SSC-Enthusiastic
SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)SSC-Enthusiastic (116 reputation)

Group: General Forum Members
Points: 116 Visits: 34
We are seeing some issue with publication

When i launch replicaiton monitor, i see that status of pulications is 'Retrying failed command'

And when i look under the Agent Tab, and open the job snapshot agent which has a status 'Retrying failed command', the last action message is below. Can anyone guide how to fix this issue?


Message: There is not enough space on the disk.
Stack: at Microsoft.SqlServer.Replication.Snapshot.SqlServer.NativeBcpOutProvider.ThrowNativeBcpOutException(CConnection* pNativeConnectionWrapper)
at Microsoft.SqlServer.Replication.Snapshot.SqlServer.NativeBcpOutProvider.BcpOut(String strBcpObjectName, String strBcpObjectOwner, String strBaseBcpObjectName, Boolean fUnicodeConversion, String strDataFile, String strLoadOrderingHint, String strWhereClause, Boolean useTableLockHint, Int32 bcpFileFormatVersion)
at Microsoft.SqlServer.Replication.Snapshot.SqlServer.BcpOutThreadProvider.DoWork(WorkItem workItem)
at Microsoft.SqlServer.Replication.WorkerThread.NonExceptionBasedAgentThreadProc()
at Microsoft.SqlServer.Replication.AgentCore.BaseAgentThread.AgentThreadProcWrapper() (Source: MSSQLServer, Error number: 0)

Publication Type: Transactional

Thanks
Anita
Henry Treftz
Henry Treftz
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1911 Visits: 365
try running SQL Profiler with the error message options turned on, it is likely trying to insert and existing record or something like that.
David Benoit
David Benoit
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16024 Visits: 3650
It looks like it is dying on the snapshot. Can you right click on the publication and select "View Snapshot Agent Status". If that looks ok, then it is having a problem with applying the snapshot on the subscriber. Based on the error it also looks like you are out of space for that database. Have you checked that?

David

@SQLTentmaker

“He is no fool who gives what he cannot keep to gain that which he cannot lose” - Jim Elliot
Henry Treftz
Henry Treftz
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1911 Visits: 365
Yeah,

Forget what I said, when the snapshot is being created take a look at how much free space there is on the device where the snapshot is going.

If you have already created your snapshot and this is happening after that, take a look at your subscriber and see if it is having space issues.
Wildcat
Wildcat
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2466 Visits: 1445
David Benoit (1/13/2011)
It looks like it is dying on the snapshot. Can you right click on the publication and select "View Snapshot Agent Status". If that looks ok, then it is having a problem with applying the snapshot on the subscriber. Based on the error it also looks like you are out of space for that database. Have you checked that?



Yeah, here is the message: Message: There is not enough space on the disk.
Surendra Patle
Surendra Patle
SSC-Enthusiastic
SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)

Group: General Forum Members
Points: 169 Visits: 124
It is the space issue, Even I encountered the same problem with Transaction Replication and resolved it doing below:-

Cause:- The Snapshot you are taking in any drive, there is not enough space to hold the snapshot of your Publication. Published Articles size are bigger than space available in disk...

Steps:- 1. Check in which Drive your snapshot is getting stored, Right click on concern Publication --> Properties --> Snapshot --> Locations Of Snapshot files, there you will see one of the check box is selected "Put Files in the default folder' and "Put Files in Following Folder' with local or network mapped path.

2. Get the path and go to Drive and see how much disk space available there in that drive, that must be less than your Published Articles in that Publication...

3. Once you verified this and in order to run everything once again fine you need to free/make enough space in that Drive. Or point your Publication Snapshot to stored in other drive where you think enough space present...If changing drive path, change by Un checking 'Default Folder check box' and Checking 'Put files in following folder' Check box.

4. After doing above try taking Snapshot again, it wont throw same error again if you have pointed drive really having enough space.

Plz try this and do let me know if this doesn't work.
Thanks.

SurendraP..:-)
piyush.vrindavan
piyush.vrindavan
Valued Member
Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)

Group: General Forum Members
Points: 73 Visits: 44
Thank you so much for this nice explaination. this helped a lot. Smile
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search