heroku / heroku-buildpack-php

Heroku's buildpack for PHP applications.
https://devcenter.heroku.com/categories/php
MIT License
808 stars 1.59k forks source link

Deployment of PHP application Invoice Ninja fails due to file_put_contents #197

Closed seybi87 closed 7 years ago

seybi87 commented 7 years ago

Hi php buildpack team,

I am trying to deploy the Invoice Ninja app at Heroku with the php buildpack.

I am using the source release in version 2.9.0 of Invoice Ninja.

The respective git repo for the deployment can be found here: https://github.com/seybi87/cs-invoice-ninja-source with the composer file.

If I deploy the app via git the deployment fails with the following remote exception:

$ git push heroku master
Counting objects: 1585, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1542/1542), done.
Writing objects: 100% (1585/1585), 49.32 MiB | 421.00 KiB/s, done.
Total 1585 (delta 448), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote:  !     Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote:                         Detected buildpacks: PHP,Node.js
remote:                         See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> PHP app detected
remote: -----> Bootstrapping...
remote: -----> Installing platform packages...
remote:        - php (7.1.0)
remote:        - ext-gd (bundled with php)
remote:        - ext-gmp (bundled with php)
remote:        - ext-mbstring (bundled with php)
remote:        - ext-mcrypt (bundled with php)
remote:        - apache (2.4.20)
remote:        - nginx (1.8.1)
remote: -----> Installing dependencies...
remote:        Composer version 1.2.4 2016-12-06 22:00:51
remote:        Loading composer repositories with package information
remote:        Installing dependencies from lock file
remote:          - Installing ircmaxell/password-compat (v1.0.4)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/polyfill-php55 (v1.3.0)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/polyfill-php54 (v1.3.0)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/polyfill-mbstring (v1.3.0)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/http-foundation (v2.8.14)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/event-dispatcher (v2.8.14)
remote:            Downloading: 100%
remote:
remote:          - Installing guzzle/guzzle (v3.9.3)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/common (v2.3.4)
remote:            Downloading: 100%
remote:
remote:          - Installing agmscode/omnipay-agms (1.0.0)
remote:            Downloading: 100%
remote:
remote:          - Installing alfaproject/omnipay-skrill (dev-master 41a7a03)
remote:            Downloading: 100%
remote:
remote:          - Installing vlucas/phpdotenv (v2.3.0)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/var-dumper (v3.0.9)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/translation (v3.0.9)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/routing (v3.0.9)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/process (v3.0.9)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/polyfill-util (v1.2.0)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/polyfill-php56 (v1.2.0)
remote:            Downloading: 100%
remote:
remote:          - Installing psr/log (1.0.0)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/debug (v3.0.9)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/http-kernel (v3.0.9)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/finder (v3.0.9)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/console (v3.0.9)
remote:            Downloading: 100%
remote:
remote:          - Installing swiftmailer/swiftmailer (v5.4.3)
remote:            Downloading: 100%
remote:
remote:          - Installing nikic/php-parser (v2.1.0)
remote:            Downloading: 100%
remote:
remote:          - Installing jakub-onderka/php-console-color (0.1)
remote:            Downloading: 100%
remote:
remote:          - Installing jakub-onderka/php-console-highlighter (v0.3.2)
remote:            Downloading: 100%
remote:
remote:          - Installing dnoegel/php-xdg-base-dir (0.1)
remote:            Downloading: 100%
remote:
remote:          - Installing psy/psysh (v0.7.2)
remote:            Downloading: 100%
remote:
remote:          - Installing paragonie/random_compat (v1.4.1)
remote:            Downloading: 100%
remote:
remote:          - Installing nesbot/carbon (1.21.0)
remote:            Downloading: 100%
remote:
remote:          - Installing mtdowling/cron-expression (v1.1.0)
remote:            Downloading: 100%
remote:
remote:          - Installing monolog/monolog (1.21.0)
remote:            Downloading: 100%
remote:
remote:          - Installing league/flysystem (1.0.27)
remote:            Downloading: 100%
remote:
remote:          - Installing jeremeamia/superclosure (2.2.0)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/inflector (v1.1.0)
remote:            Downloading: 100%
remote:
remote:          - Installing classpreloader/classpreloader (3.0.0)
remote:            Downloading: 100%
remote:
remote:          - Installing laravel/framework (v5.2.43)
remote:            Downloading: 100%
remote:
remote:          - Installing anahkiasen/html-object (1.4.2)
remote:            Downloading: 100%
remote:
remote:          - Installing anahkiasen/former (4.0.x-dev 1ad9b33)
remote:            Downloading: 100%
remote:
remote:          - Installing andreas22/omnipay-fasapay (v1.0.2)
remote:            Downloading: 100%
remote:
remote:          - Installing asgrim/ofxparser (1.1.1)
remote:            Downloading: 100%
remote:
remote:          - Installing barracudanetworks/archivestream-php (1.0.3)
remote:            Downloading: 100%
remote:
remote:          - Installing maximebf/debugbar (v1.11.1)
remote:            Downloading: 100%
remote:
remote:          - Installing barryvdh/laravel-debugbar (v2.2.2)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/class-loader (v3.1.3)
remote:            Downloading: 100%
remote:
remote:          - Installing barryvdh/reflection-docblock (v2.0.4)
remote:            Downloading: 100%
remote:
remote:          - Installing barryvdh/laravel-ide-helper (v2.2.1)
remote:            Downloading: 100%
remote:
remote:          - Installing cardgate/omnipay-cardgate (v2.0.0)
remote:            Downloading: 100%
remote:
remote:          - Installing cerdic/css-tidy (v1.5.5)
remote:            Downloading: 100%
remote:
remote:          - Installing chumper/datatable (dev-develop 04ef2bf)
remote:            Downloading: 100%
remote:
remote:          - Installing coatesap/omnipay-datacash (v2.0.4)
remote:            Downloading: 100%
remote:
remote:          - Installing coatesap/omnipay-paymentsense (v2.0.0)
remote:            Downloading: 100%
remote:
remote:          - Installing coatesap/omnipay-realex (v2.1.3)
remote:            Downloading: 100%
remote:
remote:          - Installing psr/http-message (1.0.1)
remote:            Downloading: 100%
remote:
remote:          - Installing guzzlehttp/psr7 (1.3.1)
remote:            Downloading: 100%
remote:
remote:          - Installing guzzlehttp/promises (1.2.0)
remote:            Downloading: 100%
remote:
remote:          - Installing guzzlehttp/guzzle (6.2.1)
remote:            Downloading: 100%
remote:
remote:          - Installing codedge/laravel-selfupdater (5.x-dev b24b155)
remote:            Downloading: 100%
remote:
remote:          - Installing collizo4sky/omnipay-wepay (dev-address-fix f8bb3e4)
remote:            Downloading: 100%
remote:
remote:          - Installing delatbabel/omnipay-fatzebra (dev-master d0a56a8)
remote:            Downloading: 100%
remote:
remote:          - Installing dercoder/omnipay-ecopayz (v1.0.1)
remote:            Downloading: 100%
remote:
remote:          - Installing true/punycode (v2.1.0)
remote:            Downloading: 100%
remote:
remote:          - Installing league/url (3.3.5)
remote:            Downloading: 100%
remote:
remote:          - Installing dercoder/omnipay-paysafecard (dev-master 9fce03e)
remote:            Downloading: 100%
remote:
remote:          - Installing descubraomundo/omnipay-pagarme (dev-master 8571396)
remote:            Downloading: 100%
remote:
remote:          - Installing dioscouri/omnipay-cybersource (dev-master b958302)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/cache (v1.6.0)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/lexer (v1.0.1)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/collections (v1.3.0)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/annotations (v1.2.7)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/common (v2.6.1)
remote:            Downloading: 100%
remote:
remote:          - Installing doctrine/dbal (v2.5.4)
remote:            Downloading: 100%
remote:
remote:          - Installing dwolla/omnipay-dwolla (dev-master f58af83)
remote:            Downloading: 100%
remote:
remote:          - Installing ezyang/htmlpurifier (v4.8.0)
remote:            Downloading: 100%
remote:
remote:          - Installing fotografde/omnipay-checkoutcom (2.0)
remote:            Downloading: 100%
remote:
remote:          - Installing fruitcakestudio/omnipay-sisow (v2.0.1)
remote:            Downloading: 100%
remote:
remote:          - Installing fzaninotto/faker (v1.6.0)
remote:            Downloading: 100%
remote:
remote:          - Installing gatepay/fedachdir (dev-master origin/master)
remote:            Downloading: Failed
remote:            Failed to download gatepay/FedACHdir from dist: The "https://api.github.com/repos/gatepay/FedACHdir/zipball/origin/master" file could not be downloaded (HTTP/1.1 302 Found)
remote:            Now trying to download from source
remote:          - Installing gatepay/fedachdir (dev-master origin/master)
remote:            Cloning origin/master
remote:
remote:          - Installing google/apiclient (v1.1.8)
remote:            Downloading: 100%
remote:
remote:          - Installing incube8/omnipay-multicards (dev-master 54f0514)
remote:            Downloading: 100%
remote:
remote:          - Installing intervention/image (dev-master 45a41a3)
remote:            Downloading: 100%
remote:
remote:          - Installing jaybizzle/crawler-detect (v1.2.15)
remote:            Downloading: 100%
remote:
remote:          - Installing jaybizzle/laravel-crawler-detect (v1.0.2)
remote:            Downloading: 100%
remote:
remote:          - Installing zircote/swagger-php (2.0.7)
remote:            Downloading: 100%
remote:
remote:          - Installing jlapp/swaggervel (dev-master e026d72)
remote:            Downloading: 100%
remote:
remote:          - Installing justinbusschau/omnipay-secpay (2.0.6)
remote:            Downloading: 100%
remote:
remote:          - Installing labs7in0/omnipay-wechat (dev-master c8d80c3)
remote:            Downloading: 100%
remote:
remote:          - Installing laracasts/presenter (dev-master b284f31)
remote:            Downloading: 100%
remote:
remote:          - Installing league/oauth1-client (1.7.0)
remote:            Downloading: 100%
remote:
remote:          - Installing laravel/socialite (v2.0.18)
remote:            Downloading: 100%
remote:
remote:          - Installing laravelcollective/bus (v5.2)
remote:            Downloading: 100%
remote:
remote:          - Installing mtdowling/jmespath.php (2.3.0)
remote:            Downloading: 100%
remote:
remote:          - Installing aws/aws-sdk-php (3.18.33)
remote:            Downloading: 100%
remote:
remote:          - Installing league/flysystem-aws-s3-v3 (1.0.13)
remote:            Downloading: 100%
remote:
remote:          - Installing mikemccabe/json-patch-php (0.1.0)
remote:            Downloading: 100%
remote:
remote:          - Installing rackspace/php-opencloud (v1.16.0)
remote:            Downloading: 100%
remote:
remote:          - Installing league/flysystem-rackspace (1.0.5)
remote:            Downloading: 100%
remote:
remote:          - Installing league/fractal (0.13.0)
remote:            Downloading: 100%
remote:
remote:          - Installing lokielse/omnipay-alipay (v1.4.13)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/css-selector (v3.1.3)
remote:            Downloading: 100%
remote:
remote:          - Installing tijsverkoyen/css-to-inline-styles (1.5.5)
remote:            Downloading: 100%
remote:
remote:          - Installing phpoffice/phpexcel (1.8.1)
remote:            Downloading: 100%
remote:
remote:          - Installing maatwebsite/excel (v2.1.3)
remote:            Downloading: 100%
remote:
remote:          - Installing meebio/omnipay-creditcall (dev-master b133a75)
remote:            Downloading: 100%
remote:
remote:          - Installing meebio/omnipay-secure-trading (dev-master 992224a)
remote:            Downloading: 100%
remote:
remote:          - Installing mfauveau/omnipay-pacnet (2.0.4)
remote:            Downloading: 100%
remote:
remote:          - Installing laravelcollective/html (v5.2.4)
remote:            Downloading: 100%
remote:
remote:          - Installing nwidart/laravel-modules (1.14.0)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/2checkout (dev-master e9c079c)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/bitpay (dev-master 9cadfb7)
remote:            Downloading: 100%
remote:
remote:          - Installing braintree/braintree_php (3.15.0)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/braintree (dev-master 54846f2)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/gocardless (dev-master f4f7079)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/mollie (dev-master 22956c1)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/worldpay (v2.2)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/targetpay (v2.2.1)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/stripe (dev-master 3d21b68)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/securepay (v2.1.0)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/sagepay (2.3.1)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/pin (v2.2.2)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/paypal (v2.5.5)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/paymentexpress (v2.2.0)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/payflow (v2.2.1)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/payfast (v2.1.2)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/netbanx (v2.1.1)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/netaxept (v2.3.0)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/multisafepay (v2.3.1)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/migs (v2.1.1)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/manual (v2.2.0)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/firstdata (v2.3.0)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/eway (v2.2.1)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/dummy (v2.1.2)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/coinbase (v2.0.4)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/cardsave (2.1.2)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/buckaroo (v2.0.2)
remote:            Downloading: 100%
remote:
remote:          - Installing omnipay/authorizenet (2.4.2)
remote:            Downloading: 100%
remote:
remote:          - Installing twbs/bootstrap (v3.3.7)
remote:            Downloading: 100%
remote:
remote:          - Installing illuminate/html (v5.0.0)
remote:            Downloading: 100%
remote:
remote:          - Installing patricktalmadge/bootstrapper (5.5.3)
remote:            Downloading: 100%
remote:
remote:          - Installing predis/predis (v1.1.1)
remote:            Downloading: 100%
remote:
remote:          - Installing samvaughton/omnipay-barclays-epdq (2.2.3)
remote:            Downloading: 100%
remote:
remote:          - Installing simshaun/recurr (dev-master 78a0d8b)
remote:            Downloading: 100%
remote:
remote:          - Installing softcommerce/omnipay-paytrace (v1.0.1)
remote:            Downloading: 100%
remote:
remote:          - Installing symfony/options-resolver (v3.1.3)
remote:            Downloading: 100%
remote:
remote:          - Installing zendframework/zend-json (2.6.1)
remote:            Downloading: 100%
remote:
remote:          - Installing zendframework/zend-stdlib (3.0.1)
remote:            Downloading: 100%
remote:
remote:          - Installing container-interop/container-interop (1.1.0)
remote:            Downloading: 100%
remote:
remote:          - Installing zendframework/zend-validator (2.8.1)
remote:            Downloading: 100%
remote:
remote:          - Installing zendframework/zend-escaper (2.5.2)
remote:            Downloading: 100%
remote:
remote:          - Installing zendframework/zend-uri (2.5.2)
remote:            Downloading: 100%
remote:
remote:          - Installing zendframework/zend-loader (2.5.1)
remote:            Downloading: 100%
remote:
remote:          - Installing zendframework/zend-http (2.5.5)
remote:            Downloading: 100%
remote:
remote:          - Installing zendframework/zendservice-google-gcm (1.0.3)
remote:            Downloading: 100%
remote:
remote:          - Installing zendframework/zendservice-apple-apns (1.2.0)
remote:            Downloading: 100%
remote:
remote:          - Installing sly/notification-pusher (v2.2.2)
remote:            Downloading: 100%
remote:
remote:          - Installing turbo124/laravel-push-notification (dev-laravel5 b703b0f)
remote:            Downloading: 100%
remote:
remote:          - Installing vink/omnipay-komoju (v1.0)
remote:            Downloading: 100%
remote:
remote:          - Installing webpatser/laravel-countries (dev-master 2a310c0)
remote:            Downloading: 100%
remote:
remote:          - Installing superbalist/flysystem-google-storage (1.0.4)
remote:            Downloading: 100%
remote:
remote:          - Installing websight/l5-google-cloud-storage (1.0.3)
remote:            Downloading: 100%
remote:
remote:          - Installing wepay/php-sdk (0.2.7)
remote:            Downloading: 100%
remote:
remote:          - Installing wildbit/swiftmailer-postmark (2.0.4)
remote:            Downloading: 100%
remote:
remote:          - Installing wildbit/laravel-postmark-provider (3.0.0)
remote:            Downloading: 100%
remote:
remote:        Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
remote:        Package chumper/datatable is abandoned, you should avoid using it. Use OpenSkill/Datatable instead.
remote:        Package coatesap/omnipay-datacash is abandoned, you should avoid using it. Use digitickets/omnipay-datacash instead.
remote:        Package coatesap/omnipay-paymentsense is abandoned, you should avoid using it. Use digitickets/omnipay-paymentsense instead.
remote:        Package coatesap/omnipay-realex is abandoned, you should avoid using it. Use digitickets/omnipay-realex instead.
remote:        Package league/url is abandoned, you should avoid using it. Use league/uri instead.
remote:        Package labs7in0/omnipay-wechat is abandoned, you should avoid using it. Use lokielse/omnipay-wechatpay instead.
remote:        Package illuminate/html is abandoned, you should avoid using it. Use laravelcollective/html instead.
remote:        Package samvaughton/omnipay-barclays-epdq is abandoned, you should avoid using it. Use digitickets/omnipay-barclays-epdq instead.
remote:        Generating optimized autoload files
remote:        > php artisan clear-compiled
remote:
remote:
remote:          [ErrorException]
remote:          file_put_contents(/tmp/build_d54e230821c651b4e84569b799d38d02/bootstrap/cache/services.php): failed to open stream: No such file or directory
remote:
remote:
remote:        Script php artisan clear-compiled handling the post-install-cmd event returned with error code 1
remote:  !     Push rejected, failed to compile PHP app.
remote:
remote:  !     Push failed
remote: Verifying deploy....
remote:
remote: !       Push rejected to peaceful-lowlands-22928.
remote:
To https://git.heroku.com/peaceful-lowlands-22928.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/peaceful-lowlands-22928.git'

Is there any chance to resolve this issue?

Thanks in advance for any advice.

dzuelke commented 7 years ago

The same thing happens if you git clone the repo on your local computer and run composer install.

There is no bootstrap/cache/ folder in the repo, hence the error.