Azure / Azure/azure-functions-host
After publishing the function project to Linux, open in the portal and switch to "Code + Test", there is an error message in the expanded logs.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 36
Description
.NET Core SDK (CLI) Version: 6.0.300
Latest .NET Core runtime Version: 6.0.5
INSTALL STEP
1. Clean machine: Win11 x64 ENU 21H2
2. Install Dev17.2.3 [https://aka.ms/vs/17/release/vs_Enterprise.exe] VSE
Web workload + Azure workload
Check .NET Core 5.0/3.1/2.1 runtime under IC tab
REPRO STEPS
1. File > New > Project > Azure Function > Next > .Net 6. 0 > Create
2. Select "Http trigger" in the creation dialog, select Browse in the "Storage Account (AzureWebJobsStorage)" dropdown
3. Right click the project and click "New Azure Function", give a name: "Foo.cs" > select "Blob trigger"and set the connection with "AzureWebJobsStorage" and check the checkbox "configure Blob trigger connection" > select "Storage Emulator(Local)" > Next > keep the default the configure >Finish
4. Right click project > Publish, choose Azure > Azure Function App (Linux) > create
5. Go to Views > Cloud Explorer, select the Resource Group and find your published project. Right click the project and click "Open in portal".
6. In the portal, click "Functions" > open your Blob trigger function and switch to "Code + Test" > then expand logs by clicking the blue expander arrow in the lower left corner
ACTUAL
Image
2022-06-10T08:25:44 Welcome, you are now connected to log-streaming service.Starting Log Tail -n 10 of existing logs ----/appsvctmp/volatile/logs/runtime/31d8711453660d39e799f59ced60420481b4782d5a05e821d6d6c4c83eb302f7.log
2022-06-10T08:25:01.093969134Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] [SystemAssigned] Added Identity with ClientId: d7a98074-89cf-4d89-a847-abe717db0f19
2022-06-10T08:25:01.094825686Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Starting TokenService from /app with the following: IsLinuxDedicated: True, IsLinuxConsumption: False, IsWindows: False.
2022-06-10T08:25:01.185824582Z: [INFO] Hosting environment: Production
2022-06-10T08:25:01.185868585Z: [INFO] Content root path: /app
2022-06-10T08:25:01.185876185Z: [INFO] Now listening on: http://[::]:8081/
2022-06-10T08:25:01.185881986Z: [INFO] Application started. Press Ctrl+C to shut down.
2022-06-10T08:25:03.433008472Z: [INFO] functionapp320220610012144 : [a46a9871-866d-422b-992b-d9c8b3523d7d] Incoming request on /healthcheck?api-version=2021-08-01
2022-06-10T08:25:07.189113756Z: [INFO] functionapp320220610012144 : [a00fc4d2-7fa7-4b6f-af7d-7b222cb0ebb4] Incoming request on /robots933456.txt
2022-06-10T08:25:32.063138904Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Configuration update started. Site: functionapp320220610012144
2022-06-10T08:25:32.063174006Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] [SystemAssigned] Added Identity with ClientId: d7a98074-89cf-4d89-a847-abe717db0f19/appsvctmp/volatile/logs/runtime/dc2b834b28c0458c5c13b3af5b08fd7278ee0cf1ea64239125daa52744eb966a.log
2022-06-10T08:25:06.593892885Z: [INFO] Starting OpenBSD Secure Shell server: sshd.
2022-06-10T08:25:17.000238366Z: [INFO] Hosting environment: Production
2022-06-10T08:25:17.000279268Z: [INFO] Content root path: /azure-functions-host
2022-06-10T08:25:17.000285469Z: [INFO] Now listening on: [http://[::]:80](http://[::]/)
2022-06-10T08:25:17.000290169Z: [INFO] Application started. Press Ctrl+C to shut down./appsvctmp/volatile/logs/runtime/e431133d7c88c874f1d6db4f7dd70b7c886dd0bacc54d0f02ac1b92be8c96f34.log
2022-06-10T08:23:56.499564400Z: [INFO] Starting OpenBSD Secure Shell server: sshd.
2022-06-10T08:24:07.481760519Z: [INFO] Hosting environment: Production
2022-06-10T08:24:07.481812322Z: [INFO] Content root path: /azure-functions-host
2022-06-10T08:24:07.481820623Z: [INFO] Now listening on: [http://[::]:80](http://[::]/)
2022-06-10T08:24:07.481826223Z: [INFO] Application started. Press Ctrl+C to shut down./appsvctmp/volatile/logs/runtime/df89f033964867243b8e0b6a89e7edd14410f2b3065de3d89670e36cf612c3ba.log
2022-06-10T08:22:21.588434393Z: [ERROR] WARNING: ca-cert-azure.pem does not contain exactly one certificate or CRL: skipping
2022-06-10T08:22:21.773154334Z: [INFO] Updated CA certificates
2022-06-10T08:22:23.467403628Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Configuration update started. Site: functionapp320220610012144
2022-06-10T08:22:23.487367073Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] [SystemAssigned] Added Identity with ClientId: d7a98074-89cf-4d89-a847-abe717db0f19
2022-06-10T08:22:23.488216817Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Starting TokenService from /app with the following: IsLinuxDedicated: True, IsLinuxConsumption: False, IsWindows: False.
2022-06-10T08:22:23.566324604Z: [INFO] Hosting environment: Production
2022-06-10T08:22:23.566365206Z: [INFO] Content root path: /app
2022-06-10T08:22:23.566372606Z: [INFO] Now listening on: http://[::]:8081/
2022-06-10T08:22:23.566378006Z: [INFO] Application started. Press Ctrl+C to shut down.
2022-06-10T08:22:24.296201291Z: [INFO] functionapp320220610012144 : [eeb0e297-0b46-472a-a5a1-80c450ea6c1f] Incoming request on /healthcheck?api-version=2021-08-01/appsvctmp/volatile/logs/runtime/c6f98e69659d9d0a03b88f7ba5d941ebcac496ff2e29b0a833278fdf2ff44183.log
2022-06-10T08:25:36.885828122Z: [INFO] Starting OpenBSD Secure Shell server: sshd./appsvctmp/volatile/logs/runtime/8d2e2d06a7751f1ec053784091056cafd957944fe5c9ca4d1567b877c8ae3ee9.log
2022-06-10T08:24:43.698222816Z: [INFO] Starting OpenBSD Secure Shell server: sshd.
2022-06-10T08:24:54.569131366Z: [INFO] Hosting environment: Production
2022-06-10T08:24:54.569182469Z: [INFO] Content root path: /azure-functions-host
2022-06-10T08:24:54.569189069Z: [INFO] Now listening on: [http://[::]:80](http://[::]/)
2022-06-10T08:24:54.569193970Z: [INFO] Application started. Press Ctrl+C to shut down./appsvctmp/volatile/logs/runtime/afa754c47b9333715b7abfec539eefdd6c11178895b9f42e4d892dbc64f375ec.log
2022-06-10T08:22:39.670250027Z: [INFO] Hosting environment: Production
2022-06-10T08:22:39.670466841Z: [INFO] Content root path: /app
2022-06-10T08:22:39.670479442Z: [INFO] Now listening on: http://[::]:8081/
2022-06-10T08:22:39.670486142Z: [INFO] Application started. Press Ctrl+C to shut down.
2022-06-10T08:22:40.373107927Z: [INFO] functionapp320220610012144 : [486007d3-da4c-418c-b65d-4b51042b07d5] Incoming request on /healthcheck?api-version=2021-08-01
2022-06-10T08:23:56.560553947Z: [INFO] functionapp320220610012144 : [1f8dd399-b0c8-49c2-a23a-7fc422b5678a] Incoming request on /robots933456.txt
2022-06-10T08:24:37.525276124Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Configuration update started. Site: functionapp320220610012144
2022-06-10T08:24:37.527191748Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] [SystemAssigned] Added Identity with ClientId: d7a98074-89cf-4d89-a847-abe717db0f19
2022-06-10T08:24:59.815128086Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Configuration update started. Site: functionapp320220610012144
2022-06-10T08:24:59.815162188Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] [SystemAssigned] Added Identity with ClientId: d7a98074-89cf-4d89-a847-abe717db0f19/appsvctmp/volatile/logs/runtime/2a752db2842381a9980bbff6c09321423a46e515d00c29c82afc2114a8ce6bf7.log
2022-06-10T08:25:31.203230955Z: [INFO] Updated CA certificates
2022-06-10T08:25:33.118291943Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Configuration update started. Site: functionapp320220610012144
2022-06-10T08:25:33.137871754Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] [SystemAssigned] Added Identity with ClientId: d7a98074-89cf-4d89-a847-abe717db0f19
2022-06-10T08:25:33.147494500Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Starting TokenService from /app with the following: IsLinuxDedicated: True, IsLinuxConsumption: False, IsWindows: False.
2022-06-10T08:25:33.236840872Z: [INFO] Hosting environment: Production
2022-06-10T08:25:33.236902576Z: [INFO] Content root path: /app
2022-06-10T08:25:33.236909976Z: [INFO] Now listening on: http://[::]:8081/
2022-06-10T08:25:33.236915077Z: [INFO] Application started. Press Ctrl+C to shut down.
2022-06-10T08:25:33.909745772Z: [INFO] functionapp320220610012144 : [b3f3b9a4-3210-47e0-95fc-c397ff53d9b0] Incoming request on /healthcheck?api-version=2021-08-01
2022-06-10T08:25:37.551596538Z: [INFO] functionapp320220610012144 : [85b2bf45-6358-4499-a608-c58cee8cebb1] Incoming request on /robots933456.txt/appsvctmp/volatile/logs/runtime/07246c2505e7e23ef42e424c2904a9dcf520de2a23f60f91642ff9fdfe4bfde8.log
2022-06-10T08:24:37.272150048Z: [INFO] Updated CA certificates
2022-06-10T08:24:41.052508070Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Configuration update started. Site: functionapp320220610012144
2022-06-10T08:24:41.070110306Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] [SystemAssigned] Added Identity with ClientId: d7a98074-89cf-4d89-a847-abe717db0f19
2022-06-10T08:24:41.070147109Z: [INFO] functionapp320220610012144 : [00000000-0000-0000-0000-000000000000] Starting TokenService from /app with the following: IsLinuxDedicated: True, IsLinuxConsumption: False, IsWindows: False.
2022-06-10T08:24:41.161389901Z: [INFO] Hosting environment: Production
2022-06-10T08:24:41.161421303Z: [INFO] Content root path: /app
2022-06-10T08:24:41.161428103Z: [INFO] Now listening on: http://[::]:8081/
2022-06-10T08:24:41.161433404Z: [INFO] Application started. Press Ctrl+C to shut down.
2022-06-10T08:24:41.459521052Z: [INFO] functionapp320220610012144 : [bb12350c-2509-43b5-ba97-3a56e30a1002] Incoming request on /healthcheck?api-version=2021-08-01
2022-06-10T08:24:44.376896512Z: [INFO] functionapp320220610012144 : [b8289e0e-d8e1-4941-9931-8386406a5e9e] Incoming request on /robots933456.txtEnding Log Tail of existing logs ---Starting Live Log Stream ---
2022-06-10T08:25:47.498899942Z: [INFO] Hosting environment: Production
2022-06-10T08:25:47.498940244Z: [INFO] Content root path: /azure-functions-host2022-06-10T08:25:47.498954745Z: [INFO] Now listening on: [http://[::]:80](http://[::]/)
2022-06-10T08:25:47.498960845Z: [INFO] Application started. Press Ctrl+C to shut down.

Contributor guide
Assessment
This issue has not been assessed yet.