Deploy on heroku with dpl not working with new farady version - heroku

My CI/CD on gitlab deploy code on heroku using dpl. It have been working like a charm until a new version of faraday (I guess it is the reason) is fetch.
Here is what I had in my gitlab CI terminal when it worked (yesterday) :
...
$ dpl --provider=heroku --app=$HEROKU_STAGING_APP --api-key=$HEROKU_API_KEY
Installing deploy dependencies
Successfully installed rendezvous-0.1.3
Successfully installed netrc-0.11.0
Successfully installed multipart-post-2.1.1
Successfully installed faraday-rack-1.0.0
Successfully installed faraday-patron-1.0.0
Successfully installed faraday-net_http_persistent-1.2.0
Successfully installed faraday-net_http-1.0.1
Successfully installed faraday-httpclient-1.0.1
Successfully installed faraday-excon-1.1.0
Successfully installed faraday-em_synchrony-1.0.0
Successfully installed faraday-em_http-1.0.0
Successfully installed faraday-1.8.0
Successfully installed dpl-heroku-1.10.16
13 gems installed
authentication succeeded
checking for app XXX
found app XXX
Preparing deploy
...
Here is what I get today :
...
$ dpl --provider=heroku --app=$HEROKU_STAGING_APP --api-key=$HEROKU_API_KEY
Installing deploy dependencies
Successfully installed rendezvous-0.1.3
Successfully installed netrc-0.11.0
Successfully installed faraday-2.0.0
Successfully installed dpl-heroku-1.10.16
4 gems installed
Preparing deploy
No stash entries found.
/usr/local/bundle/gems/faraday-2.0.0/lib/faraday/rack_builder.rb:230:in `ensure_adapter!': An attempt to run a request with a Faraday::Connection without adapter has been made. (RuntimeError)
Please set Faraday.default_adapter or provide one when initializing the connection.
...
I tried to add --skip_cleanup to dpl call as seen here but it is not working. Maybe I can force reussing the older version of faraday ? But I can't find any source to try this.

This might be useful for this case
https://github.com/travis-ci/dpl/issues/1247

Related

Nativescript TNS run ios Mac mini (M1) : WARNING: There was a problem with CocoaPods

I really don't know what I should I do now so I can build a Nativescript ios app on Mac Mini (M1). I have been going through all the threads on SOF and have done the following:
followed homebrew instructions (https://docs.nativescript.org/environment-setup.html#macos-ios)
installed cocoapods
pod setup (Ok)
pod version (Ok)
But when I do the tns run ios I get the error below.
I have tried installing cocoapods using Terminal in Rosetta mode as well yet no avail.
I had everything working on Mac Mini 2014 machine running Big Sur but Mac mini M1 it just does not like it.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 12.5.1 satisfies minimum required version 10.
✖ WARNING: There was a problem with CocoaPods
Verify that CocoaPods are configured properly.
Your environment is not configured properly and you will not be able to execute local builds.
Select "Configure for Local Builds" to run the setup script and automatically configure your environment for local builds.
Select "Skip Step and Configure Manually" to disregard this option and install any required components manually.
? To continue, choose one of the following options: › - Use arrow-keys. Return to submit.
❯ Configure for Local Builds
Skip Step and Configure Manually
When I choose the Configure for Local Builds I get teh following log:
Step 5 of 11:
Installing CocoaPods... This might take some time, please, be patient.
Successfully installed cocoapods-1.10.2
Parsing documentation for cocoapods-1.10.2
Done installing documentation for cocoapods after 0 seconds
1 gem installed
Step 6 of 11:
Setup CocoaPods... This might take some time, please, be patient.
Setup completed
Step 7 of 11:
Installing pip... This might take some time, please, be patient.
Searching for pip
Best match: pip 20.3.3
Processing pip-20.3.3-py2.7.egg
pip 20.3.3 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
Installing pip3.8 script to /usr/local/bin
Installing pip3 script to /usr/local/bin
Using /Library/Python/2.7/site-packages/pip-20.3.3-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
Step 8 of 11:
Installing 'six' python package... This might take some time, please, be patient.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (1.12.0)
Step 9 of 11:
Installing xcodeproj... This might take some time, please, be patient.
Successfully installed xcodeproj-1.21.0
Parsing documentation for xcodeproj-1.21.0
Done installing documentation for xcodeproj after 0 seconds
1 gem installed
The ANDROID_HOME and JAVA_HOME environment variables have been added to your .bash_profile/.zprofile
Restart the terminal or run `source ~/.bash_profile` to use them.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 12.5.1 satisfies minimum required version 10.
✖ WARNING: There was a problem with CocoaPods
Verify that CocoaPods are configured properly.
The setup script was not able to configure your environment for local builds. To execute local builds, you have to set up your environment manually. Please consult our setup instructions here 'https://docs.nativescript.org/start/quick-setup'.
For M1 machines it's recoomened to install rosetta2
softwareupdate --install-rosetta
May need to install ffi
sudo arch -x86_64 gem install ffi
Then from project/platforms/ios folder
arch -x86_64 pod install

error: cannot install "heroku": snap not found

I am following the instructions from official heroku website to install heroku on my ubuntu 14.04.
First I installed snapd on ubuntu and then tried to install heroku by running:
sudo snap install heroku
But I am getting following error
error: cannot install "heroku": snap not found
I posted this question on askubuntu but it wasn't of much help. Could somebody please help how can I fix this issue ?
To install heroku in all currently supported versions of Ubuntu open the terminal and type:
sudo snap install --classic heroku
This installs the heroku snap package successfully, and it is the recommended way of installing Heroku CLI in Ubuntu at the Heroku Dev Center website. When this was posted sudo snap install --classic heroku installs the latest version of Heroku.

composer: timeout on installing a dependencies package

I am trying to install php phantomjs in my centos server using composer.
It starts good but then it stops installing the package phantomjs.
Any ideas on why it stops there?

Shapado: deploy on heroku failed with system package missing error

I have successfully ran the shapado rails application on my local system(am using ubuntu). But While running the bundle install, it fails with following error
configure: error: Neither uuid/uuid.h nor uuid.h found - required for
brass, chert and flint (you may need to install the uuid-dev,
libuuid-devel or e2fsprogs-devel package)
Then I installed the packages by using
sudo apt-get install uuid-dev
sudo apt-get install libqt4-dev
While running the rake task
rake bootstrap RAILS_ENV=development
Got some nil error and fixed the same by applying below patch
Called id for nil
After this, I can able to run the application on my local successfully.
When I tried to deploy on Heroku it fails with
configure: error: Neither uuid/uuid.h nor uuid.h found - required for brass, chert and flint (you may need to install the uuid-dev, libuuid-devel or e2fsprogs-devel package)
it tries to install the gem 'xapian-ruby', '1.2.7.1' and fails due to unavailable of packages.
Is any one facing the same issue. Suggest me to sort this out.
Deploying shapado to heroku would require you to make a custom buildpack that has the binary dependencies that shapado needs built in. Instructions on how to do that can be found here https://blog.heroku.com/archives/2012/11/13/hacking-buildpacks. It is possible though.

How to Download Heroku on mac

I have been trying to download Heroku software to upload the rails app I made but every time I try to download it, it says it failed.
And what version of heroku should I be downloading?
if you have installed node and npm already, try this
npm install -g heroku
if you're using Homebrew, try this
brew tap heroku/brew && brew install heroku
once the installation is done, issue this to verify whether you've successfully installed Heroku on your Mac
heroku --version
You need to set up your local workstation with the Heroku command-line client and the Git revision control system by installing the Heroku Toolbelt. Check out this link to download Heroku toolbelt.
Heroku is a hosting service and there is nothing to download. You can sign up at Heroku.com and there are instructions on the site for how to upload your app.

Resources