Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Function Stops Responding Silently

Open jchilde opened this issue 9 years ago • 7 comments

I am using the latest VS 2017 tools with Function SDK 1.02 (however I was seeing this with 1.00 as well).

I have a function that transfers files from Azure Tables to SharePoint in small byte sizes. It is triggered by an azure queue.

The function is NOT a consumption plan function.

After running for a while, the function will just stop working. When this happed, the last entry in my log with verbose logging turned on states: Received request: GET https://onpoint-large-files.azurewebsites.net/admin/functions/Files-Azure-To-Sharepoint/keys

Nothing after that.

I have not rekeyed and this has now happened on a brand new function created on 8/26/2017.

I get no errors, the function looks like it is running and in fact if I restart the function, everything continues on just fine with the next file.

I am not sure how to troubleshoot this. Any advice on how to proceed with getting to the root cause?

jchilde avatar Aug 27 '17 13:08 jchilde

I'm curious what the host logs are saying for your application: if you have application insights enabled, can you investigate the traces in the analytics tab? Alternately, take a look at the logs in TableStorage for your AzureWebJobsDashboard account.

mamaso avatar Aug 29 '17 17:08 mamaso

Mamaso,

My host logs indicate everything is working fine. I am testing a suspicion at the moment. What I am doing is transferring files (some > 1gb) from Azure Blob Storage to SharePoint in chunks.

In order to prevent a timeout, I set the SharePoint context to an infinite timeout. So I suspect that the function executes the SharePoint transfer and waits for a reply, but none comes. The function is perfectly happy with this arrangement and dutifully continues to wait indefinitely. If I am correct, then the problem is on the Sharepoint End.

Jeffrey A. Childers Rumph Childers, LLC (478) 471-8787 x 7

Confidentiality Notice: This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain confidential or privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and any attachments. The receipt of this email alone does not create an attorney-client privilege. Thank you.

From: mamaso [mailto:[email protected]] Sent: Tuesday, August 29, 2017 1:46 PM To: Azure/Azure-Functions [email protected] Cc: Jeffrey Childers [email protected]; Author [email protected] Subject: Re: [Azure/Azure-Functions] Function Stops Responding Silently (#459)

I'm curious what the host logs are saying for your application: if you have application insights enabled, can you investigate the traces in the analytics tab? Alternately, take a look at the logs in TableStorage for your AzureWebJobsDashboard account.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Azure/Azure-Functions/issues/459#issuecomment-325741196, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AK1m6cdTTB-opEAivqrApjfk5q6wF1hvks5sdE51gaJpZM4PDzUB.

jchilde avatar Aug 30 '17 14:08 jchilde

This happens to me also, except usually I'll start the function and notice it's hung, then restarting it works most of the time.

codymullins avatar Sep 19 '17 15:09 codymullins

Azure Functions 1.0 We are experiencing the same thing. In our use case we are attempting to download a message that is broken into different chunks. Once reaching a certain size our function just dies with no logging. We can see the function has ran based on the app insights data collected for the dependencies calls to the web host to download the different chuncks of the messages.

We run into an out of memory exception while debugging locally, and I cant seem to get around this issue while my local machine has 32 gB of memory.

Inside of the cloud we have an ASE set up, I have scaled up the ASE up to a P2v2 which should have plenty of memory in the cloud. Looking at the metric I can see that there are spare system resources when I try to initial the message download and the process dies without logging the exception or sending the request telemetry imgo

Frankwayne avatar Sep 17 '18 12:09 Frankwayne

We also attempt to preallocate memory for our list object

var chunkedPayload = new List<byte>(314572800);

will fail on us every time. The file is about 294MB file

Frankwayne avatar Sep 17 '18 12:09 Frankwayne

updating the node.js to 64 solved my out of memory issues. Follow the steps in this issue case to update your node.js exe to 64 bits and configure the azure functions runtime to use the 64 bit node.js exe

https://github.com/Azure/Azure-Functions/issues/376

Frankwayne avatar Sep 18 '18 16:09 Frankwayne

if you wish to debug in x64 you can follow my steps outlined in this issue

Be warned though you are pretty much fooling the Azure Functions and Web Jobs Tool extensions in visual studio to run your version of the Azure Functions CLI

https://github.com/Azure/azure-functions-core-tools/issues/117

Frankwayne avatar Sep 18 '18 20:09 Frankwayne