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

armv7(32位系统)从其他网盘或本地存储复制文件到夸克,文件过大(超过2g)时出现error #6572

Closed
4 tasks done
xindongzetong opened this issue Jun 4, 2024 · 5 comments
Labels
bug Something isn't working stale No activity for more than 30 days

Comments

@xindongzetong
Copy link

xindongzetong commented Jun 4, 2024

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 版本

v3.35.0

Driver used / 使用的存储驱动

夸克

Describe the bug / 问题描述

armv7(32位系统)从其他网盘或本地存储复制文件到夸克,文件过大(超过2g)时出现error
失败提示:json: cannot unmarshal number 2233195161 into Go struct field .data.size of type int
感觉像是超过int类型最大数值(21亿)导致报错
给一个chatgpt的解释:
在 Go 语言中,如果你遇到类似 "cannot unmarshal number 7965668566 into Go struct field .data.size of type int" 的错误,通常是因为 JSON 中的某个字段包含的值超出了 Go 语言中对应类型的范围。
在这种情况下,你可以考虑将 JSON 字段中的该值映射到 Go 中更大范围的类型,比如 float64 或 int64。

Reproduction / 复现链接

见日志

Config / 配置

{
"force": false,
"site_url": "",
"cdn": "",
"jwt_secret": "oaXSadw9DTbaVEbi",
"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,
"tls_insecure_skip_verify": true,
"tasks": {
"download": {
"workers": 5,
"max_retry": 1
},
"transfer": {
"workers": 5,
"max_retry": 2
},
"upload": {
"workers": 5,
"max_retry": 0
},
"copy": {
"workers": 5,
"max_retry": 2
}
},
"cors": {
"allow_origins": [
""
],
"allow_methods": [
"
"
],
"allow_headers": [
"*"
]
},
"s3": {
"enable": false,
"port": 5246,
"ssl": false
}
}

Logs / 日志

2024/06/04 06:27:44.227444 WARN RESTY json: cannot unmarshal number 7965668566 into Go struct field .data.size of type int, Attempt 1
2024/06/04 06:27:44.231675 ERROR RESTY json: cannot unmarshal number 7965668566 into Go struct field .data.size of type int

@xindongzetong xindongzetong added the bug Something isn't working label Jun 4, 2024
@xindongzetong
Copy link
Author

手里用的玩客云,armv7架构会出现此问题。arm64或amd64架构不会出现此问题

@pongfcnkl
Copy link

那就换64位

Copy link

stale bot commented Jul 31, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No activity for more than 30 days label Jul 31, 2024
Copy link

Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale No activity for more than 30 days
Projects
None yet
Development

No branches or pull requests

2 participants