• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2360
  • Last Modified:

SQL Server 2005 Merge Replication snapshot agent error

In SQL server 2005, I am trying to publish a database through the merge replication, I am getting an error in the snapshot agent.
The error is the following.

Error messages:
Message: The replication agent failed to create the directory '\\gondor\Replication\unc\GONDOR_COLLECTIBLES_COLLECTION MERGER\20070403163872\'.
Stack:    at Microsoft.SqlServer.Replication.Utilities.CreateDirectoryWithExtendedErrorInformation(String directory)
   at Microsoft.SqlServer.Replication.Snapshot.SnapshotProvider.CreateSnapshotFolders()
   at Microsoft.SqlServer.Replication.Snapshot.MergeSnapshotProvider.CreateSnapshotFolders()
   at Microsoft.SqlServer.Replication.Snapshot.SqlServerSnapshotProvider.GenerateSnapshot()
   at Microsoft.SqlServer.Replication.SnapshotGenerationAgent.InternalRun()
   at Microsoft.SqlServer.Replication.AgentCore.Run() (Source: MSSQL_REPL, Error number: MSSQL_REPL52026)
Get help: http://help/MSSQL_REPL52026
Source: mscorlib
Target Site: Void WinIOError(Int32, System.String)
Message: Logon failure: unknown user name or bad password.

Stack:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
   at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
   at Microsoft.SqlServer.Replication.Utilities.CreateDirectoryWithExtendedErrorInformation(String directory) (Source: mscorlib, Error number: 0)
Get help: http://help/0

The agent is running with a domain account that belongs to the local administrator group, all other services run under such user, the share folder is owned by that same user.

Any ideas?

Thanks for you time.
0
lupineres
Asked:
lupineres
  • 2
  • 2
1 Solution
 
rboyd56Commented:
Log onto the box as the SQL Server Agent service account and see if you can access the share. That will tell you if it is a permissions problem on the share.
0
 
TAB8Commented:
The agent is running with a domain account that belongs to the local administrator group, all other services run under such user, the share folder is owned by that same user.??

What acees does this Account have within SQL ?
0
 
lupineresAuthor Commented:
What acees does this Account have within SQL ?
I have no idea. Should I include that user withtin the users that can act on the DB?
0
 
TAB8Commented:
The account you use to run the replication agents need full rights to the distribution database on the publisher ...  the easiest way to check this give your account database admin rights within SQL ..
0
 
rboyd56Commented:
Yur problem is not related to the distributin database or the user database. It is a share right permissions:

This error message:
Message: The replication agent failed to create the directory '\\gondor\Replication\unc\GONDOR_COLLECTIBLES_COLLECTION MERGER\20070403163872\'.
indicates that the account running the snapshot agent (normally the SQL Server Agent service account) could not create the folder to place the snapshot files.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now