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

Where to find the actual error instead of "exception while executing function: ... System.Private.CoreLib: One or more errors occurred ...." #2321

Closed
Bazeloth opened this issue Jan 17, 2018 · 16 comments · Fixed by #2603
Assignees
Milestone

Comments

@Bazeloth
Copy link

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:

7a31023

Are there more specific logs to be found somewhere?

@Bazeloth
Copy link
Author

Source
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World!');
}).listen(8080);

@christopheranderson
Copy link
Contributor

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.

@christopheranderson
Copy link
Contributor

Probably a dupe of #2244

@pragnagopa, could you confirm?

@christopheranderson christopheranderson added this to the Triaged milestone Jan 18, 2018
@Bazeloth
Copy link
Author

@christopheranderson ah thats unfortunate. Any ETA on a fix?

@paulbatum paulbatum added the 2.0 label Jan 20, 2018
@paulbatum paulbatum modified the milestones: Triaged, Backlog Jan 20, 2018
@Bazeloth
Copy link
Author

@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.

@paulbatum
Copy link
Member

@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).

@pragnagopa pragnagopa modified the milestones: Backlog, Sprint 20 Apr 3, 2018
@pragnagopa
Copy link
Member

Submitted PR with a fix for this.

@ghost
Copy link

ghost commented Apr 15, 2018

Just got the same issue.

Region: East Asia
Azure Function version: 2.x (beta)
Nodejs version: 8.9.4

@brusMX
Copy link

brusMX commented Apr 30, 2018

+1

Region EastUS
func --version
2.0.1-beta.26
Docker image:
microsoft/azure-functions-python3.6:v2.0.11651-alpha

@ghost
Copy link

ghost commented May 9, 2018

@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.

@pragnagopa
Copy link
Member

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.

@pragnagopa
Copy link
Member

@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

@ghost
Copy link

ghost commented May 9, 2018

@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 :(

@pragnagopa
Copy link
Member

@iredjee - Moved investigation to Azure/azure-functions-nodejs-worker#68

@anton-bot
Copy link

Yes please, any workaround currently until the issue is fixed?

@pragnagopa
Copy link
Member

Please check Kudu diagnostic logs.

@ghost ghost locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants