We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--data
--force-bin-dir
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的问题,而不是其他原因(例如网络,依赖或操作)。
AList
Dependencies
Operational
依赖
操作
I'm sure this issue is not fixed in the latest version. 我确定这个问题在最新版本中没有被修复。
v3.38.0
无
alist start alist stop alist restart
以上,静默启动、停止和重新启动指定 --data 无效,均强制携带 --force-bin-dir,并且会覆盖 --data。
编译安装。方法:
# git clone -b v3.38.0 https://github.com/alist-org/alist # cd alist/public # fetch https://github.com/AlistGo/alist-web/releases/download/3.38.0/dist.tar.gz # tar xzvf dist.tar.gz # rm dist.tar.gz # cd .. # mkdir build # cd build # go build -ldflags="-w -s" -tags=jsoniter ..
root@ykla:/home/ykla/alist/build # ./alist start --data /home/ykla/alist/build/data INFO[2024-10-29 11:14:01] success start pid: 1293 root@ykla:/home/ykla/alist/build # ps PID TT STAT TIME COMMAND 926 v0- I 0:00.10 /usr/local/bin/sddm 941 v0 Is+ 0:00.00 /usr/libexec/getty Pc ttyv0 942 v1 Is+ 0:00.00 /usr/libexec/getty Pc ttyv1 943 v2 Is+ 0:00.00 /usr/libexec/getty Pc ttyv2 944 v3 Is+ 0:00.00 /usr/libexec/getty Pc ttyv3 945 v4 Is+ 0:00.00 /usr/libexec/getty Pc ttyv4 946 v5 Is+ 0:00.00 /usr/libexec/getty Pc ttyv5 947 v6 Is+ 0:00.00 /usr/libexec/getty Pc ttyv6 948 v7 Is+ 0:00.01 /usr/libexec/getty Pc ttyv7 1268 1 I 0:00.00 su 1269 1 S 0:00.12 su (sh) 1293 1 S 0:00.06 ./alist server --data /home/ykla/alist/build/data --force-bin-dir 1294 1 R+ 0:00.00 ps
并且
./alist start --data /home/ykla/alist/build/data
与
./alist server --data /home/ykla/alist/build/data
的预期不一致,会造成 token 错误的提示:如果先用 server --data /home/ykla/alist/build/data 生成了 data,再停止,那么再用 start --data /home/ykla/alist/build/data 命令执行,生成的页面会提示 token 错误,无法登录,密码始终不正确。但是反过来,使用 start --data /home/ykla/alist/build/data 命令指定 data,再停止,使用 server --data /home/ykla/alist/build/data 命令执行,没有问题。
server --data /home/ykla/alist/build/data
data
start --data /home/ykla/alist/build/data
指定的 data 目录均是一个——--data /home/ykla/alist/build/data。
--data /home/ykla/alist/build/data
默认生成,未进行任何改动:
root@ykla:/home/ykla/alist/build/data # cat config.json { "force": false, "site_url": "", "cdn": "", "jwt_secret": "yzu8ZKrzzS7BCiVc", "token_expires_in": 48, "database": { "type": "sqlite3", "host": "", "port": 0, "user": "", "password": "", "name": "", "db_file": "/home/ykla/alist/build/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": "/home/ykla/alist/build/data/temp", "bleve_dir": "/home/ykla/alist/build/data/bleve", "dist_dir": "", "log": { "enable": true, "name": "/home/ykla/alist/build/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": 5, "max_retry": 1, "task_persistant": true }, "transfer": { "workers": 5, "max_retry": 2, "task_persistant": true }, "upload": { "workers": 5, "max_retry": 0, "task_persistant": false }, "copy": { "workers": 5, "max_retry": 2, "task_persistant": true } }, "cors": { "allow_origins": [ "*" ], "allow_methods": [ "*" ], "allow_headers": [ "*" ] }, "s3": { "enable": false, "port": 5246, "ssl": false } }
root@ykla:/home/ykla/alist/build/data # cat log/log.log WARN[2024-10-29 11:15:20] not enable search root@ykla:/home/ykla/alist/build/data #
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
orOperational
).我确定是
AList
的问题,而不是其他原因(例如网络,依赖
或操作
)。I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。
AList Version / AList 版本
v3.38.0
Driver used / 使用的存储驱动
无
Describe the bug / 问题描述
以上,静默启动、停止和重新启动指定
--data
无效,均强制携带--force-bin-dir
,并且会覆盖--data
。编译安装。方法:
Reproduction / 复现链接
并且
与
的预期不一致,会造成 token 错误的提示:如果先用
server --data /home/ykla/alist/build/data
生成了data
,再停止,那么再用start --data /home/ykla/alist/build/data
命令执行,生成的页面会提示 token 错误,无法登录,密码始终不正确。但是反过来,使用start --data /home/ykla/alist/build/data
命令指定data
,再停止,使用server --data /home/ykla/alist/build/data
命令执行,没有问题。指定的 data 目录均是一个——
--data /home/ykla/alist/build/data
。Config / 配置
默认生成,未进行任何改动:
Logs / 日志
The text was updated successfully, but these errors were encountered: