Build error

I'm getting this error on deploy
#8 ERROR: process "/bin/bash -ol pipefail -c curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\\neval \"$(~/.rbenv/bin/rbenv init -)\"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24" did not complete successfully: exit code: 60
-----
> [stage-0 4/14] RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\neval "$(~/.rbenv/bin/rbenv init -)"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24:
#8 0.901 curl: (60) SSL: no alternative certificate subject name matches target host name 'raw.githubusercontent.com'
#8 0.901 More details here: https://curl.se/docs/sslcerts.html
#8 0.901
#8 0.901 curl failed to verify the legitimacy of the server and therefore could not
#8 0.901 establish a secure connection to it. To learn more about this situation and
#8 0.901 how to fix it, please visit the web page mentioned above.
-----

Dockerfile:15
-------------------
13 | # setup phase
14 | ENV NIXPACKS_PATH $HOME/.rbenv/bin:$NIXPACKS_PATH
15 | >>> RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\neval "$(~/.rbenv/bin/rbenv init -)"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24
16 |
17 | # install phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\\neval \"$(~/.rbenv/bin/rbenv init -)\"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24" did not complete successfully: exit code: 60

Error: Docker build failed
#8 ERROR: process "/bin/bash -ol pipefail -c curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\\neval \"$(~/.rbenv/bin/rbenv init -)\"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24" did not complete successfully: exit code: 60
-----
> [stage-0 4/14] RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\neval "$(~/.rbenv/bin/rbenv init -)"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24:
#8 0.901 curl: (60) SSL: no alternative certificate subject name matches target host name 'raw.githubusercontent.com'
#8 0.901 More details here: https://curl.se/docs/sslcerts.html
#8 0.901
#8 0.901 curl failed to verify the legitimacy of the server and therefore could not
#8 0.901 establish a secure connection to it. To learn more about this situation and
#8 0.901 how to fix it, please visit the web page mentioned above.
-----

Dockerfile:15
-------------------
13 | # setup phase
14 | ENV NIXPACKS_PATH $HOME/.rbenv/bin:$NIXPACKS_PATH
15 | >>> RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\neval "$(~/.rbenv/bin/rbenv init -)"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24
16 |
17 | # install phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\\neval \"$(~/.rbenv/bin/rbenv init -)\"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24" did not complete successfully: exit code: 60

Error: Docker build failed
Solution:
I'm getting this error on deploy ``` #8 ERROR: process "/bin/bash -ol pipefail -c curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\neval "$(~/.rbenv/bin/rbenv init -)"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24" did not complete successfully: exit code: 60 -----
[stage-0 4/14] RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash -s stable && printf '\neval "$(~/.rbenv/bin/rbenv init -)"' >> /root/.profile && . /root/.profile && rbenv install 3.0.4 && rbenv global 3.0.4 && gem install bundler:2.3.24:...
Jump to solution
4 Replies
Percy
Percy16mo ago
Project ID: 1fa039a4-0d72-4645-8044-f65788e406f2
dwaynemac
dwaynemac16mo ago
1fa039a4-0d72-4645-8044-f65788e406f2 Relevant part of the log seems to be:
curl: (60) SSL: no alternative certificate subject name matches target host name 'raw.githubusercontent.com'
curl: (60) SSL: no alternative certificate subject name matches target host name 'raw.githubusercontent.com'
3.14ki
3.14ki16mo ago
Same on my end. GitLab CI/CD Log on the screenshot
dwaynemac
dwaynemac16mo ago
Looks like it's been solved now
Want results from more Discord servers?
Add your server