2016-03-25 33 views
1

我在Azure中部署了webjobs,之前在之前工作,但在我們最新部署之後,我們遇到了webjob正在拋出「Azure存儲異常」的問題。Azure Web Jobs投擲Azure存儲404 Not Found

[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上的連接字符串相同 我應該從Azure Web作業的「配置」選項卡中刪除此連接字符串嗎? –

+0

當我在配置中刪除連接字符串時,它現在可以工作。 –

回答

1

經過幾個月的驗證,我發現這個問題的原因是重複的nuget包依賴關係。事實證明,我有不同版本的多個nuget包(Newtonsoft.Json)(例如:1.1,1.2)。

關於爲什麼nuget這樣做,我不知道。

+0

我得到這個相同的錯誤。 對我來說,更新WindowsAzure.Storage包是從'4.3.0'到'7.1.2',但我會用最新的或其他WebJobs正在使用的(如果它們沒有運行問題)。 –