AlistGo / AlistGo/alist

内存溢出?

Aperta
#7,838 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Go
Stelle
50.2k
Fork
7.9k
Merge medio
7g 21h
PR unite (30g)
6

Descrizione

### Please make sure of the following things

- [x] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

- [x] I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。

- [x] I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

- [x] I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。

### AList Version / AList 版本

https://github.com/AlistGo/alist/commit/b60da9732f22b22d84f015d6aaabcb2f058871d1

### Driver used / 使用的存储驱动

onedrive,onedrive app, baidupan

### Describe the bug / 问题描述

突然发现alist打不开了。上服务器看了下好像alist爆内存了。

![Image](https://github.com/user-attachments/assets/142bee5b-35ac-4ddc-ad96-2aa006fd31d7)

![Image](https://github.com/user-attachments/assets/251d2044-e25c-48bd-bf38-ba5d557d4fa3)

![Image](https://github.com/user-attachments/assets/e81fb818-2d2e-4eff-a47b-656e4cfd0cc9)

### Reproduction / 复现链接

不知道是什么东西引起的,只能说一下爆内存之前的操作

就只有往OneDrive里丢了个qbt的离线下载
qbt有独立控制面板看了下已经卡了两天都没下载完。

### Config / 配置

```
{
"force": false,
"site_url": "",
"cdn": "",
"jwt_secret": "hlTvrUJu1jQkNhJ9",
"token_expires_in": 48,
"database": {
"type": "mysql",
"host": "localhost",
"port": 3306,
"user": "[duh]",
"password": "[duh]",
"name": "alist",
"db_file": "data/data.db",
"table_prefix": "a_",
"ssl_mode": "",
"dsn": ""
},
"meilisearch": {
"host": "http://localhost:7700",
"api_key": "",
"index_prefix": ""
},
"scheme": {
"address": "127.0.0.1",
"http_port": 5244,
"https_port": -1,
"force_https": false,
"cert_file": "",
"key_file": "",
"unix_file": "",
"unix_file_perm": ""
},
"temp_dir": "data/temp",
"bleve_dir": "data/bleve",
"dist_dir": "",
"log": {
"enable": true,
"name": "data/log/log.log",
"max_size": 50,
"max_backups": 30,
"max_age": 28,
"compress": false
},
"delayed_start": 0,
"max_connections": 0,
"tls_insecure_skip_verify": true,
"tasks": {
"download": {
"workers": 4,
"max_retry": 2,
"task_persistant": false
},
"transfer": {
"workers": 4,
"max_retry": 2,
"task_persistant": false
},
"upload": {
"workers": 4,
"max_retry": 2,
"task_persistant": false
},
"copy": {
"workers": 4,
"max_retry": 2,
"task_persistant": 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": "dev"
}
```

### Logs / 日志

```
Jan 13 01:44:42 bbk systemd[1]: Started alist.service - Alist Server.
Jan 13 01:44:42 bbk alist[1152]: INFO[2025-01-13 01:44:42] reading config file: data/config.json
Jan 13 01:44:42 bbk alist[1152]: INFO[2025-01-13 01:44:42] load config from env with prefix: ALIST_
Jan 13 01:44:42 bbk alist[1152]: INFO[2025-01-13 01:44:42] init logrus...
Jan 13 01:44:42 bbk alist[1152]: INFO[2025-01-13 01:44:42] init tool qBittorrent success: ok
Jan 13 01:44:42 bbk alist[1152]: INFO[2025-01-13 01:44:42] init tool Thunder success: ok
Jan 13 01:44:42 bbk alist[1152]: WARN[2025-01-13 01:44:42] init tool Transmission failed: failed get transmission version: can't get session values: 'session-get>
Jan 13 01:44:42 bbk alist[1152]: INFO[2025-01-13 01:44:42] init tool 115 Cloud success: ok
Jan 13 01:44:42 bbk alist[1152]: WARN[2025-01-13 01:44:42] init tool aria2 failed: failed get aria2 version: Post "http://localhost:6800/jsonrpc": dial tcp [::1]>
Jan 13 01:44:42 bbk alist[1152]: INFO[2025-01-13 01:44:42] init tool SimpleHttp success: ok
Jan 13 01:44:42 bbk alist[1152]: INFO[2025-01-13 01:44:42] init tool PikPak success: ok
Jan 13 01:44:42 bbk alist[1152]: INFO[2025-01-13 01:44:42] start HTTP server @ 127.0.0.1:5244
Jan 13 01:44:43 bbk alist[1152]: INFO[2025-01-13 01:44:43] success load storage: [/main/ondriveE5], driver: [OnedriveAPP], order: [0]
Jan 13 01:44:43 bbk alist[1152]: INFO[2025-01-13 01:44:43] success load storage: [/pub/osec], driver: [Alias], order: [0]
Jan 13 01:44:43 bbk alist[1152]: INFO[2025-01-13 01:44:43] success load storage: [/pub/any], driver: [OnedriveAPP], order: [0]
Jan 13 01:44:44 bbk alist[1152]: INFO[2025-01-13 01:44:44] success load storage: [/main/bd], driver: [BaiduNetdisk], order: [0]
Jan 13 14:14:13 bbk alist[1152]: [mysql] 2025/01/13 14:14:13 packets.go:122: closing bad idle connection: connection reset by peer
Jan 13 14:14:13 bbk alist[1152]: [mysql] 2025/01/13 14:14:13 connection.go:173: driver: bad connection
Jan 13 14:14:13 bbk alist[1152]: [mysql] 2025/01/13 14:14:13 packets.go:122: closing bad idle connection: connection reset by peer
Jan 13 14:14:13 bbk alist[1152]: [mysql] 2025/01/13 14:14:13 connection.go:173: driver: bad connection
Jan 14 10:47:02 bbk alist[1152]: [mysql] 2025/01/14 10:47:02 packets.go:122: closing bad idle connection: connection reset by peer
Jan 14 10:47:02 bbk alist[1152]: [mysql] 2025/01/14 10:47:02 connection.go:173: driver: bad connection
Jan 14 10:47:02 bbk alist[1152]: [mysql] 2025/01/14 10:47:02 packets.go:122: closing bad idle connection: connection reset by peer
Jan 14 10:47:02 bbk alist[1152]: [mysql] 2025/01/14 10:47:02 connection.go:173: driver: bad connection
Jan 16 12:14:28 bbk alist[1152]: [mysql] 2025/01/16 12:14:28 packets.go:122: closing bad idle connection: connection reset by peer
Jan 16 12:14:28 bbk alist[1152]: [mysql] 2025/01/16 12:14:28 connection.go:173: driver: bad connection
Jan 16 12:14:28 bbk alist[1152]: [mysql] 2025/01/16 12:14:28 packets.go:122: closing bad idle connection: connection reset by peer
Jan 16 12:14:28 bbk alist[1152]: [mysql] 2025/01/16 12:14:28 connection.go:173: driver: bad connection
Jan 17 03:04:14 bbk alist[1152]: [mysql] 2025/01/17 03:04:14 packets.go:122: closing bad idle connection: connection reset by peer
Jan 17 03:04:14 bbk alist[1152]: [mysql] 2025/01/17 03:04:14 connection.go:173: driver: bad connection
Jan 17 03:04:14 bbk alist[1152]: [mysql] 2025/01/17 03:04:14 packets.go:122: closing bad idle connection: connection reset by peer
Jan 17 03:04:14 bbk alist[1152]: [mysql] 2025/01/17 03:04:14 connection.go:173: driver: bad connection
Jan 18 02:47:21 bbk alist[1152]: [mysql] 2025/01/18 02:47:21 packets.go:122: closing bad idle connection: connection reset by peer
Jan 18 02:47:21 bbk alist[1152]: [mysql] 2025/01/18 02:47:21 connection.go:173: driver: bad connection
Jan 18 02:47:21 bbk alist[1152]: [mysql] 2025/01/18 02:47:21 packets.go:122: closing bad idle connection: connection reset by peer
Jan 18 02:47:21 bbk alist[1152]: [mysql] 2025/01/18 02:47:21 connection.go:173: driver: bad connection
Jan 18 11:47:53 bbk alist[1152]: [mysql] 2025/01/18 11:47:53 packets.go:122: closing bad idle connection: connection reset by peer
Jan 18 11:47:53 bbk alist[1152]: [mysql] 2025/01/18 11:47:53 connection.go:173: driver: bad connection
Jan 18 11:47:53 bbk alist[1152]: [mysql] 2025/01/18 11:47:53 packets.go:122: closing bad idle connection: connection reset by peer
Jan 18 11:47:53 bbk alist[1152]: [mysql] 2025/01/18 11:47:53 connection.go:173: driver: bad connection
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.