R
Railway16mo ago
macwilko

Builds going in a loop on Installing ruby-3.2.2

I've noticed builds are looping on this step, going round and round. Looking like maybe the download is failing?
#10 4.093 To follow progress, use 'tail -f /tmp/ruby-build.20230803152654.130.log' or pass --verbose

#10 4.181 Downloading ruby-3.2.2.tar.gz...
#10 4.181 -> https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz

#10 8.146 Installing ruby-3.2.2...

==============
Using Nixpacks
==============

context: bc4e4bbf792e70dd7bf965d8479732b0
#10 4.093 To follow progress, use 'tail -f /tmp/ruby-build.20230803152654.130.log' or pass --verbose

#10 4.181 Downloading ruby-3.2.2.tar.gz...
#10 4.181 -> https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz

#10 8.146 Installing ruby-3.2.2...

==============
Using Nixpacks
==============

context: bc4e4bbf792e70dd7bf965d8479732b0
Solution:
do you think you could open an issue in the nixpacks repo? https://github.com/railwayapp/nixpacks/issues...
Jump to solution
11 Replies
Percy
Percy16mo ago
Project ID: d1c85c02-8ca5-43c3-adc6-4a24cb066e33
macwilko
macwilkoOP16mo ago
d1c85c02-8ca5-43c3-adc6-4a24cb066e33
Brody
Brody16mo ago
where are you seeing the looping? in the railway web ui or the cli?
macwilko
macwilkoOP16mo ago
in the logs at railway
#13 7.745 --- TEMPLATE END ----------------------------------------------------------------
#13 7.745
#13 7.893 Unfortunately, an unexpected error occurred, and Bundler cannot continue.
#13 7.893
#13 7.893 First, try this link to see if there are any existing issue reports for this error:
#13 7.893 https://github.com/rubygems/rubygems/search?q=No+such+file+or+directory+%40+rb_sysopen+-+%2Froot%2F.bundle%2Fcache%2Fcompact_index%2Frubygems.org.443.29b0360b937aa4d161703e6160654e47%2Finfo%2Faws-sdk-rds.1.tmp&type=Issues
#13 7.893
#13 7.893 If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there.
-----

Dockerfile:22
-------------------
20 | COPY Gemfile /app/Gemfile
21 | COPY Gemfile.lock /app/Gemfile.lock
22 | >>> RUN --mount=type=cache,id=s/272cd456-7038-4e9e-9ed2-28a995039a06-/root/bundle/cache,target=/root/.bundle/cache bundle install
23 | RUN --mount=type=cache,id=s/272cd456-7038-4e9e-9ed2-28a995039a06-/root/bundle/cache,target=/root/.bundle/cache bundle exec bootsnap precompile --gemfile
24 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c bundle install" did not complete successfully: exit code: 1

#13 7.745 --- TEMPLATE END ----------------------------------------------------------------
#13 7.745
#13 7.893 Unfortunately, an unexpected error occurred, and Bundler cannot continue.
#13 7.893
#13 7.893 First, try this link to see if there are any existing issue reports for this error:
#13 7.893 https://github.com/rubygems/rubygems/search?q=No+such+file+or+directory+%40+rb_sysopen+-+%2Froot%2F.bundle%2Fcache%2Fcompact_index%2Frubygems.org.443.29b0360b937aa4d161703e6160654e47%2Finfo%2Faws-sdk-rds.1.tmp&type=Issues
#13 7.893
#13 7.893 If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there.
-----

Dockerfile:22
-------------------
20 | COPY Gemfile /app/Gemfile
21 | COPY Gemfile.lock /app/Gemfile.lock
22 | >>> RUN --mount=type=cache,id=s/272cd456-7038-4e9e-9ed2-28a995039a06-/root/bundle/cache,target=/root/.bundle/cache bundle install
23 | RUN --mount=type=cache,id=s/272cd456-7038-4e9e-9ed2-28a995039a06-/root/bundle/cache,target=/root/.bundle/cache bundle exec bootsnap precompile --gemfile
24 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c bundle install" did not complete successfully: exit code: 1

Solution
Brody
Brody16mo ago
do you think you could open an issue in the nixpacks repo? https://github.com/railwayapp/nixpacks/issues
macwilko
macwilkoOP16mo ago
sure thing! it's resolved now
Brody
Brody16mo ago
what was the issue?
macwilko
macwilkoOP16mo ago
i'm guessing something in the chain of dependencies was failing to download ERROR: failed to solve: process "/bin/bash -ol pipefail -c bundle install" did not complete successfully: exit code: 1 bundle install is like, yarn install
Brody
Brody16mo ago
so you've since gotten it to build successfully?
macwilko
macwilkoOP16mo ago
yep there were no changes on the project side, just needed to trigger a rebuild
Brody
Brody16mo ago
awesome odd
Want results from more Discord servers?
Add your server