--
--.--

スポンサーサイト

上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

2017
12.26

sinatra で / の表示がIndexOfになって困った

Category: 未分類
/ にアクセスすると、IndexOf が表示されてしまって困った。

これ前もハマった気がするんだけど、あの時はどうしたんだろう・・・
トレイリングスラッシュまわりは個人的に結構闇を感じてるのでまぁ

hoge と hoge/ みたいなのは、ルーティング書く時に

get '/hoge/?' do
end

みたいに書けばいいからいいんだけど、まじもんの / だけがなんかうーん

原因 結局わからん

passenger の deb があるらしく、
在Ubuntu Server 16.04上配置Apache和Passenger(mod_rails)部署Sinatra应用 を見ながら再設定したら、/ でもちゃんと sinatra 側が動くようになった、謎。

↑のサイトをメモしとくために書いただけかもしれない

とりあえず解決した

久々に Debian testing から sid にしたんだけど、やっぱり闇は深いな・・・
スポンサーサイト
Comment:0  Trackback:0
2017
12.18

mastodon v2.1.0 にアップデート

Category: 未分類
v2.0.0からのアップデート。rcは無視するすたいる。

で、さっそくエラー出たので。

Installing aws-sdk-resources 2.10.100
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /home/mastodon/live/vendor/bundle/ruby/2.4.0/gems/cld3-3.2.1/ext/cld3
/home/mastodon/.rbenv/versions/2.4.2/bin/ruby -r ./siteconf20171218-110710-c7u4ow.rb extconf.rb
creating Makefile

current directory: /home/mastodon/live/vendor/bundle/ruby/2.4.0/gems/cld3-3.2.1/ext/cld3
make "DESTDIR=" clean

