n/vpsu/skybreak · 11 个月前
注册 登录
n/vps · 11 个月前 · 406 次浏览
u/skybreak铂金

VPS上改komari主控不成功

我有部分VPS上之前安装过komari的agent,连接的主控是a,然后我最近想给他的主控改为b的时候,总是连不上,看日志说是token不对,但是我其他主机用相同的token就完全没问题,大家有知道原因吗?

Error uploading basic info: status code: 401,{"error":"invalid token","status":"error"}
Dec 21 10:54:02 chairv6 agent[3751243]: 2025/12/21 10:54:02 Attempting to connect to WebSocket...
Dec 21 10:54:03 chairv6 agent[3751243]: 2025/12/21 10:54:03 Failed to connect to WebSocket: 401 Unauthorized
Dec 21 10:54:08 chairv6 agent[3751243]: 2025/12/21 10:54:08 Retrying websocket connection, attempt: 1
Dec 21 10:54:10 chairv6 agent[3751243]: 2025/12/21 10:54:10 Failed to connect to WebSocket: 401 Unauthorized
Dec 21 10:54:15 chairv6 agent[3751243]: 2025/12/21 10:54:15 Retrying websocket connection, attempt: 2
Dec 21 10:54:16 chairv6 agent[3751243]: 2025/12/21 10:54:16 Failed to connect to WebSocket: 401 Unauthorized
Dec 21 10:54:21 chairv6 agent[3751243]: 2025/12/21 10:54:21 Retrying websocket connection, attempt: 3
Dec 21 10:54:22 chairv6 agent[3751243]: 2025/12/21 10:54:22 Failed to connect to WebSocket: 401 Unauthorized

1
7
登录后参与讨论。
最佳答案楼主采纳 · 回答者获得 20 声望
James11 个月前0 赞同

token不匹配 可能你其它机器的密钥也不一样

7 条回复

排序
  1. azhaoyihao 钻石 水王 11 个月前

    我部署了 好像有两个月没去看过了

    1
  2. skybreak 铂金 楼主 不离不弃 11 个月前

    我看的不多,但是真的是有这个问题

    0
  3. Arvin_Leung 王者 3 YEARS 11 个月前

    你说的这个还真没试过,装上后就没管了。

    0
  4. jy02739244 黄金 11 个月前

    这玩意很简单的,我容器部署的一直在用

    0
  5. James 💯 王者 最佳答案最佳 MANAGER 11 个月前

    token不匹配 可能你其它机器的密钥也不一样

    0
  6. supers 王者 王者会员 11 个月前

    先卸载再安装试试。

    0
  7. Foxx 🌴 11 个月前

    如果你确保Token没错, 那应该是这台 VPS 还带着主控 a 的Token,主控 b 就不起效。你用

    ps aux | grep komari
    

    看看情况,清空 agent 再重新注册应该就行了。 Komari Agent 卸载指南 | Komari

    0