[Error] Azure DNS zone "System.String[]" is not found
See original GitHub issueHi @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
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (10 by maintainers)
Top Results From Across the Web
Azure DNS troubleshooting guide
You may see an error "The zone '{zone name}' is not available." This error means that Azure DNS was unable to allocate name...
Read more >Import and export a DNS zone file using the Azure CLI
Learn how to import and export a DNS (Domain Name System) zone file to Azure DNS by using Azure CLI.
Read more >Overview of DNS zones and records - Azure
This article explains the key concepts of domains, DNS zones, DNS records, and record sets. You'll learn how it's supported in Azure DNS....
Read more >Import and export a domain zone file for Azure private DNS
Importing a zone file creates a new zone in Azure private DNS if one does not already exist. If the zone already exists,...
Read more >Troubleshoot common Azure deployment errors
Error code Mitigation More inform...
AccountNameInvalid Follow naming guidelines for storage accounts. Resolve erro...
AccountPropertyCannotBeSet Check available storage account properties. storageAcco...
AnotherOperationInProgress Wait for concurrent operation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That was it, I delegated domain and your function worked as a charm. Thank you!
@shibayan, now I understand. Thanks for help