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

Decryption failure error occurred when sending data: shadowsocks::relay::tcprelay::utils: copy bidirection ends with error: decrypt data failed #1873

Open
luoweidd opened this issue Feb 12, 2025 · 2 comments

Comments

@luoweidd
Copy link

Linux server, Linux client (Windows client has no problem sending small amount of data, but this error will still appear when uploading more data)
The outbound data flow is purely problematic. I have been looking for the problem for a long time. Today, I opened the debug log and checked in verbose mode: tokio-runtime-worker ThreadId(02) shadowsocks::relay::tcprelay::utils: copy bidirection ends with error: decrypt data failed, a_to_b: Running(CopyBuffer { read_done: false, pos: 0, cap: 0, amt: 0, .. }), b_to_a: Running(CopyBuffer { read_done: false, pos: 173, cap: 173, amt: 173, .. })
It can receive data normally, but it only appears when sending data. I am not sure if it is a problem with my client operating system or some other reason.

@luoweidd
Copy link
Author

luoweidd commented Feb 13, 2025

Here is the full log:
2025-02-13T01:16:45.732149927Z DEBUG tokio-runtime-worker ThreadId(02) shadowsocks::relay::tcprelay::utils: copy bidirection ends with error: decrypt data failed, a_to_b: Running(CopyBuffer { read_done: false, pos: 769, cap: 769, amt: 833, .. }), b_to_a: Running(CopyBuffer { read_done: false, pos: 239, cap: 239, amt: 480, .. })
2025-02-13T01:16:45.732224694Z TRACE tokio-runtime-worker ThreadId(02) shadowsocks_service::server::tcprelay: tcp tunnel 127.0.0.1:34134 <-> speedtest-mad.melbicom.net:8080 closed with error: decrypt data failed
2025/02/13 01:16:45 [Info] [3787293549] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > proxy: failed to process response > read tcp 127.0.0.1:34134->127.0.0.1:37923: read: connection reset by peer
2025/02/13 01:16:45 [Info] [3787293549] app/proxyman/inbound: connection ends > proxy/dokodemo: connection ends > proxy/dokodemo: failed to transport response > io: read/write on closed pipe
2025-02-13T01:16:46.033050414Z DEBUG tokio-runtime-worker ThreadId(02) shadowsocks::relay::tcprelay::utils: copy bidirection ends with error: decrypt data failed, a_to_b: Running(CopyBuffer { read_done: false, pos: 64, cap: 64, amt: 64, .. }), b_to_a: Running(CopyBuffer { read_done: false, pos: 478, cap: 478, amt: 2943, .. })

@zonyitoo
Copy link
Collaborator

zonyitoo commented Feb 13, 2025

Did you try sslocal from this project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants