-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[移动云盘][139云盘]PUT方法上传多个文件时出现空指针或者内存地址错误nil pointer dereference #7262
Comments
试试添加本机存储后,用复制功能上传 |
您的意思是先把文件放到本机存储,然后复制到网盘? |
复制的方式上传没有遇到panic的问题. 不过这样操作,比较难自动化备份. 所以这个问题和139网盘驱动有关吗?还是和主程序fs.go 方法有关系? 之前panic时候的traceback. |
我限制了同时上传2个,也还是会panic |
你可以用rclone进行自动化操作,无非就是把put换成命令。 除非你的文件和alist不在一个地方,否则建议走复制,如果不在一个地方,可以考虑搭建在有文件的设备上,然后在走复制。 |
明白了感谢。之前考虑过用rclone,但是我这个应用是kopia备份,它对rclone的支持也是实验性的,所以就没用rclone,想减少一层. |
其实rclone的同名称复制对alist来说才是减少一层。 |
@pongfcnkl |
意思是用相同的webdav配置名称进行copy复制,这样就和你网页上复制一样了 |
Taking look at this issue and #7127. @jibwf. If you still willing to help, please provider a testing environment by following steps:
|
感谢大佬国庆期间帮忙排查,环境已经发送. |
@Mmx233 是通过alist开启S3服务,然后通过S3批量上传. 这种方式和前端页面上传有区别吗?前端页面我也来测试一下 |
但是根据 #7071 ,s3 不支持上传 |
此环境亦无法复现 #7127 内存泄漏 |
我看官网的介绍是支持的,我也可以上传文件,之前就是间歇性的panic,所以速度降低很多. 刚才我用S3drive测试了同时上传多个大文件,也没复现出来. 目前kopia+rclone+alist形式了,使用正常. 感谢大佬花费时间. |
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.37.4
Driver used / 使用的存储驱动
中国移动云盘
Describe the bug / 问题描述
批量上传文件时出现panic. debug log已经采集作为日志附件上传了。
�[31m2024/09/25 09:28:27 [Recovery] 2024/09/25 - 09:28:27 panic recovered:
PUT /mobile/p96f17e2785019958977bb8445983c075-s1e3e9ab4e386d28f12d HTTP/1.1
Host: 192.168.1.2:5246
Accept-Encoding: gzip
Authorization: *
Content-Length: 24880957
Content-Md5: 3h5q/xzn7Xccv4glHJUsnA==
Content-Type: application/x-kopia
User-Agent: MinIO (linux; amd64) minio-go/v7.0.69
X-Amz-Content-Sha256: STREAMING-AWS4-HMAC-SHA256-PAYLOAD
X-Amz-Date: 20240925T012807Z
X-Amz-Decoded-Content-Length: 24846672
runtime error: invalid memory address or nil pointer dereference
/opt/hostedtoolcache/go/1.23.1/x64/src/runtime/panic.go:262 (0x477fb8)
Reproduction / 复现链接
如果需要可以单独提供
Config / 配置
{
"force": false,
"site_url": "",
"cdn": "",
"jwt_secret": "mNIstpFmBVEFR07R",
"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": 10,
"max_backups": 5,
"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": true,
"port": 5246,
"ssl": false
}
}
Logs / 日志
�[31m2024/09/25 09:28:27 [Recovery] 2024/09/25 - 09:28:27 panic recovered:
PUT /mobile/p96f17e2785019958977bb8445983c075-s1e3e9ab4e386d28f12d HTTP/1.1
Host: 192.168.1.2:5246
Accept-Encoding: gzip
Authorization: *
Content-Length: 24880957
Content-Md5: 3h5q/xzn7Xccv4glHJUsnA==
Content-Type: application/x-kopia
User-Agent: MinIO (linux; amd64) minio-go/v7.0.69
X-Amz-Content-Sha256: STREAMING-AWS4-HMAC-SHA256-PAYLOAD
X-Amz-Date: 20240925T012807Z
X-Amz-Decoded-Content-Length: 24846672
log-2024-09-25T01-30-27.705.log.zip
The text was updated successfully, but these errors were encountered: