Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openstudio_meta install_gems certificate verify failed for rubygems #266

Closed
rHorsey opened this issue Feb 13, 2018 · 2 comments
Closed

openstudio_meta install_gems certificate verify failed for rubygems #266

rHorsey opened this issue Feb 13, 2018 · 2 comments
Assignees
Labels

Comments

@rHorsey
Copy link
Contributor

rHorsey commented Feb 13, 2018

reported by @ljbrackney:

lbrackne-30017s:OpenStudio-server lbrackne$ ../ruby/bin/ruby ./bin/openstudio_meta install_gems
git version 2.10.1 (Apple Git-78)
ERROR:  Could not find a valid gem ‘bundler’ (= 1.12.5), here is why:
        Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
E, [2018-02-12T15:04:24.476358 #46045] ERROR -- : System call ‘/Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/ruby/bin/ruby /Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/ruby/bin/gem install --no-env-shebang bundler -v 1.12.5 && /Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/ruby/bin/ruby /Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/OpenStudio-server/gems/bin/bundle config build.nokogiri --use-system-libraries --with-xml2-lib=/usr/lib --with-xml2-include=/usr/include && /Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/ruby/bin/ruby /Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/OpenStudio-server/gems/bin/bundle install --without development test docker && /Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/ruby/bin/ruby /Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/OpenStudio-server/gems/bin/bundle update && /Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/ruby/bin/ruby /Applications/OpenStudio-2.4.1/ParametricAnalysisTool.app/Contents/Resources/OpenStudio-server/gems/bin/rake assets:precompile’ failed
@rHorsey
Copy link
Contributor Author

rHorsey commented Feb 13, 2018

This often is a result of the network refusing 443 (https) traffic. This often happens to NREL employees. To fix this please run

$ gem sources -r https://rubygems.org/
https://rubygems.org/ removed from sources

$ gem sources -a http://rubygems.org/
https://rubygems.org is recommended for security over http://rubygems.org/
Do you want to add this insecure source? [yn]  y
http://rubygems.org/ added to sources

@rHorsey
Copy link
Contributor Author

rHorsey commented Feb 13, 2018

Also, this issue and other related to local system configuration issues are discussed in https://github.com/NREL/OpenStudio-server/wiki/Common-Local-Configuration-Issues

@rHorsey rHorsey closed this as completed Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant