URGENT: Confluence Module Missing in Azure Sentinel Function app
Describe the bug Atlassian Confluence Audit data connector not working as Function app runs with error. No module named '_cffi_backend'
To Reproduce Steps to reproduce the behaviour:
Go to Azure Sentinel - > Function Apps -> your confluence Function App name Click on Configurations tab -> ensure WEBSITE_RUN_FROM_PACKAGE is -> https://aka.ms/sentinel-confluenceauditapi-functionapp Click on Application Insights -> your confluence resource -> transaction search Set to '30 minutes' Every 10 minutes you will see EXCEPTIONs raised - because of No module named '_cffi_backend' present.
I checked the zip package from https://aka.ms/sentinel-confluenceauditapi-functionapp and i saw no module specifically named _cffi_backend
Expected behavior Function app expected to run without error
Additional context Missing module/package in this folder - will affect several organisations worldwide that rely on these logs No confluence logs feeding to Sentinel till remediated.
Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.
Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.
Hi team
This issue is ongoing for us - do you have any comments/updates on the matter?
Will be much appreciated if you could have a look into this
Hi @alakijaD, Can you please add raw link of the zip file as a value for the WEBSITE_RUN_FROM_PACKAGE and try testing the same. WEBSITE_RUN_FROM_PACKAGE - https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/AtlassianConfluenceAudit/Data%20Connector/AtlassianConfluenceAudit/ConfluenceAuditAPISentinelConn.zip?raw=true Let me know if you are still having problems. Thanks
Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.
Hi @alakijaD, Can you please add raw link of the zip file as a value for the WEBSITE_RUN_FROM_PACKAGE and try testing the same. WEBSITE_RUN_FROM_PACKAGE - https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/AtlassianConfluenceAudit/Data%20Connector/AtlassianConfluenceAudit/ConfluenceAuditAPISentinelConn.zip?raw=true Let me know if you are still having problems. Thanks
Hi,
Thanks for the reply - i have since tried this URL and we still have the same exception error "no module named _cffi_backend
Attached are screenshots of the error and the evidence of the error.
In the zip you provided there is no module explicitly named "_cffi_backend"
I've also looked within the cffi folders - none contain a script called _cffi_backend either.
I hope this clarifies the issue
Cheers


Hi guys any update on this ?
It is still an ongoing issue for us
Will be much appreciated if you could have a look into this
Hi team
Is there any development on this issue
It is currently disrupting progress to our business
I would greatly appreciate if I could get some feedback
Hi, @alakijaD Are you still facing this issue?
Hi, @alakijaD Are you still facing this issue?
Yes still the same issue
@alakijaD This usually happening with python 3.9 and not with python 3.8. Have you made any customizations in deployment? Can you please confirm the python version? Our default settings are 3.8

Hi @alakijaD could you please confirm the python version, thanks!
Hi, sorry just seeing this thread.
Thanks for your response @anki-narravula
Yes from what i can see in the JSON, our linuxFxVersion is python 3.9 - however this appears to be our default setting. How can i change this value?
Within the configuration of the function app, the "FUNCTION_EXTENSION_VERSION"/Function runtime settings, seems to be the only relevant setting. This is currently set to "~3".
@alakijaD - No worries. For consumption plan we dont have option from UI to change. I would suggest to redeploy the function app and our default settings are python 3.8. Or you can change with command - https://stackoverflow.com/questions/72000572/how-to-change-python-version-of-azure-function
If you are using premium function app plan then you can navigate to Configuration --> General Settings and choose

@alakijaD - No worries. For consumption plan we dont have option from UI to change. I would suggest to redeploy the function app and our default settings are python 3.8. Or you can change with command - https://stackoverflow.com/questions/72000572/how-to-change-python-version-of-azure-function
If you are using premium function app plan then you can navigate to Configuration --> General Settings and choose
@anki-narravula - Thank you very much for your support. I have managed to change it to python 3.8 following these instructions. However, we now get a new error:
"TypeError: object of type 'NoneType' has no len() Stack: File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py"
Shown by the attachment below

Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.
Hi @alakijaD we have added exception for 'NoneType' error, please use the latest zip in WEBSITE_RUN_FROM_PACKAGE of the function app, thanks!
Gentle Reminder: We are waiting for your response on this issue. If you still need to keep this issue active, please respond on it in the next 2 days. If we don't receive response, we will be closing this issue as per our standard procedures, thanks!
Since we have not received a response in the last 5 days, we are closing your issue as per our standard operating procedures. If you still need support for this issue, feel free to re-open at any time. Thank you for your co-operation.
Thank you for submitting an Issue to the Azure Sentinel GitHub repo! You should expect an initial response to your Issue from the team within 5 business days. Note that this response may be delayed during holiday periods. For urgent, production-affecting issues please raise a support ticket via the Azure Portal.