Open JackH11 opened 1 year ago
Hi @JackH11,
Thank you for submitting this ticket. Seems to be related to https://github.com/microsoft/vscode-azurefunctions/issues/2529
I have the same issue, even when trying to use a default template Http Trigger example.
Thanks @IlyaBelykh for reaching out. Could you please share logs if you have them available?
Could you please share logs if you have them available?
My logs seem pretty much the same as the ones given:
6:18:39 PM hwm-azfn-pdfbuilder: Starting deployment...
6:18:42 PM hwm-azfn-pdfbuilder: Creating zip package...
6:19:00 PM hwm-azfn-pdfbuilder: Zip package size: 27 MB
6:18:53 PM hwm-azfn-pdfbuilder: Fetching changes.
6:18:55 PM hwm-azfn-pdfbuilder: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/ffac5942-3325-4556-b0e8-c3e8663410f4.zip (26.13 MB) to /tmp/zipdeploy/extracted
6:18:59 PM hwm-azfn-pdfbuilder: Updating submodules.
6:19:00 PM hwm-azfn-pdfbuilder: Preparing deployment for commit id 'b1537980-2'.
6:19:00 PM hwm-azfn-pdfbuilder: PreDeployment: context.CleanOutputPath False
6:19:00 PM hwm-azfn-pdfbuilder: PreDeployment: context.OutputPath /home/site/wwwroot
6:19:00 PM hwm-azfn-pdfbuilder: Repository path is /tmp/zipdeploy/extracted
6:19:00 PM hwm-azfn-pdfbuilder: Running oryx build...
6:19:00 PM hwm-azfn-pdfbuilder: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.9.7 -p packagedir=.python_packages/lib/site-packages
6:19:03 PM hwm-azfn-pdfbuilder: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
6:19:03 PM hwm-azfn-pdfbuilder: You can report issues at https://github.com/Microsoft/Oryx/issues
6:19:03 PM hwm-azfn-pdfbuilder: Oryx Version: 0.2.20210120.1, Commit: 66c7820d7df527aaffabd2563a49ad57930999c9, ReleaseTagName: 20210120.1
6:19:03 PM hwm-azfn-pdfbuilder: Build Operation ID: |MUyOZgJXGGw=.72309cb7_
6:19:03 PM hwm-azfn-pdfbuilder: Repository Commit : b1537980-2de8-4b53-9f85-61b22740dbdb
6:19:03 PM hwm-azfn-pdfbuilder: Detecting platforms...
6:19:04 PM hwm-azfn-pdfbuilder: Detected following platforms:
6:19:04 PM hwm-azfn-pdfbuilder: python: 3.9.7
6:19:04 PM hwm-azfn-pdfbuilder: Version '3.9.7' of platform 'python' is not installed. Generating script to install it...
6:19:05 PM hwm-azfn-pdfbuilder: Source directory : /tmp/zipdeploy/extracted
6:19:05 PM hwm-azfn-pdfbuilder: Destination directory: /home/site/wwwroot
6:19:05 PM hwm-azfn-pdfbuilder: Downloading and extracting 'python' version '3.9.7' to '/tmp/oryx/platforms/python/3.9.7'...
6:19:06 PM hwm-azfn-pdfbuilder: Downloaded in 1 sec(s).
6:19:06 PM hwm-azfn-pdfbuilder: Verifying checksum...
6:19:06 PM hwm-azfn-pdfbuilder: Extracting contents...
6:19:10 PM hwm-azfn-pdfbuilder: Done in 5 sec(s).
6:19:10 PM hwm-azfn-pdfbuilder: Python Version: /tmp/oryx/platforms/python/3.9.7/bin/python3.9
6:19:10 PM hwm-azfn-pdfbuilder: Running pip install...
6:19:11 PM hwm-azfn-pdfbuilder: [15:19:11+0000] Collecting azure-functions
6:19:11 PM hwm-azfn-pdfbuilder: [15:19:11+0000] Downloading azure_functions-1.12.0-py3-none-any.whl (160 kB)
6:19:11 PM hwm-azfn-pdfbuilder: [15:19:11+0000] Collecting azure-storage-blob
6:19:11 PM hwm-azfn-pdfbuilder: [15:19:11+0000] Downloading azure_storage_blob-12.14.1-py3-none-any.whl (383 kB)
6:19:11 PM hwm-azfn-pdfbuilder: [15:19:11+0000] Collecting azure-data-tables
6:19:11 PM hwm-azfn-pdfbuilder: [15:19:11+0000] Downloading azure_data_tables-12.4.1-py3-none-any.whl (114 kB)
6:19:11 PM hwm-azfn-pdfbuilder: [15:19:11+0000] Collecting azure-identity
6:19:11 PM hwm-azfn-pdfbuilder: [15:19:11+0000] Downloading azure_identity-1.12.0-py3-none-any.whl (135 kB)
6:19:12 PM hwm-azfn-pdfbuilder: [15:19:12+0000] Collecting pypdf
6:19:12 PM hwm-azfn-pdfbuilder: [15:19:12+0000] Downloading pypdf-3.3.0-py3-none-any.whl (239 kB)
6:19:12 PM hwm-azfn-pdfbuilder: [15:19:12+0000] Collecting azure-core<2.0.0,>=1.24.2
6:19:12 PM hwm-azfn-pdfbuilder: [15:19:12+0000] Downloading azure_core-1.26.2-py3-none-any.whl (173 kB)
6:19:12 PM hwm-azfn-pdfbuilder: [15:19:12+0000] Collecting msrest>=0.7.1
6:19:12 PM hwm-azfn-pdfbuilder: [15:19:12+0000] Downloading msrest-0.7.1-py3-none-any.whl (85 kB)
6:19:13 PM hwm-azfn-pdfbuilder: [15:19:13+0000] Collecting cryptography>=2.1.4
6:19:13 PM hwm-azfn-pdfbuilder: [15:19:13+0000] Downloading cryptography-39.0.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB)
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Collecting yarl<2.0,>=1.0
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Downloading yarl-1.8.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (264 kB)
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Collecting six>=1.12.0
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Collecting msal-extensions<2.0.0,>=0.3.0
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Downloading msal_extensions-1.0.0-py2.py3-none-any.whl (19 kB)
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Collecting msal<2.0.0,>=1.12.0
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Downloading msal-1.20.0-py2.py3-none-any.whl (90 kB)
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Collecting typing_extensions>=3.10.0.0; python_version < "3.10"
6:19:14 PM hwm-azfn-pdfbuilder: [15:19:14+0000] Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
6:19:15 PM hwm-azfn-pdfbuilder: [15:19:15+0000] Collecting requests>=2.18.4
6:19:15 PM hwm-azfn-pdfbuilder: [15:19:15+0000] Downloading requests-2.28.2-py3-none-any.whl (62 kB)
6:19:15 PM hwm-azfn-pdfbuilder: [15:19:15+0000] Collecting isodate>=0.6.0
6:19:15 PM hwm-azfn-pdfbuilder: [15:19:15+0000] Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)
6:19:15 PM hwm-azfn-pdfbuilder: [15:19:15+0000] Collecting certifi>=2017.4.17
6:19:15 PM hwm-azfn-pdfbuilder: [15:19:15+0000] Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
6:19:15 PM hwm-azfn-pdfbuilder: [15:19:15+0000] Collecting requests-oauthlib>=0.5.0
6:19:15 PM hwm-azfn-pdfbuilder: [15:19:15+0000] Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
6:19:16 PM hwm-azfn-pdfbuilder: [15:19:16+0000] Collecting cffi>=1.12
6:19:16 PM hwm-azfn-pdfbuilder: [15:19:16+0000] Downloading cffi-1.15.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441 kB)
6:19:16 PM hwm-azfn-pdfbuilder: [15:19:16+0000] Collecting idna>=2.0
6:19:16 PM hwm-azfn-pdfbuilder: [15:19:16+0000] Downloading idna-3.4-py3-none-any.whl (61 kB)
6:19:17 PM hwm-azfn-pdfbuilder: [15:19:17+0000] Collecting multidict>=4.0
6:19:17 PM hwm-azfn-pdfbuilder: [15:19:17+0000] Downloading multidict-6.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114 kB)
6:19:17 PM hwm-azfn-pdfbuilder: [15:19:17+0000] Collecting portalocker<3,>=1.0; python_version >= "3.5" and platform_system != "Windows"
6:19:17 PM hwm-azfn-pdfbuilder: [15:19:17+0000] Downloading portalocker-2.7.0-py2.py3-none-any.whl (15 kB)
6:19:18 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Collecting PyJWT[crypto]<3,>=1.0.0
6:19:18 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Downloading PyJWT-2.6.0-py3-none-any.whl (20 kB)
6:19:18 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Collecting urllib3<1.27,>=1.21.1
6:19:19 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Downloading urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
6:19:19 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Collecting charset-normalizer<4,>=2
6:19:19 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Downloading charset_normalizer-3.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (198 kB)
6:19:19 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Collecting oauthlib>=3.0.0
6:19:19 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)
6:19:19 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Collecting pycparser
6:19:19 PM hwm-azfn-pdfbuilder: [15:19:18+0000] Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
6:19:19 PM hwm-azfn-pdfbuilder: [15:19:19+0000] Installing collected packages: azure-functions, six, urllib3, charset-normalizer, idna, certifi, requests, typing-extensions, azure-core, isodate, oauthlib, requests-oauthlib, msrest, pycparser, cffi, cryptography, azure-storage-blob, multidict, yarl, azure-data-tables, PyJWT, msal, portalocker, msal-extensions, azure-identity, pypdf
6:19:24 PM hwm-azfn-pdfbuilder: [15:19:24+0000] Successfully installed PyJWT-2.6.0 azure-core-1.26.2 azure-data-tables-12.4.1 azure-functions-1.12.0 azure-identity-1.12.0 azure-storage-blob-12.14.1 certifi-2022.12.7 cffi-1.15.1 charset-normalizer-3.0.1 cryptography-39.0.0 idna-3.4 isodate-0.6.1 msal-1.20.0 msal-extensions-1.0.0 msrest-0.7.1 multidict-6.0.4 oauthlib-3.2.2 portalocker-2.7.0 pycparser-2.21 pypdf-3.3.0 requests-2.28.2 requests-oauthlib-1.3.1 six-1.16.0 typing-extensions-4.4.0 urllib3-1.26.14 yarl-1.8.2
6:19:24 PM hwm-azfn-pdfbuilder: WARNING: You are using pip version 20.2.3; however, version 22.3.1 is available.
6:19:24 PM hwm-azfn-pdfbuilder: You should consider upgrading via the '/tmp/oryx/platforms/python/3.9.7/bin/python3.9 -m pip install --upgrade pip' command.
6:19:24 PM hwm-azfn-pdfbuilder: Done in 14 sec(s).
6:19:24 PM hwm-azfn-pdfbuilder: Preparing output...
6:19:24 PM hwm-azfn-pdfbuilder: Copying files to destination directory '/home/site/wwwroot'...
6:19:26 PM hwm-azfn-pdfbuilder: Done in 2 sec(s).
6:19:26 PM hwm-azfn-pdfbuilder: Removing existing manifest file
6:19:26 PM hwm-azfn-pdfbuilder: Creating a manifest file...
6:19:26 PM hwm-azfn-pdfbuilder: Manifest file created.
6:19:26 PM hwm-azfn-pdfbuilder: Done in 21 sec(s).
6:19:28 PM hwm-azfn-pdfbuilder: Running post deployment command(s)...
6:19:28 PM hwm-azfn-pdfbuilder: Generating summary of Oryx build
6:19:28 PM hwm-azfn-pdfbuilder: Deployment Log file does not exist in /tmp/oryx-build.log
6:19:28 PM hwm-azfn-pdfbuilder: The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build
6:19:28 PM hwm-azfn-pdfbuilder: Triggering recycle (preview mode disabled).
6:19:28 PM hwm-azfn-pdfbuilder: Linux Consumption plan has a 1.5 GB memory limit on a remote build container.
6:19:28 PM hwm-azfn-pdfbuilder: To check our service limit, please visit https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits
6:19:28 PM hwm-azfn-pdfbuilder: Writing the artifacts to a squashfs file
6:19:48 PM hwm-azfn-pdfbuilder: Parallel mksquashfs: Using 1 processor
6:19:48 PM hwm-azfn-pdfbuilder: Creating 4.0 filesystem on /home/site/artifacts/functionappartifact.squashfs, block size 131072.
6:19:50 PM hwm-azfn-pdfbuilder: [=============================================================|] 5837/5837 100%
6:19:50 PM hwm-azfn-pdfbuilder: Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
6:19:50 PM hwm-azfn-pdfbuilder: compressed data, compressed metadata, compressed fragments, compressed xattrs
6:19:50 PM hwm-azfn-pdfbuilder: duplicates are removed
6:19:50 PM hwm-azfn-pdfbuilder: Filesystem size 31808.20 Kbytes (31.06 Mbytes)
6:19:50 PM hwm-azfn-pdfbuilder: 32.30% of uncompressed filesystem size (98480.33 Kbytes)
6:19:50 PM hwm-azfn-pdfbuilder: Inode table size 59927 bytes (58.52 Kbytes)
6:19:50 PM hwm-azfn-pdfbuilder: 29.42% of uncompressed inode table size (203710 bytes)
6:19:50 PM hwm-azfn-pdfbuilder: Directory table size 60102 bytes (58.69 Kbytes)
6:19:50 PM hwm-azfn-pdfbuilder: 35.86% of uncompressed directory table size (167624 bytes)
6:19:50 PM hwm-azfn-pdfbuilder: Number of duplicate files found 816
6:19:50 PM hwm-azfn-pdfbuilder: Number of inodes 6311
6:19:50 PM hwm-azfn-pdfbuilder: Number of files 5555
6:19:50 PM hwm-azfn-pdfbuilder: Number of fragments 386
6:19:50 PM hwm-azfn-pdfbuilder: Number of symbolic links 0
6:19:50 PM hwm-azfn-pdfbuilder: Number of device nodes 0
6:19:50 PM hwm-azfn-pdfbuilder: Number of fifo nodes 0
6:19:50 PM hwm-azfn-pdfbuilder: Number of socket nodes 0
6:19:50 PM hwm-azfn-pdfbuilder: Number of directories 756
6:19:50 PM hwm-azfn-pdfbuilder: Number of ids (unique uids + gids) 1
6:19:50 PM hwm-azfn-pdfbuilder: Number of uids 1
6:19:50 PM hwm-azfn-pdfbuilder: root (0)
6:19:50 PM hwm-azfn-pdfbuilder: Number of gids 1
6:19:50 PM hwm-azfn-pdfbuilder: root (0)
6:19:50 PM hwm-azfn-pdfbuilder: Creating placeholder blob for linux consumption function app...
6:19:50 PM hwm-azfn-pdfbuilder: SCM_RUN_FROM_PACKAGE placeholder blob scm-latest-hwm-azfn-pdfbuilder.zip located
6:19:50 PM hwm-azfn-pdfbuilder: Uploading built content /home/site/artifacts/functionappartifact.squashfs for linux consumption function app...
6:19:52 PM hwm-azfn-pdfbuilder: Resetting all workers for hwm-azfn-pdfbuilder.azurewebsites.net
6:19:52 PM hwm-azfn-pdfbuilder: Deployment successful. deployer = ms-azuretools-vscode deploymentPath = Functions App ZipDeploy. Extract zip. Remote build.
6:20:27 PM hwm-azfn-pdfbuilder: Syncing triggers...
6:20:37 PM hwm-azfn-pdfbuilder: Querying triggers...
6:20:43 PM hwm-azfn-pdfbuilder: No HTTP triggers found.
I also must specify that I am using the V2 programming model. When uploading the V1 programming model function, it works perfectly fine.
As I was running into a similar issue. I found I missed a step from the documentation, which enables the HTTP triggers to be found.
Not sure if related to this specific issue, but might help others coming here with similar.
Hi Any Update on this I am still getting the same issue. I can run the azure function locally but when I try to deploy it I get the same logs.
add AzureWebJobsFeatureFlags with a value of EnableWorkerIndexing follow the steps below https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python?pivots=python-mode-decorators#update-app-settings
I've the same error, even if I've added the AzureWebJobsFeatureFlags
application setting.
Here the log:
5:27:23 PM xxxxfunctionsv2: Starting deployment... 5:27:23 PM xxxxfunctionsv2: Creating zip package... 5:27:23 PM xxxxfunctionsv2: Zip package size: 5.27 kB 5:27:25 PM xxxxfunctionsv2: Fetching changes. 5:27:26 PM xxxxfunctionsv2: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/2d344639-006c-47d4-a058-27bd4f3801e5.zip (0.01 MB) to /tmp/zipdeploy/extracted 5:27:28 PM xxxxfunctionsv2: Updating submodules. 5:27:29 PM xxxxfunctionsv2: Preparing deployment for commit id '0ecf7072-f'. 5:27:29 PM xxxxfunctionsv2: PreDeployment: context.CleanOutputPath False 5:27:29 PM xxxxfunctionsv2: PreDeployment: context.OutputPath /home/site/wwwroot 5:27:29 PM xxxxfunctionsv2: Repository path is /tmp/zipdeploy/extracted 5:27:29 PM xxxxfunctionsv2: Running oryx build... 5:27:29 PM xxxxfunctionsv2: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.8.6 -p packagedir=.pythonpackages/lib/site-packages 5:27:30 PM xxxxfunctionsv2: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx 5:27:30 PM xxxxfunctionsv2: You can report issues at https://github.com/Microsoft/Oryx/issues 5:27:30 PM xxxxfunctionsv2: Oryx Version: 0.2.20210120.1, Commit: 66c7820d7df527aaffabd2563a49ad57930999c9, ReleaseTagName: 20210120.1 5:27:30 PM xxxxfunctionsv2: Build Operation ID: |RHE1ane8Yq0=.8404e5da 5:27:30 PM xxxxfunctionsv2: Repository Commit : 0ecf7072-f804-4e84-aa4e-68cd2426f3a1 5:27:30 PM xxxxfunctionsv2: Detecting platforms... 5:27:31 PM xxxxfunctionsv2: Detected following platforms: 5:27:31 PM xxxxfunctionsv2: python: 3.8.6 5:27:31 PM xxxxfunctionsv2: Version '3.8.6' of platform 'python' is not installed. Generating script to install it... 5:27:32 PM xxxxfunctionsv2: Source directory : /tmp/zipdeploy/extracted 5:27:32 PM xxxxfunctionsv2: Destination directory: /home/site/wwwroot 5:27:32 PM xxxxfunctionsv2: Downloading and extracting 'python' version '3.8.6' to '/tmp/oryx/platforms/python/3.8.6'... 5:27:33 PM xxxxfunctionsv2: Downloaded in 1 sec(s). 5:27:33 PM xxxxfunctionsv2: Verifying checksum... 5:27:33 PM xxxxfunctionsv2: Extracting contents... 5:27:36 PM xxxxfunctionsv2: Done in 4 sec(s). 5:27:36 PM xxxxfunctionsv2: Python Version: /tmp/oryx/platforms/python/3.8.6/bin/python3.8 5:27:36 PM xxxxfunctionsv2: Running pip install... 5:27:36 PM xxxxfunctionsv2: [15:27:36+0000] Collecting azure-functions 5:27:36 PM xxxxfunctionsv2: [15:27:36+0000] Downloading azure_functions-1.13.3-py3-none-any.whl (163 kB) 5:27:37 PM xxxxfunctionsv2: [15:27:37+0000] Installing collected packages: azure-functions 5:27:37 PM xxxxfunctionsv2: [15:27:37+0000] Successfully installed azure-functions-1.13.3 5:27:37 PM xxxxfunctionsv2: WARNING: You are using pip version 20.2.3; however, version 23.0.1 is available. 5:27:37 PM xxxxfunctionsv2: You should consider upgrading via the '/tmp/oryx/platforms/python/3.8.6/bin/python3.8 -m pip install --upgrade pip' command. 5:27:37 PM xxxxfunctionsv2: Done in 1 sec(s). 5:27:37 PM xxxxfunctionsv2: Preparing output... 5:27:37 PM xxxxfunctionsv2: Copying files to destination directory '/home/site/wwwroot'... 5:27:37 PM xxxxfunctionsv2: Done in 0 sec(s). 5:27:37 PM xxxxfunctionsv2: Removing existing manifest file 5:27:37 PM xxxxfunctionsv2: Creating a manifest file... 5:27:37 PM xxxxfunctionsv2: Manifest file created. 5:27:37 PM xxxxfunctionsv2: Done in 5 sec(s). 5:27:38 PM xxxxfunctionsv2: Running post deployment command(s)... 5:27:38 PM xxxxfunctionsv2: Generating summary of Oryx build 5:27:38 PM xxxxfunctionsv2: Deployment Log file does not exist in /tmp/oryx-build.log 5:27:38 PM xxxxfunctionsv2: The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build 5:27:38 PM xxxxfunctionsv2: Triggering recycle (preview mode disabled). 5:27:38 PM xxxxfunctionsv2: Linux Consumption plan has a 1.5 GB memory limit on a remote build container. 5:27:38 PM xxxxfunctionsv2: To check our service limit, please visit https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits 5:27:38 PM xxxxfunctionsv2: Writing the artifacts to a squashfs file 5:27:39 PM xxxxfunctionsv2: Parallel mksquashfs: Using 1 processor 5:27:39 PM xxxxfunctionsv2: Creating 4.0 filesystem on /home/site/artifacts/functionappartifact.squashfs, block size 131072. 5:27:39 PM xxxxfunctionsv2: [===============================================================|] 140/140 100% 5:27:39 PM xxxxfunctionsv2: Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072 5:27:39 PM xxxxfunctionsv2: compressed data, compressed metadata, compressed fragments, compressed xattrs 5:27:39 PM xxxxfunctionsv2: duplicates are removed 5:27:39 PM xxxxfunctionsv2: Filesystem size 323.86 Kbytes (0.32 Mbytes) 5:27:39 PM xxxxfunctionsv2: 27.29% of uncompressed filesystem size (1186.55 Kbytes) 5:27:39 PM xxxxfunctionsv2: Inode table size 1477 bytes (1.44 Kbytes) 5:27:39 PM xxxxfunctionsv2: 28.84% of uncompressed inode table size (5122 bytes) 5:27:39 PM xxxxfunctionsv2: Directory table size 1529 bytes (1.49 Kbytes) 5:27:39 PM xxxxfunctionsv2: 37.01% of uncompressed directory table size (4131 bytes) 5:27:39 PM xxxxfunctionsv2: Number of duplicate files found 3 5:27:39 PM xxxxfunctionsv2: Number of inodes 160 5:27:39 PM xxxxfunctionsv2: Number of files 143 5:27:39 PM xxxxfunctionsv2: Number of fragments 11 5:27:39 PM xxxxfunctionsv2: Number of symbolic links 0 5:27:39 PM xxxxfunctionsv2: Number of device nodes 0 5:27:39 PM xxxxfunctionsv2: Number of fifo nodes 0 5:27:39 PM xxxxfunctionsv2: Number of socket nodes 0 5:27:39 PM xxxxfunctionsv2: Number of directories 17 5:27:39 PM xxxxfunctionsv2: Number of ids (unique uids + gids) 1 5:27:39 PM xxxxfunctionsv2: Number of uids 1 5:27:39 PM xxxxfunctionsv2: root (0) 5:27:39 PM xxxxfunctionsv2: Number of gids 1 5:27:39 PM xxxxfunctionsv2: root (0) 5:27:39 PM xxxxfunctionsv2: Creating placeholder blob for linux consumption function app... 5:27:39 PM xxxxfunctionsv2: SCM_RUN_FROM_PACKAGE placeholder blob scm-latest-xxxxfunctionsv2.zip located 5:27:39 PM xxxxfunctionsv2: Uploading built content /home/site/artifacts/functionappartifact.squashfs for linux consumption function app... 5:27:39 PM xxxxfunctionsv2: Resetting all workers for xxx.azurewebsites.net 5:27:39 PM xxxxfunctionsv2: Deployment successful. deployer = ms-azuretools-vscode deploymentPath = Functions App ZipDeploy. Extract zip. Remote build. 5:27:51 PM xxxxfunctionsv2: Syncing triggers... 5:27:58 PM xxxxfunctionsv2: Querying triggers... 5:28:12 PM xxxxfunctionsv2: No HTTP triggers found.
Had the same issue, trying to deploy Node.js functions using v4. Adding the AzureWebJobsFeatureFlags application setting helped.
I've the same error, even if I've added the
AzureWebJobsFeatureFlags
application setting.Here the log:
5:27:23 PM xxxxfunctionsv2: Starting deployment... 5:27:23 PM xxxxfunctionsv2: Creating zip package... 5:27:23 PM xxxxfunctionsv2: Zip package size: 5.27 kB 5:27:25 PM xxxxfunctionsv2: Fetching changes. 5:27:26 PM xxxxfunctionsv2: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/2d344639-006c-47d4-a058-27bd4f3801e5.zip (0.01 MB) to /tmp/zipdeploy/extracted 5:27:28 PM xxxxfunctionsv2: Updating submodules. 5:27:29 PM xxxxfunctionsv2: Preparing deployment for commit id '0ecf7072-f'. 5:27:29 PM xxxxfunctionsv2: PreDeployment: context.CleanOutputPath False 5:27:29 PM xxxxfunctionsv2: PreDeployment: context.OutputPath /home/site/wwwroot 5:27:29 PM xxxxfunctionsv2: Repository path is /tmp/zipdeploy/extracted 5:27:29 PM xxxxfunctionsv2: Running oryx build... 5:27:29 PM xxxxfunctionsv2: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.8.6 -p packagedir=.pythonpackages/lib/site-packages 5:27:30 PM xxxxfunctionsv2: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx 5:27:30 PM xxxxfunctionsv2: You can report issues at https://github.com/Microsoft/Oryx/issues 5:27:30 PM xxxxfunctionsv2: Oryx Version: 0.2.20210120.1, Commit: 66c7820, ReleaseTagName: 20210120.1 5:27:30 PM xxxxfunctionsv2: Build Operation ID: |RHE1ane8Yq0=.8404e5da 5:27:30 PM xxxxfunctionsv2: Repository Commit : 0ecf7072-f804-4e84-aa4e-68cd2426f3a1 5:27:30 PM xxxxfunctionsv2: Detecting platforms... 5:27:31 PM xxxxfunctionsv2: Detected following platforms: 5:27:31 PM xxxxfunctionsv2: python: 3.8.6 5:27:31 PM xxxxfunctionsv2: Version '3.8.6' of platform 'python' is not installed. Generating script to install it... 5:27:32 PM xxxxfunctionsv2: Source directory : /tmp/zipdeploy/extracted 5:27:32 PM xxxxfunctionsv2: Destination directory: /home/site/wwwroot 5:27:32 PM xxxxfunctionsv2: Downloading and extracting 'python' version '3.8.6' to '/tmp/oryx/platforms/python/3.8.6'... 5:27:33 PM xxxxfunctionsv2: Downloaded in 1 sec(s). 5:27:33 PM xxxxfunctionsv2: Verifying checksum... 5:27:33 PM xxxxfunctionsv2: Extracting contents... 5:27:36 PM xxxxfunctionsv2: Done in 4 sec(s). 5:27:36 PM xxxxfunctionsv2: Python Version: /tmp/oryx/platforms/python/3.8.6/bin/python3.8 5:27:36 PM xxxxfunctionsv2: Running pip install... 5:27:36 PM xxxxfunctionsv2: [15:27:36+0000] Collecting azure-functions 5:27:36 PM xxxxfunctionsv2: [15:27:36+0000] Downloading azure_functions-1.13.3-py3-none-any.whl (163 kB) 5:27:37 PM xxxxfunctionsv2: [15:27:37+0000] Installing collected packages: azure-functions 5:27:37 PM xxxxfunctionsv2: [15:27:37+0000] Successfully installed azure-functions-1.13.3 5:27:37 PM xxxxfunctionsv2: WARNING: You are using pip version 20.2.3; however, version 23.0.1 is available. 5:27:37 PM xxxxfunctionsv2: You should consider upgrading via the '/tmp/oryx/platforms/python/3.8.6/bin/python3.8 -m pip install --upgrade pip' command. 5:27:37 PM xxxxfunctionsv2: Done in 1 sec(s). 5:27:37 PM xxxxfunctionsv2: Preparing output... 5:27:37 PM xxxxfunctionsv2: Copying files to destination directory '/home/site/wwwroot'... 5:27:37 PM xxxxfunctionsv2: Done in 0 sec(s). 5:27:37 PM xxxxfunctionsv2: Removing existing manifest file 5:27:37 PM xxxxfunctionsv2: Creating a manifest file... 5:27:37 PM xxxxfunctionsv2: Manifest file created. 5:27:37 PM xxxxfunctionsv2: Done in 5 sec(s). 5:27:38 PM xxxxfunctionsv2: Running post deployment command(s)... 5:27:38 PM xxxxfunctionsv2: Generating summary of Oryx build 5:27:38 PM xxxxfunctionsv2: Deployment Log file does not exist in /tmp/oryx-build.log 5:27:38 PM xxxxfunctionsv2: The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build 5:27:38 PM xxxxfunctionsv2: Triggering recycle (preview mode disabled). 5:27:38 PM xxxxfunctionsv2: Linux Consumption plan has a 1.5 GB memory limit on a remote build container. 5:27:38 PM xxxxfunctionsv2: To check our service limit, please visit https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits 5:27:38 PM xxxxfunctionsv2: Writing the artifacts to a squashfs file 5:27:39 PM xxxxfunctionsv2: Parallel mksquashfs: Using 1 processor 5:27:39 PM xxxxfunctionsv2: Creating 4.0 filesystem on /home/site/artifacts/functionappartifact.squashfs, block size 131072. 5:27:39 PM xxxxfunctionsv2: [===============================================================|] 140/140 100% 5:27:39 PM xxxxfunctionsv2: Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072 5:27:39 PM xxxxfunctionsv2: compressed data, compressed metadata, compressed fragments, compressed xattrs 5:27:39 PM xxxxfunctionsv2: duplicates are removed 5:27:39 PM xxxxfunctionsv2: Filesystem size 323.86 Kbytes (0.32 Mbytes) 5:27:39 PM xxxxfunctionsv2: 27.29% of uncompressed filesystem size (1186.55 Kbytes) 5:27:39 PM xxxxfunctionsv2: Inode table size 1477 bytes (1.44 Kbytes) 5:27:39 PM xxxxfunctionsv2: 28.84% of uncompressed inode table size (5122 bytes) 5:27:39 PM xxxxfunctionsv2: Directory table size 1529 bytes (1.49 Kbytes) 5:27:39 PM xxxxfunctionsv2: 37.01% of uncompressed directory table size (4131 bytes) 5:27:39 PM xxxxfunctionsv2: Number of duplicate files found 3 5:27:39 PM xxxxfunctionsv2: Number of inodes 160 5:27:39 PM xxxxfunctionsv2: Number of files 143 5:27:39 PM xxxxfunctionsv2: Number of fragments 11 5:27:39 PM xxxxfunctionsv2: Number of symbolic links 0 5:27:39 PM xxxxfunctionsv2: Number of device nodes 0 5:27:39 PM xxxxfunctionsv2: Number of fifo nodes 0 5:27:39 PM xxxxfunctionsv2: Number of socket nodes 0 5:27:39 PM xxxxfunctionsv2: Number of directories 17 5:27:39 PM xxxxfunctionsv2: Number of ids (unique uids + gids) 1 5:27:39 PM xxxxfunctionsv2: Number of uids 1 5:27:39 PM xxxxfunctionsv2: root (0) 5:27:39 PM xxxxfunctionsv2: Number of gids 1 5:27:39 PM xxxxfunctionsv2: root (0) 5:27:39 PM xxxxfunctionsv2: Creating placeholder blob for linux consumption function app... 5:27:39 PM xxxxfunctionsv2: SCM_RUN_FROM_PACKAGE placeholder blob scm-latest-xxxxfunctionsv2.zip located 5:27:39 PM xxxxfunctionsv2: Uploading built content /home/site/artifacts/functionappartifact.squashfs for linux consumption function app... 5:27:39 PM xxxxfunctionsv2: Resetting all workers for xxx.azurewebsites.net 5:27:39 PM xxxxfunctionsv2: Deployment successful. deployer = ms-azuretools-vscode deploymentPath = Functions App ZipDeploy. Extract zip. Remote build. 5:27:51 PM xxxxfunctionsv2: Syncing triggers... 5:27:58 PM xxxxfunctionsv2: Querying triggers... 5:28:12 PM xxxxfunctionsv2: No HTTP triggers found.
I solved my problem. The problem was that I was using some app settings variables in my code and I added them in the local.settings.json
file, not in the Azure function configurations. It'd be really useful to add a warning message during deployment that alerts the developer if there are any missing app settings variables.
Had the same issue, trying to deploy Node.js functions using v4. Adding the AzureWebJobsFeatureFlags application setting helped.
Yes, It helped also here. Thank you
If you are using a version lower than node js version 18, try updating to version 18 before proceeding.
It happened to me again, and it took me an entire day to figure out that some packages in devDependencies had to be moved to dependencies for the HTTP trigger to work.
Debugging this type of error is exhausting and often does not lead to a solution. There is definitely a need for logging that also reports these anomalies clearly.
I am having this issue now as well; debugging locally works and this is set: "AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
. Can anyone share what they did to resolve it?
I am having this issue now as well; debugging locally works and this is set:
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
. Can anyone share what they did to resolve it?
To fix the issue, go to your function app in Azure portal, click on configuration, in application settings add a new key"azureWebJobsFeatureFlags" with a value of "EnableWorkerIndexing", then redeploy, this fixed the issue for me
why is it that every time i try to learn any Azure tool i hit roadblocks exactly like this where there is no information, almost nothing to go by when debugging, and the whole thing just feels incredibly opaque and difficult? Even for the most basic task? i have the same error. No HTTP triggers found even though I'm using Azure's own boilerplate and everything works in locally-hosted debug mode. sigh.
It's why now we're the beta testers of these solutions. The important thing is not releasing a quality product, but any product as soon as possibile.
I found an awful bug in application settings using Python. Custom setting must be at the beginning of the list of application settings. If one of that variables was between the default one, I got the no HTTP triggers found error.
-- Luca Zavarella | Microsoft MVP in AI and Data Platform
From: Ross Campbell @.> Sent: Friday, April 14, 2023 1:33:04 PM To: microsoft/Oryx @.> Cc: Luca Zavarella @.>; Comment @.> Subject: Re: [microsoft/Oryx] No HTTP triggers found (Issue #1774)
why is it that every time i try to learn any Azure tool i hit roadblocks exactly like this where there is no information, almost nothing to go by when debugging, and the whole thing just feels incredibly opaque and difficult? Even for the most basic task? i have the same error. No HTTP triggers found even though I'm using Azure's own boilerplate and everything works in locally-hosted debug mode. sigh.
— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/Oryx/issues/1774#issuecomment-1508369412, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABOSK5MYM6CDDQXNOSQ6LNDXBEYXBANCNFSM6AAAAAATPKE3ME. You are receiving this because you commented.Message ID: @.***>
Hello all, sorry for the delay in responding to you all. Oryx is used to build the code, but is not related to the deployment of these to Azure Web Apps, Azure Functions, StaticWebApps, etc. It looks like the Oryx build was able to pass for all of the code shared, and everything below the line Triggering recycle (preview mode disabled).
is no longer related to the Oryx project.
The VSCode Azure Fn repo would be a better place to get support for this issue: https://github.com/microsoft/vscode-azurefunctions
I had the same problem: No HTTP triggers found.
The problem for me is that a requirement was missing in the requirements.txt file.
same
I figured out the cause and found a solution in my case. Here's what I found in case you're having the same issue.
You cannot deploy a workspace in a monorepo. At least in my case, as soon as I de-listed the workspace in the monorepo's packages property everything works fine. I think the deployment is getting confused by the nested package structure.
In my case, the solution was what Luca described back in March, a mismatch between app settings variables in the local.settings.json file and variables in the Azure function App Settings configuration.
I am using the Python SDK V2
I was having this exact issue using Python Programming Model V2.
My function is using some environment variables declared in local.settings.json for my local deployment.
As commented in this thread previously. You need to add ALL of these values to your functions applications settings, just as the documentation explicitly points out for AzureWebJobsFeatureFlags
in this post.
Once the values were added, deployment worked correctly.
Hi all,
I run into the same "bug". I develop my function code with VS-Code in python. I used the v2 model and had an already working function with a HTTP-Trigger. As soon as I want to add an output binding for CosmosDB (by adding the cosmos_db_output decorator to my function) following the guides, I get the "No HTTP triggers found". I setup the connection string via app settings, as well as AzureWebJobsFeatureFlags. As I said, when I remove the decorator and use it as a simple HTTP Trigger it works. When I try to add the cosmosDB binding, my function will run locally and also push documents into my CosmosDB without trouble, but I cannot, for the sake of it, deploy the function with a CosmosDB trigger.
I am on this for 2 days already and I don't know what to do and where to look anymore, does someone have an idea or any pointers?
I had to return to model v1. Without logs is very difficult to catch the error.
El mar, 16 de may de 2023, 7:48 a. m., David Schu @.***> escribió:
Hi all,
I run into the same "bug". I develop my function code with VS-Code in python. I used the v2 model and had an already working function with a HTTP-Trigger. As soon as I want to add an output binding for CosmosDB (by adding the cosmos_db_output decorator to my function) following the guides, I get the "No HTTP triggers found". I setup the connection string via app settings, as well as AzureWebJobsFeatureFlags. As I said, when I remove the decorator and use it as a simple HTTP Trigger it works. When I try to add the cosmosDB binding, my function will run locally and also push documents into my CosmosDB without trouble, but I cannot, for the sake of it, deploy the function with a CosmosDB trigger.
I am on this for 2 days already and I don't know what to do and where to look anymore, does someone have an idea or any pointers?
— Reply to this email directly, view it on GitHub https://github.com/microsoft/Oryx/issues/1774#issuecomment-1549597543, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENF6OBV3Q4U2FLNGSICD6DXGNZQDANCNFSM6AAAAAATPKE3ME . You are receiving this because you commented.Message ID: @.***>
I had to return to model v1. Without logs is very difficult to catch the error. El mar, 16 de may de 2023, 7:48 a. m., David Schu @.***> escribió: …
Thanks very much. I created a new V1 Model Function from scratch, implemented a very basic cosmos interaction, made it work and then migrated the rest of my code into the V1 Model. It is now working.
I have exactly same problem.
Hi all,
I run into the same "bug". I develop my function code with VS-Code in python. I used the v2 model and had an already working function with a HTTP-Trigger. As soon as I want to add an output binding for CosmosDB (by adding the cosmos_db_output decorator to my function) following the guides, I get the "No HTTP triggers found". I setup the connection string via app settings, as well as AzureWebJobsFeatureFlags. As I said, when I remove the decorator and use it as a simple HTTP Trigger it works. When I try to add the cosmosDB binding, my function will run locally and also push documents into my CosmosDB without trouble, but I cannot, for the sake of it, deploy the function with a CosmosDB trigger.
I am on this for 2 days already and I don't know what to do and where to look anymore, does someone have an idea or any pointers?
Same issue. I have checked local.settings.json against the portal configurations for the app. This is present in both:
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
I have not modified any settings beyond those set in the template.
I have all dependencies listed in requirements.txt:
azure-functions
lxml==4.9.2
psycopg2==2.9.6
typing_extensions==4.6.3
tzdata==2023.3
I have not modified the code from the template. As soon as I add import psycopg2
to function_app.py, I get "No HTTP triggers found". If I remove import psycopg2
, triggers are found and the app publishes successfully.
Solved my issue. psycopg2 does not work. Use psycopg2-binary instead. After uninstalling psycopg2, installing psycopg2-binary, and updating requirements.txt, the app was able to publish. Had to roll back to the Azure Functions Python V1, publish, and then review error messages to sort this out.
Would be good if psycopg2 could work since "the binary package is a practical choice for development and testing but in production it is advised to use the package built from sources" according to https://pypi.org/project/psycopg2-binary/.
From the V1 error message:
Exception while executing function: Functions.HttpExample Result: Failure
Exception: ImportError: libpq.so.5: cannot open shared object file: No such file or directory. Please check the requirements.txt file for the missing module. For more info, please refer the troubleshooting guide: https://aka.ms/functions-modulenotfound
Stack: File "/azure-functions-host/workers/python/3.10/LINUX/X64/azure_functions_worker/dispatcher.py", line 380, in _handle__function_load_request
func = loader.load_function(
File "/azure-functions-host/workers/python/3.10/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 48, in call
raise extend_exception_message(e, message)
File "/azure-functions-host/workers/python/3.10/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 44, in call
return func(*args, **kwargs)
File "/azure-functions-host/workers/python/3.10/LINUX/X64/azure_functions_worker/loader.py", line 132, in load_function
mod = importlib.import_module(fullmodname)
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/site/wwwroot/HttpExample/__init__.py", line 5, in <module>
import psycopg2
File "/home/site/wwwroot/.python_packages/lib/site-packages/psycopg2/__init__.py", line 51, in <module>
from psycopg2._psycopg import ( # noqa
I was having this exact same issue, and none of the solutions mentioned in this thread seemed to work for me.
What eventually did it, for reasons I cannot explain, was removing the type hints from my methods in function_app.py
.
When I declare any functions with type hints before the decorated function, the trigger doesn't seem to be registered.
I had the same problem: No HTTP triggers found.
The problem for me is that a requirement was missing in the requirements.txt file.
This was also the issue for me. Very helpful, thank you
I finally decided to use version 1.0, version 2.0 was very unstable in the deployment. However, as you can see, this was months ago, perhaps they have already improved it
El jue, 3 de ago de 2023, 4:50 p. m., Matthew King @.***> escribió:
I had the same problem: No HTTP triggers found.
The problem for me is that a requirement was missing in the requirements.txt file.
This was also the issue for me. Very helpful, thank you
— Reply to this email directly, view it on GitHub https://github.com/microsoft/Oryx/issues/1774#issuecomment-1664688545, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENF6OAN7MPKQR5HOCFEZPTXTQMKJANCNFSM6AAAAAATPKE3ME . You are receiving this because you commented.Message ID: @.***>
For those still experiencing this issue even after setting their AzureWebJobsFeatureFlags
configuration to EnableWorkerIndexing
, I managed to solve it by moving all but any necessary imports of my function_app.py
to be declared inside the decorated function instead of at the top of the file. This ensured that the function was deployed to Azure and I was able to inspect the import errors directly from the monitor logs inside the portal.
That is, instead of writing your function_app.py
like this:
import azure.functions as func
from src.mypckg import foo
# ... other imports
app = func.FunctionApp()
@app.function_name('myfunction')
async def main(...)
...
Try with this:
import azure.functions as func
app = func.FunctionApp()
@app.function_name('myfunction')
async def main(...)
# YOUR IMPORTS HERE <--
from src.mypckg import foo
# ... other imports
...
My guess is that the Azure runtime tries to run the function_app
script to find the trigger functions. However, it fails silently when it can't import some of the dependencies. This is why you get No triggers found
. Upon reviewing the portal logs, I found out that a conflict in the system path was causing my interpreter to import a different module than I intended (for whatever reason, that didn't happen locally).
However, it fails silently
Yes. Also on this issue, none of the other things worked.
Trying again here: https://github.com/microsoft/vscode-azurefunctions/issues/3805
I am also unable to deploy my JS v4 functions from VSCode because of this error. This makes Azure Functions unusable for me.
The first version of @azure/functions V4 was one year ago, and today it doesn't work correctly... I really hope V3 doesn't become obsolete in the near future.
https://github.com/Azure/azure-functions-nodejs-library/issues/85
After trying all above recommondations I still did not succeded to get de Functions visible. The deployment went well, only no function triggers could be found. Running V4, Python 3.10, deploying with ZIP deployment from Azure DevOps
But I got it working again! I did 2 things, but not sure which one did the trick...
I added a Try Except statements around my import packages. Like so:
When importing packages the function won't crash on error and will show the function triggers. But when running the Azure Function it will show a runtime error, hopefully with a message thats meaningfull.
Secondly I added fixed versions to my requirements.txt. Like so:
I noted that package azure-storage-file-datalake was just updated to a new version. (the next day there was already a .1 version which suggest there was a issue within the package) Locally everything workt. Even after removing all installations with PIP and reinstall the latest version. But I am developing on Windows and the Functions online runs with Linux.. so maybee that may have an influence.
Sadly I couldn't reproduce the issue so I am not 100% sure what got the function working again.
I just ran into this, turned out to be a mismatch on the python version between the Azure function settings and the "Use Python Version" step in my deployment pipeline.
Dropping down to Python 3.10 (from 3.11) fixed the "No HTTP triggers found" for me
VS Code 1.83.0
So, I tried everything before and it did not work... But I was able to get it working, the issue here was around typing. Looks like something did not something on this:
async def list_files(q: Union[str, None] = None): #<------ This work
async def list_files(q: str | None = None): #<----- This does NOT work
After trying all above recommondations I still did not succeded to get de Functions visible. The deployment went well, only no function triggers could be found. Running V4, Python 3.10, deploying with ZIP deployment from Azure DevOps
But I got it working again! I did 2 things, but not sure which one did the trick...
I added a Try Except statements around my import packages. Like so:
When importing packages the function won't crash on error and will show the function triggers. But when running the Azure Function it will show a runtime error, hopefully with a message thats meaningfull.
Secondly I added fixed versions to my requirements.txt. Like so:
I noted that package azure-storage-file-datalake was just updated to a new version. (the next day there was already a .1 version which suggest there was a issue within the package) Locally everything workt. Even after removing all installations with PIP and reinstall the latest version. But I am developing on Windows and the Functions online runs with Linux.. so maybee that may have an influence.
Sadly I couldn't reproduce the issue so I am not 100% sure what got the function working again.
I did exactly this after trying everything of the above. And now it works! thank you for posting your solution. I specified the numpy version that I´m using in my virtual environment and that did the trick, however I´m not sure why that fixes the problem.
I went back to my project, and suddenly all my functions on Azure is gone, its huge project, and this is day 5 trying to get the functions to be visible, they work locally, but not when deployed, I get no http triggers found.
19:02:41 booking-shopify-api: Starting deployment... 19:02:41 booking-shopify-api: Creating zip package... 19:03:09 booking-shopify-api: Zip package size: 17.5 MB 19:03:13 booking-shopify-api: Fetching changes. 19:03:16 booking-shopify-api: Updating submodules. 19:03:17 booking-shopify-api: Preparing deployment for commit id 'fd38860e6e'. 19:03:18 booking-shopify-api: Skipping build. Project type: Run-From-Zip 19:03:18 booking-shopify-api: Skipping post build. Project type: Run-From-Zip 19:03:18 booking-shopify-api: Triggering recycle (preview mode disabled). 19:03:19 booking-shopify-api: Deployment successful. 19:03:25 booking-shopify-api: Started postDeployTask "npm install (functions)". 19:03:36 booking-shopify-api: Syncing triggers... 19:03:42 booking-shopify-api: Querying triggers... 19:03:44 booking-shopify-api: No HTTP triggers found.
How do we debug this? it worked before!!
After trying all above recommondations I still did not succeded to get de Functions visible. The deployment went well, only no function triggers could be found. Running V4, Python 3.10, deploying with ZIP deployment from Azure DevOps But I got it working again! I did 2 things, but not sure which one did the trick... I added a Try Except statements around my import packages. Like so: When importing packages the function won't crash on error and will show the function triggers. But when running the Azure Function it will show a runtime error, hopefully with a message thats meaningfull. Secondly I added fixed versions to my requirements.txt. Like so: I noted that package azure-storage-file-datalake was just updated to a new version. (the next day there was already a .1 version which suggest there was a issue within the package) Locally everything workt. Even after removing all installations with PIP and reinstall the latest version. But I am developing on Windows and the Functions online runs with Linux.. so maybee that may have an influence. Sadly I couldn't reproduce the issue so I am not 100% sure what got the function working again.
I did exactly this after trying everything of the above. And now it works! thank you for posting your solution. I specified the numpy version that I´m using in my virtual environment and that did the trick, however I´m not sure why that fixes the problem.
solved the issue for me as well. Pretty sure the try catch solved it. When excecuting now my http request I get an error that one of my libraries is not found.
I went back to my project, and suddenly all my functions on Azure is gone, its huge project, and this is day 5 trying to get the functions to be visible, they work locally, but not when deployed, I get no http triggers found.
19:02:41 booking-shopify-api: Starting deployment... 19:02:41 booking-shopify-api: Creating zip package... 19:03:09 booking-shopify-api: Zip package size: 17.5 MB 19:03:13 booking-shopify-api: Fetching changes. 19:03:16 booking-shopify-api: Updating submodules. 19:03:17 booking-shopify-api: Preparing deployment for commit id 'fd38860e6e'. 19:03:18 booking-shopify-api: Skipping build. Project type: Run-From-Zip 19:03:18 booking-shopify-api: Skipping post build. Project type: Run-From-Zip 19:03:18 booking-shopify-api: Triggering recycle (preview mode disabled). 19:03:19 booking-shopify-api: Deployment successful. 19:03:25 booking-shopify-api: Started postDeployTask "npm install (functions)". 19:03:36 booking-shopify-api: Syncing triggers... 19:03:42 booking-shopify-api: Querying triggers... 19:03:44 booking-shopify-api: No HTTP triggers found.
How do we debug this? it worked before!!
Can't trust Microsoft.
Same bug for me. SImple setup: azure-functions psycopg2-binary
Using v4, and Py 3.11
Faced same problem. Putting try: [imports] except: pass, as suggested by mitchelmeijer worked. Thanks
for those still facing the issue with azure functions giving "No HTTP triggers found". The template code generated by default for v2 model is missing a few essential lines. Replace the code with following.
try:
import azure.functions as func
import logging
except:
pass
app = func.FunctionApp()
@app.function_name(name="http_trigger")
@app.route(route="hello")
def hello(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')
name = req.params.get('name')
if not name:
try:
req_body = req.get_json()
except ValueError:
pass
else:
name = req_body.get('name')
if name:
return func.HttpResponse(f"Hello, {name}. This HTTP triggered function executed successfully.")
else:
return func.HttpResponse(
"This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response.",
status_code=200
)
For those still experiencing this issue even after setting their
AzureWebJobsFeatureFlags
configuration toEnableWorkerIndexing
, I managed to solve it by moving all but any necessary imports of myfunction_app.py
to be declared inside the decorated function instead of at the top of the file. This ensured that the function was deployed to Azure and I was able to inspect the import errors directly from the monitor logs inside the portal.That is, instead of writing your
function_app.py
like this:import azure.functions as func from src.mypckg import foo # ... other imports app = func.FunctionApp() @app.function_name('myfunction') async def main(...) ...
Try with this:
import azure.functions as func app = func.FunctionApp() @app.function_name('myfunction') async def main(...) # YOUR IMPORTS HERE <-- from src.mypckg import foo # ... other imports ...
My guess is that the Azure runtime tries to run the
function_app
script to find the trigger functions. However, it fails silently when it can't import some of the dependencies. This is why you getNo triggers found
. Upon reviewing the portal logs, I found out that a conflict in the system path was causing my interpreter to import a different module than I intended (for whatever reason, that didn't happen locally).
Sir, thank you so much! If any one is trying import some module into the function_app.py. Do exactly what is being shown above!
Just adding to this knowledge base of whatever could've actually caused "No HTTP triggers found", since this thread shows up top of the google search.
My issue was because of having too many constants outside the app.http('http-trigger')
handler function. So move everything other than require
statements into the handler function could potentially fix "No HTTP triggers found".
Bug Report
At what date and time did you most recently experience the problem? Experiencing this problem on 1/2/2023
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use. Experienced the problem while trying to deploy an HTTP request-triggered function to azure.
If your repo is publicly available please share its URL: I used VSCode Azure Functions extension to create a quick-start http request. I also created a python virtual environment to run locally.
What happened? I followed this walkthrough: https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python?pivots=python-mode-decorators#publish-the-project-to-azure, with the only change I made found here: https://github.com/MicrosoftDocs/azure-docs/issues/103178.
The function and trigger work when testing locally through azurite. Once I got to deploying the function from vscode, I received the output: "No HTTP triggers found". The function and trigger work when testing locally through azurite.
After the upload has been attempted, I can however see the project files that I uploaded under the "files" dropdown when viewing azure subscription through vscode.
What did you expect or want to happen? I expected the function to deploy
How can we reproduce it? Follow the walkthrough and make the replacement.
Do you have log output? Please include between the backticks: