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

v3.3.7 树莓派4B无法连接到127.0.0.1:9898 #99

Open
pullingtab opened this issue May 4, 2024 · 7 comments
Open

v3.3.7 树莓派4B无法连接到127.0.0.1:9898 #99

pullingtab opened this issue May 4, 2024 · 7 comments

Comments

@pullingtab
Copy link

我在树莓派4B上执行了下面的操作:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install docker.io
sudo apt-get install docker-compose
然后将当前用户添加到docker组,
然后创建文件docker-compose.yml,添加了如下内容:
version: "3.3"
services:
peerbanhelper:
image: "ghostchu/peerbanhelper:v3.3.7"
restart: unless-stopped
container_name: "peerbanhelper"
volumes:
- ./:/app/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "9898:9898"
保存文件之后,执行了docker-compose up。
得到如下输出:
pi@raspberrypi:~/peer-ban-helper-data $ docker-compose up
Pulling peerbanhelper (ghostchu/peerbanhelper:v3.3.7)...
v3.3.7: Pulling from ghostchu/peerbanhelper
8e34fc49fc73: Already exists
69fcdb6b302d: Already exists
5ba65ebcb331: Already exists
b4a6b2dabb82: Already exists
0e548e91efa5: Already exists
44d7d1f5bdd6: Pull complete
c6c1a641ca71: Pull complete
ae10a8c563a0: Pull complete
405d29a9dfda: Pull complete
Digest: sha256:a6ba7a4ee7547ae0d373deef0c042ed5d6f1dfcd91fdcba83a12f59a0c2d52e7
Status: Downloaded newer image for ghostchu/peerbanhelper:v3.3.7
Recreating peerbanhelper ... done
Attaching to peerbanhelper
然后就卡住不动了。查看top,发现java进程占用了大量CPU:
top - 00:50:16 up 6:24, 3 users, load average: 4.93, 5.06, 5.07
Tasks: 184 total, 1 running, 183 sleeping, 0 stopped, 0 zombie
%Cpu(s): 27.8 us, 70.8 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 1.4 si, 0.0 st
MiB Mem : 7692.7 total, 1167.1 free, 2140.4 used, 4385.2 buff/cache
MiB Swap: 100.0 total, 100.0 free, 0.0 used. 5450.4 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30289 root 20 0 351640 19652 11580 S 300.0 0.2 287:00.46 java
527 root 20 0 38832 22024 12608 S 43.8 0.3 0:41.53 vncserver+
576 root 20 0 2097520 1.8g 16248 S 25.0 24.3 218:32.01 qbittorre+
563 root 20 0 172248 63476 47096 S 18.8 0.8 2:47.29 Xorg
720 pi 20 0 50552 6288 5260 S 6.2 0.1 0:01.92 ibus-daem+
30738 pi 20 0 10292 2800 2464 R 6.2 0.0 0:00.02 top
1 root 20 0 34884 8248 6284 S 0.0 0.1 0:32.64 systemd
java进程好像是docker里面的进程,因为参数里有peerbanhelper:
pi@raspberrypi:~ $ ps -ef | grep java
root 30181 30162 0 May04 ? 00:00:00 dumb-init java -Xmx256M -XX:+UseSerialGC -jar PeerBanHelper.jar
root 30289 30181 99 May04 ? 04:51:15 java -Xmx256M -XX:+UseSerialGC -jar PeerBanHelper.jar
pi 30746 30703 0 00:51 pts/1 00:00:00 grep --color=auto java
pi@raspberrypi:~ $
我自己解决不下去了。因为不知道怎么进docker系统的控制台。
能告诉我下怎么解决,或者怎么调试么?

@pullingtab
Copy link
Author

在树莓派里直接用浏览器访问127.0.0.1:9898,提示:“This site can’t be reached”

@pullingtab
Copy link
Author

docker-compose.yml所在路径下没有新生成任何文件

@Ghost-chu
Copy link
Collaborator

ARM 设备暂未进行测试和适配。对于暂时不受支持的平台,请尝试脱离 Docker 环境,进行手动部署(无GUI版)

https://github.com/PBH-BTN/PeerBanHelper/wiki/Linux-%E6%89%8B%E5%8A%A8%E9%83%A8%E7%BD%B2

@pullingtab
Copy link
Author

ARM 设备暂未进行测试和适配。对于暂时不受支持的平台,请尝试脱离 Docker 环境,进行手动部署(无GUI版)

https://github.com/PBH-BTN/PeerBanHelper/wiki/Linux-%E6%89%8B%E5%8A%A8%E9%83%A8%E7%BD%B2

我试了下使用docker命令直接创建容器,也是一样的效果。看来只能等你的好消息了。

@Ghost-chu
Copy link
Collaborator

ARM 设备暂未进行测试和适配。对于暂时不受支持的平台,请尝试脱离 Docker 环境,进行手动部署(无GUI版)
https://github.com/PBH-BTN/PeerBanHelper/wiki/Linux-%E6%89%8B%E5%8A%A8%E9%83%A8%E7%BD%B2

我试了下使用docker命令直接创建容器,也是一样的效果。看来只能等你的好消息了。

ARM 设备请不要使用Docker,而是使用 APT-GET 包管理器手动安装 openjdk 17+ 版本,并通过 java 命令启动程序。

@laocuiGitHub
Copy link

openjdk 17有ARM版。环境搭建好应该可以正常运行的。

@Ghost-chu Ghost-chu closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2024
@Ghost-chu Ghost-chu reopened this Jan 29, 2025
@Ghost-chu
Copy link
Collaborator

添加了 arm32 的支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants