wikihost-opensource / als

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

[BUG] speedtest无法执行 #68

Closed shuangzhijinghua closed 7 months ago

shuangzhijinghua commented 8 months ago

BUG 简短描述

环境

Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm

使用二进制文件版本v2.0-fix1

现象

预期返回:

   Speedtest by Ookla

      Server: STC - Hong Kong (id: 1536)
         ISP: Netvigator
Idle Latency:     2.02 ms   (jitter: 0.04ms, low: 1.98ms, high: 2.04ms)
    Download:   849.48 Mbps (data used: 899.1 MB)                                                   
                  9.42 ms   (jitter: 4.61ms, low: 1.87ms, high: 244.72ms)
      Upload:   914.14 Mbps (data used: 412.0 MB)                                                   
                  8.20 ms   (jitter: 8.25ms, low: 2.01ms, high: 232.58ms)
 Packet Loss: Not available.

实际返回:

主页的speedtest.net功能停留在“测试很快开始”,通过shell执行speedtest返回如下:
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
samlm0 commented 8 months ago

尝试一下直接在终端执行 als --fakeshell ,然后再测试一下 speedtest 是否可用

shuangzhijinghua commented 8 months ago

als -shell 可以运行speedtest, --fakeshell 无此参数

samlm0 commented 8 months ago

看起来应该是 speedtest 找 $HOME 找不到导致的,尝试设置一下环境变量。