sakarie9 / TG-EFB-QQ-Docker

QQ和Telegram的双向消息转发
GNU Affero General Public License v3.0
194 stars 17 forks source link

使用docker-compose启动之后efb报错 #1

Closed JYInMyHeart closed 3 years ago

JYInMyHeart commented 3 years ago

按照教程修改完配置之后,使用docker-compose启动, 第一个报错无法连接到127.0.0.1:8080 查看端口,mirai未在8080启动 在docker-compose.yml指定8080端口映射之后mirai在本机8080端口启动成功 但是docker-compose启动之后仍然提示无法连接到8080端口, 尝试指定ip地址为localhost 或者 mirai均未成功, 之后指定为eth0 网卡对应ip,貌似可以连接到8080端口 然后出现第二个报错 第二个报错提示/auth post failed http status 404

2021-05-30 04:15:27,183 [Level 99]: ehforwarderbot.__main__ (__main__.init; __main__.py:129)
     Initializing slave milkice.qq...
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 32, in __init__
    self.client = cls(name, config, channel)
  File "/usr/local/lib/python3.8/site-packages/efb_qq_plugin_mirai/mirai.py", line 65, in __init__
    self.loop.run_until_complete(self.bot.handshake())
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 58, in handshake
    await self.auth()
  File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 65, in auth
    result = await self.session.post('/auth', data={'authKey': self.auth_key})
  File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 101, in post
    return await HttpClient._check_response(response, url, 'post')
  File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 44, in _check_response
    raise ServerException(f'{url} {method} failed, status code: {result.status}')
mirai_core.exceptions.ServerException: /auth post failed, status code: 404

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/ehforwarderbot", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/__main__.py", line 339, in main
    init(conf)
  File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/__main__.py", line 135, in init
    coordinator.add_channel(cls(instance_id=instance_id))
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/__init__.py", line 44, in __init__
    self.init_client_manager()
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/__init__.py", line 73, in init_client_manager
    self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self)
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 35, in __init__
    raise Exception("Specified client not found!")
Exception: Specified client not found!

TG-EFB-QQ-Docker版本:

环境信息:

sakarie9 commented 3 years ago

已修复,请参考 66dd75e 修改docker-compose.ymlmilkice.qq/config.yaml 😀

JYInMyHeart commented 3 years ago

好嘞 very appreciated.

JYInMyHeart commented 3 years ago

已修复,请参考 66dd75e 修改docker-compose.ymlmilkice.qq/config.yaml 😀

修改docker-compose.ymlmilkice.qq/config.yaml后,efb 重新启动出现了如下错误

2021-05-30 05:30:43,943 [Level 99]: ehforwarderbot.__main__ (__main__.init; __main__.py:129)
     Initializing slave milkice.qq...
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 32, in __init__
    self.client = cls(name, config, channel)
  File "/usr/local/lib/python3.8/site-packages/efb_qq_plugin_mirai/mirai.py", line 65, in __init__
    self.loop.run_until_complete(self.bot.handshake())
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 58, in handshake
    await self.auth()
  File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 65, in auth
    result = await self.session.post('/auth', data={'authKey': self.auth_key})
  File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 101, in post
    return await HttpClient._check_response(response, url, 'post')
  File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 44, in _check_response
    raise ServerException(f'{url} {method} failed, status code: {result.status}')
mirai_core.exceptions.ServerException: /auth post failed, status code: 404

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/ehforwarderbot", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/__main__.py", line 339, in main
    init(conf)
  File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/__main__.py", line 135, in init
    coordinator.add_channel(cls(instance_id=instance_id))
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/__init__.py", line 44, in __init__
    self.init_client_manager()
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/__init__.py", line 73, in init_client_manager
    self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self)
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 35, in __init__
    raise Exception("Specified client not found!")
Exception: Specified client not found!

网络问题已经修复😊

sakarie9 commented 3 years ago

出现Exception: Specified client not found!的原因就是efb无法连接到mirai docker logs mirai检查一下mirai状态是否登录成功?

JYInMyHeart commented 3 years ago

好嘞 谢谢大佬

TodayNoLunch commented 3 years ago

已修复,请参考 66dd75e 修改docker-compose.ymlmilkice.qq/config.yaml 😀

修改docker-compose.ymlmilkice.qq/config.yaml后,efb 重新启动出现了如下错误

