openaustralia / morph

Take the hassle out of web scraping
https://morph.io
GNU Affero General Public License v3.0
461 stars 74 forks source link

Cannot run ruby 3.1.6 scraper #1336

Open ianheggie-oaf opened 1 month ago

ianheggie-oaf commented 1 month ago

When trying to run ruby 3.1.6 (the oldest supported ruby listed in https://devcenter.heroku.com/articles/ruby-support#supported-runtimes, and currently the default) I get the following error:

Injecting configuration and compiling...
       [1G-----> Ruby app detected
-----> Compiling Ruby/Rack
       Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 30 --max-time 180 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-3.1.6.tgz -s -o - | tar zxf - ' failed on attempt 1 of 3.
       Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 30 --max-time 180 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-3.1.6.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3.
       !
       !     An error occurred while installing ruby-3.1.6
       !
       !     Heroku recommends you use the latest supported Ruby version listed here:
       !     https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
       !
       !     For more information on syntax for declaring a Ruby version see:
       !     https://devcenter.heroku.com/articles/ruby-versions
       !
       !
       !     Debug InformationCommand: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 30 --max-time 180 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-3.1.6.tgz -s -o - | tar zxf - ' failed unexpectedly:
       !
       !     gzip: stdin: unexpected end of file
       !     tar: Child returned status 1
       !     tar: Error is not recoverable: exiting now

Note - that resource is not present:

wget https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-3.1.6.tgz
--2024-10-07 03:20:32--  https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-3.1.6.tgz
Resolving s3-external-1.amazonaws.com (s3-external-1.amazonaws.com)... 54.231.193.251, 16.182.70.227, 54.231.226.51, ...
Connecting to s3-external-1.amazonaws.com (s3-external-1.amazonaws.com)|54.231.193.251|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-10-07 03:20:33 ERROR 404: Not Found.

Working my way back through the versions, it appears the last version is 2.7.6 (released 12 Apr 2022, support ended for series 31 Mar 2023) for heroku cedar-14:

$ wget https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-2.7.6.tgz
--2024-10-07 03:24:32--  https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-2.7.6.tgz
Resolving s3-external-1.amazonaws.com (s3-external-1.amazonaws.com)... 16.182.105.131, 16.182.41.187, 16.182.41.67, ...
Connecting to s3-external-1.amazonaws.com (s3-external-1.amazonaws.com)|16.182.105.131|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19199838 (18M) []
Saving to: ‘ruby-2.7.6.tgz’

ruby-2.7.6.tgz                                                100%[=================================================================================================================================================>]  18.31M  6.68MB/s    in 2.7s    

2024-10-07 03:24:36 (6.68 MB/s) - ‘ruby-2.7.6.tgz’ saved [19199838/19199838]

Note: Ruby 3.2 and 3.3 are also unsupported