embulk selfupdate raise OpenSSL::SSL::SSLError exception on some environment.(ex Ubuntu)
See original GitHub issueSome OSex(Ubuntu, Amazon linux) can’t execute SSL related command.
(ex. embulk selfupdate
, embulk-output-bigquery
plugin))
I tested selfupdate on Ubuntu 16.06 and 14.04.
Ubuntu 16.04.1 LTS
Java: openjdk8
Environment setup
vagrant init ubuntu/xenial64
vagrant up
sudo apt-get install openjdk-8-jdk
curl --create-dirs -o ~/.embulk/bin/embulk -L "http://dl.embulk.org/embulk-latest.jar"
chmod +x ~/.embulk/bin/embulk
echo 'export PATH="$HOME/.embulk/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Embulk 0.8.9
./embulk selfupdate
2016-08-12 07:58:28.222 +0000: Embulk v0.8.9
Checking the latest version...
Found new version 0.8.12.
Downloading https://dl.bintray.com/embulk/maven/embulk-0.8.12.jar ...
OpenSSL::SSL::SSLError: certificate verify failed
connect at org/jruby/ext/openssl/SSLSocket.java:215
block in connect at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:927
timeout at org/jruby/ext/timeout/Timeout.java:127
connect at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:927
do_start at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:867
start at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:856
open_http at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:318
buffer_open at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:736
block in open_loop at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:211
catch at org/jruby/RubyKernel.java:1096
open_loop at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:209
open_uri at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:150
block in selfupdate at /home/ubuntu/embulk!/embulk/command/embulk_selfupdate.rb:56
open at org/jruby/RubyIO.java:1124
selfupdate at /home/ubuntu/embulk!/embulk/command/embulk_selfupdate.rb:54
run at /home/ubuntu/embulk!/embulk/command/embulk_run.rb:283
<top> at /home/ubuntu/embulk!/embulk/command/embulk_main.rb:2
require at org/jruby/RubyKernel.java:937
(root) at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<top> at file:/home/ubuntu/embulk!/embulk/command/embulk_bundle.rb:51
embulk 0.8.12
embulk selfupdate 0.8.12
2016-08-12 08:01:52.662 +0000: Embulk v0.8.12
Checking version 0.8.12...
Found version 0.8.12.
Downloading https://dl.bintray.com/embulk/maven/embulk-0.8.12.jar ...
OpenSSL::SSL::SSLError: certificate verify failed
connect_nonblock at org/jruby/ext/openssl/SSLSocket.java:225
connect at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:938
do_start at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:868
start at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:857
open_http at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:319
buffer_open at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:737
block in open_loop at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:212
catch at org/jruby/RubyKernel.java:1103
open_loop at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:210
open_uri at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/open-uri.rb:151
block in selfupdate at /home/ubuntu/.embulk/bin/embulk!/embulk/command/embulk_selfupdate.rb:56
open at org/jruby/RubyIO.java:1131
selfupdate at /home/ubuntu/.embulk/bin/embulk!/embulk/command/embulk_selfupdate.rb:54
run at /home/ubuntu/.embulk/bin/embulk!/embulk/command/embulk_run.rb:279
<top> at /home/ubuntu/.embulk/bin/embulk!/embulk/command/embulk_main.rb:2
require at org/jruby/RubyKernel.java:944
(root) at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<top> at file:/home/ubuntu/.embulk/bin/embulk!/embulk/command/embulk_bundle.rb:51
Reference (Japanese text)
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After executing the following commands, the problem has solved.
Without this command,
curl
command worked properly. But rubyopen-uri
does not work properly.I’m not sure why??
I would say this is an integration problem of curl package of Ubuntu 16.