Rails 7 App deployment

Hello render team,

I’m having trouble deploying a brand new rails 7 app that I built just for kicks but de deployment always fails and the error is not clear:

This is what the logs show after failure:

Jul 15 05:37:10 PM  ==> Detected Ruby version 3.1.2
Jul 15 05:37:19 PM  Updating rubygems-update
Jul 15 05:37:19 PM  Successfully installed rubygems-update-3.3.18
Jul 15 05:37:19 PM  Installing RubyGems 3.3.18
Jul 15 05:37:20 PM    Successfully built RubyGem
Jul 15 05:37:20 PM    Name: bundler
Jul 15 05:37:20 PM    Version: 2.3.18
Jul 15 05:37:20 PM    File: bundler-2.3.18.gem
Jul 15 05:37:20 PM  Bundler 2.3.18 installed
Jul 15 05:37:20 PM  RubyGems 3.3.18 installed
Jul 15 05:37:20 PM  Regenerating binstubs
Jul 15 05:37:20 PM  Regenerating plugins
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  # 3.3.18 / 2022-07-14
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Enhancements:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Make platform `universal-mingw32` match "x64-mingw-ucrt". Pull request
Jul 15 05:37:20 PM    #5655 by johnnyshields
Jul 15 05:37:20 PM  * Add more descriptive messages when `gem update` fails to update some
Jul 15 05:37:20 PM    gems. Pull request #5676 by brianleshopify
Jul 15 05:37:20 PM  * Installs bundler 2.3.18 as a default gem.
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Bug fixes:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Make sure RubyGems prints no warnings when loading plugins. Pull request
Jul 15 05:37:20 PM    #5607 by deivid-rodriguez
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  # 3.3.17 / 2022-06-29
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Enhancements:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Document `gem env` argument aliases and add `gem env user_gemhome` and
Jul 15 05:37:20 PM    `gem env user_gemdir`. Pull request #5644 by deivid-rodriguez
Jul 15 05:37:20 PM  * Improve error message when `operating_system.rb` fails to load. Pull
Jul 15 05:37:20 PM    request #5658 by deivid-rodriguez
Jul 15 05:37:20 PM  * Clean up temporary directory after `generate_index --update`. Pull
Jul 15 05:37:20 PM    request #5653 by graywolf-at-work
Jul 15 05:37:20 PM  * Simplify extension builder. Pull request #5626 by deivid-rodriguez
Jul 15 05:37:20 PM  * Installs bundler 2.3.17 as a default gem.
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Documentation:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Modify RubyGems issue template to be like the one for Bundler. Pull
Jul 15 05:37:20 PM    request #5643 by deivid-rodriguez
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  # 3.3.16 / 2022-06-15
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Enhancements:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Auto-fix and warn gem packages including a gemspec with `require_paths`
Jul 15 05:37:20 PM    as an array of arrays. Pull request #5615 by deivid-rodriguez
Jul 15 05:37:20 PM  * Misc cargo builder improvements. Pull request #5459 by ianks
Jul 15 05:37:20 PM  * Installs bundler 2.3.16 as a default gem.
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Bug fixes:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Fix incorrect password redaction when there's an error in `gem source
Jul 15 05:37:20 PM    -a`. Pull request #5623 by deivid-rodriguez
Jul 15 05:37:20 PM  * Fix another regression when loading old marshaled specs. Pull request
Jul 15 05:37:20 PM    #5610 by deivid-rodriguez
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  # 3.3.15 / 2022-06-01
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Enhancements:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Support the change of did_you_mean about `Exception#detailed_message`.
Jul 15 05:37:20 PM    Pull request #5560 by mame
Jul 15 05:37:20 PM  * Installs bundler 2.3.15 as a default gem.
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Bug fixes:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Fix loading old marshaled specs including `YAML::PrivateType` constant.
Jul 15 05:37:20 PM    Pull request #5415 by deivid-rodriguez
Jul 15 05:37:20 PM  * Fix rubygems update when non default `--install-dir` is configured. Pull
Jul 15 05:37:20 PM    request #5566 by deivid-rodriguez
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  # 3.3.14 / 2022-05-18
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Enhancements:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Installs bundler 2.3.14 as a default gem.
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  # 3.3.13 / 2022-05-04
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Enhancements:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Installs bundler 2.3.13 as a default gem.
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Bug fixes:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Fix regression when resolving ruby constraints. Pull request #5486 by
Jul 15 05:37:20 PM    deivid-rodriguez
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  ## Documentation:
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  * Clarify description of owner-flags. Pull request #5497 by kronn
Jul 15 05:37:20 PM  
Jul 15 05:37:20 PM  # 3.3.12 / 2022-04-20
Jul 15 05:37:20 PM

I can’t understand what actually failed.
Can you help me with this?

Yours trully,
John

Ok, for future reference and for those who might find themselves without knowing what to do.

I think I found the reason, two thinks where happening.

  1. I noticed that I had a typo in my “Build Command” which made the deployment fail right after cloning the repo and no specific error was raised.
  2. Had to run bundle lock --add-platform x86_64-linux on my mac, to add “x86_64-linux” under the platforms key to Gemfile.lock, which is required for bundle to work on render.com’s machines.

Hope this helps somebody :+1:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.