Open sweettbug3 opened 2 years ago
Can you provide a full minimal app with both python and php parts? Also the start command you'd like the application to use.
The php and python app is nothing more than the index.php file in the same directory as the manifest. The start command being used is the default start command in the php buildpack.
What is provided above is enough to duplicate the error.
I see you had filed a similar issue in #478. Were you able to run your app correctly with the resolution provided for that issue? I'm trying to understand if this a regression since then or was never solved
The resolution for #478 provided in 4.4.38 did not work. I was unable to test this #478 after 4.4.38 was released because I am relying on a 3rd party to deploy Buildpacks. I do not believe #478 was ever really resolved, the comments said to open up another DR if I still have issues.
I wrote this DR against php buildpack 4.4.53 which is clearly after 4.4.38 and I am still having issues. The example above is as simple an application as is possible in php, and will not start up.
My only workaround it to depend on a very old python buildpack that supports python2. This is not a good long term workaround.
It looks like the only long-term solution for this would be to rewrite the PHP buildpack from python2 to python3. Is that something you'd be willing to contribute? @sweettbug3
As @arjun024 mentioned above, the only way to resolve this issue is to enable the PHP buildpack to be python3-compatible. We recently added cflinuxfs4
support to the PHP buildpack, and at that time, we decided that rewriting the buildpack to work with python3 could be a significant undertaking.
If the Python/PHP multi-buildpack use case is strong, then maybe we should reconsider doing the rewrite for both this use-case as well as the longevity of the buildpack (since python2 is technically out of support).
It would be helpful to understand more about the use-case here for Python/PHP apps, so we can decide if we want to pursue this as a track of work @johnnyr0x
Since Cloudfoundry advertises the ability to deploy multiple buildpacks, it seems wrong that Python/Php Buildpacks are incompatible (without using very old Python Buildpacks w/Python 2, which has been EOL for 3 years).
I can readily find docker containers that support relevant versions of php and python on the web, not being able to get compatible python/php buildpacks with relevant versions (w/ security support) has led me away from this technology.
Thanks @sweettbug3 for bringing this up - we're going to evaluate the best approach: re-write with python3, re-write with go, or another method. The use case is strong from a support/security perspective.
Will keep you in the loop.
What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running
cf curl /v2/info && cf version
?What version of the buildpack you are using?
If you were attempting to accomplish a task, what was it you were attempting to do?
Deploy a web application. That uses python 3 code in the background.
What did you expect to happen?
For the web application to deploy cleanly and have web application start up.
What was the actual behavior?
Fails to start the web application. Cant run
Please confirm where necessary:
To reproduce create an extremely simple application:
manifest.yml :
index.php :