XrayR icon indicating copy to clipboard operation
XrayR copied to clipboard

面板获取不到用户已使用流量

Open isyekong opened this issue 2 years ago • 4 comments

面板:SSPanel UIM new-feat 分支 系统:Debian11

测试消耗流量后,管理面板看不到用户消耗的流量,一直是0 注意到两条报错,一条是Debian或许有兼容性问题,一条是反馈了405错误,我需要安装什么软件包或者修改配置来适配呢? image

Sep 21 17:50:35 hkg1 XrayR[546033]: 2022/09/21 17:50:35 Ret {"ret":0,"data":"The interface for the node to report the traffic usage should use the post request. If you see this message, check the server. This problem may occur in the debian system, you can try to replace the ubuntu system and try again."} invalid Sep 21 17:50:35 hkg1 XrayR[546033]: 2022/09/21 17:50:35 [V2ray: 1] 0 user deleted, 0 user added Sep 21 17:50:35 hkg1 XrayR[546033]: 2022/09/21 17:50:35 request http://xxx/mod_mu/users/aliveip failed: <!doctype html> Sep 21 17:50:35 hkg1 XrayR[546033]: <html lang="zh"> Sep 21 17:50:35 hkg1 XrayR[546033]: <head> Sep 21 17:50:35 hkg1 XrayR[546033]: <meta charset="utf-8" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <meta http-equiv="X-UA-Compatible" content="ie=edge" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <title>All-In-Dev Airport</title> Sep 21 17:50:35 hkg1 XrayR[546033]: <link href="/theme/tabler/css/tabler.min.css" rel="stylesheet" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <link href="/theme/tabler/css/tabler-flags.min.css" rel="stylesheet" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <link href="/theme/tabler/css/tabler-payments.min.css" rel="stylesheet" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <link href="/theme/tabler/css/tabler-vendors.min.css" rel="stylesheet" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <link href="/theme/tabler/css/demo.min.css" rel="stylesheet" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <script src="/theme/tabler/js/jquery-3.6.0.min.js"></script> Sep 21 17:50:35 hkg1 XrayR[546033]: <script src="/theme/tabler/js/tabler.min.js"></script> Sep 21 17:50:35 hkg1 XrayR[546033]: </head><body class="border-top-wide border-primary d-flex flex-column"> Sep 21 17:50:35 hkg1 XrayR[546033]: <div class="page page-center"> Sep 21 17:50:35 hkg1 XrayR[546033]: <div class="container-tight py-4"> Sep 21 17:50:35 hkg1 XrayR[546033]: <div class="empty"> Sep 21 17:50:35 hkg1 XrayR[546033]: <div class="empty-header">405</div> Sep 21 17:50:35 hkg1 XrayR[546033]: <p class="empty-subtitle text-muted"> Sep 21 17:50:35 hkg1 XrayR[546033]: 状态码 405 Method Not Allowed 表明服务器禁止了使用当前 HTTP 方法的请求 Sep 21 17:50:35 hkg1 XrayR[546033]: </p> Sep 21 17:50:35 hkg1 XrayR[546033]: <div class="empty-action"> Sep 21 17:50:35 hkg1 XrayR[546033]: <a href="/user" class="btn btn-primary"> Sep 21 17:50:35 hkg1 XrayR[546033]: <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> Sep 21 17:50:35 hkg1 XrayR[546033]: <path stroke="none" d="M0 0h24v24H0z" fill="none" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <line x1="5" y1="12" x2="19" y2="12" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <line x1="5" y1="12" x2="11" y2="18" /> Sep 21 17:50:35 hkg1 XrayR[546033]: <line x1="5" y1="12" x2="11" y2="6" /> Sep 21 17:50:35 hkg1 XrayR[546033]: </svg> Sep 21 17:50:35 hkg1 XrayR[546033]: 返回用户首页 Sep 21 17:50:35 hkg1 XrayR[546033]: </a> Sep 21 17:50:35 hkg1 XrayR[546033]: </div> Sep 21 17:50:35 hkg1 XrayR[546033]: </div> Sep 21 17:50:35 hkg1 XrayR[546033]: </div> Sep 21 17:50:35 hkg1 XrayR[546033]: </div> Sep 21 17:50:35 hkg1 XrayR[546033]: </body> Sep 21 17:50:35 hkg1 XrayR[546033]: <script> Sep 21 17:50:35 hkg1 XrayR[546033]: // Initialize the agent at application startup. Sep 21 17:50:35 hkg1 XrayR[546033]: // You can also use https://openfpcdn.io/fingerprintjs/v3/esm.min.js Sep 21 17:50:35 hkg1 XrayR[546033]: const fpPromise = import('/theme/tabler/js/esm.min.js') Sep 21 17:50:35 hkg1 XrayR[546033]: .then(FingerprintJS => FingerprintJS.load()) Sep 21 17:50:35 hkg1 XrayR[546033]: // Get the visitor identifier when you need it. Sep 21 17:50:35 hkg1 XrayR[546033]: fpPromise Sep 21 17:50:35 hkg1 XrayR[546033]: .then(fp => fp.get()) Sep 21 17:50:35 hkg1 XrayR[546033]: .then(result => { Sep 21 17:50:35 hkg1 XrayR[546033]: // This is the visitor identifier: Sep 21 17:50:35 hkg1 XrayR[546033]: visitorId = result.visitorId Sep 21 17:50:35 hkg1 XrayR[546033]: }) Sep 21 17:50:35 hkg1 XrayR[546033]: </script> Sep 21 17:50:35 hkg1 XrayR[546033]: </html>, %!s(<nil>)

isyekong avatar Sep 21 '22 10:09 isyekong

The interface for the node to report the traffic usage should use the post request. If you see this message, check the server. This problem may occur in the debian system, you can try to replace the ubuntu system and try again.

pocketW avatar Sep 22 '22 06:09 pocketW

The interface for the node to report the traffic usage should use the post request. If you see this message, check the server. This problem may occur in the debian system, you can try to replace the ubuntu system and try again.

尝试过Ubuntu,依旧无法反馈流量

isyekong avatar Sep 22 '22 11:09 isyekong

状态码 405 Method Not Allowed 表明服务器禁止了使用当前 HTTP 方法的请求 Sep 21 17:50:35 hkg1 XrayR[546033]

Try to use https for your webapi url.

pocketW avatar Sep 23 '22 02:09 pocketW

状态码 405 Method Not Allowed 表明服务器禁止了使用当前 HTTP 方法的请求 Sep 21 17:50:35 hkg1 XrayR[546033]

Try to use https for your webapi url.

webapi是https,405是sspanel的错误页

isyekong avatar Sep 23 '22 06:09 isyekong