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

Python Function App Deployment to AKS is not working #1092

Open
jithsc opened this issue May 21, 2024 · 1 comment
Open

Python Function App Deployment to AKS is not working #1092

jithsc opened this issue May 21, 2024 · 1 comment

Comments

@jithsc
Copy link

jithsc commented May 21, 2024

Team,

I have an issue with Python Function App Deployment to AKS, after the deployment to AKS the pod is not running. While checking the container logs we have seen the runtime error as : exec /opt/startup/start_nonappservice.sh exec format error.

Here is my docker file :

FROM mcr.microsoft.com/azure-functions/python:4-python3.10
WORKDIR /home/site/wwwroot
COPY packagefolder/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY packagefolder/ .
ENV AzureWebJobsScriptRoot=/home/site/wwwroot
AzureFunctionsJobHost__Logging__Console__IsEnabled=true
EXPOSE 8000

Here is my Platform Details :

AKS Version 1.29.4
VMSS SKU Standard_D2pds_v5
Node Architecture : ARM64
OS : Ubuntu
Python Version : 3.10

Kindly Advise.

@sudharsan2020
Copy link

@jithsc Troubleshooting the Azure functions may not be straight-forward, since it doesn't show any proper logs. We tried to troubleshoot the issues by stepping inside the Docker container using the below steps: #987 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants