Skip to content
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

Host ID collisions in several functionapps and slots although Environment variable "AzureFunctionsWebHost__hostid" is used in every functionapp and every slot #10650

Closed
ulluoink opened this issue Nov 22, 2024 · 8 comments
Assignees
Labels
bot: do not close Prevents bot automation from closing issues bug

Comments

@ulluoink
Copy link

  • Timestamp: since we use deployment slots
  • Function App version: .net 8 isolated, Runtime version 4
  • Region: west europe

Repro steps

  1. several FunctionApps in one storage account with two deployment slots each (staging and production)
  2. in every functionapp and in each slot we have an environment variable "AzureFunctionsWebHost__hostid" with a unique value (just like documented by microsoft)
  3. deploy several FunctionApps to their staging slot
  4. switch slot of each function to production
  5. Error "A collision for Host ID 'functionsv4x64dotnetisolated8pla' was detected in the configured storage account. For more information, see https://aka.ms/functions-hostid-collision." occurs in several functionapps (either in production or in staging slot). The 'functionsv4x64dotnetisolated8pla' value differs from functionapp to functionapp

Expected behavior

no host id collision errors if the environment variable is used as documented

Documentation we used to address this issue:

https://learn.microsoft.com/en-us/azure/azure-functions/storage-considerations?tabs=azure-cli#override-the-host-id
https://learn.microsoft.com/en-us/azure/azure-functions/errors-diagnostics/diagnostic-events/azfd0004#options-for-addressing-collisions
https://github.com/Azure/azure-functions-host/wiki/Host-IDs#host-id-override

@ulluoink ulluoink changed the title Host ID collisions although Envirnoment variable "AzureFunctionsWebHost__hostid" is used in every functionapp and every slot Host ID collisions in several functionapps and slots although Environment variable "AzureFunctionsWebHost__hostid" is used in every functionapp and every slot Nov 22, 2024
@bhagyshricompany bhagyshricompany self-assigned this Nov 25, 2024
@bhagyshricompany
Copy link

bhagyshricompany commented Nov 25, 2024

Hi @ulluoink Thanks for reporting.please raise request on azure portal.

@ulluoink
Copy link
Author

ulluoink commented Dec 1, 2024

/bot not-stale

@ulluoink
Copy link
Author

ulluoink commented Dec 1, 2024

Hi @ulluoink Thanks for reporting https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-slots?tabs=azure-portal please ref this link as per the plan have slot creation. support if still have issue please raise request on azuree portal.Thanks

Do not understand what does that mean?

What do you want us to change in our functionapps?

Have you even read what we are doing? We followed each amd every advice and documentation of microsoft and also the linked doc.

@bhagyshricompany bhagyshricompany removed their assignment Dec 2, 2024
@bhagyshricompany
Copy link

Hi @ulluoink Thanks for your patience. will update you on this soon.

@ulluoink
Copy link
Author

@bhagyshricompany any update on this?

@zenmiao7
Copy link

We faced the same problem. Any updates? @satvu

@mathewc
Copy link
Member

mathewc commented Feb 19, 2025

A fix for this issue was made a few weeks back #10789. Fix will be part of the next release.

@liliankasem
Copy link
Member

Going to close this as a duplicate of #10579 - please follow there for further updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: do not close Prevents bot automation from closing issues bug
Projects
None yet
Development

No branches or pull requests

6 participants