VS 2015 SDK를 추가한 후 Azure Storage Emulator가 실패함
저는 Azure SDK 2.5와 Tools for VS2013을 설치하고 꽤 오랫동안 잘 작동했습니다.오늘 VS2015용 SDK 및 Tools를 설치했는데 이제 Azure 스토리지 에뮬레이터가 시작되지 않습니다.처음 시작할 때 SqlException이 표시되었습니다.
Unhandled Exception: System.Data.SqlClient.SqlException:
An error occurred while processing the log for database If possible,
restore from backup. If a backup is not available, it might be
necessary to rebuild the log.
시스템을 재부팅한 후 오류가 더 적게 발생합니다.
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>WAStorageEmulator start Windows Azure Storage Emulator
3.4.0.0 command line tool Error: The storage emulator needs to be initialized. Please run the 'init' command.
하지만 실행하는 것은 효과가 없습니다.
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>WAStorageEmulator init Windows Azure Storage Emulator 3.4.0.0 command line tool Error: Cannot create database.
-inprocess로 시작하면 로그인 실패로 표시됩니다.저는 기계 관리자라서 이상합니다.
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>WAStorageEmulator start -inprocess
Windows Azure Storage Emulator 3.4.0.0 command line tool
Cannot open database "WAStorageEmulatorDb34" requested by the login. The login failed.
Login failed for user 'DOMAIN\genslow'.
3/24/2015 10:00:57 AM [Info] Starting Service: Blob
3/24/2015 10:00:57 AM [Verbose_debug] [Nephos.Storage] { Initialize
3/24/2015 10:00:57 AM [Info_debug] Loading config Param NephosAllowPathStyleUris (Allow path-style URIs) read: true
3/24/2015 10:00:57 AM [Info_debug] Successfully loaded NephosAllowPathStyleUris: True
3/24/2015 10:00:57 AM [Info_debug] Loading config Param NephosIncludeInternalDetailsInErrorResponses (Include internal details in error responses) read: false
3/24/2015 10:00:57 AM [Info_debug] Successfully loaded NephosIncludeInternalDetailsInErrorResponses: False
3/24/2015 10:00:57 AM [Info_debug] Loading config Param StampName (Stamp Name) read: StorageEmulator
3/24/2015 10:00:57 AM [Info_debug] BlockBlob: Load Interval failed. IsGC: True, Exception at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at Microsoft.WindowsAzure.DevelopmentStorage.Store.BlockBlobGarbageCollector.GetTimerIntervalOrDefault(Boolean isGC)
3/24/2015 10:00:57 AM [Info_debug] BlockBlob: Load Interval failed. IsGC: False, Exception at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at Microsoft.WindowsAzure.DevelopmentStorage.Store.BlockBlobGarbageCollector.GetTimerIntervalOrDefault(Boolean isGC)
3/24/2015 10:00:57 AM [Verbose_debug] [Nephos.Storage] } Initialize
Service Status: Blob http://127.0.0.1:10000/ True
3/24/2015 10:00:57 AM [Info] Starting Service: Queue
3/24/2015 10:00:57 AM [Verbose_debug] [Nephos.Queue] { Initialize
3/24/2015 10:00:57 AM [Info_debug] Loading config Param NephosAllowPathStyleUris (Allow path-style URIs) read: true
3/24/2015 10:00:57 AM [Info_debug] Successfully loaded NephosAllowPathStyleUris: True
3/24/2015 10:00:57 AM [Info_debug] Loading config Param NephosIncludeInternalDetailsInErrorResponses (Include internal details in error responses) read: false
3/24/2015 10:00:57 AM [Info_debug] Successfully loaded NephosIncludeInternalDetailsInErrorResponses: False
3/24/2015 10:00:57 AM [Info_debug] Loading config Param StampName (Stamp Name) read: StorageEmulator
3/24/2015 10:00:57 AM [Verbose_debug] [DevelopmentStorage.Queue] } Initialize
Service Status: Queue http://127.0.0.1:10001/ True
3/24/2015 10:00:57 AM [Info] Starting Service: Table
3/24/2015 10:00:57 AM [Verbose_debug] [Nephos.Table] { Initialize
3/24/2015 10:00:57 AM [Info_debug] Loading config Param NephosAllowPathStyleUris (Allow path-style URIs) read: true
3/24/2015 10:00:57 AM [Info_debug] Successfully loaded NephosAllowPathStyleUris: True
3/24/2015 10:00:57 AM [Info_debug] Loading config Param NephosIncludeInternalDetailsInErrorResponses (Include internal details in error responses) read: false
3/24/2015 10:00:57 AM [Info_debug] Successfully loaded NephosIncludeInternalDetailsInErrorResponses: False
3/24/2015 10:00:57 AM [Info_debug] Loading config Param StampName (Stamp Name) read: StorageEmulator
3/24/2015 10:00:57 AM [Info] NOT using custom threadpool for blocking calls
Service Status: Table http://127.0.0.1:10002/ True
-in 프로세스를 사용하여 init를 실행하면 다음과 같은 세부 정보가 제공됩니다.
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>WAStorageEmulator init -inprocess
Windows Azure Storage Emulator 3.4.0.0 command line tool
Added reservation for http://127.0.0.1:10000/ in user account DOMAIN\genslow.
Added reservation for http://127.0.0.1:10001/ in user account DOMAIN\genslow.
Added reservation for http://127.0.0.1:10002/ in user account DOMAIN\genslow.
Found SQL Instance (localdb)\MSSQLLocalDB.
Creating database WAStorageEmulatorDb34 on SQL instance '(localdb)\MSSQLLocalDB'.
Cannot create database 'WAStorageEmulatorDb34' : Database 'WAStorageEmulatorDb34' already exists. Choose a different database name..
One or more initialization actions have failed. Resolve these errors before attempting to run the storage emulator again.
Error: Cannot create database 'WAStorageEmulatorDb34' : Database 'WAStorageEmulatorDb34' already exists. Choose a different database name..
이 문제에서 복구할 방법이 있습니까? 아니면 모든 것을 제거하고 다시 시작해야 합니까?
다음 프로세스를 사용하여 데이터베이스와 관련된 대부분의 초기화 문제를 복구할 수 있습니다.에뮬레이터의 모든 데이터는 현재 손실됩니다.
SQL 인스턴스를 삭제합니다.
sqllocaldb stop MSSQLLocalDB
sqllocaldb delete MSSQLLocalDB
이제 다음 데이터베이스 파일을 삭제합니다.
%USERPROFILE%\AzureStorageEmulatorDb*.mdf
%USERPROFILE%\AzureStorageEmulatorDb*.ldf
마지막으로 sql 인스턴스를 재생성합니다.
sqllocaldb start MSSQLLocalDB
그런 다음 에뮬레이터를 다시 시도합니다.
localdb를 정리하려고 했지만 작동하지 않았기 때문에 localdb로 스토리지 에뮬레이터를 실행하는 데 문제가 있는 사람은 누구나 이 명령을 통해 SqlExpress에서 실행할 수 있습니다.
명령:AzureStorageEmulator.exe init -server . -sqlinstance SQLEXPRESS -forcecreate
언급URL : https://stackoverflow.com/questions/29239053/azure-storage-emulator-fails-after-adding-vs-2015-sdk
'programing' 카테고리의 다른 글
WPF의 ListView와 DataGrid의 차이점은 무엇입니까? (0) | 2023.05.02 |
---|---|
유성: 내 몽고 데이터베이스를 백업하려면 어떻게 해야 합니까? (0) | 2023.05.02 |
라이브러리가 로드되지 않음: /usr/local/opt/readline/lib/libreadline.6.2.dylib (0) | 2023.05.02 |
psql을 사용할 때 postgres에서 스키마를 선택하는 방법은 무엇입니까? (0) | 2023.05.02 |
엑셀은 셀을 HTML로 해석할 수 있습니까? (0) | 2023.05.02 |