php-buildpack icon indicating copy to clipboard operation
php-buildpack copied to clipboard

PHP Buildpack does not work as multi buildpack with Python Buildpack

Open sweettbug3 opened this issue 3 years ago • 8 comments

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?

cf curl /v2/info
 {
    "name": "VMware Tanzu Application Service",
    "build": "2.11.13-build.2",
    "support": "https://support.pivotal.io/",
    "version": 0,
    "description": "https://docs.pivotal.io/pivotalcf/2-11/pcf-release-notes/runtime-rn.html",
    "authorization_endpoint": "---omitted--",
    "token_endpoint": "---omitted--",
    "min_cli_version": "6.23.0",
    "min_recommended_cli_version": "6.23.0",
    "app_ssh_endpoint": "----omitted--",
    "app_ssh_host_key_fingerprint": "---omitted--",
    "app_ssh_oauth_client": "ssh-proxy",
    "doppler_logging_endpoint": "wss://---omitted--:443",
    "api_version": "2.164.0",
    "osbapi_version": "2.15",
    "routing_endpoint": "---omitted--",
    "user": "---omitted--"
 }
 + cf version
 cf version 7.3.0+645c3ce6a.2021-08-16

What version of the buildpack you are using?

4.4.53 (PHP buildpack)
v1.7.48+1639082814.  (Python Buildpack)

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

   2022-02-02T15:23:55.06-0700 [CELL/0] OUT Cell ---omitted--- successfully created container for instance ---omitted---
   2022-02-02T15:23:55.32-0700 [CELL/0] OUT Downloading droplet...
   2022-02-02T15:24:02.52-0700 [CELL/0] OUT Downloaded droplet (153.1M)
   2022-02-02T15:24:02.59-0700 [CELL/0] OUT Starting health monitoring of container
   2022-02-02T15:24:02.69-0700 [APP/PROC/WEB/0] ERR ImportError: No module named site
   2022-02-02T15:24:02.69-0700 [APP/PROC/WEB/0] ERR ImportError: No module named site
   2022-02-02T15:24:02.70-0700 [APP/PROC/WEB/0] ERR ImportError: No module named site
   2022-02-02T15:24:02.70-0700 [APP/PROC/WEB/0] OUT Exit status 1
   2022-02-02T15:24:02.71-0700 [CELL/SSHD/0] OUT Exit status 0
   2022-02-02T15:24:08.02-0700 [CELL/0] OUT Cell  ---omitted--- stopping instance  ---omitted---
   2022-02-02T15:24:08.02-0700 [CELL/0] OUT Cell  ---omitted--- destroying container for instance  ---omitted---
   2022-02-02T15:24:08.02-0700 [API/0] OUT Process has crashed with type: "web"

Please confirm where necessary:

  • [ x ] I have included a log output
  • [ x ] My log includes an error message
  • [ x ] I have included steps for reproduction

To reproduce create an extremely simple application:

manifest.yml :

---
applications:
- name: php-python-test-app
  memory: 256M
  disk_quota: 4G
  buildpacks:
  - python_buildpack
  - php_buildpack
  stack: cflinuxfs3

index.php :

<?php
phpinfo();
?>

sweettbug3 avatar Feb 03 '22 18:02 sweettbug3