Error while connecting using discourse_theme cli

AI-generated summary

The user misham reports an SSL handshake failure error when using the discourse_theme CLI, which occurs intermittently after 30 seconds. The error suggests a certificate issue, though the site works fine in the browser. pfaffman suggests checking for DNS or networking issues and verifying that the OS and OpenSSL are up to date. misham confirms the site is functioning normally, indicating the problem may be specific to the CLI environment.

Hi! When using discourse_theme I often have problems with connection, it shows these error after 30s

/root/.rbenv/versions/3.1.2/lib/ruby/3.1.0/net/protocol.rb:46:in `connect_nonblock': SSL_connect returned=1 errno=0 peeraddr=192.203.230.10:443 state=error: sslv3 alert handshake failure (OpenSSL::SSL::SSLError)
        from /root/.rbenv/versions/3.1.2/lib/ruby/3.1.0/net/protocol.rb:46:in `ssl_socket_connect'
        from /root/.rbenv/versions/3.1.2/lib/ruby/3.1.0/net/http.rb:1048:in `connect'
        from /root/.rbenv/versions/3.1.2/lib/ruby/3.1.0/net/http.rb:976:in `do_start'
        from /root/.rbenv/versions/3.1.2/lib/ruby/3.1.0/net/http.rb:965:in `start'
        from /root/.rbenv/versions/3.1.2/lib/ruby/3.1.0/net/http.rb:1530:in `request'
        from /root/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/discourse_theme-0.7.3/lib/discourse_theme/client.rb:135:in `request'
        from /root/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/discourse_theme-0.7.3/lib/discourse_theme/client.rb:104:in `discourse_version'
        from /root/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/discourse_theme-0.7.3/lib/discourse_theme/client.rb:18:in `initialize'
        from /root/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/discourse_theme-0.7.3/lib/discourse_theme/cli.rb:41:in `new'
        from /root/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/discourse_theme-0.7.3/lib/discourse_theme/cli.rb:41:in `run'
        from /root/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/discourse_theme-0.7.3/bin/discourse_theme:6:in `<top (required)>'
        from /root/.rbenv/versions/3.1.2/bin/discourse_theme:25:in `load'
        from /root/.rbenv/versions/3.1.2/bin/discourse_theme:25:in `<main>'

it’s not always but often and sometimes some time after everything worked and files were uploading successfully. Is it a bug of discourse_theme cli?

That suggests that your certificate is broken somehow. If the site works in your browser, then maybe there is some spurious DNS or networking issue.

What should I start to debug? My site is working good

Is your os up to date? Maybe your openssl is out of date