Skip to content

Inconsistent connection failure #3527

@Kein

Description

@Kein

I know the title is generic but I dont know how else to describe it.

I have 3 v2ray servers working just fine with 0.5.29, with 0 issues. I've tried to setup 2 new ones, on Ubuntu 24 and CentOS8 and I ran into an issue I dont understand and dont know how to describe outside of - v2ray handshake(?)/initial connection simply fails randomly and it never recovers. Literally.

I start the server (terminal capture)
I start the client.

I test the connection and... nothing. I restart the server 1-2 times and then start the client - it works.
Okay.
I set up cron for the server, reboot aaaaand... it is dead. No connection no matter how many times I restart the client.
I restart via terminal again, client immediately connects after a restart and open first target website... and then it dies and no more tunneling happens.

Like, this is literally it, this bizzare state of things. If you tell me how can I troubleshoot this I'd do it but otherwie I'm out if ideas.

Config and some client logs below:

LOGS and CONFIGS:

2025/09/30 03:02:05 [Warning] V2Ray 5.22.0 started
2025/09/30 03:02:12 [Info] [1795157184] proxy/socks: TCP Connect request to tcp:api.ipify.org:443
2025/09/30 03:02:12 [Warning] [1795157184] app/dispatcher: default route for tcp:api.ipify.org:443
2025/09/30 03:02:12 [Info] [1795157184] transport/internet/tcp: dialing TCP to tcp:33.133.33.1:49952
2025/09/30 03:02:12 [Info] [1795157184] proxy/vmess/outbound: tunneling request to tcp:api.ipify.org:443 via 33.133.33.1:49952
2025/09/30 03:02:32 [Info] [1795157184] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > proxy/vmess/outbound: failed to read header > common/drain: common/drain: unable to drain connection > read tcp 192.168.1.2:52025->33.133.33.1:49952: wsarecv: An existing connection was forcibly closed by the remote host. > proxy/vmess/encoding: Unable to Read Header Len > read tcp 192.168.1.2:52025->33.133.33.1:49952: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
2025/09/30 03:02:32 [Info] [1795157184] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2025/09/30 03:02:32 [Info] [4042078551] proxy/socks: TCP Connect request to tcp:api.ipify.org:443
2025/09/30 03:02:32 [Warning] [4042078551] app/dispatcher: default route for tcp:api.ipify.org:443
2025/09/30 03:02:32 [Info] [4042078551] transport/internet/tcp: dialing TCP to tcp:33.133.33.1:49952
2025/09/30 03:02:32 [Info] [4042078551] proxy/vmess/outbound: tunneling request to tcp:api.ipify.org:443 via 33.133.33.1:49952

config.json
config_client.json
Error.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions