Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M2Crypto.EVP.EVPError: bad decrypt #1005

Closed
synctext opened this issue Dec 18, 2014 · 9 comments
Closed

M2Crypto.EVP.EVPError: bad decrypt #1005

synctext opened this issue Dec 18, 2014 · 9 comments
Assignees
Milestone

Comments

@synctext
Copy link
Member

While running Next for a while, a few of these came up.
commit db988cd
Author: Lipu Fei lipu.fei815@gmail.com
Date: Tue Dec 16 18:50:35 2014 +0100

ERROR   1418874500.11       community:617   Could not remove relay 3670090604 too old
ERROR   1418874620.11       community:617   Could not remove relay 1898028518 no activity
ERROR   1418874698.25       community:1046  Got destroy from {192.168.1.3:7759 98.243.147.25:7759} for circuit 818596000
ERROR   1418874751.43       community:853   Don't know how to decrypt incoming message for circuit_id 3227387793
ERROR   1418874785.13       community:617   Could not remove relay 3615426253 too old
ERROR   1418874800.13       community:617   Could not remove relay 72218982 too old
ERROR   1418874815.11       community:617   Could not remove relay 1469895911 no activity
ERROR   1418874916.56       community:617   Could not remove relay 364903034 too old
ERROR   1418874942.36             log:443   Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/Core/Utilities/twisted_thread.py", line 21, in _reactor_runner
    reactor.run(installSignalHandlers=False)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1201, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 797, in runUntilCurrent
    f(*a, **kw)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 990, in on_data
    if not self.relay_packet(circuit_id, message_type, packet):
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 728, in relay_packet
    encrypted = self.crypto_relay(circuit_id, encrypted)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 1148, in crypto_relay
    return self.crypto.decrypt_str(self.relay_session_keys[circuit_id][direction], content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/crypto.py", line 46, in decrypt_str
    return aes_decrypt_str(key, content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/privatesemantic/crypto/optional_crypto.py", line 70, in aes_decrypt_str
    return ret + cipher.final()
  File "/usr/lib/python2.7/dist-packages/M2Crypto/EVP.py", line 128, in final
    return m2.cipher_final(self.ctx)
M2Crypto.EVP.EVPError: bad decrypt

Unhandled Error
@whirm
Copy link
Contributor

whirm commented Dec 29, 2014

@synctext are you still getting those?

@synctext
Copy link
Member Author

Sadly my Internet is not sufficient for running Tribler longer then a minute...

@synctext
Copy link
Member Author

synctext commented Jan 7, 2015

Not seen it for a while. Good

@synctext synctext closed this as completed Jan 7, 2015
@synctext
Copy link
Member Author

synctext commented Jan 7, 2015

Shoot, still in next branch.
commit a717dc8

ERROR   1420615743.19       community:618   Could not remove relay 1205035884 no activity
ERROR   1420615743.19       community:618   Could not remove relay 2973658054 no activity
ERROR   1420615758.01        dispersy:1725  exception during handle_callback for cell
Traceback (most recent call last):
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/dispersy/dispersy.py", line 1720, in _update
    messages[0].handle_callback(messages)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 852, in on_cell
    encrypted = self.crypto_in(circuit_id, encrypted)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 1141, in crypto_in
    return self.crypto.decrypt_str(self.relay_session_keys[circuit_id][EXIT_NODE], content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/crypto/tunnelcrypto.py", line 91, in decrypt_str
    return aes_decrypt_str(key, content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/crypto/cryptowrapper.py", line 40, in aes_decrypt_str
    return ret + cipher.final()
  File "/usr/lib/python2.7/dist-packages/M2Crypto/EVP.py", line 128, in final
    return m2.cipher_final(self.ctx)
EVPError: bad decrypt
ERROR   1420615758.02        dispersy:1725  exception during handle_callback for cell
Traceback (most recent call last):
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/dispersy/dispersy.py", line 1720, in _update
    messages[0].handle_callback(messages)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 852, in on_cell
    encrypted = self.crypto_in(circuit_id, encrypted)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 1141, in crypto_in
    return self.crypto.decrypt_str(self.relay_session_keys[circuit_id][EXIT_NODE], content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/crypto/tunnelcrypto.py", line 91, in decrypt_str
    return aes_decrypt_str(key, content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/crypto/cryptowrapper.py", line 40, in aes_decrypt_str
    return ret + cipher.final()
  File "/usr/lib/python2.7/dist-packages/M2Crypto/EVP.py", line 128, in final
    return m2.cipher_final(self.ctx)
EVPError: bad decrypt
ERROR   1420615758.02        dispersy:1725  exception during handle_callback for cell
Traceback (most recent call last):
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/dispersy/dispersy.py", line 1720, in _update
    messages[0].handle_callback(messages)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 852, in on_cell
    encrypted = self.crypto_in(circuit_id, encrypted)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 1141, in crypto_in
    return self.crypto.decrypt_str(self.relay_session_keys[circuit_id][EXIT_NODE], content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/crypto/tunnelcrypto.py", line 91, in decrypt_str
    return aes_decrypt_str(key, content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/crypto/cryptowrapper.py", line 40, in aes_decrypt_str
    return ret + cipher.final()
  File "/usr/lib/python2.7/dist-packages/M2Crypto/EVP.py", line 128, in final
    return m2.cipher_final(self.ctx)
EVPError: bad decrypt
ERROR   1420615758.02        dispersy:1725  exception during handle_callback for cell
Traceback (most recent call last):
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/dispersy/dispersy.py", line 1720, in _update
    messages[0].handle_callback(messages)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 852, in on_cell
    encrypted = self.crypto_in(circuit_id, encrypted)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/community.py", line 1141, in crypto_in
    return self.crypto.decrypt_str(self.relay_session_keys[circuit_id][EXIT_NODE], content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/crypto/tunnelcrypto.py", line 91, in decrypt_str
    return aes_decrypt_str(key, content)
  File "/home/pouwelse/GIT-pulls/tribler/Tribler/community/tunnel/crypto/cryptowrapper.py", line 40, in aes_decrypt_str
    return ret + cipher.final()
  File "/usr/lib/python2.7/dist-packages/M2Crypto/EVP.py", line 128, in final
    return m2.cipher_final(self.ctx)
EVPError: bad decrypt
ERROR   1420615785.66       community:1047  Got destroy from {192.168.1.40:7759 81.38.210.244:7759} for circuit 1857042457
ERROR   1420615785.78       community:1047  Got destroy from {192.168.1.40:7759 81.38.210.244:7759} for circuit 114803607
ERROR   1420615811.38       community:854   Don't know how to decrypt incoming message for circuit_id 3390137565
ERRO

@synctext synctext reopened this Jan 7, 2015
@synctext synctext assigned whirm and unassigned synctext Jan 7, 2015
@synctext synctext modified the milestones: V6.4.3, V6.4.2 Jan 8, 2015
@whirm
Copy link
Contributor

whirm commented Jan 14, 2015

Let's wait for the whole crypto overhaul to be finished before dealing with these bugs as they will probably not be there anymore.
Depends on #1066

@whirm whirm removed their assignment Jan 14, 2015
@whirm whirm modified the milestones: V6.4.3, V6.5 anonymity: destroy message Jan 15, 2015
@rjruigrok
Copy link
Contributor

This bug can be closed.

@whirm
Copy link
Contributor

whirm commented Apr 17, 2015

@rjruigrok don't you have permissions to close them yourself?

@rjruigrok
Copy link
Contributor

Nope.
3 months ago I had those permissions, but now they magically disappeared. :)

@whirm
Copy link
Contributor

whirm commented Apr 17, 2015

Oh well...

@whirm whirm closed this as completed Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants