Closed joelmahoney closed 9 years ago
I was able to resolve this issue by running heroku repo:purge_cache
before heroku stack:set cedar-14
and then deploying. After doing so, RGeo::Geos.supported?
returned true
, unlike @beejamin's report in cyberdelia/heroku-geo-buildpack#23
I've got exactly the same issue with the same output as above on cedar-14. I'm also able resolve by running heroku repo purge:cache
which results in a successful build with RGeo::Geos.supported? => true
However, the next time I deploy I'm back to the same error. So basically not able to deploy without first running heroku repo purge:cache
.
Ran into something quite similar. Here's how we solved it:
heroku repo:purge_cache
(see: https://github.com/heroku/heroku-repo)git commit --allow-empty
)Basically gems get cached between deploys, even if you add a new buildpack. So you need to clear out the gem cache, then redeploy to rebuild gems. Output should look like...
$> git push heroku
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 317 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
remote: -----> Multipack app detected
remote: =====> Downloading Buildpack: https://github.com/cyberdelia/heroku-geo-buildpack.git
remote: =====> Detected Framework: geos/gdal/proj
remote: Using geos version: 3.4.2
remote: Using gdal version: 1.11.1
remote: Using proj version: 4.8.0_1
remote: -----> Fetching and vendoring geos
remote: -----> Fetching and vendoring gdal
remote: -----> Fetching and vendoring proj
remote: -----> Vendoring geo libraries done
remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
remote: =====> Detected Framework: Ruby
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.1.6
remote: -----> Installing dependencies using 1.6.3
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching source index from https://rubygems.org/
... [misc gem install stuff] ...
The important part here is that installing the geo buildpack comes before bundle install
.
After that I get...
$> heroku run rails c
irb> require 'rgeo'
=> false
irb> RGeo::Geos.supported?
=> true
irb> RGeo::CoordSys::Proj4.supported?
=> true
Hope this helps someone!
I attempted to upgrade a couple of projects to the cedar-14 stack and got an rgeo build error. Works fine on cedar-10. Here's the deploy error: