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

No HTTP triggers found #1774

Open
JackH11 opened this issue Jan 3, 2023 · 59 comments
Open

No HTTP triggers found #1774

JackH11 opened this issue Jan 3, 2023 · 59 comments
Assignees
Labels
doc Doc and user script updates.

Comments

@JackH11
Copy link

JackH11 commented Jan 3, 2023

Bug Report

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:

11:41:54 PM testing124234: Starting deployment...
11:41:56 PM testing124234: Creating zip package...
11:41:56 PM testing124234: Zip package size: 3.75 kB
11:41:54 PM testing124234: Fetching changes.
11:41:55 PM testing124234: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/1aef5e85-af84-406a-9215-dff0086cc290.zip (0.00 MB) to /tmp/zipdeploy/extracted
11:41:57 PM testing124234: Updating submodules.
11:41:58 PM testing124234: Preparing deployment for commit id '68704b96-4'.
11:41:58 PM testing124234: PreDeployment: context.CleanOutputPath False
11:41:58 PM testing124234: PreDeployment: context.OutputPath /home/site/wwwroot
11:41:58 PM testing124234: Repository path is /tmp/zipdeploy/extracted
11:41:58 PM testing124234: Running oryx build...
11:41:58 PM testing124234: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.9.7 -p packagedir=.python_packages/lib/site-packages
11:41:59 PM testing124234: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
11:41:59 PM testing124234: You can report issues at https://github.com/Microsoft/Oryx/issues
11:41:59 PM testing124234: Oryx Version: 0.2.20210120.1, Commit: 66c7820d7df527aaffabd2563a49ad57930999c9, ReleaseTagName: 20210120.1
11:41:59 PM testing124234: Build Operation ID: |2JLrmJIE0Vo=.db19ac63_
11:41:59 PM testing124234: Repository Commit : 68704b96-4c46-4c30-bf62-29de88faeecb
11:41:59 PM testing124234: Detecting platforms...
11:42:00 PM testing124234: Detected following platforms:
11:42:00 PM testing124234:   python: 3.9.7
11:42:00 PM testing124234: Version '3.9.7' of platform 'python' is not installed. Generating script to install it...
11:42:00 PM testing124234: Source directory     : /tmp/zipdeploy/extracted
11:42:00 PM testing124234: Destination directory: /home/site/wwwroot
11:42:00 PM testing124234: Downloading and extracting 'python' version '3.9.7' to '/tmp/oryx/platforms/python/3.9.7'...
11:42:01 PM testing124234: Downloaded in 1 sec(s).
11:42:01 PM testing124234: Verifying checksum...
11:42:02 PM testing124234: Extracting contents...
11:42:04 PM testing124234: Done in 4 sec(s).
11:42:04 PM testing124234: Python Version: /tmp/oryx/platforms/python/3.9.7/bin/python3.9
11:42:04 PM testing124234: Running pip install...
11:42:05 PM testing124234: [04:42:05+0000] Collecting azure-functions
11:42:05 PM testing124234: [04:42:05+0000]   Downloading azure_functions-1.12.0-py3-none-any.whl (160 kB)
11:42:05 PM testing124234: [04:42:05+0000] Installing collected packages: azure-functions
11:42:05 PM testing124234: [04:42:05+0000] Successfully installed azure-functions-1.12.0
11:42:05 PM testing124234: WARNING: You are using pip version 20.2.3; however, version 22.3.1 is available.
11:42:05 PM testing124234: You should consider upgrading via the '/tmp/oryx/platforms/python/3.9.7/bin/python3.9 -m pip install --upgrade pip' command.
11:42:05 PM testing124234: Done in 1 sec(s).
11:42:05 PM testing124234: Preparing output...
11:42:05 PM testing124234: Copying files to destination directory '/home/site/wwwroot'...
11:42:05 PM testing124234: Done in 0 sec(s).
11:42:05 PM testing124234: Removing existing manifest file
11:42:05 PM testing124234: Creating a manifest file...
11:42:05 PM testing124234: Manifest file created.
11:42:05 PM testing124234: Done in 5 sec(s).
11:42:07 PM testing124234: Running post deployment command(s)...
11:42:07 PM testing124234: Generating summary of Oryx build
11:42:07 PM testing124234: Deployment Log file does not exist in /tmp/oryx-build.log
11:42:07 PM testing124234: The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build
11:42:07 PM testing124234: Triggering recycle (preview mode disabled).
11:42:07 PM testing124234: Linux Consumption plan has a 1.5 GB memory limit on a remote build container.
11:42:07 PM testing124234: To check our service limit, please visit https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits
11:42:07 PM testing124234: Writing the artifacts to a squashfs file
11:42:07 PM testing124234: Parallel mksquashfs: Using 1 processor
11:42:07 PM testing124234: Creating 4.0 filesystem on /home/site/artifacts/functionappartifact.squashfs, block size 131072.
11:42:07 PM testing124234: [===============================================================|] 132/132 100%
11:42:07 PM testing124234: Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
11:42:07 PM testing124234: 	compressed data, compressed metadata, compressed fragments, compressed xattrs
11:42:07 PM testing124234: 	duplicates are removed
11:42:07 PM testing124234: Filesystem size 315.78 Kbytes (0.31 Mbytes)
11:42:07 PM testing124234: 	27.20% of uncompressed filesystem size (1160.89 Kbytes)
11:42:07 PM testing124234: Inode table size 1401 bytes (1.37 Kbytes)
11:42:07 PM testing124234: 	28.79% of uncompressed inode table size (4866 bytes)
11:42:07 PM testing124234: Directory table size 1467 bytes (1.43 Kbytes)
11:42:07 PM testing124234: 	37.07% of uncompressed directory table size (3957 bytes)
11:42:07 PM testing124234: Number of duplicate files found 3
11:42:07 PM testing124234: Number of inodes 152
11:42:07 PM testing124234: Number of files 135
11:42:07 PM testing124234: Number of fragments 11
11:42:07 PM testing124234: Number of symbolic links  0
11:42:07 PM testing124234: Number of device nodes 0
11:42:07 PM testing124234: Number of fifo nodes 0
11:42:07 PM testing124234: Number of socket nodes 0
11:42:07 PM testing124234: Number of directories 17
11:42:07 PM testing124234: Number of ids (unique uids + gids) 1
11:42:07 PM testing124234: Number of uids 1
11:42:07 PM testing124234: 	root (0)
11:42:07 PM testing124234: Number of gids 1
11:42:07 PM testing124234: 	root (0)
11:42:07 PM testing124234: Creating placeholder blob for linux consumption function app...
11:42:07 PM testing124234: SCM_RUN_FROM_PACKAGE placeholder blob scm-latest-testing124234.zip located
11:42:07 PM testing124234: Uploading built content /home/site/artifacts/functionappartifact.squashfs for linux consumption function app...
11:42:08 PM testing124234: Resetting all workers for testing124234.azurewebsites.net
11:42:08 PM testing124234: Deployment successful. deployer = ms-azuretools-vscode deploymentPath = Functions App ZipDeploy. Extract zip. Remote build.
11:42:36 PM testing124234: Syncing triggers...
11:42:39 PM testing124234: Querying triggers...
11:42:40 PM testing124234: No HTTP triggers found.

