qiniu / qshell

Shell Tools for Qiniu Cloud
MIT License
1k stars 199 forks source link

qdownload下载文件报错domain list request error:bad token、domain list is empty、app/accesskey is not found #402

Closed enjoyWeb closed 1 year ago

enjoyWeb commented 1 year ago

问题描述

使用命令qshell qdownload -c 10 qiniu.conf下载bucket上的文件,出现如下报错

重现步骤

  1. 创建账号 qshell account ak sk zling1991
  2. 配置domain,跟区域有关系?我使用的bucket存储区域是新加坡 image
  3. 创建qiniu.conf文件
    {
    "bucket"    :   "zling1991",
    "cdn_domain":   "custom.zhongling.vip",
    "prefix"    :   "article/",
    "public"    :   true
    }
  4. 在qiniu.conf目录下执行如下命令
    qshell qdownload -c 10 qiniu.conf
  5. cmd一闪而过报错

期望结果?

实际结果?

错误日志/截图/配置参数

2023/10/09 16:26:53.603 [A] Writing log to file:C:\Users\dtLingZhong.qshell\users\zling1991\qdownload\475108d820d36a22743fbf991a3415e6\log.txt 2023/10/09 16:26:53.604 [D] Version :v2.12.0 2023/10/09 16:26:53.604 [D] UserName :zling1991 2023/10/09 16:26:53.604 [D] Workspace :C:\Users\dtLingZhong.qshell 2023/10/09 16:26:53.604 [D] UserDir :C:\Users\dtLingZhong.qshell\users\zling1991 2023/10/09 16:26:53.604 [D] JobDir :C:\Users\dtLingZhong.qshell\users\zling1991\qdownload\475108d820d36a22743fbf991a3415e6 2023/10/09 16:26:53.604 [D] OS :windows 2023/10/09 16:26:53.604 [D] OSArch :386 2023/10/09 16:26:53.604 [D] NumCpu :8 2023/10/09 16:26:53.604 [D]
2023/10/09 16:26:53.606 [D] job lock, process:30312 path:C:\Users\dtLingZhong.qshell\users\zling1991\qdownload\475108d820d36a22743fbf991a3415e6.lock err: 2023/10/09 16:26:53.606 [D] ucHost: uc.qbox.me 2023/10/09 16:26:53.769 [D] get bucket:zling1991 domain error:domain list is empty => 【401】domain list request error:bad token 2023/10/09 16:26:53.769 [D] ucHost: uc.qbox.me 2023/10/09 16:26:53.807 [W] create bucket:zling1991 src domain error:query region error, app/accesskey is not found 2023/10/09 16:26:53.807 [D] download Domain:[custom.zhongling.vip] 2023/10/09 16:26:53.807 [I] download db dir:C:\Users\dtLingZhong.qshell\users\zling1991\qdownload\475108d820d36a22743fbf991a3415e6.recorder 2023/10/09 16:26:53.808 [D] ucHost: uc.qbox.me 2023/10/09 16:26:53.808 [D] will list bucket:zling1991, suffixes:[], prefix:article/ 2023/10/09 16:26:53.808 [D] list by api v1, marker: 2023/10/09 16:26:53.836 [E] download list bucket error:query region error, app/accesskey is not found 2023/10/09 16:26:53.836 [I] Marker: 2023/10/09 16:26:53.836 [D] list bucket end 2023/10/09 16:26:53.839 [D] work flow did start 2023/10/09 16:26:53.839 [D] work producer start 2023/10/09 16:26:53.839 [D] work producer end 2023/10/09 16:26:53.893 [D] work consumer 0 start 2023/10/09 16:26:53.893 [D] work consumer 0 end 2023/10/09 16:26:53.955 [D] work consumer 1 start 2023/10/09 16:26:53.955 [D] work consumer 1 end 2023/10/09 16:26:54.018 [D] work consumer 2 start 2023/10/09 16:26:54.018 [D] work consumer 2 end 2023/10/09 16:26:54.081 [D] work consumer 3 start 2023/10/09 16:26:54.081 [D] work consumer 3 end 2023/10/09 16:26:54.144 [D] work consumer 4 start 2023/10/09 16:26:54.144 [D] work consumer 4 end 2023/10/09 16:26:54.204 [D] work consumer 5 start 2023/10/09 16:26:54.205 [D] work consumer 5 end 2023/10/09 16:26:54.267 [D] work consumer 6 start 2023/10/09 16:26:54.267 [D] work consumer 6 end 2023/10/09 16:26:54.329 [D] work consumer 7 start 2023/10/09 16:26:54.329 [D] work consumer 7 end 2023/10/09 16:26:54.390 [D] work consumer 8 start 2023/10/09 16:26:54.390 [D] work consumer 8 end 2023/10/09 16:26:54.453 [D] work consumer 9 start 2023/10/09 16:26:54.453 [D] work consumer 9 end 2023/10/09 16:26:54.453 [D] work flow did end 2023/10/09 16:26:54.453 [I] job dir:C:\Users\dtLingZhong.qshell\users\zling1991\qdownload\475108d820d36a22743fbf991a3415e6, there is a cache related to this command in this folder, which will also be used next time the same command is executed. If you are sure that you don’t need it, you can delete this folder. 2023/10/09 16:26:54.458 [D] save download result to path:C:\Users\dtLingZhong.qshell\users\zling1991\qdownload\475108d820d36a22743fbf991a3415e6.result 2023/10/09 16:26:54.458 [I] -------Download Result------- 2023/10/09 16:26:54.459 [I] Total: 0 2023/10/09 16:26:54.459 [I] Skipped: 0 2023/10/09 16:26:54.459 [I] Exists: 0 2023/10/09 16:26:54.459 [I] Success: 0 2023/10/09 16:26:54.459 [I] Update: 0 2023/10/09 16:26:54.459 [I] Failure: 0 2023/10/09 16:26:54.459 [I] Duration: 1s 2023/10/09 16:26:54.459 [I] ----------------------------- 2023/10/09 16:26:54.459 [I] See download log at path:C:\Users\dtLingZhong.qshell\users\zling1991\qdownload\475108d820d36a22743fbf991a3415e6\log.txt 2023/10/09 16:26:54.460 [D] job unlock, path:C:\Users\dtLingZhong.qshell\users\zling1991\qdownload\475108d820d36a22743fbf991a3415e6.lock err:

相关环境信息

enjoyWeb commented 1 year ago

ak和sk错了