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

Frequent restarts Xray #3027

Open
hunter-xyz opened this issue Feb 15, 2024 · 16 comments
Open

Frequent restarts Xray #3027

hunter-xyz opened this issue Feb 15, 2024 · 16 comments

Comments

@hunter-xyz
Copy link

i have a bing problem with xray 1.8.7 after few hours xray automatically restarted from few minutes to 4 hours in max duration that can work without restart

so i change xray to 1.7.5 now this problem Much better than before but now every 13h will restart but very better that 1.8.7

1.8.7 is very unstable but 1.7.5 90% is more stable

But this problem is not completely solved

Can anyone guide me?

tnx

@qwerr0
Copy link

qwerr0 commented Feb 15, 2024

What is the reason for the restart? OOM?

@hunter-xyz
Copy link
Author

image

@qwerr0
Copy link

qwerr0 commented Feb 16, 2024

image
Logs

@amiralipoor20072007
Copy link

amiralipoor20072007 commented Feb 16, 2024

I have the same problem

Here is my warning log

2024/02/16 14:17:30 WARNING - XRAY: [1646272470] app/dispatcher: non existing outTag: blocked
2024/02/16 14:17:30 WARNING - XRAY: [1442439944] app/dispatcher: non existing outTag: blocked
2024/02/16 14:17:30 WARNING - XRAY: [999450809] app/dispatcher: non existing outTag: blocked
2024/02/16 14:17:30 WARNING - XRAY: [1784283545] app/dispatcher: non existing outTag: blocked
2024/02/16 14:17:30 WARNING - XRAY: [170110445] app/dispatcher: non existing outTag: blocked
2024/02/16 14:17:30 WARNING - XRAY: [857614339] app/dispatcher: non existing outTag: blocked
2024/02/16 14:17:30 WARNING - XRAY: [3500373746] app/dispatcher: non existing outTag: blocked
2024/02/16 14:17:30 WARNING - XRAY: [3737486588] app/dispatcher: non existing outTag: blocked

, after couple hours (mostly 12 hours) i have to restart xray to fix it

@qwerr0
Copy link

qwerr0 commented Feb 16, 2024

Add Conf:

{
  "outbounds": [
    {
      "tag": "blocked",
      "protocol": "blackhole"
    }
  ]
}

@hunter-xyz
Copy link
Author

Add Conf:

{
  "outbounds": [
    {
      "tag": "blocked",
      "protocol": "blackhole"
    }
  ]
}

this is for me ? or not ?

this is my xray config :

`

"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"log": {
"error": "./error.log",
"loglevel": "warning"
},
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
`

@amiralipoor20072007
Copy link

Add Conf:

{
  "outbounds": [
    {
      "tag": "blocked",
      "protocol": "blackhole"
    }
  ]
}

I add it but it doesn't help , i still have to restart it every couple hours

@hunter-xyz
Copy link
Author

yep
me too
but with 1.7.5 is more stable than 1.8.7
today i did switch to 1.8.0 from 1.7.5 but i need more time to test it

i think 1.8.7 is unstable and is poppy choppy

@Eslender73
Copy link

yep me too but with 1.7.5 is more stable than 1.8.7 today i did switch to 1.8.0 from 1.7.5 but i need more time to test it

i think 1.8.7 is unstable and is poppy choppy

do you use trojan config?

@hunter-xyz
Copy link
Author

no i have not

i have just vless tcp and vmess tcp without tls
and ws with tls
just trhee ports i have on my panel

with 1.8.0 my panel running for 16h without restart !!!

i think 1.8.0 is full stable !

image

@masbur
Copy link

masbur commented Feb 26, 2024

I have the same problem

I have 2 types of configuration

  1. single service, trojan (OOM Error)
  2. all in one service (works fine)

Single service using VPS 2 Core 4 GB RAM, then I tried upgrading to 4 Core 8 GB RAM, as a result the RAM always runs out and get OOM Error.

User active < 20

NB: single service vmess and vless work fine

@hunter-xyz
Copy link
Author

i did test hardware config but It had no effect

but xray 1.8.3 is very good and It restarts very rarely and its acceptable

@RPRX
Copy link
Member

RPRX commented Feb 27, 2024

Try 1.8.4

@masbur
Copy link

masbur commented Feb 29, 2024

I tried version 1.8.8 RAM usage was better except trojan

And this is result from xray 1.8.4 ( trojan )
image

traffic 100Mbps
user active < 20

@hunter-xyz
Copy link
Author

The only solution that worked 100% is that the RAM of the vps is at least 4GB and version of xray must 1.8.1

@karimi12
Copy link

I had this error in log before restart
version 1.8.10:
9 ERROR - X-UI: Failure in running xray-core: exit status 2

config: vless+TLS+TCP -- fallback --> vless + ws

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

7 participants