|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Yesterday @ 2:03 AM
Points: 3,046,
Visits: 1,307
|
|
Hi
I'm getting this error with a transactional replication setup on SQL 2008R2 Standard (SP1):
The distribution agent failed to create temporary files in 'C:\Program Files\Microsoft SQL Server\100\COM' directory. System returned errorcode 5. (Source: MSSQL_REPL, Error number: MSSQL_REPL21100)
I've been to http://support.microsoft.com/kb/956032/en-us amongst other places, and as a result given full control to Everyone on the C:\Program Files\Microsoft SQL Server\100\COM folder (I tried the SQL Agent and Distribution agent accounts first). I've also disabled on-access scanning for the anti-virus software. It's a 2-node cluster so I've done this for both nodes.
Is there anything else I can try in order to troubleshoot further? - only this one has got me completely stumped.
Thanks everyone,
Duncan
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Yesterday @ 2:03 AM
Points: 3,046,
Visits: 1,307
|
|
Hi all
I managed to fix it. Confusingly, although the error message was on the publisher/distributor, the folder it was referring to was on the subscriber. I gave the distribution agent account write access to the folder and disabled on-access scanning for the folder (as I had done at the publisher/distributor), and lo-and-behold it works!
Live and learn.
Duncan
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 9:49 AM
Points: 12,
Visits: 147
|
|
I setup replication using the impersonate settings, so it's using the SQL Agent account which is domain and is an Admin on both boxes. I'm still getting the error.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Yesterday @ 2:03 AM
Points: 3,046,
Visits: 1,307
|
|
pcwik (3/14/2013) I setup replication using the impersonate settings, so it's using the SQL Agent account which is domain and is an Admin on both boxes. I'm still getting the error.
Sorry to hear that. You can try using Process Monitor to find out a bit more about the accounts and access requests involved - that's what I did which enabled me to work out I was looking at the wrong box.
You will need to check the exact permissions on the folder involved as well. Even an admin account can be denied access to folders.
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 9:49 AM
Points: 12,
Visits: 147
|
|
Thanks, I'll give process monitor a try. As far as the permissions I even created a share and granted full control to everyone, same thing. The real stupid part of this is that is does breath every ten minutes or so. If I keep refreshing replication monitor, it shows error, error, error, transactions delivered, error...
|
|
|
|