Rykian / clockwork

A scheduler process to replace cron.
MIT License
544 stars 66 forks source link

Error booting Rails following ActiveRecord example #36

Closed JamesPlayer closed 6 years ago

JamesPlayer commented 6 years ago

I'm trying to use the database driven clockwork approach following the example given in the docs. Here is my clock.rb file:

require 'clockwork'
require 'clockwork/database_events'
require_relative './config/boot'
require_relative './config/environment'

module Clockwork

  # required to enable database syncing support
  Clockwork.manager = DatabaseEvents::Manager.new

  sync_database_events model: RecurringFreezeStart, every: 1.minute do |model_instance|
    Resque.enqueue(ScheduledFreezeStart, model_instance.id)
  end

  sync_database_events model: RecurringFreezeEnd, every: 1.minute do |model_instance|
    Resque.enqueue(ScheduledFreezeEnd, model_instance.id)
  end

end

When I run clockwork clock.rb I get the following errors:

$ clockwork clock.rb
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::VERSION
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_VERSION
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_LIBRARY_VERSION
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_VERSION_NUMBER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OPENSSL_FIPS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Config::DEFAULT_CONFIG_FILE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::Signer
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::TEXT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::NOCERTS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::NOSIGS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::NOCHAIN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::NOINTERN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::NOVERIFY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::DETACHED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::BINARY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::NOATTR
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKCS7::NOSMIMECAP
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKey::RSA::PKCS1_PADDING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKey::RSA::SSLV23_PADDING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKey::RSA::NO_PADDING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::PKey::EC::NAMED_CURVE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ExtConfig::HAVE_TLSEXT_HOST_NAME
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ExtConfig::TLS_DH_anon_WITH_AES_256_GCM_SHA384
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_OFF
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_CLIENT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_SERVER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_BOTH
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_AUTO_CLEAR
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL_LOOKUP
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL_STORE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::SSLContext::METHODS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ExtConfig::OPENSSL_NO_SOCK
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::VERIFY_NONE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::VERIFY_PEER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::VERIFY_CLIENT_ONCE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_MICROSOFT_SESS_ID_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NETSCAPE_CHALLENGE_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_SSLREF2_REUSE_CERT_TYPE_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_MICROSOFT_BIG_SSLV3_BUFFER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_MSIE_SSLV2_RSA_PADDING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_SSLEAY_080_CLIENT_DH_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_TLS_D5_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_TLS_BLOCK_PADDING_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_ALL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_SINGLE_ECDH_USE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_SINGLE_DH_USE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_EPHEMERAL_RSA
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_CIPHER_SERVER_PREFERENCE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_TLS_ROLLBACK_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NO_SSLv2
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NO_SSLv3
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NO_TLSv1
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NO_TLSv1_1
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NO_TLSv1_2
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NO_TICKET
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NO_COMPRESSION
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_PKCS1_CHECK_1
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_PKCS1_CHECK_2
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NETSCAPE_CA_DN_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::SSL::OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::Name::OBJECT_TYPE_TEMPLATE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::Name::COMPAT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::Name::RFC2253
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::Name::ONELINE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::Name::MULTILINE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_OK
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_GET_ISSUER_CERT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_GET_CRL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_SIGNATURE_FAILURE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CRL_SIGNATURE_FAILURE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_NOT_YET_VALID
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_HAS_EXPIRED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CRL_NOT_YET_VALID
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CRL_HAS_EXPIRED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_OUT_OF_MEM
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_SELF_SIGNED_CERT_IN_CHAIN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_CHAIN_TOO_LONG
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_REVOKED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_INVALID_CA
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_PATH_LENGTH_EXCEEDED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_INVALID_PURPOSE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_UNTRUSTED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_REJECTED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_SUBJECT_ISSUER_MISMATCH
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_AKID_SKID_MISMATCH
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_AKID_ISSUER_SERIAL_MISMATCH
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_KEYUSAGE_NO_CERTSIGN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_APPLICATION_VERIFICATION
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_CRL_CHECK
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_IGNORE_CRITICAL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_X509_STRICT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_ALLOW_PROXY_CERTS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_POLICY_CHECK
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_EXPLICIT_POLICY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_INHIBIT_ANY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_INHIBIT_MAP
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_NOTIFY_POLICY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_EXTENDED_CRL_SUPPORT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_USE_DELTAS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_CHECK_SS_SIGNATURE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_TRUSTED_FIRST
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_NO_ALT_CHAINS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_SSL_CLIENT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_SSL_SERVER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_NS_SSL_SERVER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_SMIME_SIGN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_SMIME_ENCRYPT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_CRL_SIGN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_ANY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_OCSP_HELPER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_TIMESTAMP_SIGN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_COMPAT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_SSL_CLIENT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_SSL_SERVER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_EMAIL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_OBJECT_SIGN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_OCSP_SIGN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_OCSP_REQUEST
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_TSA
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_AREA
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_DIR
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_FILE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_DIR_ENV
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_FILE_ENV
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_PRIVATE_DIR
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_INTERNALERROR
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_MALFORMEDREQUEST
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_NOSTATUS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_SIGREQUIRED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_SUCCESSFUL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_TRYLATER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_AFFILIATIONCHANGED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CACOMPROMISE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CERTIFICATEHOLD
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CESSATIONOFOPERATION
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_KEYCOMPROMISE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_REMOVEFROMCRL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_SUPERSEDED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_UNAUTHORIZED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_UNSPECIFIED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOCERTS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOINTERN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOSIGS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOCHAIN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOVERIFY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOEXPLICIT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOCASIGN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NODELEGATED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOCHECKS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::TRUSTOTHER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPID_KEY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOTIME
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_GOOD
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_REVOKED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_UNKNOWN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_RESPID_NAME
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_RESPID_KEY
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_RSA
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_DSA
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_DH
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_RAND
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_CIPHERS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_DIGESTS
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_ALL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_NONE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::UNIVERSAL_TAG_NAME
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::EOC
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::BOOLEAN
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::INTEGER
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::BIT_STRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::OCTET_STRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::NULL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::OBJECT
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::OBJECT_DESCRIPTOR
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::EXTERNAL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::REAL
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::ENUMERATED
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::EMBEDDED_PDV
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::UTF8STRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::RELATIVE_OID
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::SEQUENCE
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::SET
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::NUMERICSTRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::PRINTABLESTRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::T61STRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::VIDEOTEXSTRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::IA5STRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::UTCTIME
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::GENERALIZEDTIME
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::GRAPHICSTRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::ISO64STRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::GENERALSTRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::UNIVERSALSTRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::CHARACTER_STRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::BMPSTRING
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/pkey.rb:8: warning: already initialized constant OpenSSL::PKey::DH::DEFAULT_1024
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/pkey.rb:8: warning: previous definition of DEFAULT_1024 was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/pkey.rb:17: warning: already initialized constant OpenSSL::PKey::DH::DEFAULT_2048
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/pkey.rb:17: warning: previous definition of DEFAULT_2048 was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/pkey.rb:30: warning: already initialized constant OpenSSL::PKey::DEFAULT_TMP_DH_CALLBACK
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/pkey.rb:30: warning: previous definition of DEFAULT_TMP_DH_CALLBACK was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::AES
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:24: warning: previous definition of AES was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::CAST5
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:24: warning: previous definition of CAST5 was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::BF
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:24: warning: previous definition of BF was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::DES
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:24: warning: previous definition of DES was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::IDEA
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:24: warning: previous definition of IDEA was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC2
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:24: warning: previous definition of RC2 was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC4
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:24: warning: previous definition of RC4 was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC5
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:24: warning: previous definition of RC5 was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:28: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES128
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:33: warning: previous definition of AES128 was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:28: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES192
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:33: warning: previous definition of AES192 was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:28: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES256
/Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/openssl-2.0.5/lib/openssl/cipher.rb:33: warning: previous definition of AES256 was here
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:64: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:64: warning: constant OpenSSL::Cipher::Cipher is deprecated
/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:64:in `<class:Cipher>': superclass mismatch for class Cipher (TypeError)
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:16:in `<module:OpenSSL>'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:15:in `<top (required)>'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl.rb:17:in `require'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl.rb:17:in `<top (required)>'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.4/lib/active_support/key_generator.rb:2:in `require'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.4/lib/active_support/key_generator.rb:2:in `<top (required)>'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/application.rb:4:in `require'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/application.rb:4:in `<top (required)>'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails.rb:12:in `require'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails.rb:12:in `<top (required)>'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/all.rb:1:in `require'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/all.rb:1:in `<top (required)>'
    from /Users/james/sites/mergefreezev2/config/application.rb:3:in `require'
    from /Users/james/sites/mergefreezev2/config/application.rb:3:in `<top (required)>'
    from /Users/james/sites/mergefreezev2/config/environment.rb:2:in `require_relative'
    from /Users/james/sites/mergefreezev2/config/environment.rb:2:in `<top (required)>'
    from /Users/james/sites/mergefreezev2/clock.rb:4:in `require_relative'
    from /Users/james/sites/mergefreezev2/clock.rb:4:in `<top (required)>'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/james/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/clockwork-2.0.2/bin/clockwork:12:in `<top (required)>'
    from /Users/james/.rbenv/versions/2.4.1/bin/clockwork:22:in `load'
    from /Users/james/.rbenv/versions/2.4.1/bin/clockwork:22:in `<main>'

