Giter VIP home page Giter VIP logo

Comments (24)

stdrc avatar stdrc commented on July 21, 2024

运行一下 docker inspect bridge 看一下 Gateway 是不是确实是 172.17.0.1

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

@richardchien 是的,我确认了,然后我也ping通了,但是就是连不上,我现在再全部重头来一遍试试。

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

@LittleWhite-Carry 你把 JSON 配置文件里面重复的 key 删掉看下

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

不行,我有个疑问ws_reverse_url 这个不填嘛? @richardchien

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

@LittleWhite-Carry 填了 ws_reverse_api_url 和 ws_reverse_event_url 就可以不填那个

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

连不上,有什么可能的原因嘛? @richardchien

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

@LittleWhite-Carry 你发一下你现在的 CQHTTP 插件配置看看。当然也不排除是端口冲突的原因

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

我觉得可能是端口冲突,CQHTTP插件配置在哪里? @richardchien

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

@LittleWhite-Carry 酷Q 的 app/io.github.xxxxxapi/config/ 或者 data/app/io.github.xxxxxapi/config/

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

这个config文件夹下就只有一个 qqid.json @richardchien

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

@LittleWhite-Carry 对啊就是那个

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

哦哦哦

{
    "host": "[::]",
    "port": 5700,
    "use_http": true,
    "ws_host": "[::]",
    "ws_port": 6700,
    "use_ws": false,
    "ws_reverse_url": "",
    "ws_reverse_reconnect_interval": 3000,
    "post_url": "",
    "access_token": "",
    "secret": "",
    "post_message_format": "string",
    "serve_data_files": false,
    "update_source": "github",
    "update_channel": "stable",
    "auto_check_update": false,
    "auto_perform_update": false,
    "show_log_console": true,
    "log_level": "info",
    "ws_reverse_api_url": "ws://172.17.0.1:8080/ws/api/",
    "ws_reverse_event_url": "ws:/172.17.0.1/:8080/ws/event/",
    "ws_reverse_reconnect_on_code_1000": true,
    "use_ws_reverse": true
}

@richardchien

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

@LittleWhite-Carry ws_reverse_event_url 没对(多了个 /

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

不行 @richardchien

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

@LittleWhite-Carry 那换端口试试(另外,可以发一下 酷Q 刚启动时候的插件输出的日志,以及,可以把插件刚刚的 JSON 配置的 log_level 改成 debug

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

只有event报错,然后error code 10065 @richardchien

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

@LittleWhite-Carry 那你这个应该还是 ws_reverse_event_url 设置的问题

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

好吧,都有问题,刚刚不小心吧api的url改了一下 @richardchien

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

而且我现在重新弄了一遍,那个json文件就不出现了 @richardchien

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

要不还是试试用 Windows 机器?

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

买的服务器,只能带的动linux @richardchien

from nonebot.

LittleWhite-Carry avatar LittleWhite-Carry commented on July 21, 2024

能通信了,虽然现在通信内容好像有点问题,但是至少连上了。

具体做法就是在docker run的时候加上 --network host这个选项。例如

docker run --name=coolq --rm --network host -v /root/coolq-data:/home/user/coolq -e VNC_PASSWD=123456 -e COOLQ_ACCOUNT=123456 coolq/wine-coolq

这样的话,就不需要-p端口映射项了

而且配置项里面的url也都是127.0.0.1
@richardchien

from nonebot.

zzm88 avatar zzm88 commented on July 21, 2024

能通信了,虽然现在通信内容好像有点问题,但是至少连上了。

具体做法就是在docker run的时候加上 --network host这个选项。例如

docker run --name=coolq --rm --network host -v /root/coolq-data:/home/user/coolq -e VNC_PASSWD=123456 -e COOLQ_ACCOUNT=123456 coolq/wine-coolq

这样的话,就不需要-p端口映射项了

而且配置项里面的url也都是127.0.0.1
@richardchien

可以分享一下配置吗?谢谢,我卡在这里很久了

from nonebot.

97littleleaf11 avatar 97littleleaf11 commented on July 21, 2024

出现同样的问题,docker上的后台一直提示重连。--network host这个选项加了可以解决问题。

from nonebot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.