alireza0 / x-ui

xray panel supporting multi-protocol multi-user expire day & traffic (Vmess & Vless & Trojan & Shadowsocks)
https://t.me/XrayUI
GNU General Public License v3.0
3.17k stars 489 forks source link

Subscription update not working after upgrading from 1.7.2 to 1.8.0 #1105

Closed PatrickstarWritesCode closed 8 months ago

PatrickstarWritesCode commented 8 months ago

Subscription updates on client devices fail on v1.8.0, client log reports that server has reported error code 500. I've tested this on V2RAYNG and V2RAYN. Reverting to 1.7.2 resolves the issue.

Can't find any relevant logs on this, Maybe I'm not looking at the right place, any ideas?

My other server on 1.8.0 is working fine.

alireza0 commented 8 months ago

Please always provide logs and relevant evidences. It works fine on all of my tests! To find the problem, I have to know in wich situation it may happen.

MH140000 commented 8 months ago

I have this problem. I test on many servers but doesn't work

PatrickstarWritesCode commented 8 months ago

Please always provide logs and relevant evidences. It works fine on all of my tests! To find the problem, I have to know in wich situation it may happen.

Problem is I can't find any relevant logs on the issue:

Server is running as error 500 suggests and the log is: Mar 17 20:33:22 X-UI_SERVER /usr/local/x-ui/x-ui[17779]: INFO - X-UI: sub server run https on 127.0.0.2:443

Client error: X-UI_SERVER ->Response status code does not indicate success: 500 (Internal Server Error). X-UI_SERVER->The remote server returned an error: (500) Internal Server Error. X-UI_SERVER->The remote server returned an error: (500) Internal Server Error. X-UI_SERVER->Invalid subscription content

alireza0 commented 8 months ago

Please provide me your configuration of the inbound/user which you tied to fetch the reated sub.

PatrickstarWritesCode commented 8 months ago

Please provide me your configuration of the inbound/user which you tied to fetch the reated sub.

This is extracted configuration from V2RAYN export

{
      "tag": "proxy",
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "domain.name",
            "port": 443,
            "users": [
              {
                "id": "32d9afd5-d699-4ea0-fb04-ad41e63fd427",
                "alterId": 0,
                "email": "t@t.tt",
                "security": "auto",
                "encryption": "none"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "grpc",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false,
          "serverName": "sni.redacted",
          "alpn": [
            "h2",
            "http/1.1"
          ],
          "fingerprint": "chrome",
          "show": false
        },
        "grpcSettings": {
          "serviceName": "service.name.redacted",
          "multiMode": true,
          "idle_timeout": 60,
          "health_check_timeout": 20,
          "permit_without_stream": false,
          "initial_windows_size": 0
        }
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    }
alireza0 commented 8 months ago

The problem is in GRPC authority filed which is added in new Xray-core 1.8.9. It is mandatory to fill it out.

1095

PatrickstarWritesCode commented 8 months ago

This solved the problem, for some reason the other server had no issues with this field being empty.

Thanks

PatrickstarWritesCode commented 8 months ago

Closing this