2021-05-30 05:30:43,943 [Level 99]: ehforwarderbot.__main__ (__main__.init; __main__.py:129)
     Initializing slave milkice.qq...
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 32, in __init__
    self.client = cls(name, config, channel)
  File "/usr/local/lib/python3.8/site-packages/efb_qq_plugin_mirai/mirai.py", line 65, in __init__
    self.loop.run_until_complete(self.bot.handshake())
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 58, in handshake
    await self.auth()
  File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 65, in auth
    result = await self.session.post('/auth', data={'authKey': self.auth_key})
  File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 101, in post
    return await HttpClient._check_response(response, url, 'post')
  File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 44, in _check_response
    raise ServerException(f'{url} {method} failed, status code: {result.status}')
mirai_core.exceptions.ServerException: /auth post failed, status code: 404

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/ehforwarderbot", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/__main__.py", line 339, in main
    init(conf)
  File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/__main__.py", line 135, in init
    coordinator.add_channel(cls(instance_id=instance_id))
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/__init__.py", line 44, in __init__
    self.init_client_manager()
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/__init__.py", line 73, in init_client_manager
    self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self)
  File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 35, in __init__
    raise Exception("Specified client not found!")
Exception: Specified client not found!

网络问题已经修复😊

同样问题,请问解决与否?

TodayNoLunch commented 3 years ago

出现Exception: Specified client not found!的原因就是efb无法连接到mirai docker logs mirai检查一下mirai状态是否登录成功?

请问如何解决,我这里mirai已经登录成功,console可以显示消息。问题复现,和楼上报错日志一样

sakarie9 commented 3 years ago

出现Exception: Specified client not found!的原因就是efb无法连接到mirai docker logs mirai检查一下mirai状态是否登录成功?

请问如何解决,我这里mirai已经登录成功,console可以显示消息。问题复现,和楼上报错日志一样

试一下network_mode-host分支?

修改docker-compose.yml/efb/profiles/default/milkice.qq/config.yaml两个文件,参考 2c8bcba

TodayNoLunch commented 3 years ago

出现Exception: Specified client not found!的原因就是efb无法连接到mirai docker logs mirai检查一下mirai状态是否登录成功?

请问如何解决,我这里mirai已经登录成功,console可以显示消息。问题复现,和楼上报错日志一样

试一下network_mode-host分支?

修改docker-compose.yml/efb/profiles/default/milkice.qq/config.yaml两个文件,参考 2c8bcba

image 问题依旧 :(

sakarie9 commented 3 years ago

出现Exception: Specified client not found!的原因就是efb无法连接到mirai docker logs mirai检查一下mirai状态是否登录成功?

请问如何解决,我这里mirai已经登录成功,console可以显示消息。问题复现,和楼上报错日志一样

试一下network_mode-host分支? 修改docker-compose.yml/efb/profiles/default/milkice.qq/config.yaml两个文件,参考 2c8bcba

image 问题依旧 :(

方便发一下docker-compose logs的完整log吗,我这边启动过程中也会出现几次Exception: Specified client not found!,efb重启大概5-6次之后等mirai也启动完成才正常

TodayNoLunch commented 3 years ago

出现Exception: Specified client not found!的原因就是efb无法连接到mirai docker logs mirai检查一下mirai状态是否登录成功?

请问如何解决,我这里mirai已经登录成功,console可以显示消息。问题复现,和楼上报错日志一样

试一下network_mode-host分支? 修改docker-compose.yml/efb/profiles/default/milkice.qq/config.yaml两个文件,参考 2c8bcba

image 问题依旧 :(

方便发一下docker-compose logs的完整log吗,我这边启动过程中也会出现几次Exception: Specified client not found!,efb重启大概5-6次之后等mirai也启动完成才正常

请稍等,正在使用compose重启

TodayNoLunch commented 3 years ago

出现Exception: Specified client not found!的原因就是efb无法连接到mirai docker logs mirai检查一下mirai状态是否登录成功?

请问如何解决,我这里mirai已经登录成功,console可以显示消息。问题复现,和楼上报错日志一样

试一下network_mode-host分支? 修改docker-compose.yml/efb/profiles/default/milkice.qq/config.yaml两个文件,参考 2c8bcba

image 问题依旧 :(

方便发一下docker-compose logs的完整log吗,我这边启动过程中也会出现几次Exception: Specified client not found!,efb重启大概5-6次之后等mirai也启动完成才正常

mirai | 16:24:23 [INFO] iTXTech Mirai Console Loader version 1.1.0-beta.1-982f9f4 mirai | 16:24:23 [INFO] https://github.com/iTXTech/mirai-console-loader mirai | 16:24:23 [INFO] This program is licensed under GNU AGPL v3 mirai | 16:24:23 [DEBUG] Loading script: announcement.js mirai | 16:24:24 [DEBUG] Loading script: boot.js mirai | 16:24:24 [DEBUG] Loading script: config.js mirai | 16:24:24 [DEBUG] Loading script: oraclejdk.js mirai | 16:24:24 [DEBUG] Loading script: repo.js mirai | 16:24:24 [DEBUG] Loading script: updater.js mirai | 16:24:25 [INFO] Fetching Mirai Console Loader Announcement... mirai | 16:24:28 [INFO] Mirai Console Loader Announcement: mirai | Mirai Console Loader 公告栏 mirai | mirai | [mirai-console] 最近, 项目组发现了权限系统可能会被错误的提前加载导致的3rd权限系统无法正确加载 mirai | mirai | 于是决定, 于 2.6 起, 超前访问权限系统将得到一个错误并中断插件加载, 请各开发者及时检查 mirai | mirai | 影响范围: https://github.com/mamoe/mirai-console/pull/307 mirai | mirai | mirai | 16:24:28 [INFO] Verifying "net.mamoe:mirai-console" version 2.6.4 mirai | 16:24:29 [INFO] Verifying "net.mamoe:mirai-console-terminal" version 2.6.4 mirai | 16:24:29 [INFO] Verifying "net.mamoe:mirai-core-all" version 2.6.4 mirai | 2021-06-09 16:24:34 I/main: Starting mirai-console... mirai | 2021-06-09 16:24:35 I/main: Backend: version 2.6.4, built on 2021-05-05 23:44:19. mirai | 2021-06-09 16:24:35 I/main: Frontend Terminal: version 2.6.4, provided by Mamoe Technologies mirai | 2021-06-09 16:24:35 I/main: Welcome to visit https://mirai.mamoe.net/ mirai | 2021-06-09 16:24:35 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http mirai | 2021-06-09 16:24:37 I/main: Prepared built-in commands: autoLogin, help, login, permission, status, stop mirai | 2021-06-09 16:24:37 W/net.mamoe.mirai-api-http: USING INITIAL KEY, please edit the key mirai | 2021-06-09 16:24:37 I/Mirai HTTP API: **** efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 535, in connect efb | proto = await self._create_connection(req, traces, timeout) efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 892, in _createconnection efb | , proto = await self._create_direct_connection(req, traces, timeout) efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection efb | raise last_exc efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection efb | transp, proto = await self._wrap_create_connection( efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection efb | raise client_error(req.connection_key, exc) from exc efb | aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 127.0.0.1:8080 ssl:default [Connect call failed ('127.0.0.1', 8080)] efb | efb | During handling of the above exception, another exception occurred: efb | efb | Traceback (most recent call last): efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 32, in init efb | self.client = cls(name, config, channel) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_plugin_mirai/mirai.py", line 65, in init efb | self.loop.run_until_complete(self.bot.handshake()) efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete efb | return future.result() efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 58, in handshake efb | await self.auth() efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 65, in auth efb | result = await self.session.post('/auth', data={'authKey': self.auth_key}) efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 100, in post efb | raise NetworkException('Unable to reach Mirai console') efb | mirai_core.exceptions.NetworkException: Unable to reach Mirai console efb | efb | During handling of the above exception, another exception occurred: efb | efb | Traceback (most recent call last): efb | File "/usr/local/bin/ehforwarderbot", line 8, in efb | sys.exit(main()) efb | File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/main.py", line 339, in main efb | init(conf) efb | File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/main.py", line 135, in init efb | coordinator.add_channel(cls(instance_id=instance_id)) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/init.py", line 44, in init efb | self.init_client_manager() efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/init.py", line 73, in init_client_manager efb | self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 35, in init efb | raise Exception("Specified client not found!") efb | Exception: Specified client not found! efb | 2021-06-09 07:41:56,277 [Level 99]: ehforwarderbot.main (main.init; main.py:129) efb | Initializing slave milkice.qq... efb | Traceback (most recent call last): efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection efb | return await self._loop.create_connection(*args, kwargs) # type: ignore # noqa efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection efb | raise exceptions[0] efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection efb | sock = await self._connect_sock( efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock efb | await self.sock_connect(sock, address) efb | File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect efb | return await fut efb | File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb efb | raise OSError(err, f'Connect call failed {address}') efb | ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 8080) efb | efb | The above exception was the direct cause of the following exception: efb | efb | Traceback (most recent call last): efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 98, in post efb | response = await self.session.post(self.base_url + url, headers=headers, json=data) efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 520, in _request efb | conn = await self._connector.connect( efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 535, in connect efb | proto = await self._create_connection(req, traces, timeout) efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 892, in _createconnection efb | , proto = await self._create_direct_connection(req, traces, timeout) efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection efb | raise last_exc efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection efb | transp, proto = await self._wrap_create_connection( efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection efb | raise client_error(req.connection_key, exc) from exc efb | aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 127.0.0.1:8080 ssl:default [Connect call failed ('127.0.0.1', 8080)] efb | efb | During handling of the above exception, another exception occurred: efb | efb | Traceback (most recent call last): efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 32, in init efb | self.client = cls(name, config, channel) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_plugin_mirai/mirai.py", line 65, in init efb | self.loop.run_until_complete(self.bot.handshake()) efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete efb | return future.result() efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 58, in handshake efb | await self.auth() efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 65, in auth efb | result = await self.session.post('/auth', data={'authKey': self.auth_key}) efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 100, in post efb | raise NetworkException('Unable to reach Mirai console') efb | mirai_core.exceptions.NetworkException: Unable to reach Mirai console efb | efb | During handling of the above exception, another exception occurred: efb | efb | Traceback (most recent call last): efb | File "/usr/local/bin/ehforwarderbot", line 8, in efb | sys.exit(main()) efb | File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/main.py", line 339, in main efb | init(conf) mirai | SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". mirai | SLF4J: Defaulting to no-operation (NOP) logger implementation mirai | SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. mirai | 2021-06-09 16:24:37 I/http adapter: >>> [http adapter] is listening at http://localhost:8080 mirai | 2021-06-09 16:24:37 I/Mirai HTTP API: Http api server is running with verifyKey: INITKEYZb6dlEv7 mirai | 2021-06-09 16:24:37 I/Mirai HTTP API: adaptors: [http] mirai | 2021-06-09 16:24:37 I/Mirai HTTP API: ** mirai | 2021-06-09 16:24:37 I/main: 1 plugin(s) enabled. mirai | 2021-06-09 16:24:38 I/main: Auto-login 9135** mirai | 2021-06-09 16:24:39 I/Bot.9135: Loaded account secrets from local cache. mirai | 2021-06-09 16:24:42 I/Bot.9135: Logging in... mirai | 2021-06-09 16:24:48 I/Bot.9135: Online OtherClients: FIREHORSE(WINDOWS) mirai | 2021-06-09 16:24:53 V/Bot.9135: Event: MemberJoinEvent.Active(member=766738) mirai | 2021-06-09 16:24:53 V/Bot.9135: Event: MemberJoinEvent.Active(member=8799000) mirai | 2021-06-09 16:26:19 I/Bot.9135: Login successful mirai | 2021-06-09 16:26:19 I/main: mirai-console started successfully. mirai | > 2021-06-09 16:26:19 W/console: Closing input service... efb | File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/main.py", line 135, in init efb | coordinator.add_channel(cls(instance_id=instance_id)) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/init.py", line 44, in init efb | self.init_client_manager() efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/init.py", line 73, in init_client_manager efb | self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 35, in init efb | raise Exception("Specified client not found!") efb | Exception: Specified client not found! efb | 2021-06-09 07:42:00,865 [Level 99]: ehforwarderbot.main (main.init; main.py:129) efb | Initializing slave milkice.qq... efb | Traceback (most recent call last): efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection efb | return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection efb | raise exceptions[0] efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection efb | sock = await self._connect_sock( efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock efb | await self.sock_connect(sock, address) efb | File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect efb | return await fut efb | File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb efb | raise OSError(err, f'Connect call failed {address}') efb | ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 8080) efb | efb | The above exception was the direct cause of the following exception: efb | efb | Traceback (most recent call last): efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 98, in post efb | response = await self.session.post(self.base_url + url, headers=headers, json=data) efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 520, in _request efb | conn = await self._connector.connect( efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 535, in connect efb | proto = await self._create_connection(req, traces, timeout) efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 892, in _createconnection efb | , proto = await self._create_direct_connection(req, traces, timeout) efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection efb | raise last_exc efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection efb | transp, proto = await self._wrap_create_connection( efb | File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection efb | raise client_error(req.connection_key, exc) from exc efb | aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 127.0.0.1:8080 ssl:default [Connect call failed ('127.0.0.1', 8080)] efb | efb | During handling of the above exception, another exception occurred: efb | efb | Traceback (most recent call last): efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 32, in init efb | self.client = cls(name, config, channel) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_plugin_mirai/mirai.py", line 65, in init efb | self.loop.run_until_complete(self.bot.handshake()) efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete efb | return future.result() efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 58, in handshake efb | await self.auth() efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 65, in auth efb | result = await self.session.post('/auth', data={'authKey': self.auth_key}) efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 100, in post efb | raise NetworkException('Unable to reach Mirai console') efb | mirai_core.exceptions.NetworkException: Unable to reach Mirai console efb | efb | During handling of the above exception, another exception occurred: efb | efb | Traceback (most recent call last): efb | File "/usr/local/bin/ehforwarderbot", line 8, in efb | sys.exit(main()) efb | File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/main.py", line 339, in main efb | init(conf) efb | File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/main.py", line 135, in init efb | coordinator.add_channel(cls(instance_id=instance_id)) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/init.py", line 44, in init efb | self.init_client_manager() efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/init.py", line 73, in init_client_manager efb | self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 35, in init efb | raise Exception("Specified client not found!") efb | Exception: Specified client not found! efb | 2021-06-09 07:42:05,481 [Level 99]: ehforwarderbot.main (main.init; main.py:129) efb | Initializing slave milkice.qq... efb | Traceback (most recent call last): efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 32, in init efb | self.client = cls(name, config, channel) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_plugin_mirai/mirai.py", line 65, in init efb | self.loop.run_until_complete(self.bot.handshake()) efb | File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete efb | return future.result() efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 58, in handshake efb | await self.auth() efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/bot.py", line 65, in auth efb | result = await self.session.post('/auth', data={'authKey': self.auth_key}) efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 101, in post efb | return await HttpClient._check_response(response, url, 'post') efb | File "/usr/local/lib/python3.8/site-packages/mirai_core/network.py", line 44, in _check_response efb | raise ServerException(f'{url} {method} failed, status code: {result.status}') efb | mirai_core.exceptions.ServerException: /auth post failed, status code: 404 efb | efb | During handling of the above exception, another exception occurred: efb | efb | Traceback (most recent call last): efb | File "/usr/local/bin/ehforwarderbot", line 8, in efb | sys.exit(main()) efb | File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/main.py", line 339, in main efb | init(conf) efb | File "/usr/local/lib/python3.8/site-packages/ehforwarderbot/main.py", line 135, in init efb | coordinator.add_channel(cls(instance_id=instance_id)) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/init.py", line 44, in init efb | self.init_client_manager() efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/init.py", line 73, in init_client_manager efb | self.QQClientMgr = ClientMgr(self.config['Client'], self.config, self) efb | File "/usr/local/lib/python3.8/site-packages/efb_qq_slave/ClientMgr.py", line 35, in init efb | raise Exception("Specified client not found!") efb | Exception: Specified client not found!

sakarie9 commented 3 years ago

@TodayNoLunch @JYInMyHeart 问题找到了😥

b6ca6a 引进了mirai-api-http-v2.0,此版本变更了很多接口,但efb-qq-plugin-mirai 尚未迁移至新接口

解决方案是暂时回退至旧版本的mirai-api-http,重新拉取新镜像即可

  1. 删除有问题的mirai镜像 docker image rm xzsk2/mirai-docker
  2. 拉取新镜像并重新启动 docker-compose up -d

如果配置无误应该就能正常启动了🤔

JYInMyHeart commented 3 years ago

@TodayNoLunch @JYInMyHeart 问题找到了😥

b6ca6a 引进了mirai-api-http-v2.0,此版本变更了很多接口,但efb-qq-plugin-mirai 尚未迁移至新接口

解决方案是暂时回退至旧版本的mirai-api-http,重新拉取新镜像即可

  1. 删除有问题的mirai镜像 docker image rm xzsk2/mirai-docker
  2. 拉取新镜像并重新启动 docker-compose up -d

如果配置无误应该就能正常启动了🤔

nice! 辛苦啦!😄

TodayNoLunch commented 3 years ago

@TodayNoLunch @JYInMyHeart 问题找到了😥

b6ca6a 引进了mirai-api-http-v2.0,此版本变更了很多接口,但efb-qq-plugin-mirai 尚未迁移至新接口

解决方案是暂时回退至旧版本的mirai-api-http,重新拉取新镜像即可

1. 删除有问题的mirai镜像
   `docker image rm xzsk2/mirai-docker`

2. 拉取新镜像并重新启动
   `docker-compose up -d`

如果配置无误应该就能正常启动了🤔

辛苦!十分感谢XD