question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

embulk selfupdate raise OpenSSL::SSL::SSLError exception on some environment.(ex Ubuntu)

See original GitHub issue

Some 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:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
hiroyuki-satocommented, Aug 15, 2016

After executing the following commands, the problem has solved.

sudo curl -o /usr/local/share/ca-certificates/GTEGlRoot.crt https://www.cybertrust.ne.jp/sureserver/download/root_ca/GTEGlRoot.txt
sudo update-ca-certificates

Without this command, curl command worked properly. But rubyopen-uri does not work properly.

I’m not sure why??

0reactions
frsyukicommented, Nov 2, 2016

I would say this is an integration problem of curl package of Ubuntu 16.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found