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

v3.37.3版本-本地文件复制到115网盘报错: 请升级到最新版本: unexpected error #7198

Closed
4 tasks done
crtf1999 opened this issue Sep 16, 2024 · 31 comments · May be fixed by #7208
Closed
4 tasks done

v3.37.3版本-本地文件复制到115网盘报错: 请升级到最新版本: unexpected error #7198

crtf1999 opened this issue Sep 16, 2024 · 31 comments · May be fixed by #7208
Labels
bug Something isn't working

Comments

@crtf1999
Copy link

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.37.3

Driver used / 使用的存储驱动

115

Describe the bug / 问题描述

  • 版本
xxx# ./alist version
Built At: 2024-09-16 17:54:05 +0000
Go Version: go1.22.4 linux/amd64
Author: Xhofe <[email protected]>
Commit ID: b6451451
Version: v3.37.3
WebVersion: 3.37.1
  • 问题
    本来是在使用rclone把本地文件复制到115网盘(命令如下)但发现网速没有提上去(之前是100M/s)
rclone copy -vv alist:/local/aly/live/biliup/upload/live-荔吱/ alist:/115/temp_6844/download/2024-09-17/荔吱/ -u --no-traverse --progress --contimeout=1h --timeout=1h --cache-chunk-size 100M --transfers 3

然后试了使用rclone把115网盘文件复制到本地是可以跑到100M/s的
接着使用web操作把本地文件复制到115, 就看到了如下报错
请升级到最新版本: unexpected error
DH68MCFJ9277TJ{ERU81J30

Reproduction / 复现链接

添加115存储,更新cookies.

Config / 配置

{
  "force": false,
  "site_url": "",
  "cdn": "",
  "jwt_secret": "lk49e1hyMEoDNoBH",
  "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,
      "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
  }
}

Logs / 日志

