question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure Storage Emulator attempts to create LocalDB files in c:\Users

See original GitHub issue

When I run this command:

AzureStorageEmulator.exe init -forcecreate

I’m getting this error:

Windows Azure Storage Emulator 5.3.0.0 command line tool Found SQL Instance (localdb)\MSSQLLocalDB. Creating database AzureStorageEmulatorDb53 on SQL instance ‘(localdb)\MSSQLLocalDB’. Cannot create database ‘AzureStorageEmulatorDb53’ : The database ‘AzureStorageEmulatorDb53’ does not exist. Supply a valid database name. To see available databases, use sys.databases… One or more initialization actions have failed. Resolve these errors before attempting to run the storage emulator again. Error: Cannot create database ‘AzureStorageEmulatorDb53’ : The database ‘AzureStorageEmulatorDb53’ does not exist. Supply a valid database name. To see available databases, use sys.databases…

In the log file I see this error:

2018-02-20 13:59:03.21 spid53 CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file ‘C:\Users\alexbat.REDMONDAzureStorageEmulatorDb53.mdf’.

So it attempts to create C:\Users\alexbat.REDMONDAzureStorageEmulatorDb53.mdf rather than C:\Users\alexbat.REDMOND\AzureStorageEmulatorDb53.mdf (note the slash before the file name).

Do you know why? How can this be fixed? I was getting the same error with ASE 5.2.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
ndroussi-xocommented, Oct 3, 2018

I tried to clean up localdb but didn’t work, so anyone has an issue running storage emulator with local db can benefit from this command to run it on SqlExpress.

Command: AzureStorageEmulator.exe init -server . -sqlinstance SQLEXPRESS -forcecreate

4reactions
erezvani1529commented, Feb 22, 2018

Hi @abatishchev,

Please follow the steps that we have outline here and let us know if you still see any issues.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use the Azure Storage Emulator for development and ...
The Microsoft Azure Storage Emulator is a tool that emulates the Azure Blob, Queue, and Table services for local development purposes.
Read more >
Azure Storage Emulator fails to init with "The database ' ...
I will help you with this. First of all create a sql server local db. Then go to storage emulator folder _-The Storage...
Read more >
A fish out of water: Azure Storage Emulator Could not find ...
Nevertheless, I managed to solve this issue by simply recreating my LocalDb instances and allowing the emulator to recreate his db files. Here ......
Read more >
I can't start the Azure Storage Emulator
Solution: Using Microsoft SQL Server Management Studio (SSMS) connect to your localdb instance. Create a new database with the same name in the ......
Read more >
Unable to start/init Azure Storage Emulator after fresh installation
Creating database AzureStorageEmulatorDb510 on SQL instance '(localdb)\MSSQLLocalDB'. Granting database access to user LOCAL\Pranav.Jituri.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found