Hi everyone,
Im executing a nodejs function in Azure and im getting the following error:
Exception while executing function: Functions.getSheet. System.Private.CoreLib: One or more errors occurred. (Worker process with pid 393 exited with code 1) (Worker process with pid 407 exited with code 1) (Worker process with pid 420 exited with code 1). Worker process with pid 393 exited with code 1.
Ofcourse this doesnt help me at all to consider whats wrong with the following piece of code:
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World!');
}).listen(8080);
The above piece of code is a simple hello world example. Could anyone tell me whats wrong with this?
Im on the West-European server by the way. Running on 2.0.1 beta runtime version and node version 8.4.0.
By default it's sets to 6.5.0, even though the latest version has been updated to 8.4.0:
https://github.com/Azure/azure-webjobs-sdk-script/commit/7a310233b862138f9e1c2ae5511aa537171c651b
Are there more specific logs to be found somewhere?
Source
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World!');
}).listen(8080);
This is a known bug we plan on addressing soon in v2. Restarting the Function App mostly works to address this as a temporary work around. Your code is fine, it's a bug in our state machine for the node process on the worker.
Probably a dupe of https://github.com/Azure/azure-webjobs-sdk-script/issues/2244
@pragnagopa, could you confirm?
@christopheranderson ah thats unfortunate. Any ETA on a fix?
@paulbatum Since @christopheranderson isnt responding. Do you have an ETA when 2.0 goes live? We are kind of waiting for this to work properly.
@isualize As neither @pragnagopa or @christopheranderson have picked this up for an upcoming sprint, I can't give you an ETA for this particular issue to be fixed. Functions 2.0 is already in preview, and we will make sure this is fixed prior to GA for v2 (but I don't have a GA date either).
Submitted PR with a fix for this.
Just got the same issue.
Region: East Asia
Azure Function version: 2.x (beta)
Nodejs version: 8.9.4
+1
Region EastUS
func --version
2.0.1-beta.26
Docker image:
microsoft/azure-functions-python3.6:v2.0.11651-alpha
@paulbatum @pragnagopa @christopheranderson I insist to reopen this issue, I continuously getting this again and again. Even restart doesn't help... No confidence to run in production, bad experience for development, and this really frustrating.
Fix is not rolled out yet. Fix is part of 2.0.11737-alpha. We are currently working on this release. Should be out soon.
@brusMX - For python can you try using the latest docker image from sample repo: https://github.com/Azure/azure-functions-docker-python-sample/blob/master/Dockerfile
@pragnagopa Thank you for the fast response, hopefully waiting for the next build to be published very soon. Any workaround you can suggest for now until version 2.0.11737-alpha? Restart, full redeploy, full redeploy with different app service name - none of this helped me :(
@iredjee - Moved investigation to https://github.com/Azure/azure-functions-nodejs-worker/issues/68
Yes please, any workaround currently until the issue is fixed?
Please check Kudu diagnostic logs.
Most helpful comment
@paulbatum @pragnagopa @christopheranderson I insist to reopen this issue, I continuously getting this again and again. Even restart doesn't help... No confidence to run in production, bad experience for development, and this really frustrating.