Azure-functions-host: using PHP functions no longer run

Created on 11 Jul 2018  路  7Comments  路  Source: Azure/azure-functions-host

Investigative information

  • Timestamp: 2018-07-11T16:31:59.212
  • Function App version 1.0
  • Function App name: EmailQueueTrigger
  • Invocation ID: 6285e365-8c52-4d35-b19a-498f73367a2f
  • Region: Canada East

Repro steps

Provide the steps required to reproduce the problem:

Running manually gives the following error

Running it from the function console it runs.
I created a blank function with printing just hello world and it has the same error

2018-07-11T16:34:03.538 [Info] Function started (Id=ce9025c1-a329-4aad-812d-5496a445b83d)
2018-07-11T16:34:03.554 [Error] Exception while executing function: Functions.EmailQueueTrigger. System: The system cannot find the file specified.
2018-07-11T16:34:03.570 [Error] Function completed (Failure, Id=ce9025c1-a329-4aad-812d-5496a445b83d, Duration=37ms)

Expected behavior

Provide a description of the expected behavior.
It ran until today, It was a problem in Canada Central, but worked in US West and Canada East and now today US West and Canada East have the same error.

bug

All 7 comments

Hi, I have the same problem in West Europe. It stopped working after 2018-07-10 23:00.

Thank you for reporting the issue. We are looking into it.

@Jen7714 - I see there were updates to Php.exe https://github.com/Azure/app-service-announcements/issues/108. Looks like php.exe is not on the path anymore in Azure

We have identified the root cause. This is a regression and we are working on the fix. As a temporary workaround, please follow instructions here: https://github.com/Azure/azure-functions-host/wiki/Using-a-custom-version-of-Python and copy Download PHP 5.6 (or whichever version you want) from here https://windows.php.net/downloads/releases/php-5.6.36-Win32-VC11-x86.zip instead of python to site\tools.

@pragnagopa
Executing where php.exe outputs D:\Program Files (x86)\PHP\v5.6\php.exe, so PHP.exe is included in PATH.

And I tried the workaround (deploying PHP runtime to D:\home\site\tools ), but nothing is changed.

@hihorika - Yes. When you run the command from kudu console it is available. But is removed when function app is loaded.
I have verified the workaround of copying php to site\tools works. Can you please share you app name either here or indirectly?

@pragnagopa I succeeded to work php function using the workaround you mentioned.
Thanks!

And I hope that php function works without the workaround.

Was this page helpful?
0 / 5 - 0 ratings