azure-storage-emulator - Unable to start Azure Storage Emulator
问题描述
I've run into problems trying to run the Azure Storage Emulator on a newly installed computer.
At first it was returning
Cannot create database 'AzureStorageEmulatorDb56' : The database 'AzureStorageEmulatorDb56' does not exist. Supply a valid database name. To see available databases, use sys.databases..
However, when I ran sqllocaldb i
I could see that there was a DB named 'AzureStorageEmulatorDb56'.
I eventually ran the command
AzureStorageEmulator init -server localhost -forcecreate
which returned
Granting database access to user AzureAD\[username elided].
Database access for user AzureAD\[username elided] was granted.Initialization successful. The storage emulator is now ready for use.
The storage emulator was successfully initialized and is ready to use.
which looks promising.
However, when I right-click the emulator's icon in the system try and select "Start Storage Emulator" nothing happens. And if I then look in the log files I can see an error log (Error20-Jul-18-11-07.log) which contains...
7/20/2018 11:06:36 AM [Error] [ActivityId=00000000-0000-0000-0000-000000000000] Input string was not in a correct format.
There's also an Info20-Jul-18-11-07.log
file which contains
7/20/2018 11:06:36 AM [Info] [ActivityId=00000000-0000-0000-0000-000000000000] Starting Service: Blob
7/20/2018 11:06:36 AM [Info] [ActivityId=00000000-0000-0000-0000-000000000000] Stopping Service: Blob
Can anyone explain what's going wrong and how I can get the local storage emulator up and running?
解决方案
尝试禁用日志记录,5.5 版本中似乎存在一个错误: https ://github.com/Azure/azure-storage-net/issues/728
推荐阅读
- c# - 搜索 GridView 以设置 PageIndex
- python - Python 通过 Tor 连接到 IRC
- jasmine - 如何检查是否在 Jasmine 中使用真值(不是未定义)调用了函数?
- jquery - 如何在 mysql 查询中使用变量?
- python-3.x - 如果满足特定条件,熊猫就会应用价值
- ruby-on-rails - Rails: Webpacker::Manifest::MissingEntryError in Home#index
- java - 如何在纯 Java 控制台应用程序中获取令牌?
- databricks - 如何使用完成编写 databricks 作业的脚本
- fabricjs - 单击它覆盖整个画布的文本对象
- javascript - dataTables.js 与 fileInput.js 冲突