Rails Deployment

Hello,

I have a Rails APi that I am trying to deploy. I am fresh out of a boot camp so this is very new to me. I follow the instructors provided, and also googled some solutions and was wondering if anyone could assist. Here is my last deploy log, and I am sure I am doing something wrong with the build file.:
Sep 22 05:43:11 PM ==> Cloning from GitHub - CSchadeck/p5-back-end-project: Phase 5 capstone project back end repo
Sep 22 05:43:11 PM ==> Checking out commit c67d0907da86c3713aea1775dc20f6b73d9d7b7b in branch main
Sep 22 05:43:14 PM ==> Downloading cache…
Sep 22 05:43:26 PM ==> Detected Node version 16.17.0
Sep 22 05:43:26 PM ==> Running build command ‘./bin/render-build.sh’…
Sep 22 05:43:26 PM ./bin/render-build.sh: line 5: bundle: command not found
Sep 22 05:43:26 PM ==> Build failed :disappointed:

Fo any referance the github link is here: BackEnd Project

Thank you all in advance.

Hi @Corey_Schadeck,

It looks like you’ve created your service using our native Node environment, and the bundle command is not found, likely because it’s not installed for that environment. Can you recreate your service and in the service creation form, select Ruby from the environment dropdown?

Best,

@Jade_Paoletta Ah! thank you for pointing that out. It got me further along.

Running into another issue that I am trouble shooting with no luck.

Sep 23 11:09:16 AM ==> Cloning from GitHub - CSchadeck/p5-back-end-project: Phase 5 capstone project back end repo
Sep 23 11:09:17 AM ==> Checking out commit a5bbb3f6aa0894e9b84e3e26d85e55e127d8f34b in branch main
Sep 23 11:09:21 AM ==> Downloading cache…
Sep 23 11:09:38 AM ==> Transferred 124MB in 10s. Extraction took 5s.
Sep 23 11:09:43 AM ==> Detected Node version 16.17.0
Sep 23 11:09:49 AM ==> Running build command ‘./bin/render-build.sh’…
Sep 23 11:09:50 AM Using rake 13.0.3
Sep 23 11:09:50 AM Using concurrent-ruby 1.1.9
Sep 23 11:09:50 AM Using i18n 1.8.10
Sep 23 11:09:50 AM Using minitest 5.14.4
Sep 23 11:09:50 AM Using tzinfo 2.0.4
Sep 23 11:09:50 AM Using zeitwerk 2.4.2
Sep 23 11:09:50 AM Using activesupport 6.1.3.2
Sep 23 11:09:50 AM Using builder 3.2.4
Sep 23 11:09:50 AM Using erubi 1.10.0
Sep 23 11:09:50 AM Using mini_portile2 2.5.3
Sep 23 11:09:50 AM Using racc 1.5.2
Sep 23 11:09:50 AM Using nokogiri 1.11.7
Sep 23 11:09:50 AM Using rails-dom-testing 2.0.3
Sep 23 11:09:50 AM Using crass 1.0.6
Sep 23 11:09:50 AM Using loofah 2.10.0
Sep 23 11:09:50 AM Using rails-html-sanitizer 1.3.0
Sep 23 11:09:50 AM Using actionview 6.1.3.2
Sep 23 11:09:50 AM Using rack 2.2.3
Sep 23 11:09:50 AM Using rack-test 1.1.0
Sep 23 11:09:50 AM Using actionpack 6.1.3.2
Sep 23 11:09:50 AM Using nio4r 2.5.7
Sep 23 11:09:50 AM Using websocket-extensions 0.1.5
Sep 23 11:09:50 AM Using websocket-driver 0.7.4
Sep 23 11:09:50 AM Using actioncable 6.1.3.2
Sep 23 11:09:50 AM Using globalid 0.4.2
Sep 23 11:09:50 AM Using activejob 6.1.3.2
Sep 23 11:09:50 AM Using activemodel 6.1.3.2
Sep 23 11:09:50 AM Using activerecord 6.1.3.2
Sep 23 11:09:50 AM Using marcel 1.0.1
Sep 23 11:09:50 AM Using mini_mime 1.0.3
Sep 23 11:09:50 AM Using activestorage 6.1.3.2
Sep 23 11:09:50 AM Using mail 2.7.1
Sep 23 11:09:50 AM Using actionmailbox 6.1.3.2
Sep 23 11:09:50 AM Using actionmailer 6.1.3.2
Sep 23 11:09:50 AM Using actiontext 6.1.3.2
Sep 23 11:09:50 AM Using case_transform 0.2
Sep 23 11:09:50 AM Using jsonapi-renderer 0.2.2
Sep 23 11:09:50 AM Using active_model_serializers 0.10.12
Sep 23 11:09:50 AM Using bcrypt 3.1.16
Sep 23 11:09:50 AM Using msgpack 1.4.2
Sep 23 11:09:50 AM Using bootsnap 1.7.5
Sep 23 11:09:50 AM Using bundler 2.2.24
Sep 23 11:09:50 AM Using method_source 1.0.0
Sep 23 11:09:50 AM Using pg 1.2.3
Sep 23 11:09:50 AM Using puma 5.3.2
Sep 23 11:09:50 AM Using rack-cors 1.1.1
Sep 23 11:09:50 AM Using thor 1.1.0
Sep 23 11:09:50 AM Using railties 6.1.3.2
Sep 23 11:09:50 AM Using sprockets 4.0.2
Sep 23 11:09:50 AM Using sprockets-rails 3.2.2
Sep 23 11:09:50 AM Using rails 6.1.3.2
Sep 23 11:09:50 AM Bundle complete! 14 Gemfile dependencies, 51 gems now installed.
Sep 23 11:09:50 AM Gems in the groups ‘development’ and ‘test’ were not installed.
Sep 23 11:09:50 AM Bundled gems are installed into /opt/render/project/.gems
Sep 23 11:09:53 AM rake aborted!
Sep 23 11:09:53 AM Don’t know how to build task ‘assets:precompile’ (See the list of available tasks with rake --tasks)
Sep 23 11:09:53 AM /opt/render/project/.gems/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in <top (required)>' Sep 23 11:09:53 AM /opt/render/project/.gems/bin/bundle:113:in load’
Sep 23 11:09:53 AM /opt/render/project/.gems/bin/bundle:113:in `’
Sep 23 11:09:53 AM (See full trace by running task with --trace)
Sep 23 11:09:53 AM ==> Build failed :disappointed:
Sep 23 11:09:53 AM ==> Generating container image from build. This may take a few minutes…

As of today my deploy ment is failing and not listing any logs. My last deployment was as follows, and have been trying to trouble shoot, but not sure where to begin. Any help would be great. Thank you:
Sep 23 11:09:16 AM ==> Cloning from GitHub - CSchadeck/p5-back-end-project: Phase 5 capstone project back end repo
Sep 23 11:09:17 AM ==> Checking out commit a5bbb3f6aa0894e9b84e3e26d85e55e127d8f34b in branch main
Sep 23 11:09:21 AM ==> Downloading cache…
Sep 23 11:09:38 AM ==> Transferred 124MB in 10s. Extraction took 5s.
Sep 23 11:09:43 AM ==> Detected Node version 16.17.0
Sep 23 11:09:49 AM ==> Running build command ‘./bin/render-build.sh’…
Sep 23 11:09:50 AM Using rake 13.0.3
Sep 23 11:09:50 AM Using concurrent-ruby 1.1.9
Sep 23 11:09:50 AM Using i18n 1.8.10
Sep 23 11:09:50 AM Using minitest 5.14.4
Sep 23 11:09:50 AM Using tzinfo 2.0.4
Sep 23 11:09:50 AM Using zeitwerk 2.4.2
Sep 23 11:09:50 AM Using activesupport 6.1.3.2
Sep 23 11:09:50 AM Using builder 3.2.4
Sep 23 11:09:50 AM Using erubi 1.10.0
Sep 23 11:09:50 AM Using mini_portile2 2.5.3
Sep 23 11:09:50 AM Using racc 1.5.2
Sep 23 11:09:50 AM Using nokogiri 1.11.7
Sep 23 11:09:50 AM Using rails-dom-testing 2.0.3
Sep 23 11:09:50 AM Using crass 1.0.6
Sep 23 11:09:50 AM Using loofah 2.10.0
Sep 23 11:09:50 AM Using rails-html-sanitizer 1.3.0
Sep 23 11:09:50 AM Using actionview 6.1.3.2
Sep 23 11:09:50 AM Using rack 2.2.3
Sep 23 11:09:50 AM Using rack-test 1.1.0
Sep 23 11:09:50 AM Using actionpack 6.1.3.2
Sep 23 11:09:50 AM Using nio4r 2.5.7
Sep 23 11:09:50 AM Using websocket-extensions 0.1.5
Sep 23 11:09:50 AM Using websocket-driver 0.7.4
Sep 23 11:09:50 AM Using actioncable 6.1.3.2
Sep 23 11:09:50 AM Using globalid 0.4.2
Sep 23 11:09:50 AM Using activejob 6.1.3.2
Sep 23 11:09:50 AM Using activemodel 6.1.3.2
Sep 23 11:09:50 AM Using activerecord 6.1.3.2
Sep 23 11:09:50 AM Using marcel 1.0.1
Sep 23 11:09:50 AM Using mini_mime 1.0.3
Sep 23 11:09:50 AM Using activestorage 6.1.3.2
Sep 23 11:09:50 AM Using mail 2.7.1
Sep 23 11:09:50 AM Using actionmailbox 6.1.3.2
Sep 23 11:09:50 AM Using actionmailer 6.1.3.2
Sep 23 11:09:50 AM Using actiontext 6.1.3.2
Sep 23 11:09:50 AM Using case_transform 0.2
Sep 23 11:09:50 AM Using jsonapi-renderer 0.2.2
Sep 23 11:09:50 AM Using active_model_serializers 0.10.12
Sep 23 11:09:50 AM Using bcrypt 3.1.16
Sep 23 11:09:50 AM Using msgpack 1.4.2
Sep 23 11:09:50 AM Using bootsnap 1.7.5
Sep 23 11:09:50 AM Using bundler 2.2.24
Sep 23 11:09:50 AM Using method_source 1.0.0
Sep 23 11:09:50 AM Using pg 1.2.3
Sep 23 11:09:50 AM Using puma 5.3.2
Sep 23 11:09:50 AM Using rack-cors 1.1.1
Sep 23 11:09:50 AM Using thor 1.1.0
Sep 23 11:09:50 AM Using railties 6.1.3.2
Sep 23 11:09:50 AM Using sprockets 4.0.2
Sep 23 11:09:50 AM Using sprockets-rails 3.2.2
Sep 23 11:09:50 AM Using rails 6.1.3.2
Sep 23 11:09:50 AM Bundle complete! 14 Gemfile dependencies, 51 gems now installed.
Sep 23 11:09:50 AM Gems in the groups ‘development’ and ‘test’ were not installed.
Sep 23 11:09:50 AM Bundled gems are installed into /opt/render/project/.gems
Sep 23 11:09:53 AM rake aborted!
Sep 23 11:09:53 AM Don’t know how to build task ‘assets:precompile’ (See the list of available tasks with rake --tasks )
Sep 23 11:09:53 AM /opt/render/project/.gems/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in <top (required)>' Sep 23 11:09:53 AM /opt/render/project/.gems/bin/bundle:113:in load’
Sep 23 11:09:53 AM /opt/render/project/.gems/bin/bundle:113:in `’
Sep 23 11:09:53 AM (See full trace by running task with --trace)
Sep 23 11:09:53 AM ==> Build failed :disappointed:
Sep 23 11:09:53 AM ==> Generating container image from build. This may take a few minutes…

Hi @Corey_Schadeck,

We had an issue affecting deploy logs, which we have updated our status page on: https://status.render.com/incidents/b025p2rnxyzs. Our engineers have deployed a fix for this, so I’d recommend trying to redeploy to view your latest deploy logs.

Regarding the error you’re seeing, I see the users on this thread referencing something similar. Perhaps that would be a good starting point to troubleshoot? https://stackoverflow.com/questions/7205964/how-to-build-task-assetsprecompile