Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Other] [docker]webui 初始化设置页面优化 #893

Closed
4 tasks done
mzhboy opened this issue Jan 12, 2025 · 4 comments
Closed
4 tasks done

[Other] [docker]webui 初始化设置页面优化 #893

mzhboy opened this issue Jan 12, 2025 · 4 comments
Labels
backend This is a backend related priority: low 低优先级

Comments

@mzhboy
Copy link

mzhboy commented Jan 12, 2025

问题描述 - Issue Description

最近尝试用 docker-compose-v2 部署 pbh ,按照例程,成功启动。但是进入初始化页面设置时出问题,测试连接提示 无法连接到下载器,登录时出现网络错误:java.net.ConnectException: null 。调查发现应该是 docker 默认使用桥接造成的。如果在文档里更新这一部分会有帮助。

这里 pbh(docker) 与 qb 安装于同一台机器。

初始化页面如果提示 pbh 当前的 ip 会有很大帮助。

后来不用桥接,用 host 连接搞定

services:
  peerbanhelper:
    image: "registry.cn-hangzhou.aliyuncs.com/ghostchu/peerbanhelper:v7.3.0"
    restart: unless-stopped
    container_name: "peerbanhelper"
    volumes:
      - ./data:/app/data
    network_mode: host

这样一来,连接 qb 的部分,用 http://localhost:8080 即可

额外信息 - Addition Information

No response

检查清单 - Check list

  • 这不是一个错误 (BUG) (This is not an bug/error)
  • PeerBanHelper 已更新到最新版本,非最新版本不接受任何错误反馈,任何非最新版本的 Issue 将被 立 刻 关 闭,不会有人给您提供任何支持 (I'm running the latest version of PBH that can be found in Github Relases, non-latest release won't receive any support)
  • 我已检查过 PBH 文档(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or PBH WIKI)
  • 我同意遵守 PBH-BTN 包容性条约,不发布 “嘲讽、骂战、引战、开盒(有时也称为人肉搜索)、人身攻击、仇恨、暴力、侮辱性言辞、违法违规、黑灰产、危害国家安全、实施或帮助他人实施电信犯罪” 等内容。并已知晓如果仍旧发布了这些内容,我的账号将立刻从包括但不限于 PBH-BTN 组织、社交软件中封禁。所有主题、内容都将被立刻删除或折叠,撤销、删除和收回您所做出的一切贡献,并封禁 BTN 网络的中账号权限、排除您所提交的所有数据。在您违反相关规则时,PBH-BTN 将会将您的注册、登录、和最近访问的 IP 地址、电子邮件地址、以及其它可能追踪您或将您去匿名化的信息从定期删除转为永不删除,并在任何国家或地区的政府、公安机关或有关部门需要时无通知的提供这些数据。 (I agree to abide by the PBH-BTN Inclusivity Pact by not posting content such as “taunting, name-calling, war-mongering, open-boxing (sometimes referred to as mansplaining), personal attacks, hatred, violence, insulting language, illegal activities, black and grey business, endangering national security, and committing or assisting others in committing telecommunication crimes”. I am aware that if I continue to post such content, my account will be immediately banned from organizations including but not limited to PBH-BTN, social software. All topics and content will be immediately deleted or collapsed, all contributions will be revoked, deleted and retracted, and you will be banned from the BTN network and all data you have submitted will be excluded. In the event of a violation of these rules, PBH-BTN will delete your registration, login, and most recent IP address, email address, and any other information that may be used to track you or de-anonymize you from regular to permanent deletion, and will make this data available to the government, public security, or other relevant authorities without notice if they request it, no matter what country or region.)
@mzhboy mzhboy changed the title [Other] [docker]webui 设置页面优化 [Other] [docker]webui 初始化设置页面优化 Jan 12, 2025
@Ghost-chu
Copy link
Collaborator

bridge已经用了很久了,现在不太好换了,不能贸然换成host,否则现有配置都会坏掉。只能等v8这种大版本才能动了。

@Ghost-chu Ghost-chu added priority: low 低优先级 backend This is a backend related labels Jan 12, 2025
@Ghost-chu
Copy link
Collaborator

调查发现应该是 docker 默认使用桥接造成的。如果在文档里更新这一部分会有帮助

这里文档里面已经提到过了: https://docs.pbh-btn.com/docs/faq#%E6%97%A0%E6%B3%95%E9%80%9A%E8%BF%87-127001-%E6%88%96-localhost-%E8%BF%9E%E6%8E%A5%E5%88%B0%E4%B8%8B%E8%BD%BD%E5%99%A8connectexception-null

我已检查过 PBH 文档(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or PBH WIKI)

真的吗?

@CreeperAWA
Copy link
Contributor

调查发现应该是 docker 默认使用桥接造成的。如果在文档里更新这一部分会有帮助

这里文档里面已经提到过了: https://docs.pbh-btn.com/docs/faq#%E6%97%A0%E6%B3%95%E9%80%9A%E8%BF%87-127001-%E6%88%96-localhost-%E8%BF%9E%E6%8E%A5%E5%88%B0%E4%B8%8B%E8%BD%BD%E5%99%A8connectexception-null

我已检查过 PBH 文档(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or PBH WIKI)

真的吗?

Docker 部署的地方没提,群辉 Docker 部署到是有讲,FAQ 估计想不到去看,要不我给 Docker 部署那加上?

@mzhboy
Copy link
Author

mzhboy commented Jan 12, 2025

确实没想到去 FAQ 看,因为用 Google 搜索了都没有效结果,关键词没有命中。

@Ghost-chu Ghost-chu closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This is a backend related priority: low 低优先级
Projects
None yet
Development

No branches or pull requests

3 participants