-
Notifications
You must be signed in to change notification settings - Fork 447
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
Common errors when upgrading to 2.0.12050 (or newer) #3363
Comments
@paulbatum After upgrading, and within the VS Code IDE, all TraceWriter.Info() calls are written twice to the Terminal that is running func. Once in blue, with inclusion of a date/time stamp, as you would expect (e.g. as before upgrading), once in white, as if it is Console.WriteLine() |
@paulbatum See Azure/homebrew-functions#10 . I had to download the .zip manually, and switch over symlinks in order to make it work. |
After updating to new version on local, update all the nugets, when run getting this one. [31-08-2018 14:13:26] Function 'ApiAppService.RunGetAppServices' failed indexing and will be disabled. |
I'm seeing the same dependency errors as @davemurphysf along with a few other dependency errors with 409s when attempting to write to Both sets of errors are intermittent. |
@paulbatum can u please guide, after migration |
I attempted to follow the migration steps but still get In response to that issue, the OP says:
Following those instructions, in the root directory of my functions app, I ran:
I added that file and published from github, but I still get the error. Unfortunately all the documentation, including Azure Table storage bindings for Azure Functions, is out of date and does not yet reflect the need to register bindings so it is unclear if there are other necessary steps. I have have left the code in the state that I tried to use with the newest runtime, but I have pinned the function version in the application settings as a mitigation for now. Edit: Added link to github repo |
Somebody created a PR for my repo setting the version value in However, this quote from the migration notes is a bit confusing about whether updating the hosts file is necessary or not:
Based on the quote above, it sounds like the version shouldn't be necessary. So maybe the issue was just the package version in the But now I have 2 more issues:
However, I undid the changes and then even redeployed the last known working version from the azure portal "Deployment Options" blade and I still get this issue. SummaryI have 3 issues:
Edit: I have "recovered" from problem 3 by using "slots". I created a new "Test" slot which essentially creates a new functions app which worked fine. I then swapped it into my production slot which made the production app work, but then the test slot was broken. I deleted the test slot and recreated it and now both slots work fine. So basically upgrading and then rolling back broke my function app in a way that could only be fixed by recreating it. Problems 1 and 2 remain unresolved. |
@paulbatum We are also seeing the same HTTP 409 dependency errors as mentioned by @DanRigby above across all our function apps. We've temporarily set functions runtime to |
What I did:
From the logs, it seems that my Function App is now running version |
#3367 is still prevailing after upgrading to 2.0.1-beta.37. |
Azure Functions Core Tools (2.0.1-beta.37) I have an issue after the upgrade which I've managed to boil down to something that is easy to reproduce. A function with ServiceBusTrigger that runs longer than 5 minutes succeeds but fails directly after that when trying to complete the trigger message.
Below function works like expected when loop is less than 5 minutes but not when running longer.
host.json {
"version": "2.0",
"extensions": {
"serviceBus": {
"messageHandlerOptions": {
"maxConcurrentCalls": 1,
"maxAutoRenewTimeout": "00:30:00"
}
}
}
} Before the latest release I had the issue that the lock wasn't auto-renewed after 5 minute and hence started a new execution in parallel despite having maxConcurrency set to 1, similar to |
Hello, I have an HTTP triggered function which worked until the newest runtime update. Now it sometimes runs and sometimes it responds with 500 Internal Server Error. The Azure runtime on which it runs is: 2.0.12050.0 (beta).
Could someone please help? |
@davemurphysf -- Those dependency errors look to be coming from the Azure Functions dashboard. Do you have the @DanRigby -- What trigger are you using with the function that is showing your lease dependency error? Or are you using a FYI for @harshithkashyap and others seeing these: |
@harjotsmart -- See this comment for changes required to existing binding extensions: Azure/app-service-announcements-discussions#64 (comment) |
@hoovercj -- The host.json change is not strictly required. An empty host.json is fine. We want to be clear that if you're using custom settings, you need to explicitly acknowledge that there is a change in v2. Since you're not using any custom settings, you're fine. @mhoeger, can you help with the question about promises/done/etc? #3363 (comment) |
Hi @brettsam, yeah that seems to be the issue for me. I deleted the |
@harshithkashyap We're also using Zip Push Deploy + Run from Zip and have been broken since this update. The "Functions (Read Only)" node in the Portal just hangs and never expands the functions. Anyone else using a similar deployment method have any luck getting it to work? It gives this message after a few minutes: |
@IGx89 What worked for me was first stopping the Function in the Portal, then deploying, and then restarting the Function in the portal |
@IGx89 -- can you share your site name with me so I can investigate on our side? See here to share privately: https://github.com/Azure/azure-functions-host/wiki/Sharing-Your-Function-App-name-privately. Although if you're not even able to run a function, maybe that's tough. Any older logs you have would work as well -- I should be able to look up any function invocation guid. If you need to, you can email me your site name directly. My mail address is in my github profile. |
Can't create a blank function app with ~2 version pinned and a basic HTTP trigger. Everything through the interface.
Also, trying to upgrade an existing app just blew it. Returning to the previous pinned version has no effect. |
@ltouro - what version of node are you using? (note that if your are specifying node version in azure using WEBSITE_NODE_DEFAULT_VERSION, only a few versions are supported. i would recommend trying 8.11.1 or 10.6.0). |
@mhoeger I see. Thanks. I did not specify the node version manually. Just set the ~2 runtime version and used the Azure Portal Function creation Wizard. So, the Portal set the Node version to 6.5.0 by itself. Using 8.11.1 and restarting the App works. Regarding the migration path, fixing the Node Version, stopping the App, deploying through git push remote and starting the app again did the trick. |
@cristinamanitiu - We are tracking issue with Java process timeout exception on consumption plan. Please see #3081 I will continue to follow up on this issue. |
How do I get this Function Runtime Version to update? |
Seems chocolately hasn't updated to beta.37 yet and that was why. Had to install node/npm and get it that way. Remind me why Azure Functions Core Tools has an "official dependency" on the god-awful Node/NPM stack again? For a VS .NET developer it makes absolutely no sense at the moment... |
Hello. |
@makar-sasha I was about to report the same issue. Can see the logs on live stream but no query results on the AI analytics dashboard. Worker: Node v. 8.11.1 |
There are too many distinct things being discussed in this thread, and it's hard to track/respond properly. Please open a separate issue on https://github.com/Azure/azure-functions-host for each distinct issue that you are having (you can post a link from here). We will get to all of them. Thanks! |
@nbevans Chocolatey has been updated with the latest. |
I have upgraded a java version of function app to |
@betarabbit please open a separate issue, per my previous comment. |
Related issue #3411 listSecrets broken for function keys in V2 (Runtime version: 2.0.12050.0) |
I am both puzzled and frustrated with inconsistent and (apparently) meaningless errors now being generated by maven and VS Code builds. [INFO] Step 7 of 7: Installing function extensions if needed local.settings.json looks like this (after supposedly installing java extension) BUT when I run the package (locally so far) it reports: [INFO] Azure Function App's staging directory found at: D:\Functions\neuralstudio-create-container\target\azure-functions\neuralstudio-create-container < graphic omitted > Azure Functions Core Tools (2.0.2.0) and a few lines later: Then the function runs as expected. Development on Azure is difficult enough without this kind of aggravation - I spent a couple of hours trying to figure out what was going on before I realized the function was working. But now I fear that bad things will happen if I in fact deploy - I am particularly worried that there should be a value for "FunctionsExtensionVersion" in the last line shown above. What is going on? |
In retrospect my comment above should have been a new issue not a comment on list secrets broken. |
@TurtleBeach - We found issue with core tools version. Will roll out a fix. |
I have same error
Language used is java. |
I'm receiving "The type or namespace name 'JobHostConfiguration' could not be found." Which assembly did that method move to? |
This code no longer compiles.
|
@ZombiesWithCoffee -- WebJobs v3 now uses .NET Core hosting patterns with |
Thank you @brettsam! That's a major update. |
EDIT: I've opened a separate issue (#3719) as I'm not sure if this thread is being triaged. Let me know if I should open a separate issue, but this seemed like a good place. I'm migrating from function runtime version Now I'm seeing the following error toast in the Portal:
I believe I've followed all of the migration instructions, so I'm at a loss right now. Is something wrong with my Function settings, or do I need to take a code change? Function Information
host.json File
Queue Binding
|
I'm going to go ahead and close this as we're now sufficiently past this release. If you find any new problems, please create a new issue and we will triage. |
This relates to this announcement: Azure/app-service-announcements#129
Check your versions
First, to understand any error you're getting, its important that you establish which version(s) of functions you are running. If you're working completely from within the portal its simple - go to function app settings and look at the runtime version:
If you're developing locally, you'll also need to check the functions version that is being used when you test your app locally. You can check that by looking for a line in the output that looks like this:
[8/30/2018 6:12:53 PM] Starting Host (HostId=xxx, InstanceId=xxx, Version=2.0.12050.0)
If your local version doesn't match the version you're deploying to in Azure, you're probably going to have issues.
Check your logs
If you're developing and testing the app locally, the logs are clearly visible in the terminal and easy to check. If you've deployed to Azure and you're having problems, there are a few approaches you can take to get quick feedback on what is going wrong with your function app:
Common Errors
[Error] Found functions with more than one language. Select a language for your function app by specifying FUNCTIONS_WORKER_RUNTIME AppSetting
You'll need to specify the language for your function app. See the
Choose a language for your Function App
section of this page.My http triggers are returning 404 but I have no idea why
Its possible this is happening because you have the same error as the one above (multiple languages), but you're just not seeing it in the log. Try step approach 3 in the "check your logs" section above to confirm.
Microsoft.Azure.WebJobs.Script.HostConfigurationException : The host.json file is missing the required 'version' property.
You'll need to update your host.json file to the new format. See here for more info.
System.TypeLoadException : Could not load type 'Microsoft.Azure.WebJobs.ExecutionContext' from assembly 'Microsoft.Azure.WebJobs.Extensions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
You need to update your NuGet references, recompile and publish. See the
Update your dependencies, extensions and/or code
section of this page.System.TypeLoadException : Could not load type 'Microsoft.Azure.WebJobs.BlobTriggerAttribute' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException : Could not load type 'Microsoft.Azure.WebJobs.QueueAttribute' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException : Could not load type 'Microsoft.Azure.WebJobs.TableAttribute' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
The binding type(s) 'blob, queue' are not registered. Please ensure the type is correct and the binding extension is installed.
You'll get errors like these if you're using Azure Storage based functionality (blob/queue/tables trigger/input/output) and you haven't installed the
Microsoft.Azure.WebJobs.Extensions.Storage
extension. See theUpdate your dependencies, extensions and/or code
section of this page.Could not load type 'Microsoft.Azure.WebJobs.Hosting.IWebJobsStartup' from assembly 'Microsoft.Azure.WebJobs.Host, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
You'll see this if you have published an app that has been updated locally to the latest bits, but the app you're deploying to is running a version older than
2.0.12050.0
. See the instructions at the top of this page for checking your versions.Microsoft.Azure.WebJobs.Script.Rpc.LanguageWorkerChannelException : Failed to start language worker for: node. Error: Your Function App is currently set to use Node.js version v6.5.0, but the runtime requires an Active LTS or Current version (ex: 8.11.1 or 10.6.0).
The JavaScript support in functions V2 works on Node 8 and Node 10. See here for more info.
The text was updated successfully, but these errors were encountered: