2016-03-25 14 views
1

私はWebジョブをAzureにデプロイしていました。以前は以前のように動作していましたが、最近の展開ではWebjobsが "Azure Storage Exception"Azure Web Jobs Throws Azure Storage 404が見つかりません

[03/25/2016 01:38:26 > 5f45b8: SYS INFO] Status changed to Initializing 
    [03/25/2016 01:38:40 > 5f45b8: SYS INFO] Run script 'ListNet.JobController.exe' with script host - 'WindowsScriptHost' 
    [03/25/2016 01:38:40 > 5f45b8: SYS INFO] Status changed to Running 
    [03/25/2016 01:38:41 > 5f45b8: INFO] Found the following functions: 
    [03/25/2016 01:38:41 > 5f45b8: INFO] ListNet.JobController.Functions.ManualTrigger 
    [03/25/2016 01:38:41 > 5f45b8: INFO] Executing: 'Functions.ManualTrigger' because This was function was programmatically called via the host APIs. 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] Unhandled Exception: Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (404) Not Found. ---> System.Net.WebException: The remote server returned an error: (404) Not Found. 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.WindowsAzure.Storage.Shared.Protocol.HttpResponseParsers.ProcessExpectedStatusCodeNoException[T](HttpStatusCode expectedStatusCode, HttpStatusCode actualStatusCode, T retVal, StorageCommandBase`1 cmd, Exception ex) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.WindowsAzure.Storage.Blob.CloudBlobSharedImpl.<DeleteBlobImpl>b__1b(RESTCommand`1 cmd, HttpWebResponse resp, Exception ex, OperationContext ctx) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.EndGetResponse[T](IAsyncResult getResponseResult) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] --- End of inner exception stack trace --- 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.EndExecuteAsync[T](IAsyncResult result) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.EndDelete(IAsyncResult asyncResult) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.WindowsAzure.Storage.Core.Util.AsyncExtensions.<>c__DisplayClass4.<CreateCallbackVoid>b__3(IAsyncResult ar) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] --- End of stack trace from previous location where exception was thrown --- 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.Azure.WebJobs.Host.Protocols.PersistentQueueWriter`1.<DeleteAsync>d__6.MoveNext() 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] --- End of stack trace from previous location where exception was thrown --- 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.Azure.WebJobs.Host.Loggers.CompositeFunctionInstanceLogger.<DeleteLogFunctionStartedAsync>d__e.MoveNext() 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] --- End of stack trace from previous location where exception was thrown --- 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<TryExecuteAsync>d__1.MoveNext() 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] --- End of stack trace from previous location where exception was thrown --- 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.HeartbeatFunctionExecutor.<TryExecuteAsync>d__0.MoveNext() 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] --- End of stack trace from previous location where exception was thrown --- 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.AbortListenerFunctionExecutor.<TryExecuteAsync>d__0.MoveNext() 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] --- End of stack trace from previous location where exception was thrown --- 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.ShutdownFunctionExecutor.<TryExecuteAsync>d__0.MoveNext() 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] --- End of stack trace from previous location where exception was thrown --- 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.Azure.WebJobs.JobHost.<CallAsyncCore>d__7.MoveNext() 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] --- End of stack trace from previous location where exception was thrown --- 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at Microsoft.Azure.WebJobs.JobHost.Call(MethodInfo method) 
    [03/25/2016 01:41:12 > 5f45b8: ERR ] at ListNet.JobController.Program.Main() 
    [03/25/2016 01:41:12 > 5f45b8: SYS INFO] Status changed to Failed 
    [03/25/2016 01:41:12 > 5f45b8: SYS ERR ] Job failed due to exit code -532462766 

私はこの同様の問題に見えたが、私はすでに私のAzureストレージにこれらのコンテナを持っている:

Azure Web Job-The remote server returned 404

http://i.stack.imgur.com/HkCab.png

ノート

  • 私は手動トリガー
  • を使用
  • デフォルトのWebジョブを作成して正常に実行します。
+0

"AzureWebJobsStorage"ストレージ接続文字列が正しく、WebAppのポータルアプリケーション設定で予期しない何かによって上書きされませんか? –

+0

AzureStorageConnection文字列が正しいです。私のAzureWebJob構成の接続文字列は、app.configの接続文字列と同じです この接続文字列を空白のWebジョブの構成タブから削除する必要がありますか? –

+0

設定で接続文字列を削除すると機能します。 –

答えて

1

この問題の原因は重複したNugetパッケージの依存関係であることがわかりました。異なるバージョンの複数のナゲットパッケージ(Newtonsoft.Json)(1.1,1.2など)があります。

なぜナゲットがそれをしているのか、私は分かりません。

+0

私はこの同じエラーを受けていました。 「WindowsAzure.Storage」パッケージを私の場合は「4.3.0」から「7.1.2」に更新していましたが、最新のものか、他のWebJobが使用しているものであれば問題)。 –

関連する問題