wikihost-opensource / als

Another Looking-glass Server
MIT License
1.18k stars 144 forks source link

服务器信息下没有返回服务器位置和IP信息 #35

Closed SimonGino closed 1 year ago

SimonGino commented 1 year ago

BUG 简短描述

环境

Debian11 &docker version 23.0.1

使用的镜像版本 (docker ps | grep als):版本好像无返回值

现象

预期返回:

服务器信息正确返回服务器位置和IP信息

实际返回:

服务器信息下没有返回服务器位置和IP信息,详情见图片

Snipaste_2023-03-24_14-59-45

samlm0 commented 1 year ago

查看一下 docker logs (容器ID)

SimonGino commented 1 year ago

下面是我根据命令找到的日志文件: [2023-03-24 06:49:55] Application is starting... [2023-03-24 06:49:55] Working with nginx config... [2023-03-24 06:49:55] Working with speedtest static file(s)... [2023-03-24 06:49:55] Creating speedtest file with size: 1MB ... [2023-03-24 06:49:55] Creating speedtest file with size: 10MB ... [2023-03-24 06:49:55] Creating speedtest file with size: 100MB ... [2023-03-24 06:49:55] Creating speedtest file with size: 1GB ...

=================================================================== [FATAL ERROR]: all coroutines (count: 2) are asleep - deadlock!

[Coroutine-2]

0 /app/components/05-websocket_server.php(30): Swoole\Coroutine\Http\Server->start()

1 [internal function]: {closure}()

[Coroutine-1]

0 /app/components/01-fake_file_server.php(53): Swoole\Coroutine\Http\Server->start()

1 [internal function]: {closure}()

[2023-03-24 06:50:02] INFO: Waiting IP Database online... [2023-03-24 06:50:03] INFO: Waiting IP Database online... [2023-03-24 06:50:04] Uncompressing IP Database... [2023-03-24 06:50:04] INFO: Waiting IP Database online... [2023-03-24 06:50:05] INFO: Waiting IP Database online... [2023-03-24 06:50:06] Process exited - PID: 14 [2023-03-24 06:50:06] Uncompressing IP Database...Done [2023-03-24 06:50:06] ERROR: Failed to get public ipv6

samlm0 commented 1 year ago

问题已经在 #36 中修复, 如果依旧没有办法获取到 IP 信息。

检查主机到 ifconfig.co 的链接

SimonGino commented 1 year ago

image image 还是有问题,连通性是好的,镜像也重新拉了最新的,日志如下(47.255.255.255是我随便写的一个ip): [2023-03-30 08:24:37] Application is starting... [2023-03-30 08:24:37] Working with nginx config... [2023-03-30 08:24:37] Working with speedtest static file(s)... [2023-03-30 08:24:37] Creating speedtest file with size: 1MB ... [2023-03-30 08:24:37] Creating speedtest file with size: 10MB ... [2023-03-30 08:24:37] Creating speedtest file with size: 100MB ... [2023-03-30 08:24:38] Creating speedtest file with size: 1GB ... 47.255.255.255 - - [30/Mar/2023:08:24:45 +0000] "GET / HTTP/1.1" 200 422 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.54" "-" [2023-03-30 08:24:45] Waiting sock file: /run/speedtest.sock [2023-03-30 08:24:45] Waiting sock file: /run/speedtest-api.sock [2023-03-30 08:24:45] Waiting sock file: /run/ttyd.sock [2023-03-30 08:24:45] INFO: Waiting IP Database online... [2023-03-30 08:24:45] Uncompressing IP Database... [2023-03-30 08:24:45] Client incoming, IP:47.255.255.255 [2023-03-30 08:24:46] INFO: Waiting IP Database online... [2023-03-30 08:24:47] INFO: Waiting IP Database online... 47.255.255.255 - - [30/Mar/2023:08:24:47 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.54" "-" [2023-03-30 08:24:47] Client disconnected, IP: 47.255.255.255#13 47.255.255.255 - - [30/Mar/2023:08:24:47 +0000] "GET /ws HTTP/1.1" 101 477 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.54" "-" [2023-03-30 08:24:47] Client incoming, IP:47.255.255.255 [2023-03-30 08:24:48] Process exited - PID: 14 [2023-03-30 08:24:48] Uncompressing IP Database...Done [2023-03-30 08:24:48] ERROR: Failed to get public ipv6