No longer Auto DevOps compliant due to outdated Ruby v.3.0.4
Enabling Auto Devops on a project built based on this template doesn't seem to successfully build anymore.
The initial error is due to Ruby v.3.0.4 not being found in Heroku, but even updating that to the first supported version (3.1.6) still lead to errors later on.
On 3.0.4
These details remain hidden until expanded.
# Heroku Ruby Buildpack
- Metrics agent
- Skipping install (`barnes` gem not found)
- Ruby version `3.0.4` from `Gemfile.lock`
- Installing ... (< 0.1s)
- Debug info
- Download error: https://heroku-buildpack-ruby.s3.us-east-1.amazonaws.com/heroku-22/ruby-3.0.4.tgz: status code 404
! Error installing Ruby
!
! Could not install the detected Ruby version. Ensure that you're using a supported
! ruby version and try again.
!
! Supported ruby versions:
! https://devcenter.heroku.com/articles/ruby-support#ruby-versions
ERROR: failed to build: exit status 1
ERROR: failed to build: executing lifecycle: failed with status code: 51
On Rails 3.1.6
- Running `bundle exec rake assets:precompile assets:clean --trace`
You don't have net-smtp installed in your application. Please add it to your Gemfile and run bundle install
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke yarn:install (first_time)
** Execute yarn:install
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 2.55s.
** Execute assets:precompile
I, [2024-06-17T13:48:31.758360 #1046] INFO -- : Writing /workspace/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js
I, [2024-06-17T13:48:31.758758 #1046] INFO -- : Writing /workspace/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz
I, [2024-06-17T13:48:31.759034 #1046] INFO -- : Writing /workspace/public/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2024-06-17T13:48:31.759156 #1046] INFO -- : Writing /workspace/public/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
I, [2024-06-17T13:48:31.759527 #1046] INFO -- : Writing /workspace/public/assets/welcome-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2024-06-17T13:48:31.759669 #1046] INFO -- : Writing /workspace/public/assets/welcome-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
** Invoke webpacker:compile (first_time)
** Invoke webpacker:verify_install (first_time)
** Invoke webpacker:check_node (first_time)
** Execute webpacker:check_node
** Invoke webpacker:check_yarn (first_time)
** Execute webpacker:check_yarn
** Invoke webpacker:check_binstubs (first_time)
** Execute webpacker:check_binstubs
** Execute webpacker:verify_install
** Invoke environment
** Execute webpacker:compile
Compiling...
Compilation failed:
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
node:internal/crypto/hash:79
this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:79:19)
at Object.createHash (node:crypto:139:10)
at module.exports (/workspace/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/workspace/node_modules/webpack/lib/NormalModule.js:417:16)
at /workspace/node_modules/webpack/lib/NormalModule.js:452:10
at /workspace/node_modules/webpack/lib/NormalModule.js:323:13
at /workspace/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /workspace/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/workspace/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /workspace/node_modules/babel-loader/lib/index.js:59:103 {
opensslErrorStack: [
'error:03000086:digital envelope routines::initialization error',
'error:0308010C:digital envelope routines::unsupported'
],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v20.14.0
- Done (6.519s)
- Debug info
- Command failed `bundle exec rake assets:precompile assets:clean --trace`
exit status: 1
stdout:
stderr:
! Error compiling assets
!
! An error occured while compiling assets via rake command.
!
! Ensure you can run the following command locally with no errors before attempting another build:
!
! `bundle exec rake assets:precompile assets:clean --trace`
Edited by Daniel Diniz