The issue seems to stem from the require_relative './config/environment' line.

I'm using rails 5.1 and ruby 2.4.1, and OS is MacOS High Sierra

Here are the gems I'm using in the project:

$ gem list

*** LOCAL GEMS ***

actioncable (5.1.4, 5.1.3)
actionmailer (5.1.4, 5.1.3)
actionpack (5.1.4, 5.1.3)
actionview (5.1.4, 5.1.3)
activejob (5.1.4, 5.1.3)
activemodel (5.1.4, 5.1.3)
activerecord (5.1.4, 5.1.3)
activesupport (5.1.4, 5.1.3)
addressable (2.5.2)
arel (8.0.0)
bcrypt (3.1.11)
bigdecimal (default: 1.3.0)
bindex (0.5.0)
builder (3.2.3)
bundler (1.16.1, 1.15.4)
byebug (9.1.0)
capybara (2.17.0, 2.16.1, 2.15.1)
childprocess (0.8.0, 0.7.1)
chronic (0.10.2)
clockwork (2.0.2)
coderay (1.1.2)
coffee-rails (4.2.2)
coffee-script (2.4.1)
coffee-script-source (1.12.2)
commonjs (0.2.7)
concurrent-ruby (1.0.5)
crass (1.0.3)
devise (4.3.0)
did_you_mean (1.1.0)
domain_name (0.5.20170404)
erubi (1.7.0, 1.6.1)
et-orbi (1.0.8)
execjs (2.7.0)
faraday (0.13.1, 0.12.2)
ffi (1.9.18)
font-awesome-sass (4.7.0)
geoip (1.6.3)
globalid (0.4.1, 0.4.0)
hashie (3.5.7, 3.5.6)
http-cookie (1.0.3)
httparty (0.15.6)
i18n (0.9.1, 0.8.6)
io-console (default: 0.4.6)
jbuilder (2.7.0)
jquery-rails (4.3.1)
json (default: 2.0.2)
jwt (1.5.6)
less (2.6.0)
less-rails (2.8.0)
listen (3.1.5)
loofah (2.1.1, 2.0.3)
mail (2.7.0, 2.6.6)
mailgun_rails (0.9.0)
method_source (0.9.0, 0.8.2)
mime-types (3.1)
mime-types-data (3.2016.0521)
mini_mime (1.0.0, 0.1.4)
mini_portile2 (2.3.0, 2.2.0)
minitest (5.11.1)
mono_logger (1.1.0)
multi_json (1.12.2, 1.12.1)
multi_xml (0.6.0)
multipart-post (2.0.0)
mustermann (1.0.1)
mysql2 (0.4.10, 0.4.9)
net-telnet (0.1.1)
netrc (0.11.0)
nio4r (2.2.0, 2.1.0)
nokogiri (1.8.1, 1.8.0)
oauth2 (1.4.0)
octokit (4.7.0)
omniauth (1.8.1, 1.6.1)
omniauth-github (1.3.0, 1.1.2)
omniauth-google-oauth2 (0.5.2)
omniauth-oauth2 (1.5.0, 1.4.0, 1.3.1)
omniauth-slack (2.3.0)
openssl (2.0.5, default: 2.0.3)
orm_adapter (0.5.0)
power_assert (0.4.1)
pry (0.11.3, 0.10.4)
psych (default: 2.2.2)
public_suffix (3.0.1, 3.0.0)
puma (3.11.0, 3.10.0)
rack (2.0.3)
rack-protection (2.0.0)
rack-test (0.8.2, 0.7.0, 0.6.3)
rails (5.1.4, 5.1.3)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.0.3)
railties (5.1.4, 5.1.3)
rake (12.3.0, 12.0.0)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
rdoc (default: 5.0.0)
redis (4.0.1)
redis-namespace (1.6.0)
responders (2.4.0)
resque (1.27.4)
resque-scheduler (4.3.1)
resque-scheduler-web (1.1.0)
resque-web (0.0.12)
rest-client (2.0.2)
ruby_dep (1.5.0)
rubyzip (1.2.1)
rufus-scheduler (3.4.2)
sass (3.5.5, 3.5.4, 3.5.3, 3.5.1)
sass-listen (4.0.0)
sass-rails (5.0.7, 5.0.6)
sawyer (0.8.1)
selenium-webdriver (3.8.0, 3.7.0, 3.5.2, 3.5.1)
sinatra (2.0.0)
slop (3.6.0)
spring (2.0.2)
spring-watcher-listen (2.0.1)
sprockets (3.7.1)
sprockets-rails (3.2.1)
sqlite3 (1.3.13)
test-unit (3.2.3)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.0.1)
turbolinks-source (5.0.3)
twitter-bootstrap-rails (4.0.0)
tzinfo (1.2.4, 1.2.3)
tzinfo-data (1.2017.3)
uglifier (4.1.2, 4.1.0, 3.2.0)
unf (0.1.4)
unf_ext (0.0.7.4)
vegas (0.1.11)
warden (1.2.7)
web-console (3.5.1)
websocket-driver (0.6.5)
websocket-extensions (0.1.3, 0.1.2)
xmlrpc (0.2.1)
xpath (3.0.0, 2.1.0)

