appservice-acmebot: [Error] Azure DNS zone "System.String[]" is not found
Hi @shibayan, I’ve created role assignments hour before but still have failures on ‘Dns01Precondition’ step.
Logs:
2018-10-12T08:29:40.133 [Information] Executed 'AddCertificate' (Succeeded, Id=8a4b608b-4fb7-4857-8d72-d6913e4a22bc)
2018-10-12T08:29:40.133 [Information] 9a7cf9a85c904fcc8cfb43e19ae90401: Function 'AddCertificate (Orchestrator)' awaited. IsReplay: False. State: Awaited. HubName: DurableFunctionsHub. AppName: letsencrypt-function. SlotName: Production. ExtensionVersion: 1.6.2. SequenceNumber: 114.
2018-10-12T08:29:40.148 [Information] 9a7cf9a85c904fcc8cfb43e19ae90401: Function 'Dns01Precondition (Activity)' started. IsReplay: False. Input: (108 bytes). State: Started. HubName: DurableFunctionsHub. AppName: letsencrypt-function. SlotName: Production. ExtensionVersion: 1.6.2. SequenceNumber: 115.
2018-10-12T08:29:40.149 [Information] Executing 'Dns01Precondition' (Reason='', Id=75359d2c-2c0d-485f-99ea-711174e40923)
2018-10-12T08:29:40.611 [Error] Azure DNS zone "System.String[]" is not found
2018-10-12T08:29:40.149 [Information] Executing 'Dns01Precondition' (Reason='', Id=75359d2c-2c0d-485f-99ea-711174e40923)
2018-10-12T08:29:40.645 [Error] Azure DNS zone "System.String[]" is not found
2018-10-12T08:29:40.678 [Error] Executed 'Dns01Precondition' (Failed, Id=75359d2c-2c0d-485f-99ea-711174e40923)Operation is not valid due to the current state of the object.
2018-10-12T08:29:40.748 [Information] Executing 'AddCertificate' (Reason='', Id=02f20b7d-07e7-408c-b8e5-bd2392a33092)
2018-10-12T08:29:40.750 [Error] 9a7cf9a85c904fcc8cfb43e19ae90401: Function 'AddCertificate (Orchestrator)' failed with an error. Reason: Microsoft.Azure.WebJobs.FunctionFailedException: The activity function 'Dns01Precondition' failed: "Failed to deserialize exception from TaskActivity: Unhandled exception while executing task: System.AggregateException: An error occurred while writing to logger(s). (The process cannot access the file 'D:\home\LogFiles\Application\Functions\Function\Dns01Precondition\2018-10-12T07-32-30Z-e6cea07370.log' because it is being used by another process.) ---> System.IO.IOException: The process cannot access the file 'D:\home\LogFiles\Application\Functions\Function\Dns01Precondition\2018-10-12T07-32-30Z-e6cea07370.log' because it is being used by another process.at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)at System.IO.FileInfo.Open(FileMode mode, FileAccess access)at Microsoft.Azure.WebJobs.Script.FileWriter.AppendToFile(FileInfo fileInfo, String content) in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileWriter.cs:line 114at Microsoft.Azure.WebJobs.Script.FileWriter.Flush() in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileWriter.cs:line 92at Microsoft.Azure.WebJobs.Script.Diagnostics.FileLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileLogger.cs:line 94at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)--- End of inner exception stack trace ---at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)at Microsoft.Azure.WebJobs.Host.Loggers.FunctionInstanceLogger.Log(LogLevel level, FunctionDescriptor descriptor, Guid functionId, String message, Exception exception) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Loggers\FunctionInstanceLogger.cs:line 50at Microsoft.Azure.WebJobs.Host.Loggers.FunctionInstanceLogger.LogFunctionCompletedAsync(FunctionCompletedMessage message, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Loggers\FunctionInstanceLogger.cs:line 41at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 136at Microsoft.Azure.WebJobs.Host.Executors.TriggeredFunctionExecutor`1.TryExecuteAsync(TriggeredFunctionData input, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\TriggeredFunctionExecutor.cs:line 54at Microsoft.Azure.WebJobs.Extensions.DurableTask.TaskActivityShim.RunAsync(TaskContext context, String rawInput)at DurableTask.Core.TaskActivityDispatcher.<>c__DisplayClass12_1.<<OnProcessWorkItemAsync>b__1>d.MoveNext()---> (Inner Exception #0) System.IO.IOException: The process cannot access the file 'D:\home\LogFiles\Application\Functions\Function\Dns01Precondition\2018-10-12T07-32-30Z-e6cea07370.log' because it is being used by another process.at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)at System.IO.FileInfo.Open(FileMode mode, FileAccess access)at Microsoft.Azure.WebJobs.Script.FileWriter.AppendToFile(FileInfo fileInfo, String content) in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileWriter.cs:line 114at Microsoft.Azure.WebJobs.Script.FileWriter.Flush() in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileWriter.cs:line 92at Microsoft.Azure.WebJobs.Script.Diagnostics.FileLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileLogger.cs:line 94at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)<---at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)at Microsoft.Azure.WebJobs.Host.Loggers.FunctionInstanceLogger.Log(LogLevel level, FunctionDescriptor descriptor, Guid functionId, String message, Exception exception) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Loggers\FunctionInstanceLogger.cs:line 50at Microsoft.Azure.WebJobs.Host.Loggers.FunctionInstanceLogger.LogFunctionCompletedAsync(FunctionCompletedMessage message, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Loggers\FunctionInstanceLogger.cs:line 41at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 136at Microsoft.Azure.WebJobs.Host.Executors.TriggeredFunctionExecutor`1.TryExecuteAsync(TriggeredFunctionData input, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\TriggeredFunctionExecutor.cs:line 54at Microsoft.Azure.WebJobs.Extensions.DurableTask.TaskActivityShim.RunAsync(TaskContext context, String rawInput)at DurableTask.Core.TaskActivityDispatcher.<>c__DisplayClass12_1.<<OnProcessWorkItemAsync>b__1>d.MoveNext()". See the function execution logs for additional details. ---> DurableTask.Core.Exceptions.TaskFailedExceptionDeserializationException: Failed to deserialize exception from TaskActivity: Unhandled exception while executing task: System.AggregateException: An error occurred while writing to logger(s). (The process cannot access the file 'D:\home\LogFiles\Application\Functions\Function\Dns01Precondition\2018-10-12T07-32-30Z-e6cea07370.log' because it is being used by another process.) ---> System.IO.IOException: The process cannot access the file 'D:\home\LogFiles\Application\Functions\Function\Dns01Precondition\2018-10-12T07-32-30Z-e6cea07370.log' because it is being used by another process.at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)at System.IO.FileInfo.Open(FileMode mode, FileAccess access)at Microsoft.Azure.WebJobs.Script.FileWriter.AppendToFile(FileInfo fileInfo, String content) in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileWriter.cs:line 114at Microsoft.Azure.WebJobs.Script.FileWriter.Flush() in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileWriter.cs:line 92at Microsoft.Azure.WebJobs.Script.Diagnostics.FileLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileLogger.cs:line 94at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)--- End of inner exception stack trace ---at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)at Microsoft.Azure.WebJobs.Host.Loggers.FunctionInstanceLogger.Log(LogLevel level, FunctionDescriptor descriptor, Guid functionId, String message, Exception exception) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Loggers\FunctionInstanceLogger.cs:line 50at Microsoft.Azure.WebJobs.Host.Loggers.FunctionInstanceLogger.LogFunctionCompletedAsync(FunctionCompletedMessage message, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Loggers\FunctionInstanceLogger.cs:line 41at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 136at Microsoft.Azure.WebJobs.Host.Executors.TriggeredFunctionExecutor`1.TryExecuteAsync(TriggeredFunctionData input, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\TriggeredFunctionExecutor.cs:line 54at Microsoft.Azure.WebJobs.Extensions.DurableTask.TaskActivityShim.RunAsync(TaskContext context, String rawInput)at DurableTask.Core.TaskActivityDispatcher.<>c__DisplayClass12_1.<<OnProcessWorkItemAsync>b__1>d.MoveNext()---> (Inner Exception #0) System.IO.IOException: The process cannot access the file 'D:\home\LogFiles\Application\Functions\Function\Dns01Precondition\2018-10-12T07-32-30Z-e6cea07370.log' because it is being used by another process.at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)at System.IO.FileInfo.Open(FileMode mode, FileAccess access)at Microsoft.Azure.WebJobs.Script.FileWriter.AppendToFile(FileInfo fileInfo, String content) in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileWriter.cs:line 114at Microsoft.Azure.WebJobs.Script.FileWriter.Flush() in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileWriter.cs:line 92at Microsoft.Azure.WebJobs.Script.Diagnostics.FileLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) in C:\azure-webjobs-sdk-script\src\WebJobs.Script\Diagnostics\FileLogger.cs:line 94at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)<---at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)at Microsoft.Azure.WebJobs.Host.Loggers.FunctionInstanceLogger.Log(LogLevel level, FunctionDescriptor descriptor, Guid functionId, String message, Exception exception) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Loggers\FunctionInstanceLogger.cs:line 50at Microsoft.Azure.WebJobs.Host.Loggers.FunctionInstanceLogger.LogFunctionCompletedAsync(FunctionCompletedMessage message, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Loggers\FunctionInstanceLogger.cs:line 41at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs:line 136at Microsoft.Azure.WebJobs.Host.Executors.TriggeredFunctionExecutor`1.TryExecuteAsync(TriggeredFunctionData input, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\TriggeredFunctionExecutor.cs:line 54at Microsoft.Azure.WebJobs.Extensions.DurableTask.TaskActivityShim.RunAsync(TaskContext context, String rawInput)at DurableTask.Core.TaskActivityDispatcher.<>c__DisplayClass12_1.<<OnProcessWorkItemAsync>b__1>d.MoveNext() ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: U. Path '', line 0, position 0.at Newtonsoft.Json.JsonTextReader.ParseValue()at Newtonsoft.Json.JsonTextReader.Read()at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)at DurableTask.Core.Serializing.JsonDataConverter.Deserialize(String data, Type objectType)at DurableTask.Core.Serializing.DataConverter.Deserialize[T](String data)at DurableTask.Core.Common.Utils.RetrieveCause(String details, DataConverter converter)--- End of inner exception stack trace ------ End of inner exception stack trace ---at Microsoft.Azure.WebJobs.DurableOrchestrationContext.CallDurableTaskFunctionAsync[TResult](String functionName, FunctionType functionType, String instanceId, RetryOptions retryOptions, Object input)at AzureAppService.LetsEncrypt.AddCertificate.RunOrchestrator(DurableOrchestrationContext context, ILogger log) in C:\projects\azure-appservice-letsencrypt\AzureAppService.LetsEncrypt\AddCertificate.cs:line 47at Microsoft.Azure.WebJobs.Host.Executors.VoidTaskMethodInvoker`2.InvokeAsync(TReflected instance, Object[] arguments) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\VoidTaskMethodInvoker.cs:line 20at Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`2.InvokeAsync(Object instance, Object[] arguments) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionInvoker.cs:line 63at Microsoft.Azure.WebJobs.Extensions.DurableTask.TaskOrchestrationShim.Execute(OrchestrationContext innerContext, String serializedInput). IsReplay: False. State: Failed. HubName: DurableFunctionsHub. AppName: letsencrypt-function. SlotName: Production. ExtensionVersion: 1.6.2. SequenceNumber: 116.
Thank you in advance for any help, Jakub
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (10 by maintainers)
That was it, I delegated domain and your function worked as a charm. Thank you!
@shibayan, now I understand. Thanks for help