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


sql server 2008 - Replication-Replication Snapshot Subsystem: agent...


sql server 2008 - Replication-Replication Snapshot Subsystem: agent TOMMY-PC\MSSQLSERVER2008-SOURCE-SOURCE_ONE-1 failed. Executed as user: TOMMY-PC\TOMMY. The...

Author
Message
chewychewy
chewychewy
SSC Veteran
SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)

Group: General Forum Members
Points: 238 Visits: 520
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!
chewychewy
chewychewy
SSC Veteran
SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)

Group: General Forum Members
Points: 238 Visits: 520
Hi all, anyone can advise? Tks
Mvrx
Mvrx
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 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.
chewychewy
chewychewy
SSC Veteran
SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)SSC Veteran (238 reputation)

Group: General Forum Members
Points: 238 Visits: 520
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!
Mvrx
Mvrx
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 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.
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