Skip to content
New issue

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

panic: stat : no such file or directory #11

Closed
EdisonJwa opened this issue Jan 24, 2021 · 8 comments
Closed

panic: stat : no such file or directory #11

EdisonJwa opened this issue Jan 24, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@EdisonJwa
Copy link

EdisonJwa commented Jan 24, 2021

系统环境 Debian 10 x64
在配置完成 config.json 文件后,运行 DownloadBot 二进制文件时报错

报错信息如下
2021/01/24 13:21:09 stat : no such file or directory
panic: stat : no such file or directory
goroutine 1 [running]:
log.Panic(0xc000093e80, 0x1, 0x1)
        D:/program_app/go/src/log/log.go:351 +0xac
main.dropErr(...)
        D:/program_data/go/DownloadBot/main.go:14
main.locLan(0xc0000a867a, 0x5)
        D:/program_data/go/DownloadBot/utils.go:69 +0xba
main.init.0()
        D:/program_data/go/DownloadBot/main.go:26 +0x181
@gaowanliang
Copy link
Owner

目前为测试阶段,没有对downloadFoldermoveFolder进行处理,目前必须在这两个参数后填写有效的地址,一直要改一直都忘了,将在下一个版本解决。

请注意,当前版本仍非稳定版,只处于基本能用的状态,不保证您的正常使用

@gaowanliang gaowanliang added the bug Something isn't working label Jan 24, 2021
@EdisonJwa
Copy link
Author

好的 那么请问如果不需要移动是否只需要将 downloadFolder moveFolder 填写同样内容即可呢

@gaowanliang
Copy link
Owner

目前的话随意指定一个实际存在的文件夹即可

请注意,当前版本仍非稳定版,只处于基本能用的状态,不保证您的正常使用

@EdisonJwa
Copy link
Author

抱歉 现在出现了新的错误
panic: message "configCompleted" not found in language "zh"

Details
panic: message "configCompleted" not found in language "zh"

goroutine 1 [running]:
github.com/nicksnyder/go-i18n/v2/i18n.(*Localizer).MustLocalize(0xc0002b0080, 0xc00008de80, 0xc00013a7c8, 0x16)
        D:/program_data/go/DownloadBot/vendor/github.com/nicksnyder/go-i18n/v2/i18n/localizer.go:211 +0x79
main.locText(0xc00008df18, 0x1, 0x1, 0x0, 0x0)
        D:/program_data/go/DownloadBot/utils.go:157 +0xd5
main.init.0()
        D:/program_data/go/DownloadBot/main.go:27 +0x1be```

</details>

@gaowanliang
Copy link
Owner

请根据这里所指示的语言代码重新填写language参数

请注意,当前版本仍非稳定版,只处于基本能用的状态,不保证您的正常使用

@EdisonJwa
Copy link
Author

抱歉 我已经根据文档进行过了更改,报错信息也没有改变

  "aria2-server": "HIDDEN",
  "aria2-key": "HIDDEN",
  "bot-key": "HIDDEN",
  "user-id": "HIDDEN",
  "max-index": 10,
  "sign": "Main Aria2",
  "language": "en", // 测试过语言为中文(各种)及英文的状态下均报同样的错误
  "downloadFolder": "HIDDEN",
  "moveFolder":"HIDDEN"
}```

@gaowanliang
Copy link
Owner

暂时不知道是什么问题导致的,你可以自行去这里下载对应的语言包,放入软件生成的i18n文件夹中,详细原因再待查明。

请注意,当前版本仍非稳定版,只处于基本能用的状态,不保证您的正常使用

@EdisonJwa
Copy link
Author

@gaowanliang 测试后发现 运行后程序自动创建的目录 当前(非root)用户无读取权限 导致报错

gaowanliang added a commit that referenced this issue Jan 27, 2021
gaowanliang added a commit that referenced this issue Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants