Configuration-Management

方向舵 3.0:EVP_DecryptFinal_ex

  • July 29, 2015

我在 Raspbian (RPi v2) 上使用 rudder 3.0.x,有時我會遇到一些奇怪的錯誤。

我試圖理解此錯誤消息:“EVP_DecryptFinal_ex:錯誤:0606506D:數字信封常式:EVP_DecryptFinal_ex:錯誤的最終塊長度”。

我正在使用通過移動網路訪問網際網路的 WiFi 網狀網路,因此連接不是有史以來最好的,但我能夠對舵伺服器 + dns 解析度進行 ping,因此它在“舵代理更新”期間工作。

@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)

這是一個 OpenSSL 錯誤;代理無法解密來自伺服器的消息(請參閱http://openssl.6102.n7.nabble.com/error-0606506D-td6186.html),因為它沒有適當的長度。如果網路不可靠,則很可能在傳輸過程中連接中斷,消息結束失去。

您還可以嘗試比較代理(您自己建構的)和伺服器上的 OpenSSL 版本。我不認為這可能是一個不兼容問題(我相信它會一直失敗),但值得仔細檢查

引用自:https://serverfault.com/questions/708711