^[[31mERRO^[[0m[2024-09-17 03:18:30] COPY /dav/local/aly/live/biliup/upload/live-荔吱/荔吱.2024-09-16 15_56_07.ing.flv unexpected error
github.com/SheltonZhu/115driver/pkg/driver.init
        <autogenerated>:1
runtime.doInit1
        /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/proc.go:7176
runtime.doInit
        /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/proc.go:7143
runtime.main
        /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/proc.go:253
runtime.goexit
        /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/asm_amd64.s:1695
请升级到最新版本
github.com/SheltonZhu/115driver/pkg/driver.GetErr
        /home/runner/go/pkg/mod/github.com/!shelton!zhu/[email protected]/pkg/driver/error.go:143
github.com/SheltonZhu/115driver/pkg/driver.(*UploadInitResp).Err
        /home/runner/go/pkg/mod/github.com/!shelton!zhu/[email protected]/pkg/driver/response.go:182
github.com/SheltonZhu/115driver/pkg/driver.CheckErr
        /home/runner/go/pkg/mod/github.com/!shelton!zhu/[email protected]/pkg/driver/error.go:154
github.com/alist-org/alist/v3/drivers/115.(*Pan115).rapidUpload
        /home/runner/work/alist/alist/drivers/115/util.go:201
github.com/alist-org/alist/v3/drivers/115.(*Pan115).Put
        /home/runner/work/alist/alist/drivers/115/driver.go:167
github.com/alist-org/alist/v3/internal/op.Put
        /home/runner/work/alist/alist/internal/op/fs.go:561
github.com/alist-org/alist/v3/internal/fs._copy
        /home/runner/work/alist/alist/internal/fs/copy.go:91
github.com/alist-org/alist/v3/internal/fs.Copy
        /home/runner/work/alist/alist/internal/fs/fs.go:73
github.com/alist-org/alist/v3/server/webdav.copyFiles
        /home/runner/work/alist/alist/server/webdav/file.go:59
github.com/alist-org/alist/v3/server/webdav.(*Handler).handleCopyMove
        /home/runner/work/alist/alist/server/webdav/webdav.go:477
github.com/alist-org/alist/v3/server/webdav.(*Handler).ServeHTTP
        /home/runner/work/alist/alist/server/webdav/webdav.go:70
github.com/alist-org/alist/v3/server.ServeWebDAV
        /home/runner/work/alist/alist/server/webdav.go:46
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/alist-org/alist/v3/server.WebDAVAuth
        /home/runner/work/alist/alist/server/webdav.go:113
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
        /home/runner/work/alist/alist/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
@crtf1999 crtf1999 added the bug Something isn't working label Sep 16, 2024
Copy link

welcome bot commented Sep 16, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

@crtf1999 crtf1999 changed the title 本地文件复制到115网盘报错: 请升级到最新版本: unexpected error v3.37.3版本-本地文件复制到115网盘报错: 请升级到最新版本: unexpected error Sep 16, 2024
@1604236395
Copy link

+1

1 similar comment
@KeithW0726
Copy link

+1

@sucooer
Copy link

sucooer commented Sep 17, 2024

115接口改了,昨天只是改了ua让115暂时可用

现在115能挂载吗?我的还是会报错

@sunrise1998
Copy link

仍然进不去,显示failed get objs: failed to list objs: invalid character 'a' looking for beginning of value

@billzhuang
Copy link

我也显示同样错误 ‘failed get objs: failed to list objs: invalid character 'a' looking for beginning of value“

@flytutulee
Copy link

mac v3.37.3
我也显示同样错误 ‘failed get objs: failed to list objs: invalid character 'a' looking for beginning of value“

@twtmactt
Copy link

twtmactt commented Sep 17, 2024

同样的问题,等等解决办法
111
222

@Katou-Kouseki
Copy link

一样,继续坐等更新了

@gitcook
Copy link

gitcook commented Sep 17, 2024

快传挂了吧 ?

@zyyds-0711
Copy link

仍然进不去,显示failed get objs: failed to list objs: invalid character 'a' looking for beginning of value

情况一样

@smoryan
Copy link

smoryan commented Sep 17, 2024

今天还是显示failed get objs: failed to list objs: invalid character 'a' looking for beginning of value

@Three-taile-dragon
Copy link
Contributor

研究完了,有点难绷


出现 请升级到最新版本:unexpected error 的原因:

目前alist115驱动所使用的接口库中提供的 ua 太老了
https://github.com/SheltonZhu/115driver/blob/8ace8be8e9e2403fa70cdd8e7fec9250ac4ac488/pkg/driver/consts.go#L5
image

而官方的版本已经到了 27.0.3.7,于是把 ua 改为 Mozilla/5.0 115Browser/27.0.3.7,上传正常

个人修改的地方 UserAgentappVer(上传接口的传参) 以及 t := driver115.NowMilli() 代码位置


建议后续改为从接口动态获取版本号:官方接口

@pongfcnkl
Copy link

ua和appVer都改27.0.3.7了,Milli也加上了,但是上传提示token invalid: sig invalid

@Three-taile-dragon
Copy link
Contributor

ua和appVer都改27.0.3.7了,Milli也加上了,但是上传提示token invalid: sig invalid

https://github.com/SheltonZhu/115driver/blob/main/pkg%2Fdriver%2Fupload.go#L283-L283

这里的改了吗?还有库里定义的 ua

@zyyds-0711
Copy link

appletv上的还是不正常,有大佬可以指教一下吗

@pongfcnkl
Copy link

修复115上传的二进制下载
https://tmp.link/room/66e96fbe1bb7b

@whistle003
Copy link

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

替换后依旧报错,是姿势不对吗?

@x-guang
Copy link

x-guang commented Sep 17, 2024

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

请问是用什么软件替换的?新字符串长度不是比原字符串更长吗?

@whistle003
Copy link

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

请问是用什么软件替换的?新字符串长度不是比原字符串更长吗?

finalshell直接传到/root/alist
下替换原二进制文件的

@sln162
Copy link

sln162 commented Sep 17, 2024

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

测试了,上传是可以了,但是获取列表还是之前的,看app里是上传上去了,但是刷新不出来

@x-guang
Copy link

x-guang commented Sep 17, 2024

finalshell直接传到/root/alist 下替换原二进制文件的

其实我是问修复的细节,不是问如何替换服务器上的原文件,不过也谢谢你的回复。

@MondoGao
Copy link

MondoGao commented Sep 17, 2024

临时用 SheltonZhu/115driver#26 的修复替换掉了依赖,急用的同学可以在我 fork 这下载 bin。重复工作的原因是上面的回复没有包含源代码,我本人是不太敢用的哈哈。beta release action 正在跑,可以在此处看进度,太着急请直接本地编译。

https://github.com/MondoGao/alist


Temporily fix by go mod local replacement: https://github.com/MondoGao/alist

@sln162
Copy link

sln162 commented Sep 17, 2024

临时用 SheltonZhu/115driver#26 的修复替换掉了依赖,急用的同学可以在我 fork 这下载 bin。重复工作的原因是上面的回复没有包含源代码,我本人是不太敢用的哈哈。beta release action 正在跑,可以在此处看进度,太着急请直接本地编译。

https://github.com/MondoGao/alist

Temporily fix by go mod local replacement: https://github.com/MondoGao/alist

刚才编译完成了,我下载替换了,上传还是不行
image

@MondoGao
Copy link

临时用 SheltonZhu/115driver#26 的修复替换掉了依赖,急用的同学可以在我 fork 这下载 bin。重复工作的原因是上面的回复没有包含源代码,我本人是不太敢用的哈哈。beta release action 正在跑,可以在此处看进度,太着急请直接本地编译。
https://github.com/MondoGao/alist
Temporily fix by go mod local replacement: https://github.com/MondoGao/alist

刚才编译完成了,我下载替换了,上传还是不行 image

嗯,刚刚看了下上面同学的分析,我没有完整包含 #7198 (comment) 这里指到的修复。我这里只提供了替换 mod 的方法,需要可以进一步修正。

@MondoGao
Copy link

MondoGao commented Sep 17, 2024

临时用 SheltonZhu/115driver#26 的修复替换掉了依赖,急用的同学可以在我 fork 这下载 bin。重复工作的原因是上面的回复没有包含源代码,我本人是不太敢用的哈哈。beta release action 正在跑,可以在此处看进度,太着急请直接本地编译。
https://github.com/MondoGao/alist
Temporily fix by go mod local replacement: https://github.com/MondoGao/alist

刚才编译完成了,我下载替换了,上传还是不行 image

我这测试新 commit 可以了。等 action 跑完再下载对应版本即可。因为共用的一个 beta tag,release 上的产物可能是上一个构建产出的。
image


指路二进制:https://github.com/MondoGao/alist/releases/tag/beta

@ln1547
Copy link

ln1547 commented Sep 18, 2024

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

能上传了,但是上传的图片在alist中不显示,在网盘中显示,这是什么原因。

@SingleRottenChips
Copy link

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

能上传了,但是上传的图片在alist中不显示,在网盘中显示,这是什么原因。

我这边没这个问题...

@xxllllll
Copy link

临时用 SheltonZhu/115driver#26 的修复替换掉了依赖,急用的同学可以在我 fork 这下载 bin。重复工作的原因是上面的回复没有包含源代码,我本人是不太敢用的哈哈。beta release action 正在跑,可以在此处看进度,太着急请直接本地编译。
https://github.com/MondoGao/alist
Temporily fix by go mod local replacement: https://github.com/MondoGao/alist

刚才编译完成了,我下载替换了,上传还是不行 image

我这测试新 commit 可以了。等 action 跑完再下载对应版本即可。因为共用的一个 beta tag,release 上的产物可能是上一个构建产出的。 image

指路二进制:https://github.com/MondoGao/alist/releases/tag/beta

大佬,docker如何替换,自己编译了下,编译不通过。

@MondoGao
Copy link

临时用 SheltonZhu/115driver#26 的修复替换掉了依赖,急用的同学可以在我 fork 这下载 bin。重复工作的原因是上面的回复没有包含源代码,我本人是不太敢用的哈哈。beta release action 正在跑,可以在此处看进度,太着急请直接本地编译。
https://github.com/MondoGao/alist
Temporily fix by go mod local replacement: https://github.com/MondoGao/alist

刚才编译完成了,我下载替换了,上传还是不行 image

我这测试新 commit 可以了。等 action 跑完再下载对应版本即可。因为共用的一个 beta tag,release 上的产物可能是上一个构建产出的。 image
指路二进制:https://github.com/MondoGao/alist/releases/tag/beta

大佬,docker如何替换,自己编译了下,编译不通过。

要看你运行 docker 镜像的架构。如果是 windows 那应该是 x86_64 (amd64),不确定就在 docker 镜像里运行 uname -p 看。然后在 https://github.com/MondoGao/alist/releases/tag/beta 下载对应架构的二进制文件,直接通过 volume 挂载替换掉镜像内的二进制即可。以 compose 为例:

services:
  alist:
    volumes:
      - ./alist:/opt/bin/alist # 下载的二进制 : 镜像内的二进制文件路径

@tianxiang1989
Copy link

临时用 SheltonZhu/115driver#26 的修复替换掉了依赖,急用的同学可以在我 fork 这下载 bin。重复工作的原因是上面的回复没有包含源代码,我本人是不太敢用的哈哈。beta release action 正在跑,可以在此处看进度,太着急请直接本地编译。
https://github.com/MondoGao/alist
Temporily fix by go mod local replacement: https://github.com/MondoGao/alist

刚才编译完成了,我下载替换了,上传还是不行 image

我这测试新 commit 可以了。等 action 跑完再下载对应版本即可。因为共用的一个 beta tag,release 上的产物可能是上一个构建产出的。 image

指路二进制:https://github.com/MondoGao/alist/releases/tag/beta

mac上测了下,可以正常上传了

SheltonZhu added a commit to SheltonZhu/115driver that referenced this issue Sep 18, 2024
SheltonZhu added a commit to SheltonZhu/alist that referenced this issue Sep 18, 2024
@xhofe xhofe closed this as completed in 6106a2d Sep 18, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.