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

Restore fails Expand / Collapse
Author
Message
Posted Monday, November 19, 2012 12:15 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, May 1, 2014 12:13 PM
Points: 115, Visits: 342
Hello

I am getting below error while i try to restore the backup from network drive

Msg 3201, Level 16, State 2, Line 12
Cannot open backup device '\\data-store-srv\rtibackups\STARS_backup_201211190300.bak'. Operating system error 53(The network path was not found.).
Msg 3013, Level 16, State 1, Line 12
RESTORE DATABASE is terminating abnormally.


so it means, server cant access to \\data-store-srv\rtibackups ?

Please help me to resolve this issue.

Thanks
Post #1386537
Posted Monday, November 19, 2012 12:33 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 8:24 AM
Points: 12,887, Visits: 31,835
yeah the error implies either the file or folder is spelled incorrectly, or the filename itself doesn't exist...extra underscore or anything like that a possibility in the name?


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1386542
Posted Monday, November 19, 2012 12:43 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, May 1, 2014 12:13 PM
Points: 115, Visits: 342
Lowell (11/19/2012)
yeah the error implies either the file or folder is spelled incorrectly, or the filename itself doesn't exist...extra underscore or anything like that a possibility in the name?


i check the path many times. Its same as it is. I restore same backup file to another server and it works fine.

I remotely logged into the server and try to access \\data-store-srv\rtibackups, but it don't allow me to access so I guess that's an issue. so may be i need permission to access to that folder right?
Post #1386543
Posted Monday, November 19, 2012 2:03 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 8:24 AM
Points: 12,887, Visits: 31,835
yogi123 (11/19/2012)
Lowell (11/19/2012)
yeah the error implies either the file or folder is spelled incorrectly, or the filename itself doesn't exist...extra underscore or anything like that a possibility in the name?


i check the path many times. Its same as it is. I restore same backup file to another server and it works fine.

I remotely logged into the server and try to access \\data-store-srv\rtibackups, but it don't allow me to access so I guess that's an issue. so may be i need permission to access to that folder right?


yeah it could be permissions, but i thought the permissions returned error 5(Access denied), and you reported a different error number altoggether.

check the service account that SQL is running under, and make sure it's a real account that would have access to network shares.

Remember the service account rules are not all that intuitive; for anything access ed outside of SQL server, SQL Server uses either the account set up as the proxy account, or if that is left blank(the default) it uses account it starts with to try and access the resource:

or if the above was blank, the account in services:


That account is often an account which has never logged into the domain, and was never assigned permissions to get to the local disk or network share.
As a result, you usually need to create a domain account in Active Directory, specifically grant it share access if it doesn't inherit it from Domain\Users or Domain\AuthenticatedUsers and change the account SQL Server starts with to that account.

Once that is done, and you stop and start the SQL service to make it use that account instead of old running values, your remote shares would work.


you can prove this is the issue by simply putting in your credentials, with your domain account and password, and confirm the external object you were trying to access/use works when SQL is run your credentials, so you'd know you need a domain account to access the resource.



Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1386576
Posted Monday, November 19, 2012 3:37 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, May 1, 2014 12:13 PM
Points: 115, Visits: 342
Hey

Now i got this error


Msg 3201, Level 16, State 1, Line 1
Cannot open backup device '\\10.9.2.109\stars\ABC\STARS_backup_2012_11_19_173006_6820968.bak'. Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
Post #1386618
Posted Tuesday, November 20, 2012 2:49 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, January 8, 2014 4:53 AM
Points: 230, Visits: 41
Use XP_cmdshell 'dir <full path>'

Check if it that gives any error

Santhu
Post #1386760
Posted Wednesday, November 21, 2012 9:08 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, January 31, 2013 9:28 AM
Points: 11, Visits: 28
Check the file share that was set up where you are trying to backup/restore from. Right click on the directory and select Properties. Select the "Sharing" tab, and then click on the "Share..." button in the Network File and Folder Sharing section. Look at the list of users allowed to access the directory. I would expect that you will see the login for the service account for the server where backup/restore works correctly, but do not have the service account used for the server where you are having problems. Click on the the drop down list and select "Find people...", then enter the account for the server where you are having access problems. By default it will add the account with "Read" permissions only - you will have to click on this and change it to read/write if you need to perform backups as well as restores.
Post #1387471
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse