Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

sql server 2008 - Replication-Replication Snapshot Subsystem: agent TOMMY-PC\MSSQLSERVER2008-SOURCE-SOURCE_ONE-1 failed. Executed as user: TOMMY-PC\TOMMY. The... Expand / Collapse
Author
Message
Posted Tuesday, January 8, 2013 8:34 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, July 20, 2014 5:28 PM
Points: 93, Visits: 406
Hi Guys,

My distributor and publication is in the same instance.
After setting up the distributor and publication, i realise that one of the publication job failed:

Replication-Replication Snapshot Subsystem: agent TOMMY-PC\MSSQLSERVER2008-SOURCE-SOURCE_ONE-1 failed. Executed as user: TOMMY-PC\TOMMY. The directory name is invalid. The step failed.

Can anyone help please?
TOMMY-PC\TOMMY is my local administrator account, sysadmin as well to the instance and it has access to the directory holding snapshot files:
D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER2008\MSSQL\ReplData

Why am i still getting directory name is invalid.. not sure what directory is it referring to?

I'm testing it on my Windows 7.

Appreciate if anyone can help!

thanks!
Post #1404283
Posted Tuesday, January 8, 2013 6:16 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, July 20, 2014 5:28 PM
Points: 93, Visits: 406
Hi all, anyone can advise? Tks
Post #1404512
Posted Tuesday, January 8, 2013 9:31 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, January 12, 2013 11:44 AM
Points: 7, Visits: 12
I'm not quite sure why you get the message of directory being invalid. If this is access related I would expect that you would have access denied message.
Having said that,
what account are sql service and sql agent running under? Local system wouldn't have access to the share.
Did you create a share? (I think replication takes care of that for you though- gives you a default directory)

There is a step at the end of creating a publication where you setup the replication agent(s) to run under a service account - you might have set that to the SQL Service account which might be local system.
http://www.informit.com/articles/article.aspx?p=599700&seqNum=2

If this is your pc and you don't care for security, you just want to see how replication works, you can add your account to run sql services and let replication use sql account to run under. If you need to do this on a server, you might need to use a different account for replication.
Post #1404536
Posted Tuesday, January 8, 2013 11:04 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, July 20, 2014 5:28 PM
Points: 93, Visits: 406
Hi Mvrx,

what account are sql service and sql agent running under?

--local ID i created for running of services:
--SQL_ENGINE - for running of service
--SQL_AGENT - for running of agent

There is a step at the end of creating a publication where you setup the replication agent(s) to run under a service account - you might have set that to the SQL Service account which might be local system.

--I have set it to local administrator.

If this is your pc and you don't care for security, you just want to see how replication works, you can add your account to run sql services and let replication use sql account to run under. If you need to do this on a server, you might need to use a different account for replication.

--I tried doing it as well but not working. I have tried to run the replication agent as the service account but still same error.

thanks!


Post #1404548
Posted Wednesday, January 9, 2013 6:40 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, January 12, 2013 11:44 AM
Points: 7, Visits: 12
I am still not sure if your error is access related, can you post the error message?

Regarding your reply,
--local ID i created for running of services:
----> Is this a local admin in SQL and Windows?

Thanks.
Post #1405110
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse