Skip to content

配置文件中的任务持久化选项不生效 #8145

@kisekinoumi

Description

@kisekinoumi

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 AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

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

AList Version / AList 版本

beta/d16ba65f4224bb9ace40655c458f6f5e5f9fedad

Driver used / 使用的存储驱动

阿里云盘open

Describe the bug / 问题描述

修改了配置文件的任务持久化选项后,每次alist服务重启,之前存在的上传任务列表依然会全部清空。
以及建议默认开启任务持久化功能。
例如像这样已经完成的任务列表就会被全部清空。
Image

Reproduction / 复现链接

root@s37602:/opt/alist# ./alist version
Built At: 3/16/2025, 8:57:53 AM
Go Version: go1.23.1 linux/amd64
Author: Xhofe
Commit ID: d16ba65
Version: refs/heads/main
WebVersion: dev
root@s37602:/opt/alist#

Config / 配置

{
"force": true,
"site_url": "https://alist.XXXXXX.xyz",
"cdn": "",
"jwt_secret": "CQMQLHSgorPYlnwN",
"token_expires_in": 48,
"database": {
"type": "sqlite3",
"host": "",
"port": 0,
"user": "",
"password": "",
"name": "",
"db_file": "data/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": ""
},
"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,
"max_concurrency": 64,
"tls_insecure_skip_verify": true,
"tasks": {
"download": {
"workers": 5,
"max_retry": 1,
"task_persistant": true
},
"transfer": {
"workers": 5,
"max_retry": 2,
"task_persistant": true
},
"upload": {
"workers": 10,
"max_retry": 3,
"task_persistant": true
},
"copy": {
"workers": 5,
"max_retry": 2,
"task_persistant": true
},
"decompress": {
"workers": 5,
"max_retry": 2,
"task_persistant": true
},
"decompress_upload": {
"workers": 5,
"max_retry": 2,
"task_persistant": true
},
"allow_retry_canceled": true
},
"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": "refs/heads/main"
}

Logs / 日志

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions