koishi 控制台进不去了

小火箭一键更新到 4.13.7 就这样了。。。

然后就是经典 not found

我是用模板项目来部署 koishi 的,跟着上面的报错找到这个 js 文件,我加了个判断。竟然就能打开控制台了。。。

所以这算是 bug 吗?还是我开发插件啥的然后给弄炸了。。。。

koishi.yml
port: 5140
maxPort: 5149
plugins:
  group:basic:
    ~admin: {}
    ~bind: {}
    commands: {}
    help: {}
    ~inspect: {}
    locales: {}
    rate-limit: {}
  group:console:
    analytics: {}
    console:
      open: false
    dataview: {}
    desktop:
      $if: env.KOISHI_AGENT?.includes('Desktop')
    explorer: {}
    logger: {}
    ~login: {}
    insight: {}
    config: {}
    market:
      registry:
        endpoint: https://registry.npmmirror.com
      search:
        endpoint: https://registry.koishi.chat/index.json
    sandbox: {}
    status: {}
  group:storage:
    cache-database:l4z538: {}
    database-sqlite: {}
    ~database-mysql:
      password: ?
      user: dingyi222666
      host: mysql.sqlpub.com
      database: dingyi222666
    ~database-mongo: {}
    assets-local: {}
  group:adapter:
    ~adapter-onebot:
      gocqhttp:
        enabled: true
        password: ''
      selfId: '3510003509'
    ~adapter-discord: {}
    ~adapter-telegram:
      protocol: polling
      proxyAgent: socks://0.0.0.0:7890
      token: ?
    ~adapter-kook: {}
    ~adapter-lark: {}
    gocqhttp:
      signServer: https://captcha.koishi.xyz/sdk/dandelion/energy
      logLevel: 3
  group:develop:
    $if: env.NODE_ENV === 'development'
    hmr:
      root: .
  group:chathub:
    '@dingyi222666/chathub-plugin-common:cgqw5x':
      fs: true
    ~@dingyi222666/chathub-bard-adapter:nlaqwl:
      cookie: ?
    '@dingyi222666/chathub-openai-adapter:1ns9r6':
      apiEndPoint: https://api.chatanywhere.cn
      maxTokens: 4096
      chatTimeLimit: 200
      presencePenalty: 0
      frequencyPenalty: 0
      temperature: 0
    '@dingyi222666/chathub:k0vbjm':
      isForwardMsg: true
      splitMessage: true
      defaultEmbeddings: huggingface/sentence-transformers/distilbert-base-nli-mean-tokens
      isProxy: true
      isLog: true
      proxyAddress: socks://0.0.0.0:7890
      defaultVectorStore: faiss
      privateChatWithoutCommand: true
      msgCooldown: 1
      isReplyWithAt: true
    '@dingyi222666/chathub-search-service:9byurz':
      topK: 6
      serperApiKey: ?
      bingSearchApiKey: ?
      searchEngine: duckduckgo-lite
    ~@dingyi222666/chathub-chatglm-adapter:igr7dz:
      apiEndPoint: https://8d4f-35-233-193-136.jp.ngrok.io/v1
      apiKey: token1
    ~@dingyi222666/chathub-poe-adapter:w6i3or:
      chatTimeLimit: 300
      formatMessages: false
    '@dingyi222666/chathub-vector-store-service:yuw48b':
      faiss: true
      current: pinecone
      pineconeRegon: eu-west1-gcp
      pineconeIndex: chathub
    ~@dingyi222666/chathub-newbing-adapter:zu5rz0:
      showExtraInfo: true
      chatTimeLimit: 200
    '@dingyi222666/chathub-lmsys-adapter:dy5wtb':
      chatTimeLimit: 20000
    '@dingyi222666/chathub-embeddings-service:1zy68k':
      huggingface: true
      huggingfaceApiKey: ?
  group:chronocat:
    '@chronocat/adapter:jiiiw4': {}
    ~@chronocat/launcher:knbq4l: {}
  group:theme:
    $collapsed: true
    theme-vanilla:zfao9m: {}
    ~theme-colorful:5vinnj: {}
    wallpaper:2ytlku: {}
  group:extension:
    $collapsed: true
    puppeteer:am869a: {}
    open-vits:qhdl88: {}
  test:956yqg: {}
request:
  proxyAgent: sock5://127.0.0.1:7890
stackTraceLimit: 20
prefix:
  - ''
系统配置信息
System:

OS: Windows 10 10.0.22621

CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics

Binaries:

Node: 18.13.0

Yarn: 1.22.19

Koishi:

Core: 4.13.7

Console: 5.11.9
2 个赞

删掉 yarn.lock 文件后重新 yarn 即可修复

2 个赞

我就是火箭点全部更新然后出现了这个问题

这个方案可以让错误被忽略进入控制台(实际上插件还是被卡住了) 但是可以看到日志和可以换插件版本
回退了koishi版本成功修复了我的问题

1 个赞

如果你是普通用户而非开发者,论坛有专门面向用户的此问题的解决方法。不需要使用上面的解决方法。

该问题并非由最新版本引起,因此回退版本并不是解决这个问题的方法。回退版本会使你无法使用 Koishi 的最新功能和插件。

小伙伴在发帖之前可以先搜索论坛内的现有帖子哦~

1 个赞

其实我之前我用过他那个方案,但是几次了都不行。。。后面我自己好像是用了上面回复的方案,然后更新了某个内置插件才可以。

2 个赞