@snehapar9
Copy link
Contributor

Hi @JackH11,

Thank you for submitting this ticket. Seems to be related to microsoft/vscode-azurefunctions#2529

@IlyaBelykh
Copy link

I have the same issue, even when trying to use a default template Http Trigger example.

@snehapar9
Copy link
Contributor

Thanks @IlyaBelykh for reaching out. Could you please share logs if you have them available?

@IlyaBelykh
Copy link

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.

@IlyaBelykh
Copy link

I also must specify that I am using the V2 programming model. When uploading the V1 programming model function, it works perfectly fine.

@kellerd
Copy link

kellerd commented Jan 30, 2023

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.

https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python?pivots=python-mode-decorators#update-app-settings

Not sure if related to this specific issue, but might help others coming here with similar.

@mohit268
Copy link

mohit268 commented Feb 9, 2023

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.

@chao-spe
Copy link

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

@lucazav
Copy link

lucazav commented Mar 28, 2023

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=.python_packages/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.

@jvantroyen-cloudinary
Copy link

jvantroyen-cloudinary commented Mar 29, 2023

Had the same issue, trying to deploy Node.js functions using v4.
Adding the AzureWebJobsFeatureFlags application setting helped.

@lucazav
Copy link

lucazav commented Mar 29, 2023

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=.python_packages/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.

@jamalsoueidan
Copy link

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

@Conradmaker
Copy link

If you are using a version lower than node js version 18, try updating to version 18 before proceeding.

@jamalsoueidan
Copy link

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.

@lucazav
Copy link

lucazav commented Apr 4, 2023

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.

@afogarty85
Copy link

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?

@cybermehul
Copy link

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

@RossCampbellDev
Copy link

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.

@lucazav
Copy link

lucazav commented Apr 14, 2023 via email

