papertrail / papertrail-cli

Command-line client for Papertrail hosted syslog & app log management service
http://papertrailapp.com/
MIT License
427 stars 46 forks source link

Certificate verify failed #71

Closed tspecht closed 8 years ago

tspecht commented 8 years ago

Hey guys,

I'm trying to run the papertrail-cli to tail some logs programatically and am getting the following error:

/usr/lib/ruby/2.2.0/net/http.rb:923:in `connect': SSL_connect returned=1 errno=0 state=error: certificate verify failed (OpenSSL::SSL::SSLError)
    from /usr/lib/ruby/2.2.0/net/http.rb:923:in `block in connect'
    from /usr/lib/ruby/2.2.0/timeout.rb:73:in `timeout'
    from /usr/lib/ruby/2.2.0/net/http.rb:923:in `connect'
    from /usr/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
    from /usr/lib/ruby/2.2.0/net/http.rb:852:in `start'
    from /usr/lib/ruby/2.2.0/net/http.rb:1375:in `request'
    from /usr/lib/ruby/2.2.0/net/http.rb:1133:in `get'
    from /usr/lib/ruby/gems/2.2.0/gems/papertrail-0.9.15/lib/papertrail/http_client.rb:47:in `get'
    from /usr/lib/ruby/gems/2.2.0/gems/papertrail-0.9.15/lib/papertrail/search_query.rb:16:in `search'
    from /usr/lib/ruby/gems/2.2.0/gems/papertrail-0.9.15/lib/papertrail/cli.rb:129:in `block in run'
    from /usr/lib/ruby/gems/2.2.0/gems/papertrail-0.9.15/lib/papertrail/cli.rb:128:in `loop'
    from /usr/lib/ruby/gems/2.2.0/gems/papertrail-0.9.15/lib/papertrail/cli.rb:128:in `run'
    from /usr/lib/ruby/gems/2.2.0/gems/papertrail-0.9.15/bin/papertrail:5:in `<top (required)>'
    from /usr/bin/papertrail:23:in `load'
    from /usr/bin/papertrail:23:in `<main>'

any idea?

tspecht commented 8 years ago

For future people out there using Alpine as base images: Make sure you install the ca-certificates package ;)