-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Please make sure of the following things
-
I have read the documentation.
我已经阅读了文档。 -
I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。 -
I'm sure it's due to
AListand not something else(such as Network ,DependenciesorOperational).
我确定是AList的问题,而不是其他原因(例如网络,依赖或操作)。 -
I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。
AList Version / AList 版本
v3.47.1
Driver used / 使用的存储驱动
本机存储
Describe the bug / 问题描述
我使用路由器挂载ntfs硬盘目录,然后启动alist程序,配置/mnt目录为挂载路径,打开 http://192.168.15.1:5244/mnt 页面正常,继续点击下一层页面 http://192.168.15.1:5244/mnt/wd_1t_p2 ,页面转圈不显示内容。
转看程序输出到控制台日志信息提示:
DEBU[2025-08-03 10:58:48]github.com/alist-org/alist/v3/internal/op/fs.go:128 github.com/alist-org/alist/v3/internal/op.List() list dir: &{ID: Path:/mnt/wd_1t_p2 Name:wd_1t_p2 Size:0 Modified:2023-11-11 14:48:26.251723 +0000 UTC Ctime:2012-10-12 14:43:35 +0000 UTC IsFolder:true HashInfo:null}
DEBU[2025-08-03 10:58:48]github.com/alist-org/alist/v3/internal/op/path.go:26 github.com/alist-org/alist/v3/internal/op.GetStorageAndActualPath() use storage: /mnt
[GIN] 2025/08/03 - 10:58:48 | 200 | 13.581725ms | 192.168.15.219 | POST "/api/fs/list"
Error #01: json: error calling MarshalJSON for type time.Time: Time.MarshalJSON: year outside of range [0,9999]
检查目录文件也没发现哪个文件或目录的时间有异常日期。日志里也没有输出是哪个文件的问题。
Reproduction / 复现链接
http://192.168.15.1:5244/mnt/wd_1t_p2
Config / 配置
alist运行命令:
alist server --data /etc/alist --no-prefix --debug
tree /etc/alist:
/etc/alist
├── config.json
├── data.db
├── data.db-shm
├── data.db-wal
├── log
│ └── log.log
└── temp
/etc/alist/config.json内容:
{
"force": true,
"site_url": "",
"cdn": "",
"jwt_secret": "E8M8zWEn7ebsjzfw",
"token_expires_in": 48,
"database": {
"type": "sqlite3",
"host": "",
"port": 0,
"user": "",
"password": "",
"name": "",
"db_file": "/etc/alist/data.db",
"table_prefix": "x_",
"ssl_mode": "",
"dsn": ""
},
"meilisearch": {
"host": "http://localhost:7700",
"api_key": "",
"index_prefix": ""
},
"scheme": {
"address": "0.0.0.0",
"http_port": 5244,
"https_port": -1,
"force_https": false,
"cert_file": "",
"key_file": "",
"unix_file": "",
"unix_file_perm": "",
"enable_h2c": false
},
"temp_dir": "/var/run/alist/temp",
"bleve_dir": "/etc/alist/bleve",
"dist_dir": "",
"log": {
"enable": true,
"name": "/var/run/alist/log/alist.log",
"max_size": 5,
"max_backups": 1,
"max_age": 15,
"compress": false
},
"delayed_start": 0,
"max_connections": 0,
"max_concurrency": 64,
"tls_insecure_skip_verify": false,
"tasks": {
"download": {
"workers": 5,
"max_retry": 1,
"task_persistant": false
},
"transfer": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"upload": {
"workers": 5,
"max_retry": 0,
"task_persistant": false
},
"copy": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress_upload": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"allow_retry_canceled": false
},
"cors": {
"allow_origins": [
"*"
],
"allow_methods": [
"*"
],
"allow_headers": [
"*"
]
},
"s3": {
"enable": false,
"port": 5246,
"ssl": false
},
"ftp": {
"enable": false,
"listen": ":5221",
"find_pasv_port_attempts": 50,
"active_transfer_port_non_20": false,
"idle_timeout": 900,
"connection_timeout": 30,
"disable_active_mode": false,
"default_transfer_binary": false,
"enable_active_conn_ip_check": true,
"enable_pasv_conn_ip_check": true
},
"sftp": {
"enable": false,
"listen": ":5222"
},
"last_launched_version": "3.45.0"
}
Logs / 日志
DEBU[2025-08-03 10:58:48]github.com/alist-org/alist/v3/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:a6b9387a364077ce1420526fc2ccc12a993917879b5cc129cf33b1be19548c9c PwdTS:1750515275 Salt:DXDcX3WGKFnv9Lzo Password: BasePath:/ Role:2 Disabled:false Permission:12543 OtpSecret: SsoID: Authn:[]}
DEBU[2025-08-03 10:58:48]github.com/alist-org/alist/v3/internal/op/path.go:26 github.com/alist-org/alist/v3/internal/op.GetStorageAndActualPath() use storage: /mnt
DEBU[2025-08-03 10:58:48]github.com/alist-org/alist/v3/internal/op/fs.go:116 github.com/alist-org/alist/v3/internal/op.List() op.List /wd_1t_p2
DEBU[2025-08-03 10:58:48]github.com/alist-org/alist/v3/internal/op/fs.go:173 github.com/alist-org/alist/v3/internal/op.Get() op.Get /wd_1t_p2
DEBU[2025-08-03 10:58:48]github.com/alist-org/alist/v3/internal/op/fs.go:128 github.com/alist-org/alist/v3/internal/op.List() list dir: &{ID: Path:/mnt/wd_1t_p2 Name:wd_1t_p2 Size:0 Modified:2023-11-11 14:48:26.251723 +0000 UTC Ctime:2012-10-12 14:43:35 +0000 UTC IsFolder:true HashInfo:null}
DEBU[2025-08-03 10:58:48]github.com/alist-org/alist/v3/internal/op/path.go:26 github.com/alist-org/alist/v3/internal/op.GetStorageAndActualPath() use storage: /mnt
[GIN] 2025/08/03 - 10:58:48 | 200 | 13.581725ms | 192.168.15.219 | POST "/api/fs/list"
Error #01: json: error calling MarshalJSON for type time.Time: Time.MarshalJSON: year outside of range [0,9999]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working