sbwml / luci-app-alist

LuCI support for Alist
https://github.com/alist-org/alist
1.33k stars 203 forks source link

密码输入总是不正确 #123

Open fanrenyige opened 2 months ago

fanrenyige commented 2 months ago

版本:最新 操作: root@OpenWrt:/usr/bin# alist admin set 12345678 --data /etc/alist INFO[2024-08-06 11:56:07] reading config file: /etc/alist/config.json
INFO[2024-08-06 11:56:07] init logrus...
WARN[2024-08-06 11:56:07] not enable search
INFO[2024-08-06 11:56:07] admin user has been updated:
INFO[2024-08-06 11:56:07] username: admin
INFO[2024-08-06 11:56:07] password: 12345678
WARN[2024-08-06 11:56:07] [del_user_cache_online] failed: Post "http://localhost:5244/api/admin/user/del_cache?username=admin": dial tcp [::1]:5244: connect: connection refused INFO[2024-08-06 11:56:07] closing db
root@OpenWrt:/usr/bin#

用12345678作为密码去登录,报密码不正确,无法登录

fanrenyige commented 2 months ago

刚才关闭了IP v6,关闭了dhcp。 root@OpenWrt:/usr/bin# alist admin --data /etc/alist random INFO[2024-08-06 12:47:25] reading config file: /etc/alist/config.json
INFO[2024-08-06 12:47:25] init logrus...
WARN[2024-08-06 12:47:25] not enable search
INFO[2024-08-06 12:47:25] admin user has been updated:
INFO[2024-08-06 12:47:25] username: admin
INFO[2024-08-06 12:47:25] password: Ank96Azs
WARN[2024-08-06 12:47:25] [del_user_cache_online] failed: Post "http://localhost:5244/api/admin/user/del_cache?username=admin": dial tcp [::1]:5244: connect: connection refused INFO[2024-08-06 12:47:25] closing db
root@OpenWrt:/usr/bin# 用这个随机密码登录成功了。真是很奇怪,修改的openwrt配置和alist没有啥关系啊

sbwml commented 2 months ago

这些问题建议千万 alist 官方仓库问,这里仅仅是luci 提供。

发自我的iPhone

在 2024年8月6日,12:55,fanrenyige @.***> 写道:

 刚才关闭了IP v6,关闭了dhcp。 @.:/usr/bin# alist admin --data /etc/alist random INFO[2024-08-06 12:47:25] reading config file: /etc/alist/config.json INFO[2024-08-06 12:47:25] init logrus... WARN[2024-08-06 12:47:25] not enable search INFO[2024-08-06 12:47:25] admin user has been updated: INFO[2024-08-06 12:47:25] username: admin INFO[2024-08-06 12:47:25] password: Ank96Azs WARN[2024-08-06 12:47:25] [del_user_cache_online] failed: Post "http://localhost:5244/api/admin/user/del_cache?username=admin": dial tcp [::1]:5244: connect: connection refused INFO[2024-08-06 12:47:25] closing db @.:/usr/bin# 用这个随机密码登录成功了。真是很奇怪,修改的openwrt配置和alist没有啥关系啊

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

fanrenyige commented 2 months ago

经过验证,和openwrt编译加入的模块相关。如果假如nginx几个相关的模块,输入ip出现https时,密码都不能用。相反用http能够访问openwrt时,密码有效。推测 应该alist设置密码时的某个操作用的是http协议,当openwrt系统默认https时,操作被中断了。