@pauld-msft
Copy link
Member

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

@HozcarAndres
Copy link

I had the same problem: No HTTP triggers found.

The problem for me is that a requirement was missing in the requirements.txt file.

@rwaldin
Copy link

rwaldin commented Apr 20, 2023

same

@rwaldin
Copy link

rwaldin commented Apr 21, 2023

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.

@aflores
Copy link

aflores commented Apr 27, 2023

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

@neuralgremlin
Copy link

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.

@schudavid
Copy link

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?

@HozcarAndres
Copy link

HozcarAndres commented May 16, 2023 via email

@schudavid
Copy link

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.

@simonsanvil
Copy link

simonsanvil commented Aug 9, 2023

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).

@ZirconCode
Copy link

ZirconCode commented Aug 16, 2023

However, it fails silently

Yes. Also on this issue, none of the other things worked.

Trying again here:
microsoft/vscode-azurefunctions#3805

@dzoba
Copy link

dzoba commented Aug 24, 2023

I am also unable to deploy my JS v4 functions from VSCode because of this error. This makes Azure Functions unusable for me.

@vladislavbogomolov
Copy link

vladislavbogomolov commented Aug 29, 2023

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.

Azure/azure-functions-nodejs-library#85

@mitchelmeijer
Copy link

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:
image

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:
image

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.

@mbellas-dumac
Copy link

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.

@robertparker9
Copy link

Dropping down to Python 3.10 (from 3.11) fixed the "No HTTP triggers found" for me
VS Code 1.83.0

@edborsa
Copy link

edborsa commented Oct 10, 2023

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

@Velazquezjfp
Copy link

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: image

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: image

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.

@jamalsoueidan
Copy link

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!!

@Chris-code1
Copy link

Chris-code1 commented Oct 16, 2023

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: image
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: image
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.

@Mahosaurus
Copy link

Mahosaurus commented Oct 18, 2023

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

@isham-iqbal
Copy link

Faced same problem. Putting try: [imports] except: pass, as suggested by mitchelmeijer worked. Thanks

@Gunjitbedi
Copy link

Gunjitbedi commented Nov 19, 2023

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
        )

@ToniPR
Copy link

ToniPR commented Nov 20, 2023

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).

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!

@mayzyo
Copy link

mayzyo commented Dec 1, 2023

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".

@DataGoblin
Copy link

For me this was caused by two things, relative imports being funky and initializing classes outside of Azure functions. Code base was Python.

The lack of error logs was frustrating. 😭😭

@gagiD
Copy link

gagiD commented Dec 22, 2023

For me fix was to set Node version to 20 (was 18). Error message are really useless.

@foxtrotdotrocks
Copy link

I was struggling with this for a few hours. Turns out that I needed to configure the Azure Function to be 64-bit instead of the default 32-bit.

I had to revert to NodeJs V3, which gave me the exception that I needed.

@simonjj
Copy link

simonjj commented Jan 12, 2024

Keeping this issue open to help others landing here. Even though we're covering a wide array of related issues in one.

@simonjj simonjj added the doc Doc and user script updates. label Jan 12, 2024
@scgtam
Copy link

scgtam commented Jan 18, 2024

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: image

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: image

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.

This solved it. But I believed the solution is because of the pkg version. I updated the requirement.txt file of mine to the same version of my running on my local machine. I didn't put the try and except and it magically working. So it looks like some of the updated pkg is preventing the importing process.

@Hornet47
Copy link

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: image
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: image
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.

This solved it. But I believed the solution is because of the pkg version. I updated the requirement.txt file of mine to the same version of my running on my local machine. I didn't put the try and except and it magically working. So it looks like some of the updated pkg is preventing the importing process.

Thank you so much! I also encountered the same problem because I didn't include a package in requirements.txt.

@Pareek210
Copy link

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

Thanks a lot. You are a life saver. Its unfortunate that psycopg2 still doesn't work.

@ncmindera
Copy link

Same issue here. For me the solution was to add to azure function all the app settings and then deploy.
I thought I could deploy and then add the settings but it didn't workout this way.
It should be somewhere in the documentation

@levalencia
Copy link

Referenc

THIS IS SUPER SMART

WIth this trick the functions were loaded, then I was able to see them, but I wasnt able to execute them because the api key page was not loading (internal server error).

So I changed my functions to ANONYMOUS and tried again, and indeed I was missing a setting in key vault which is loaded in the imports!

Microsoft! please fix t his with logging at least! this is very difficult to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Doc and user script updates.
Projects
None yet
Development

No branches or pull requests