Skip to content

🐞 [BUG] - Xray Config Rejects Valid Parameters with "Update config profile error" #131

Description

@MetiiteM

Integrity requirements

  • I provided the complete config and logs, rather than just providing the truncated parts based on my own judgment.
  • I searched issues and did not find any similar issues.
  • The problem can be successfully reproduced in the latest release

Description

In the Xray config editor, many valid parameters (e.g., tcp, ws, grpc) are rejected with the error message "Update config profile error" even though the parameters are correct and the config works fine when tested directly on Xray. The validation in the panel seems too strict or outdated.
When using the Edit Config feature for Xray nodes, valid parameters for streamSettings and tlsSettings are rejected with the error message "Update config profile error" even though the configuration is completely valid and works when directly tested with Xray.

For example, the following configuration (gRPC + TLS) is valid for Xray but cannot be saved through the panel:

{
  "tag": "gRPC+TLS",
  "listen": "0.0.0.0",
  "port": 443,
  "protocol": "vless",
  "settings": {
    "clients": [],
    "decryption": "none"
  },
  "streamSettings": {
    "network": "grpc",
    "security": "tls",
    "grpcSettings": {
      "serviceName": "example",
      "multiMode": false
    },
    "tlsSettings": {
      "serverName": "example.com",
      "minVersion": "1.0",
      "maxVersion": "1.3",
      "cipherSuites": "RSA_AES_128_CBC:RSA_AES_256_CBC:RSA_AES_128_GCM:RSA_AES_256_GCM:AES_128_GCM:AES_256_GCM:CHACHA20_POLY1305:ECDHE_ECDSA_AES_128_CBC:ECDHE_ECDSA_AES_256_CBC:ECDHE_RSA_AES_128_CBC:ECDHE_RSA_AES_256_CBC:ECDHE_ECDSA_AES_128_GCM:ECDHE_ECDSA_AES_256_GCM:ECDHE_RSA_AES_128_GCM:ECDHE_RSA_AES_256_GCM:ECDHE_ECDSA_CHACHA20_POLY1305:ECDHE_RSA_CHACHA20_POLY1305",
      "rejectUnknownSni": false,
      "disableSystemRoot": false,
      "enableSessionResumption": false,
      "alpn": ["h2", "http/1.1"],
      "certificates": [
        {
          "certificateFile": "/var/lib/remnawave/configs/xray/ssl/fullchain.pem",
          "keyFile": "/var/lib/remnawave/configs/xray/ssl/privkey.key",
          "ocspStapling": 3600,
          "usage": "encipherment",
          "buildChain": false
        }
      ],
      "settings": {
        "allowInsecure": false,
        "fingerprint": "chrome"
      }
    }
  },
  "sniffing": {
    "enabled": false
  }
}

Reproduction Method

1-Go to Nodes → Edit Config.

2-Paste the above config.

3-Click Save.

4-Observe error: "Update config profile error".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions