Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Storage Emulator error and does not start

This error is really driving me crazy. (Terminal running in administrator mode)

Initialization of azure storage emulator in sql server 2014:

C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator>.\wastorage emulator init -server MY-PC Windows Azure Storage Emulator 3.0.0.0 command line tool The storage emulator was successfully initialized and is ready to use. 

Error when starting server:

C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator>.\wastorage emulator start Windows Azure Storage Emulator 3.0.0.0 command line tool  Unhandled Exception: System.TimeoutException: Unable to open wait handle.    at Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorProcessControll er.InternalWaitForStorageEmulator(Int32 timeoutInMilliseconds)    at Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorProcessControll er.EnsureRunning(Int32 timeoutInMilliseconds)    at Microsoft.WindowsAzure.Storage.Emulator.StartCommand.RunCommand()    at Microsoft.WindowsAzure.Storage.Emulator.Program.Main(String[] args) 
like image 978
BigChief Avatar asked Apr 27 '14 01:04

BigChief


People also ask

How do I run Azure storage emulator as an administrator?

1. Click Start, point to All Programs, and then click Windows Azure SDK. 2. Right-click on Windows Azure SDK Command Prompt and then click Run as administrator.

How do I turn off Azure storage emulator?

AzureStorageEmulator.exe start: Start the emulator. AzureStorageEmulator.exe stop: Stop the emulator. AzureStorageEmulator.exe status: Get current emulator status. AzureStorageEmulator.exe clear: Delete all data in the emulator.

What is azurite emulator?

The Azurite open-source emulator provides a free local environment for testing your Azure blob, queue storage, and table storage applications. When you're satisfied with how your application is working locally, switch to using an Azure Storage account in the cloud.


2 Answers

Check if you are running BitTorrent/uTorrent or similar software using port 10000.

Check Steve Marx' blog post about the issue. http://blog.smarx.com/posts/windows-azure-storage-emulator-the-process-cannot-access-the-file-because-it-is-being-used-by-another-process

In case that post disappears, the command to check if any other software is using that port is:

C:\Users\smarx>netstat -p tcp -ano | findstr :10000   TCP    127.0.0.1:10000        0.0.0.0:0              LISTENING       3672 
like image 186
David Rodriguez Avatar answered Sep 23 '22 23:09

David Rodriguez


Summarizing and adding additional points to other answers to this question.

Open C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe file in a notepad or a notepad++ editor. Look at the services section.

<services>   <service name="Blob" url="http://127.0.0.1:10000/"/>   <service name="Queue" url="http://127.0.0.1:10001/"/>   <service name="Table" url="http://127.0.0.1:10002/"/> </services> 

Try to open URL for "Blob" in a web browser. In my case it is

http://127.0.0.1:10000/ 

If you are unable to open the URL or if there is a error, this is the reason why you are not unable to start Azure Storage Emulator.

Try below steps to resolve the issue.

1) Check if the port 10000 is busy or used by any other process.

To know this you can type the below command in the command prompt

netstat -na | find "10000" 

Kill the process.

Now start the Azure Storage Emulator in -inprocess mode

In the Azure Storage Emulator's command prompt type

AzureStorageEmulator.exe start -inprocess

Ctrl+c and then

AzureStorageEmulator.exe start

If this did not resolve the issue try second step.

2) Run this

netsh http add iplisten 127.0.0.1 

and then in the Azure Storage Emulator's command prompt type

AzureStorageEmulator.exe start -inprocess 

Ctrl+c and then

AzureStorageEmulator.exe start 
like image 22
Ram Pratap Avatar answered Sep 19 '22 23:09

Ram Pratap