Fortrabbit deployment error with github - laravel

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

Related

whenever i try to push in Heroku,i get this error ."Cargo, the Rust package manager, is not installed or is not on PATH." how to resolve?

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.

not able to push the repo to Heroku

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.

Not able to push Vapor to Heroku

I made some minor changes in Vapor / Swift code. Trying to push no Heroku, but get an error.
remote: -----> Downloading curl 7.52.1
remote: tar: This does not look like a tar archive
remote:
remote: gzip: stdin: not in gzip format
remote: tar: Child returned status 1
remote: tar: Error is not recoverable: exiting now
remote: ! Push rejected, failed to compile curl app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to frozen-sea-46940.
remote:
To https://git.heroku.com/frozen-sea-46940.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/frozen-sea-46940.git'
Completed with errors, see above
I event called an vapor update, regenerated Xcode project but did not helped. Any idea?
Kukoda-MacBook-Pro:frozen-sea-46940 kukodajanos$ heroku buildpacks
=== frozen-sea-46940 Buildpack URLs
1. https://github.com/vzsg/heroku-buildpack-curl-http2.git
2. https://github.com/vapor-community/heroku-buildpack.git
Push your project to Heroku again, it will work now.
The issue was in the curl-http2 buildpack: the version it was trying to download no longer exists on Ubuntu's servers. I have resolved this just now.
Should you run into a similar problem in the future, and it's not a build error in your application code, please open an issue at the GitHub repo of the failing buildpack.

Error During Deploying the project on openshift

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.

Deploying a Go app with Imagemagick on Heroku

I've been trying to deploy a simple Go app with imagick
This requires Imagemagick. I've tried using the multi buildpack to install Imagemagick and run my app. This is how my .buildpack looks like:
https://github.com/mcollina/heroku-buildpack-imagemagick
https://github.com/kr/heroku-buildpack-go.git
And this is the error I see on Heroku:
Fetching repository, done.
Counting objects: 170, done.
Compressing objects: 100% (154/154), done.
Writing objects: 100% (169/169), 170.13 KiB | 0 bytes/s, done.
Total 169 (delta 21), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Multipack app detected
=====> Downloading Buildpack: https://github.com/mcollina/heroku-buildpack-imagemagick
=====> Detected Framework:
-----> Installing libpng 1.5.14
Download completed
Installation completed
-----> Installing imagemagick 6.8.2-3
Download completed
Installation completed
-----> Building runtime environment for imagemagick
=====> Downloading Buildpack: https://github.com/kr/heroku-buildpack-go.git
=====> Detected Framework: Go
-----> Installing go1.3... done
-----> Running: godep go install -tags heroku ./...
# github.com/gographics/imagick/imagick
error: 'RemoveAlphaChannel' undeclared (first use in this function)
error: 'FlattenAlphaChannel' undeclared (first use in this function)
godep: go exit status 2
! Push rejected, failed to compile Multipack app
To git#heroku.com:philosoraptor-me.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to
I ended up using the image package from Go's excellent standard lib instead of depending on imagemagick.
This also taught me a valuable lesson about looking for a solution as close to the problem as possible than trying to solve it with a tool that I'm most familiar with.
Have you tried updating your local copy of gographics/imagick and doing godep update gographics/imagick ? The error error: 'FlattenAlphaChannel' undeclared seems to be coming from the library and not the buildpack

Resources