如题:nonebot使用后反复重启,但是卸载所有nonebot插件后依旧重启
已经了解到nonebot插件会导致反复重启,但是没想到移除全部已安装的该类型插件后依然会重启。权且当作一个补充信息吧
可否看一下你现在安装了哪些插件?可以在「依赖管理」页面长截图。
现在 Koishi 的重启频率大概是多久一次呢?如果不将 Koishi 对接聊天平台也不使用的话,会一直稳定运行下去吗?
应该和是否对接平台没关系。因为对接平台后,如果没人发消息触发koishi是不会重启的。频率大概差不多是十几分钟一次吧。
有重启前的日志吗?如果控制台看不到的话可以看看 data/logs 目录。
今天下午双清了,之前的日志没了,抱歉啦
好吧,看来得等下一个受害者了
把全部 nonebotjs 插件装了看看能不能复现?
我全部装了就有几率无限重启
下一个受害者来了,我就开了nonebot插件结果就卡无限重启了
1000|2|2024-08-12 20:28:10 [I] loader apply plugin nonebot:p4we8v
1000|2|2024-08-12 20:28:10 [W] app TypeError: runtime.using is not iterable
1000|2| at _Insight.get (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-insight\lib\index.cjs:123:9)
1000|2| at addDeps (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-insight\lib\index.cjs:107:)
1000|2| at Object.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:171:28)
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:56:25
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:257:27
1000|2| at runNextTicks (node:internal/process/task_queues:60:5)
1000|2| at listOnTimeout (node:internal/timers:540:9)
1000|2| at process.processTimers (node:internal/timers:514:7)
1000|2| at async Promise.all (index 0)
1000|2| at async Proxy.broadcast (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:252:5)
1000|2|2024-08-12 20:28:12 [I] nonebot Python initialization complete
1000|2|2024-08-12 20::12 [W] app Error: property console is not registered, declare it as inject
to suppress this warning
1000|2| at Object.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:178:40)
1000|2| at Proxy.addEntry (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:243:12)
1000|2| at MainScope.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:867:24)
1000|2| at new LocaleProvider (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-locales\lib\index.js:41:17)
1000|2| at MainScope.ensure (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:681:18)
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:889:49
1000|2| at MainScope.init (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:714:12)
1000|2| at MainScope.start (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:889:12)
1000|2| at addDeps (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-insight\lib\index.cjs:107:)
1000|2|2024-08-12 20::13 [W] console TypeError: runtime.using is not iterable
1000|2| at Object.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:178:40)
1000|2| at Proxy.get (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-insight\lib\index.cjs:123:9)
1000|2| at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:147:
1000|2| at new Entry (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:164:9)
1000|2| at Object.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:178:40)
1000|2|2024-08-12 20::13 [W] app Error: property console is not registered, declare it as inject
to suppress this warning
1000|2| at Proxy.addEntry (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:243:12)
1000|2| at MainScope.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:865:26)
1000|2| at Object.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-market\lib\node\index.js:563:18)
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:889:49
1000|2| at Lifecycle.on.global (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:469:17)
1000|2| at MainScope.ensure (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:681:18)
1000|2| at MainScope.start (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:889:12)
1000|2|2024-08-12 20::13 [W] app Error: property console is not registered, declare it as inject
to suppress this warning
1000|2| at Object.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:178:40)
1000|2| at Proxy.addEntry (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:243:12)
1000|2| at MainScope.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:865:26)
1000|2| at Object.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-market\lib\node\index.js:563:18)
1000|2| at MainScope.ensure (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:681:18)
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:889:49
1000|2| at Lifecycle.on.global (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:469:17)
1000|2| at MainScope.start (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:889:12)
1000|2| at new Entry (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:165:9)
1000|2| at addDeps (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-insight\lib\index.cjs:107:)
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:56:25
1000|2|2024-08-12 20::13 [W] app TypeError: runtime.using is not iterable
1000|2| at _Insight.get (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-insight\lib\index.cjs:123:9)
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:257:27
1000|2| at Object.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:171:28)
1000|2| at async Proxy.broadcast (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:252:5)
1000|2| at async Promise.all (index 0)
1000|2| at addDeps (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-insight\lib\index.cjs:107:)
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:56:25
1000|2|2024-08-12 20::13 [E] app TypeError: runtime.using is not iterable
1000|2| at _Insight.get (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\plugin-insight\lib\index.cjs:123:9)
1000|2| at C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:257:27
1000|2| at Object.apply (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@cordisjs\core\lib\index.cjs:171:28)
1000|2| at async Proxy.broadcast (C:\Users\Mr_EricLin\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules@koishijs\console\lib\index.js:252:5)
1000|2| at async Promise.all (index 0)
1000|2|2024-08-12 20::13 [I] app Koishi/4.17.11
双清呗
已双清,是不是不能用上nonebot那边的插件
不是,只是不安全,会炸而已
了解,谢谢