Any ideas?

pboling commented 6 years ago

I believe this is the core of your problem.

/Users/james/.rbenv/versions/2.4.1/lib/ruby/2.4.0/openssl/cipher.rb:64:in `<class:Cipher>': superclass mismatch for class Cipher (TypeError)

Do you have a class or module named Cipher in your project? If so you have either not followed Ruby or Rails (or both) naming / directory structure conventions, and that is causing the super class mismatch.

JamesPlayer commented 6 years ago

@pboling No I don't have any classes or modules named Cipher in my project. Seems to be something related to OpenSSL, like it's getting initialized twice or something. Not sure why.

pboling commented 6 years ago

@JamesPlayer Here's what I have at the top of my clock:

require 'clockwork'
require './config/boot'
require './config/environment'

Docs be damned.

JamesPlayer commented 6 years ago

@pboling thanks for taking a look. For some reason those three lines alone is enough to trigger the warnings and error (even if I just run it with ruby ie ruby clock.rb). It seems to be a combination of require 'clockwork' and require './config/environment' that does it.

JamesPlayer commented 6 years ago

Found the issue, it was with my personal setup.

Issue was that I had two versions of the openssl gem trying to be loaded at the same time.

doing a gem list showed: openssl (2.0.5, default: 2.0.3)

Reverting to the default version fixed the problem:

    gem uninstall openssl -v 2.0.5
    gem install openssl -v 2.0.3