current directory: /home/mastodon/live/vendor/bundle/ruby/2.4.0/gems/cld3-3.2.1/ext/cld3
make "DESTDIR="
compiling base.cc
g++: error: unrecognized command line option ‘-Wimplicit-fallthrough=0’; did you mean ‘-Wno-fallthrough’?
Makefile:209: recipe for target 'base.o' failed
make: *** [base.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/mastodon/live/vendor/bundle/ruby/2.4.0/gems/cld3-3.2.1 for inspection.
Results logged to /home/mastodon/live/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0-static/cld3-3.2.1/gem_make.out

An error occurred while installing cld3 (3.2.1), and Bundler cannot continue.
Make sure that `gem install cld3 -v '3.2.1'` succeeds before bundling.

In Gemfile:
cld3


なんだよもう・・・

ってよくみたら g++のバージョンが6だ、多分これだ
$ sudo apt-get install g++

7になった。
よっしゃ通った。つぎつぎ。

$ yarn install
ERROR: [Errno 2] No such file or directory: 'install'

なんでやねーーーーん

とりあえず、そういえば、yarn ちゃんと入れてたっけどうだっけわからん
と思ったので、ここ見ていれる。

$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt-get update && sudo apt-get install yarn


からの〜〜

trying to overwrite '/usr/bin/yarn', which is also in package cmdtest 0.27-1


とりあえずけしとこ
$ sudo apt-get remove cmdtest


で、yarn install は通るようになった。よかったよかった。

てか、毎回 assets:precompile に5分くらいかかってて、数分すると焦ってくるんだけど、こんなもんなのかな
それか使ってるVMインスタンスがしょぼいのか・・・

あと、何かのタイミングで npm が /usr/bin/npm から /usr/local/bin/npm になってた、悲しい
systemdの起動ファイル直して事なきを得た。
とはいえ、npm周りは不勉強なんでなんとかしないとなぁ・・・

今回はこんなところで。
Comment:0  Trackback:0
2017
09.15

[ruby][mastodon] アップデートしようとしたらエラーでた

Category: ruby
結論先にかいとく

sudo su - mastodon ってしてなかった。 - なくて、rbenv で入れたの使われてなかった。

では、続きをどうぞ。

$ RAILS_ENV=production bundle exec rails db:migrate
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::VERSION
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OPENSSL_VERSION
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OPENSSL_LIBRARY_VERSION
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OPENSSL_VERSION_NUMBER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OPENSSL_FIPS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::Config::DEFAULT_CONFIG_FILE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::Signer
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::TEXT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::NOCERTS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::NOSIGS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::NOCHAIN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::NOINTERN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::NOVERIFY
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::DETACHED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::BINARY
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::NOATTR
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKCS7::NOSMIMECAP
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKey::RSA::PKCS1_PADDING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKey::RSA::SSLV23_PADDING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKey::RSA::NO_PADDING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::PKey::EC::NAMED_CURVE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ExtConfig::HAVE_TLSEXT_HOST_NAME
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ExtConfig::TLS_DH_anon_WITH_AES_256_GCM_SHA384
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_OFF
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_CLIENT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_SERVER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_BOTH
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_AUTO_CLEAR
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL_LOOKUP
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL_STORE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::SSLContext::SESSION_CACHE_NO_INTERNAL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::SSLContext::METHODS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ExtConfig::OPENSSL_NO_SOCK
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::VERIFY_NONE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::VERIFY_PEER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::VERIFY_CLIENT_ONCE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_MICROSOFT_SESS_ID_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NETSCAPE_CHALLENGE_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_SSLREF2_REUSE_CERT_TYPE_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_MICROSOFT_BIG_SSLV3_BUFFER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_MSIE_SSLV2_RSA_PADDING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_SSLEAY_080_CLIENT_DH_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_TLS_D5_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_TLS_BLOCK_PADDING_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_ALL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_SINGLE_ECDH_USE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_SINGLE_DH_USE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_EPHEMERAL_RSA
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_CIPHER_SERVER_PREFERENCE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_TLS_ROLLBACK_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NO_SSLv2
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NO_SSLv3
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NO_TLSv1
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NO_TLSv1_1
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NO_TLSv1_2
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NO_TICKET
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NO_COMPRESSION
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_PKCS1_CHECK_1
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_PKCS1_CHECK_2
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NETSCAPE_CA_DN_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::SSL::OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::Name::OBJECT_TYPE_TEMPLATE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::Name::COMPAT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::Name::RFC2253
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::Name::ONELINE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::Name::MULTILINE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_OK
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_GET_ISSUER_CERT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_GET_CRL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_SIGNATURE_FAILURE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CRL_SIGNATURE_FAILURE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_NOT_YET_VALID
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_HAS_EXPIRED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CRL_NOT_YET_VALID
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CRL_HAS_EXPIRED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_OUT_OF_MEM
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_SELF_SIGNED_CERT_IN_CHAIN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_CHAIN_TOO_LONG
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_REVOKED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_INVALID_CA
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_PATH_LENGTH_EXCEEDED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_INVALID_PURPOSE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_UNTRUSTED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_REJECTED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_SUBJECT_ISSUER_MISMATCH
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_AKID_SKID_MISMATCH
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_AKID_ISSUER_SERIAL_MISMATCH
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_KEYUSAGE_NO_CERTSIGN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_ERR_APPLICATION_VERIFICATION
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_FLAG_CRL_CHECK
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_SSL_CLIENT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_SSL_SERVER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_NS_SSL_SERVER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_SMIME_SIGN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_SMIME_ENCRYPT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_CRL_SIGN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_ANY
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_OCSP_HELPER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_COMPAT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_SSL_CLIENT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_SSL_SERVER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_EMAIL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_OBJECT_SIGN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_OCSP_SIGN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_OCSP_REQUEST
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_AREA
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_DIR
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_FILE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_DIR_ENV
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_FILE_ENV
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_PRIVATE_DIR
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_INTERNALERROR
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_MALFORMEDREQUEST
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_NOSTATUS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_SIGREQUIRED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_SUCCESSFUL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_TRYLATER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_AFFILIATIONCHANGED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CACOMPROMISE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CERTIFICATEHOLD
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CESSATIONOFOPERATION
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_KEYCOMPROMISE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_REMOVEFROMCRL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_SUPERSEDED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_UNAUTHORIZED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_UNSPECIFIED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOCERTS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOINTERN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOSIGS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOCHAIN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOVERIFY
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOEXPLICIT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOCASIGN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NODELEGATED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOCHECKS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::TRUSTOTHER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPID_KEY
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOTIME
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_GOOD
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_REVOKED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_UNKNOWN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_RESPID_NAME
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_RESPID_KEY
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_RSA
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_DSA
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_DH
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_RAND
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_CIPHERS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_DIGESTS
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_ALL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_NONE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::UNIVERSAL_TAG_NAME
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::EOC
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::BOOLEAN
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::INTEGER
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::BIT_STRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::OCTET_STRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::NULL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::OBJECT
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::OBJECT_DESCRIPTOR
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::EXTERNAL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::REAL
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::ENUMERATED
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::EMBEDDED_PDV
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::UTF8STRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::RELATIVE_OID
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::SEQUENCE
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::SET
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::NUMERICSTRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::PRINTABLESTRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::T61STRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::VIDEOTEXSTRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::IA5STRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::UTCTIME
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::GENERALIZEDTIME
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::GRAPHICSTRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::ISO64STRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::GENERALSTRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::UNIVERSALSTRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::CHARACTER_STRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.so: warning: already initialized constant OpenSSL::ASN1::BMPSTRING
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/pkey.rb:8: warning: already initialized constant OpenSSL::PKey::DH::DEFAULT_1024
/usr/lib/ruby/2.3.0/openssl/pkey.rb:14: warning: previous definition of DEFAULT_1024 was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/pkey.rb:30: warning: already initialized constant OpenSSL::PKey::DEFAULT_TMP_DH_CALLBACK
/usr/lib/ruby/2.3.0/openssl/pkey.rb:23: warning: previous definition of DEFAULT_TMP_DH_CALLBACK was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::AES
/usr/lib/ruby/2.3.0/openssl/cipher.rb:24: warning: previous definition of AES was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::CAST5
/usr/lib/ruby/2.3.0/openssl/cipher.rb:24: warning: previous definition of CAST5 was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::BF
/usr/lib/ruby/2.3.0/openssl/cipher.rb:24: warning: previous definition of BF was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::DES
/usr/lib/ruby/2.3.0/openssl/cipher.rb:24: warning: previous definition of DES was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::IDEA
/usr/lib/ruby/2.3.0/openssl/cipher.rb:24: warning: previous definition of IDEA was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC2
/usr/lib/ruby/2.3.0/openssl/cipher.rb:24: warning: previous definition of RC2 was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC4
/usr/lib/ruby/2.3.0/openssl/cipher.rb:24: warning: previous definition of RC4 was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC5
/usr/lib/ruby/2.3.0/openssl/cipher.rb:24: warning: previous definition of RC5 was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES128
/usr/lib/ruby/2.3.0/openssl/cipher.rb:35: warning: previous definition of AES128 was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES192
/usr/lib/ruby/2.3.0/openssl/cipher.rb:35: warning: previous definition of AES192 was here
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES256
/usr/lib/ruby/2.3.0/openssl/cipher.rb:35: warning: previous definition of AES256 was here
rails aborted!
TypeError: superclass mismatch for class Cipher
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:64:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:16:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl/cipher.rb:15:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.2/lib/openssl.rb:17:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/key_generator.rb:2:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:4:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails.rb:12:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/all.rb:1:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/home/mastodon/live/config/application.rb:3:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/home/mastodon/live/Rakefile:4:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `load'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `load'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `block in load'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/command.rb:46:in `invoke'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/bootsnap-1.1.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
bin/rails:4:in `
'
(See full trace by running task with --trace)


ざざっとぐぐると、openssl 2.0.2 使え〜〜〜って出てくるんだけど、2.0.2 にしてもエラー出まくりですわ。どうしたら。

ん?
/home/mastodon/live/vendor/bundle/ruby/2.3.0/gems/openssl-2.0.5/lib/openssl/pkey.rb:8: warning: already initialized constant OpenSSL::PKey::DH::DEFAULT_1024
/usr/lib/ruby/2.3.0/openssl/pkey.rb:14: warning: previous definition of DEFAULT_1024 was here


どゆこと?

cat /usr/lib/ruby/2.3.0/openssl/pkey.rb
# frozen_string_literal: false
module OpenSSL
module PKey
if defined?(OpenSSL::PKey::DH)

class DH
DEFAULT_512 = new <<-_end_of_pem_
-----BEGIN DH PARAMETERS-----
MEYCQQD0zXHljRg/mJ9PYLACLv58Cd8VxBxxY7oEuCeURMiTqEhMym16rhhKgZG2
zk2O9uUIBIxSj+NKMURHGaFKyIvLAgEC
-----END DH PARAMETERS-----
_end_of_pem_

DEFAULT_1024 = new <<-_end_of_pem_
-----BEGIN DH PARAMETERS-----
MIGHAoGBAJ0lOVy0VIr/JebWn0zDwY2h+rqITFOpdNr6ugsgvkDXuucdcChhYExJ
AV/ZD2AWPbrTqV76mGRgJg4EddgT1zG0jq3rnFdMj2XzkBYx3BVvfR0Arnby0RHR
T4h7KZ/2zmjvV+eF8kBUHBJAojUlzxKj4QeO2x20FP9X5xmNUXeDAgEC
-----END DH PARAMETERS-----
_end_of_pem_
end

DEFAULT_TMP_DH_CALLBACK = lambda { |ctx, is_export, keylen|
warn "using default DH parameters." if $VERBOSE
case keylen
when 512 then OpenSSL::PKey::DH::DEFAULT_512
when 1024 then OpenSSL::PKey::DH::DEFAULT_1024
else
nil
end
}

else
DEFAULT_TMP_DH_CALLBACK = nil
end
end
end


色々かいてあるんだが、こいつらがいかんのか?

てきとーにaptでインストールしたんだけど、rbenv したほうがいいパターンかこれ?

というわけで、rbenv・・・
って前にしてたじゃん!!!!

てかあれだ、sudo するときに sudo su mastodon ってしてて .bash_profile とか読まれてなかった。。。

$ sudo su -  mastodon
$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]


とりあえずエラーは出なくなりました、めでたしめでたし。

あんまりちゃんと解決してない気はするんですけどね。

あとは、systemd で起動するときにうまくいくかだな・・・

と思いましたけど

ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb


ってあるから大丈夫かな。



Comment:0  Trackback:0
2017
08.30

[PHP][Laravel] NullOKなカラムをNOT NULL な感じにするmigrationの書き方

Category: 未分類
困った時のStackOverFlow


nullable() って引数あるのか・・・!

なお、日本語ドキュメントには記載なかった。英語もないな。

というわけで、null 許可だったけど、やっぱ not null にしたいわっていう時は

$table->なにか(column name)->nullable(false)->change();


でいけました。

Comment:0  Trackback:0
2017
07.13

http で来たアクセスを https に飛ばしたい時

Category: 未分類
ぐぐってると上位に rewrite 使いました的な記事ばっかりくるんだけど、
サーバ名がわかってる場合は redirect で十分かと

<VirtualHost *:80>
Redirect permanent / https://servername/
ServerName servername
<VirtualHost>


ドキュメントはこの辺

nginx の場合は環境変数っぽいの使えるからどんな場合でも

server {
listen 80;
return 301 https://$host$request_uri;
}


みたいな感じでいいんですけど。
apache では↑みたいなことしたい場合は mod_rewrite 使うしかないんかなぁ。

Comment:0  Trackback:0
back-to-top
上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。