phallstrom / slackistrano

Slack integration for Capistrano deployments.
MIT License
373 stars 74 forks source link

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (unable to get local issuer certificate #99

Open dbachinin opened 7 months ago

dbachinin commented 7 months ago

slackistrano v4.0.1 on client SSL version OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022) on server SSL version OpenSSL 1.1.1 11 Sep 2018

Capfile:

require "capistrano/setup"

# Include default deployment tasks
require 'capistrano/deploy'
require 'capistrano/scm/git'
install_plugin Capistrano::SCM::Git
require 'capistrano/upload-config'

require 'capistrano/rvm'

require 'capistrano/bundler'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
# require 'capistrano/unicorn_nginx'
require 'capistrano/rails/collection'
require 'capistrano/sidekiq'
require 'capistrano/rails/console'
require 'capistrano/rails'
require 'capistrano/puma'

require 'slackistrano/capistrano'
require_relative 'lib/custom_messaging'
install_plugin Capistrano::Puma
install_plugin Capistrano::Puma::Systemd
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }

Gemfile.lock:

    capistrano (3.16.0)
      airbrussh (>= 1.0.0)
      i18n
      rake (>= 10.0.0)
      sshkit (>= 1.9.0)
    capistrano-bundler (2.0.1)
      capistrano (~> 3.1)
    capistrano-rails (1.6.1)
      capistrano (~> 3.1)
      capistrano-bundler (>= 1.1, < 3)
    capistrano-rails-collection (0.1.0)
      capistrano-rails (~> 1.1)
    capistrano-rails-console (2.3.0)
      capistrano (>= 3.5.0, < 4.0.0)
      sshkit-interactive (~> 0.3.0)
    capistrano-rbenv (2.2.0)
      capistrano (~> 3.1)
      sshkit (~> 1.3)
    capistrano-rvm (0.1.2)
      capistrano (~> 3.0)
      sshkit (~> 1.2)
    capistrano-sidekiq (1.0.3)
      capistrano (>= 3.9.0)
      sidekiq (>= 3.4, < 6.0)
    capistrano-unicorn-nginx (5.2.0)
      capistrano (>= 3.1)
      sshkit (>= 1.2.0)
    capistrano-upload-config (0.8.2)
      capistrano (>= 3.0)
    capistrano3-puma (5.2.0)
      capistrano (~> 3.7)

./config/ -> deploy -> staging.rb

  ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
set :rails_env, :staging
set :unicorn_worker_count, 15
set :enable_ssl, false
set :stage, :staging
set :server_full_name, 'Staging'

set :nginx_server_name, 'staging.myserver.com'

set :rvm_ruby_version, '2.7.6'
set :deploy_to, '/opt/www/fitness_crm'

# SSHKit.config.command_map[:sidekiq] = "source ~/.dbash_profile && rvmsudo bundle exec sidekiq"
# SSHKit.config.command_map[:sidekiqctl] = "source ~/.bash_profile && rvmsudo  bundle exec sidekiqctl"

server 'staging.myserver.com', user: 'deploy', roles: %w{web app db}

The client application is running on Ubuntu 22.04. I've noticed some other issues, but haven't found any solutions yet.

:deploy:updated
      WARN  [slackistrano] Error notifying Slack!
      WARN  [slackistrano]   Error: #<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (unable to get local issuer certificate)>