Unable to deploy functions (Python 3.9 Linux Consumption Plan)
See original GitHub issueHello. We have issues deploying from GitHub Actions with this runner. Python 3.9 Linux Consumption Plan.
When we run func azure functionapp publish alzvendingmachinedev --python
locally we are able to successfully deploy and see 5 functions on the Portal within the Function App.
However, when we deploy with this runner (latest v1.4.7) all functions get deleted and never reappear. The API call goes from working, to 404 Not Found and Application Insights shows OperationNotFound
exceptions. When we redeploy locally the same API call works once again, and the 5 functions reappear on the portal.
The question is why the runner seemingly deletes all the functions without a sign of failure? Need help debugging. I tried both RBAC and PublishProfile, the end-result is the same.
Here are logs that don’t say much, unfortunately. Is there a way to have them more verbose?
Run Azure/functions-action@v1.4.7
with:
app-name: alzvendingmachinedev
package: ./
respect-pom-xml: false
respect-funcignore: false
scm-do-build-during-deployment: false
enable-oryx-build: false
env:
AZURE_HTTP_USER_AGENT:
AZUREPS_HOST_ENVIRONMENT:
pythonLocation: /opt/hostedtoolcache/Python/3.9.13/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.13/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.13/x64
Python[2](https://github.com/REDACTED/PROJECT/runs/7877954211?check_suite_focus=true#step:6:2)_ROOT_DIR: /opt/hostedtoolcache/Python/[3](https://github.com/REDACTED/PROJECT/runs/7877954211?check_suite_focus=true#step:6:3).9.13/x6[4](https://github.com/REDACTED/PROJECT/runs/7877954211?check_suite_focus=true#step:6:4)
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.13/x[6](https://github.com/REDACTED/PROJECT/runs/7877954211?check_suite_focus=true#step:6:6)4
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.13/x64/lib
Using RBAC for authentication, GitHub Action will perform resource validation.
Successfully acquired site configs from function app!
Detected function app sku: Consumption
Successfully acquired app settings from function app (RBAC)!
Detected function app language: Python
Will archive ./ into /home/runner/work/_temp/temp_web_package_[7](https://github.com/REDACTED/PROJECT/runs/7877954211?check_suite_focus=true#step:6:7)70662064[8](https://github.com/REDACTED/PROJECT/runs/7877954211?check_suite_focus=true#step:6:8)[9](https://github.com/REDACTED/PROJECT/runs/7877954211?check_suite_focus=true#step:6:9)00389.zip as function app content
Will use WEBSITE_RUN_FROM_PACKAGE to deploy since RBAC is detected and your function app is on Linux Consumption.
Sync Trigger call was successful.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:14
@patelchandni thanks for the tip. We’ve found the problem.
As we’re hosting our code in a monorepo, we are specifying dynamic
defaults.run.working-directory
per Azure Function/application. We assumed that thepackage
argument inAzure/functions-action
is automatically picking that up but it seems like it doesn’t.After changing the value of the
package
argument from.
to./path-to/function
, everything started to work as expected.Is that intended behavior?
Still struggling. Any ideas from anyone?