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


Logshipping copy job failure


Logshipping copy job failure

Author
Message
SQLisAwE5OmE
SQLisAwE5OmE
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10459 Visits: 3113
Hi Team,
I am trying to setup logshipping from PROD to DR, and my copy job fails with following error.

2018-01-14 08:15:14.12 Retrieved copy settings. Primary Server: 'Servername\InstanceName', Primary Database: 'DatabaseName', Backup Source Directory: '\\ServerName\LogShip_Backup', Backup Destination Directory: 'F:\LogShip_Backup', Last Copied File: '<None>'
2018-01-14 08:15:14.13 Copying log backup files. Primary Server: 'Servername\InstanceName', Primary Database: 'DatabaseName', Backup Source Directory: '\\ServerNameL\LogShip_Backup', Backup Destination Directory: 'F:\LogShip_Backup'
2018-01-14 08:15:14.17 *** Error: Access to the path '\\ServerNameL\LogShip_Backup' is denied.(mscorlib) ***


I have provide read/write to the share for SQL Service acct from DR(Secondary) server, so, not sure what other acct should be added to share?

Any thoughts on this plz.

Regards,
SQLisAwe5oMe.
SQL!$@w$0ME
SQL!$@w$0ME
SSCrazy Eights
SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)

Group: General Forum Members
Points: 8958 Visits: 1346
Did you check if the agent service account on dr server has read/write access on the shares(back up and copy directories). Check share security properties. Just try to manually access the folders from dr sql server. Use server name or IP address.
SQL!$@w$0ME
SQL!$@w$0ME
SSCrazy Eights
SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)SSCrazy Eights (9K reputation)

Group: General Forum Members
Points: 8958 Visits: 1346
Just use the above steps as a starting point.
SQLisAwE5OmE
SQLisAwE5OmE
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10459 Visits: 3113
SQL!$@w$0ME - Sunday, January 14, 2018 11:13 AM
Did you check if the agent service account on dr server has read/write access on the shares(back up and copy directories). Check share security properties. Just try to manually access the folders from dr sql server. Use server name or IP address.

Thanks....when I double check, I noticed SQL Server agent was running under different service acct, so I added that as well to the share security and now it's working.
Thanks again.


Regards,
SQLisAwe5oMe.
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (181K reputation)SSC Guru (181K reputation)SSC Guru (181K reputation)SSC Guru (181K reputation)SSC Guru (181K reputation)SSC Guru (181K reputation)SSC Guru (181K reputation)SSC Guru (181K reputation)

Group: General Forum Members
Points: 181416 Visits: 18537
SQLisAwE5OmE - Monday, January 15, 2018 1:06 PM
SQL!$@w$0ME - Sunday, January 14, 2018 11:13 AM
Did you check if the agent service account on dr server has read/write access on the shares(back up and copy directories). Check share security properties. Just try to manually access the folders from dr sql server. Use server name or IP address.

Thanks....when I double check, I noticed SQL Server agent was running under different service acct, so I added that as well to the share security and now it's working.
Thanks again.


you need to ensure the account is added to share and ntfs permission sets

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
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