-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"409 The specified container already exists." #2166
Comments
We are experiencing the same issue on some of our v4 functions. From what we investigated it appears that this warning (or similar one Our assumption is that we are seeing these warnings because we override default log level. Just for reference, our
|
This comment was marked as outdated.
This comment was marked as outdated.
Hi @pragnagopa , Could you please look into this issue |
Just adding more info. The problem seem to be coming in batches of 4 issues:
|
I think Application Insights is just a messenger here. Something in the host process is trying to access a blob, and this attempt is captured, but I don't see any indication that this blob is accessed because of Application Insights. Does this repro with the simplest "hello world" app with a single HTTP trigger? |
Category for these isssues is As I was setting up trying the out-of-the-box http trigger function I realised that this issue is only reported by the functions with [EventHubTrigger]. I can see now that the functions that only have a http trigger do not report these 4 issues. |
@tymtam2 Do you know which version of the Event Hubs extension you are using? |
Here are all the referenced packages
I get the 4 issues when running locally (not just when deployed) and in the bin folder the version of As an experiment I added an explicit dependency on Azure.Messaging.EventHubs 5.7.0-beta.3 but after doing that the function reports on startup: |
@alrod Track2 extension issue? |
@tymtam2, |
I've tried "Microsoft.Azure.WebJobs.Extensions.EventHubs" Version="4.3.1" and I don't see the warnings. |
This occurs with [ServiceBusTrigger] as well |
I had this bug
Problem: I had Microsoft.Azure.WebJobs.Extensions.EventHubs 4.2 that comes with VS template when creating function app (iothub trigger). It does not work. I had to install Azure.Messaging.EventHubs.Processor. Then it works just fine. But if I update the Microsoft.Azure.WebJobs.Extensions.EventHubs to latest version then it complains about Microsoft.Azure.EventHubs which is deprecated and needed to be replaced with with Azure.Messaging.EventHubs. Finally you have produced the error. Fix: I have not updated the Microsoft.Azure.WebJobs.Extensions.EventHubs 4.2 and installed Azure.Messaging.EventHubs.Processor. Now its behaving properly. Concern: I am sure this is not a proper fix but I could not solve it any other way. Please share your solution if you find any. The Microsoft.Azure.EventHubs is deprecated. It seems to be Azure.Messaging.EventHubs is buggy. |
Any resolution on this. Using VS 2022 MAC RC2 on M1. Worked fine until Microsoft.Azure.Webjobs.Extensions.EventHubs updated to 5.1.0. Rolling back however does not resolve the issue. This is specifically an issue with the event hub trigger in Azure functions ~4 / .NET 6. [2022-05-12T17:32:08.551Z] Microsoft.Azure.WebJobs.Host: Error indexing method ''. Microsoft.Azure.WebJobs.Host: Multiple properties named 'ContentType' found in type 'EventData'. When deployed to Azure the functions load and execute properly. This issue appears to be limited to the Visual Studio environment only. |
I'm also seeing this warning on startup with [TimerTrigger] on .NET 6 with dotnet-isolated.
Seems to me like the Core is trying to do a CreateIfNotExists somewhere internally or something because TimerTrigger also uses blob storage under the hood, and that is shown in our logs. The timers run fine by the way. |
No doubt a manifestation of this issue, which hasn't been fixed for 10 years 😖 If anyone gets assigned to this (and I hope someone does), make sure to check if the container exists before trying to create it. CreateIfNotExist throws an exception if the container exists. If that sounds absurd, it's because it is. |
I'm getting this error after upgrading a project/host from .NET Core 3.1 / AF 3 to .NET 6 / AF 4. I'm not using any event* triggers, only http/timer/durableTask. |
My http triggers work fine but my event hub triggers are all failing with the errors described in this thread. net6 |
I just realized that I was not awaiting the host.RunAsync() command in Program.cs and that's why this was failing for me. |
is there any update on this issue? I am facing the same issue while using net6 and function app v4. Thanks |
This occurs with [ServiceBusTrigger] after upgrading from .NET Core 3.1 / AF 3 to .NET 6 / AF 4. |
I am seeing this behavior with [ServiceBusTrigger] and [TimerTrigger] |
I would just like to say that @domasd assumption seems absolutely correct. My application is in production for 6 months and I've never came across this warning before I customized my host.json. Once I've changed the loglevel, I've started seeing this warning. |
Does this require any code changes? Even with below values in host.json (V4 function), the issue still persists { |
Getting the same issue for http trigger in prod. For some reason, only in Linux. Works just fine in windows. {
"version": "2.0",
"extensions": {
"http": {
"routePrefix": ""
}
},
"customHandler": {
"description": {
"defaultExecutablePath": "java",
"defaultWorkerPath": "multi_out.jar",
"arguments": [
"-jar"
]
},
"enableForwardingHttpRequest": false
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[3.*, 4.0.0)"
}
} |
If you use Serilog as the logging provider, you can add the following app setting to ignore the warning logs. {
"Serilog": {
"MinimumLevel": {
"Override": {
"Azure.Core": "Error"
}
}
}
} But the countermeasure will ignore other warnings. |
This looks to be the same issue as tracked here Azure/azure-sdk-for-net#21511 |
Same problem here, I'm using .net 6 and Azure Function v. 4. Those are the dependencies in my project:
The exception seems to be called by:
it seems to happen in my implementation when I use:
I see this error in Azure Application Insights:
Do you know if it is available a fix? Thank you |
I found this conversation on stackoverflow that seems interesting. |
While suppressing the logging of this by only letting Error level messages through from Azure.Core works, it also means that any other actually valid warning messages will get missed. |
@c0rn3liusha11 thank you for your reply, I prefer to avoid suppress the log messages. I opened a new issue here and MS is checking the problem. |
Having the same issue even if the Any update on this issue? |
Seems like we're now impacted by this since January 18. Now we have hundreds of these warning messages in our log. Suppressing warnings can't be the real solution. Environment details
|
This just started happening to me and my team as well. We have deployed many nodejs function apps over the last year and we've never seen this. The one I am working on locally right now (as of yesterday) just started to have this issue. Happens using Azurite and a real Azure storage account. Environment details
|
This is also a problem for me, but only for HTTP triggered functions. |
Hi, I'm getting thousands of these logs as well. Any update? |
Is there any resolution to this yet? I am using .net 8 isolated process and I am seeing it with [TimerTrigger]? |
I have the exact same problem with TimeTrigger. |
Same |
Still an issue for TimeTrigger and QueueTrigger. |
In my Azure Function which doesn't have any storage account code I'm getting the following warning in Application Insights.
I think it's reasonable to assume this is something to do with the storage account that the Azure Functions use to record their state etc.
SDK version azurefunctions: 4.1.3.17473
Is there a way to debug and/or resolve the issue?
The text was updated successfully, but these errors were encountered: