web-dev-qa-db-ja.com

ラダー3.0:EVP_DecryptFinal_ex

Raspbian(RPi v2)でラダー3.0.xを使用していますが、奇妙なエラーが発生することがあります。

このエラーメッセージを理解しようとしています:「EVP_DecryptFinal_ex:エラー:0606506D:デジタルエンベロープルーチン:EVP_DecryptFinal_ex:間違った最終ブロック長」。

モバイルネットワーク経由でインターネットにアクセスできるWiFiメッシュネットワークを使用しているため、接続はこれまでで最高ではありませんが、ラダーサーバーへのping + DNS解像度を作成できるため、「ラダーエージェントの更新」中に機能していました。

@xxx-xxxxx:~$ Sudo rudder agent update
2015-07-17T16:40:44+0200    error: /default/update/methods/'update'/default/update_action/files/'/var/rudder/ncf/local'[0]: Timeout - remote end did not respond with the expected amount of data (received=0, expecting=8). (recv: Resource temporarily unavailable)
2015-07-17T16:41:14+0200    error: /default/update/methods/'update'/default/update_action/files/'/var/rudder/ncf/local'[0]: Timeout - remote end did not respond with the expected amount of data (received=0, expecting=8). (recv: Resource temporarily unavailable)
^[[B2015-07-17T16:42:36+0200    error: /default/update/methods/'update'/default/update_action/files/'/var/rudder/cfengine-community/inputs'[0]: Timeout - remote end did not respond with the expected amount of data (received=0, expecting=8). (recv: Resource temporarily unavailable)
2015-07-17T16:42:48+0200    error: /default/update/methods/'update'/default/update_action/files/'/var/rudder/cfengine-community/inputs'[0]: Failed to decrypt at final of cipher length 70. (EVP_DecryptFinal_ex: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length)
2015-07-17T16:42:48+0200    error: /default/update/methods/'update'/default/update_action/files/'/var/rudder/cfengine-community/inputs'[0]: Failed to decrypt at final of cipher length 3. (EVP_DecryptFinal_ex: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length)
3
frbayart

これはOpenSSLエラーです。エージェントがサーバーからのメッセージの復号化に失敗しています(適切な情報がないため、 http://openssl.6102.n7.nabble.com/error-0606506D-td6186.html を参照)。長さ。ネットワークの信頼性が低い場合は、転送中に接続が中断され、メッセージの終わりが失われた可能性があります。

また、(自分で作成した)エージェントとサーバーのOpenSSLバージョンを比較することもできます。非互換性の問題ではないと思いますが(一貫して失敗すると思います)、再確認する価値があるかもしれません

2
Nicolas Charles