{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3363","repository_url":"https://api.github.com/repos/Azure/azure-functions-host","labels_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3363/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3363/comments","events_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3363/events","html_url":"https://github.com/Azure/azure-functions-host/issues/3363","id":355824167,"node_id":"MDU6SXNzdWUzNTU4MjQxNjc=","number":3363,"title":"Common errors when upgrading to 2.0.12050 (or newer)","user":{"login":"paulbatum","id":10663,"node_id":"MDQ6VXNlcjEwNjYz","avatar_url":"https://avatars2.githubusercontent.com/u/10663?v=4","gravatar_id":"","url":"https://api.github.com/users/paulbatum","html_url":"https://github.com/paulbatum","followers_url":"https://api.github.com/users/paulbatum/followers","following_url":"https://api.github.com/users/paulbatum/following{/other_user}","gists_url":"https://api.github.com/users/paulbatum/gists{/gist_id}","starred_url":"https://api.github.com/users/paulbatum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulbatum/subscriptions","organizations_url":"https://api.github.com/users/paulbatum/orgs","repos_url":"https://api.github.com/users/paulbatum/repos","events_url":"https://api.github.com/users/paulbatum/events{/privacy}","received_events_url":"https://api.github.com/users/paulbatum/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":44,"created_at":"2018-08-31T03:11:49Z","updated_at":"2018-12-06T20:09:34Z","closed_at":"2018-12-06T20:09:34Z","author_association":"MEMBER","body":"This relates to this announcement: https://github.com/Azure/app-service-announcements/issues/129\r\n\r\n### Check your versions\r\nFirst, 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:\r\n\r\n![image](https://user-images.githubusercontent.com/10663/44889884-ced0f600-ac8c-11e8-87bf-f427f1d23fd1.png)\r\n\r\nIf 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:\r\n[8/30/2018 6:12:53 PM] Starting Host (HostId=xxx, InstanceId=xxx, Version=2.0.12050.0)\r\n\r\nIf your local version doesn't match the version you're deploying to in Azure, you're probably going to have issues.\r\n\r\n### Check your logs\r\nIf 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:\r\n1. Go to a particular function in the portal and attempt to run it and check the log stream at the bottom of the screen.\r\n2. Go to the overview tab, and in configured features select Application Insights. This will open a new view. Find Live Metrics Stream in the left hand list, open that and look at the Sample Telemetry - this will show live error logs for the entire function app (not just a single function)\r\n3. Go to the platform features tab and select Advanced Tools (kudu). Go to debug console -> CMD and then in the file browser browse to Log Files -> Application -> Functions -> Host and look at the log files there.\r\n\r\n### Common Errors\r\n\r\n#### [Error] Found functions with more than one language. Select a language for your function app by specifying FUNCTIONS_WORKER_RUNTIME AppSetting\r\n\r\nYou'll need to specify the language for your function app. See the `Choose a language for your Function App` section of [this page](https://github.com/Azure/app-service-announcements/issues/129).\r\n\r\n#### My http triggers are returning 404 but I have no idea why\r\nIts 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.\r\n\r\n#### Microsoft.Azure.WebJobs.Script.HostConfigurationException : The host.json file is missing the required 'version' property.\r\n\r\nYou'll need to update your host.json file to the new format. See [here](https://aka.ms/functions-hostjson) for more info.\r\n\r\n#### 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'.\r\n\r\nYou need to update your NuGet references, recompile and publish. See the `Update your dependencies, extensions and/or code` section of [this page](https://github.com/Azure/app-service-announcements/issues/129).\r\n\r\n#### System.TypeLoadException : Could not load type 'Microsoft.Azure.WebJobs.BlobTriggerAttribute' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.\r\n#### System.TypeLoadException : Could not load type 'Microsoft.Azure.WebJobs.QueueAttribute' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.\r\n#### System.TypeLoadException : Could not load type 'Microsoft.Azure.WebJobs.TableAttribute' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.\r\n#### The binding type(s) 'blob, queue' are not registered. Please ensure the type is correct and the binding extension is installed.\r\n\r\nYou'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 the `Update your dependencies, extensions and/or code` section of [this page](https://github.com/Azure/app-service-announcements/issues/129).\r\n\r\n#### Could not load type 'Microsoft.Azure.WebJobs.Hosting.IWebJobsStartup' from assembly 'Microsoft.Azure.WebJobs.Host, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.\r\n\r\nYou'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.\r\n\r\n#### 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).\r\n\r\nThe JavaScript support in functions V2 works on Node 8 and Node 10. See [here](https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-node#node-version-and-package-management) for more info.\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/comments/445012832","html_url":"https://github.com/Azure/azure-functions-host/issues/3363#issuecomment-445012832","issue_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/3363","id":445012832,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTAxMjgzMg==","user":{"login":"brettsam","id":1089915,"node_id":"MDQ6VXNlcjEwODk5MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1089915?v=4","gravatar_id":"","url":"https://api.github.com/users/brettsam","html_url":"https://github.com/brettsam","followers_url":"https://api.github.com/users/brettsam/followers","following_url":"https://api.github.com/users/brettsam/following{/other_user}","gists_url":"https://api.github.com/users/brettsam/gists{/gist_id}","starred_url":"https://api.github.com/users/brettsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettsam/subscriptions","organizations_url":"https://api.github.com/users/brettsam/orgs","repos_url":"https://api.github.com/users/brettsam/repos","events_url":"https://api.github.com/users/brettsam/events{/privacy}","received_events_url":"https://api.github.com/users/brettsam/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T20:09:34Z","updated_at":"2018-12-06T20:09:34Z","author_association":"MEMBER","body":"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."}}
{"actor":{"display_login":"brettsam"}}