remote: PHP Fatal error: require(): Failed opening required '/var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/bootstrap/../vendor/autoload.php' (include_path='.:/var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/lib:/var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/libs:/var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/libraries:/var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/src:/var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/vendor:/var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/vendors:/var/lib/openshift/5707de542d52712b1100001c/php/phplib/pear/pear/php:/usr/share/pear') in /var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/bootstrap/autoload.php on line 17
remote: -------------------------
remote: Git Post-Receive Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: 5707de542d52712b1100001c (Error activating gear: CLIENT_ERROR: Failed to execute action hook 'deploy' for 5707de542d52712b1100001c application php
remote: #<IO:0x000000008043a0>
remote: #<IO:0x00000000804328>
remote: )
remote: Deployment completed with status: failure
remote: postreceive failed
Looks like the /vendor/autoload.php is not available in your repo:
require(): Failed opening required '/var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/bootstrap/../vendor/autoload.php' (...) in /var/lib/openshift/5707de542d52712b1100001c/app-root/runtime/repo/bootstrap/autoload.php
If you are deploying an app for the first time, you need to run the composer install script to install the vendor packages. Do this using the commandline:
composer install
This will install the laravel framework and other dependencies use by your project.
Related
Preparing metadata (pyproject.toml): started
remote: Preparing metadata (pyproject.toml): finished with status 'error'
remote: error: subprocess-exited-with-error
remote:
remote: × Preparing metadata (pyproject.toml) did not run successfully.
remote: │ exit code: 1
remote: ╰─> [6 lines of output]
remote: Checking for Rust toolchain...
remote:
remote: Cargo, the Rust package manager, is not installed or is not on PATH.
remote: This package requires Rust and Cargo to compile extensions. Install it through
remote: the system's package manager or via https://rustup.rs/
remote:
remote: [end of output]
remote:
remote: note: This error originates from a subprocess, and is likely not a problem with pip.
remote: error: metadata-generation-failed
remote:
remote: × Encountered error while generating package metadata.
remote: ╰─> See above for output.
remote:
remote: note: This is an issue with the package mentioned above, not pip.
remote: hint: See above for details.
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
You're going to need to use multiple buildpacks, one for Rust and another for Python.
Rust is not officially supported, but several community options exist. Pick one, then configure your application:
Set your application to use the Python buildpack:
heroku buildpacks:set heroku/python
Add your chosen Rust buildpack:
heroku buildpacks:add --index 1 YOUR_CHOSEN_BUILDPACK
Run heroku buildpacks to ensure they are correct. You should see the Rust buildpack first, and the Python buildpack second.
Finally, redeploy your application.
I'm getting
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
when I try to push to Heroku , this is not a first push I have this app deployed in Heroku already, but all of a sudden Heroku started throwing this error.
I have tried
setting git config --global http.postBuffer 524288000
restarting all dynos
deleting Heroku project and creating it again.
tried pushing same repo to GitHub and it works fine.
I'm using macos-catalina
here is the complete error
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote: NPM_CONFIG_LOGLEVEL=error
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=true
remote: NODE_VERBOSE=false
remote:
remote: -----> Installing binaries
remote: engines.node (package.json): unspecified
remote: engines.npm (package.json): unspecified (use default)
remote:
remote: Resolving node version 12.x...
remote: Downloading and installing node 12.18.3
remote: Using default npm version: 6.14.6
remote:
remote: -----> Restoring cache
remote: - node_modules
remote:
remote: -----> Installing dependencies
remote: Installing node modules
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
any help would be appreciated. thanks
In case any one is facing similar issues , check Heroku logs , in my case next.js build was taking too much memory so the deploy was getting rejected, eventhough push was success.
i'm trying to host my website through heroku, but the build is failing constantly whatever i do.The build works locally, but when i tried to push to heroku i keep getting this
Counting objects: 1324, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (609/609), done.
Writing objects: 100% (1324/1324), 28.24 MiB | 0 bytes/s, done.
Total 1324 (delta 681), reused 1324 (delta 681)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote: NPM_CONFIG_LOGLEVEL=error
remote: NODE_VERBOSE=false
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote: engines.node (package.json): ^10.7
remote: engines.npm (package.json): unspecified (use default)
remote: engines.yarn (package.json): ^1.5
remote:
remote: Resolving node version ^10.7...
remote: Downloading and installing node 10.9.0...
remote: Using default npm version: 6.2.0
remote: Resolving yarn version ^1.5...
remote: Downloading and installing yarn (1.9.4)...
remote: Installed yarn 1.9.4
remote:
remote: -----> Restoring cache
remote: Skipping cache restore (not-found)
remote:
remote: -----> Building dependencies
remote: Installing node modules (yarn.lock)
remote: yarn install v1.9.4
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: warning Pattern ["#types/koa#latest"] is trying to unpack in the same destination "/tmp/yarncache.80EhH/v2/npm-#types/koa-2.0.46-24bc3cd405d10fcde81f876cd8285
b44d4ddc3e9" as pattern ["#types/koa#*","#types/koa#*","#types/koa#*","#types/koa#*","#types/koa#*","#types/koa#*","#types/koa#*","#types/koa#*","#types/koa#*"]. This could
result in non-deterministic behavior, skipping.
remote: warning Pattern ["#types/node#latest"] is trying to unpack in the same destination "/tmp/yarncache.80EhH/v2/npm-#types/node-10.9.2-f0ab8dced5cd6c56b26765e1c0d
9e4fdcc9f2a00" as pattern ["#types/node#*","#types/node#*","#types/node#*","#types/node#*","#types/node#*","#types/node#*","#types/node#*","#types/node#*","#types/node#*","#
types/node#*","#types/node#*","#types/node#*","#types/node#*","#types/node#*","#types/node#*"]. This could result in non-deterministic behavior, skipping.
remote: warning Pattern ["koa-convert#latest"] is trying to unpack in the same destination "/tmp/yarncache.80EhH/v2/npm-koa-convert-1.2.0-da40875df49de0539098d1700b50
820cebcd21d0" as pattern ["koa-convert#^1.2.0"]. This could result in non-deterministic behavior, skipping.
remote: warning Pattern ["qs#latest"] is trying to unpack in the same destination "/tmp/yarncache.80EhH/v2/npm-qs-6.5.2-cb3ae806e8740444584ef154ce8ee98d403f3e36" as p
attern ["qs#^6.4.0"]. This could result in non-deterministic behavior, skipping.
remote: (node:257) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or
Buffer.from() methods instead.
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: error An unexpected error occurred: "ENOENT: no such file or directory, scandir '/tmp/yarncache.80EhH/v2/npm-path-key-2.0.1-411cadb574c5a140d3a4b1910d40d80cc9
f40b40'".
remote: info If you think this is a bug, please open a bug report with the information provided in "/tmp/build_11ee5794ef73ae92c415ea71c412314f/yarn-error.log".
remote: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: If you're stuck, please submit a ticket so we can help:
remote: https://help.heroku.com/
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to sun-it-solution.
remote:
To https://git.heroku.com/sun-it-solution.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/sun-it-solution.git'
i also tried to run yarn cache clean, removing all node_modules and run yarn install , but still the build fails
i'm stuck here :( i googled some other things too but i cant solve the problem please help
Module not found: Error: Can't resolve 'babel-polyfill' in
'/tmp/build_7f85e1e4173bfdceff6d0abd745c2646/src' remote:
remote: error Command failed with exit code 1. remote:
info Visit https://yarnpkg.com/en/docs/cli/install for documentation
about this command. remote: remote: -----> Build failed remote:
remote: We're sorry this build is failing! You can troubleshoot
common issues here: remote:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
This is the error I get when I try to deploy my app to heroku.
"babel-polyfill": "^6.23.0",
is in my dependencies (not devDependencies).
I require babel in my index.js file on the first line:
import 'babel-polyfill';
Why cant heroku resolve the babel-polyfill ?
I'm trying to deploy a small app on fortrabbit but when I look in the console here is the error I have :
Pushing to user#repository.git
remote: Step1: Updating repository
remote: -> OK
remote:
remote: Step2: Deploying (strategy: no delete, excludes: no)
remote: -> OK
remote:
remote: Step3: Composer Hook
remote: -> Triggering install - get a coffee
remote: -> Installing way/form [dev-master 25d0667]
remote: -> Installing way/form [dev-master 25d0667]
remote: ! Composer threw 'RuntimeException'
remote: ! Failed to execute git clone --no-checkout 'git#github.com:JeffreyWay/Laravel-FormField.git' '/var/www/web/application/htdocs/vendor/way/form' && cd '/var/www/web/application/htdocs/vendor/way/form' && git remote add composer 'git#github.com:JeffreyWay/Laravel-FormField.git' && git fetch composer
remote: ! ~~~FAIL~~~
remote: Step4: Executing post-deploy script
remote: ~ PHP Warning: require(/var/www/web/application/htdocs/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/web/application/htdocs/bootstrap/autoload.php on line 17
remote: ~ PHP Fatal error: require(): Failed opening required '/var/www/web/application/htdocs/bootstrap/../vendor/autoload.php' (include_path='.:/opt/php/5.4/share') in /var/www/web/application/htdocs/bootstrap/autoload.php on line 17
remote: ~
remote: !! FAIL !!
remote: !! Script exited with error state
remote: !! FAIL !!
remote: > All Done <
To git#git1.eu1.frbit.com:repository.git
= [up to date] production -> production
2e5a195..4c9ddcc master -> master
updating local tracking ref 'refs/remotes/production/master'
Do you guys have any idea why I have the github error ?
Thanks a lot for your help.
Thoma
Ok found it,
I've connect with SSH to fortrabbit and try to do a composer install there.
This allowed me to add my github credentials and to clone the missing vendors :
13:23:51 user#fortrabbit:~/htdocs$ composer install
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing way/form (dev-master 25d0667)
Downloading: connection... Failed to download way/form from dist: The "https://api.github.com/repos/JeffreyWay/Laravel-FormField/zipball/25d06676a75f05db7cc10399e72ce13c922047ae" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing way/form (dev-master 25d0667)
Cloning 25d06676a75f05db7cc10399e72ce13c922047ae
The authenticity of host 'github.com (192.30.252.131)' can't be established.
RSA key fingerprint is {fingerprint}.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
The credentials will be swapped for an OAuth token stored in /var/www/web/dir/.composer/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username: myusername
Password:
Token successfully created
- Installing guzzle/guzzle (v3.9.2)
Downloading: 100%
- Installing way/generators (2.6.1)
Downloading: 100%
Writing lock file
Generating autoload files
Generating optimized class loader
Compiling common classes
Compiling views