DDS-Derek / xiaoya-alist

小雅Alist的相关周边
GNU General Public License v3.0
4.75k stars 680 forks source link

driver: [AliyundriveShare2Open], Error: failed to refresh token #204

Open benwong1124 opened 1 week ago

benwong1124 commented 1 week ago

ERRO[2024-09-12 18:05:40] failed get enabled storages: [/体育/2023-2024 NBA赛事回放/季后赛], driver: [AliyundriveShare2Open], Error: failed to refresh token: failed init storage github.com/alist-org/alist/v3/internal/op.initStorage /app/internal/op/storage.go:99 github.com/alist-org/alist/v3/internal/op.LoadStorage /app/internal/op/storage.go:80 github.com/alist-org/alist/v3/internal/bootstrap.LoadStorages.func1 /app/internal/bootstrap/storage.go:32 runtime.goexit /usr/lib/go/src/runtime/asm_amd64.s:1594 ERRO[2024-09-12 18:05:42] failed get enabled storages: [/每日更新/爽文短剧], driver: [AliyundriveShare2Open], Error: failed to refresh token: failed init storage github.com/alist-org/alist/v3/internal/op.initStorage /app/internal/op/storage.go:99 github.com/alist-org/alist/v3/internal/op.LoadStorage /app/internal/op/storage.go:80 github.com/alist-org/alist/v3/internal/bootstrap.LoadStorages.func1 /app/internal/bootstrap/storage.go:32 runtime.goexit /usr/lib/go/src/runtime/asm_amd64.s:1594 INFO[2024-09-12 18:05:42] success load storage: [/电影/4K REMUX], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/每日更新/动漫/国漫/所有], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/每日更新/动漫/日本/所有], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/电影/杜比视界], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/电影/豆瓣 top 1000部], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/电影/人人影视电影合集], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/电子书/epub合集], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/电子书/azw3合集], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/动漫/儿童], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/动漫/儿童/宫崎骏-合集], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/动漫/儿童/新海诚-系列], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/纪录片/4K REMUX], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/每日更新/电视剧/日剧/【已完结】], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/每日更新/电视剧/韩剧/【已完结】], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/动漫/合集(115)], driver: [Alias] INFO[2024-09-12 18:05:42] success load storage: [/©️ v.0821.0535(B)], driver: [UrlTree] AccessTokenInvalid : AccessToken is invalid. ErrValidateTokenFailed 转存失败: failed to refresh token: AccessTokenInvalid : AccessToken is invalid. ErrValidateTokenFailed 转存失败: failed to refresh token:

chengmabing commented 1 week ago

我也有这个问题

anson198406 commented 1 week ago

今天一样的问题,永远都是failed to refresh token

elevenkey commented 1 week ago

same question

chen7011 commented 1 week ago

同样是今天出问题的。dockerhub上的镜像已经变成1个月前的了,最近几次更新没了

m2kall commented 1 week ago

一样,不管用哪个docker镜像与token ,opentoken 转存ID都是这样。测试了好几天都还是这样,。我还是阿里网盘包年会员

zhangiicc commented 1 week ago

我这是9月12日晚上出现这个问题,重新使用新token,换账号都无法解决

icafe888 commented 1 week ago

alist-tvbox是好的,但是xiaoya一直这个问题

LINJIAXIN-China commented 1 week ago

现在连dds的镜像都拉不到了

kylongteng commented 1 week ago

和你一样的问题,而且我各种换ip和token还经常出现下列问题。

有效地址为:https://gitlab.com/xiaoyaliu/data/-/raw/main 最新版本 0.11.20 开始更新下载..... 成功更新 tvbox.zip 成功更新 update.zip 成功更新 index.zip 成功更新 version.txt /data/pikpak.txt: No such file or directory (os error 2) 162 records have been updated into your database Fri Sep 13 14:25:51 CST 2024 User's own token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx has been updated into database successfully Fri Sep 13 14:26:01 CST 2024 User's guest password has been updated into database successfully Fri Sep 13 14:26:01 CST 2024 Mandatory Login has been enabled Runtime error near line 3: malformed JSON Runtime error near line 4: malformed JSON Runtime error near line 5: malformed JSON Runtime error near line 6: malformed JSON Runtime error near line 7: malformed JSON Runtime error near line 8: malformed JSON Runtime error near line 9: malformed JSON 启动容器(Bridge模式)...... INFO[2024-09-13 14:26:01] reading config file: data/config.json
INFO[2024-09-13 14:26:01] load config from env with prefix:
INFO[2024-09-13 14:26:01] init logrus...
INFO[2024-09-13 14:26:01] start server @ 127.0.0.1:5244
ERRO[2024-09-13 14:26:03] failed get enabled storages: [/电影/欧美/系列], driver: [AliyundriveShare2Open], Error: TokenVerifyFailed:empty access_token failed init storage github.com/alist-org/alist/v3/internal/op.initStorage /app/internal/op/storage.go:99 github.com/alist-org/alist/v3/internal/op.LoadStorage /app/internal/op/storage.go:80 github.com/alist-org/alist/v3/internal/bootstrap.LoadStorages.func1 /app/internal/bootstrap/storage.go:32 runtime.goexit


每次启动xiaoya后,会自定将token和opentoken全给改了。看日志,显示读取json有报错,然后读取不到opentoken。我将xiaoya目录改成777无效。 尝试使用alist挂载阿里云盘和open都是正常的,就是小雅不行。

刚去docker hub找了test版本(最后更新20多天前),依然报错driver: [AliyundriveShare2Open], Error: failed to refresh token: failed init storage

从昨天下午大概5点开始就死活不行,token都换了几十个,真是折腾累了

RumblefishV587 commented 1 week ago

同样的问题,我觉得应该是alist的阿里云open的OAuth验证API无法连接导致的,alist官方已经提醒原api https://api.nn.ci被sni阻断。换了其他API的地址,但是xiaoya还是在用原来的API

kylongteng commented 1 week ago

同样的问题,我觉得应该是alist的阿里云open的OAuth验证API无法连接导致的,alist官方已经提醒原api https://api.nn.ci被sni阻断。换了其他API的地址,但是xiaoya还是在用原来的API。

不是这个原因,我先将nn.ci放到代理但没用; 然后将opentoken_url.txt里面的地址换成https://api-cf.nn.ci/alist/ali_open/token和https://api.xhofe.top/alist/ali_open/token也是一样有问题

mimimiaomiao1 commented 1 week ago

同样的问题。

benwong1124 commented 1 week ago

试了最新的 alist 是可以的,可能这个docker 的 alist 太旧

https://alist.nn.ci/zh/guide/drivers/aliyundrive_open.html

mimimiaomiao1 commented 1 week ago

试了最新的 alist 是可以的,可能这个docker 的 alist 太旧

https://alist.nn.ci/zh/guide/drivers/aliyundrive_open.html

是用这个网站里的来生成token吗?

m2kall commented 1 week ago

截图 2024-09-13 20-51-13 重新换了这个镜像,也还是不行,后台的token验证网址有问题,拉取这个镜像后生成的文件有个opentokenurl,这个网址是不能访问的或者已经被墙,关闭该docker应用后台修改为https://api.xhofe.top/alist/ali_open/token并重启,然后后台会自动修改为不能用的网址。

zhouyaxiong commented 1 week ago

same question,我还开了阿里云盘第三方会员,没用几天不能用了,希望官方快点给个方案

benwong1124 commented 1 week ago

试了最新的 alist 是可以的,可能这个docker 的 alist 太旧 https://alist.nn.ci/zh/guide/drivers/aliyundrive_open.html

是用这个网站里的来生成token吗?

小雅和 alist 是不同的 projects. 我试了最新的 alist, 只需要 refresh token, 不要 file id 和 token, 但只能写到 alipan.com 的备份里。

mimimiaomiao1 commented 1 week ago

试了最新的 alist 是可以的,可能这个docker 的 alist 太旧 https://alist.nn.ci/zh/guide/drivers/aliyundrive_open.html

是用这个网站里的来生成token吗?

小雅和 alist 是不同的 projects. 我试了最新的 alist, 只需要 refresh token, 不要 file id 和 token, 但只能写到 alipan.com 的备份里。

大佬,我是萌新,我不太懂这个。。那我现在应该怎么处理呀,我是就获取一下token,然后替换就行了嘛?

chen7011 commented 1 week ago

截图 2024-09-13 20-51-13重新换了这个镜像,也还是不行,后台的token验证网址有问题,拉取这个镜像后生成的文件有个opentokenurl,这个网址是不能访问的或者已经被墙,关闭该docker应用后台修改为 https://api.xhofe.top/alist/ali_open/token 并重启,然后后台会自动修改为不能用的网址。

我有梯子,两个api都能访问到。但是还是会出现同样问题。

m2kall commented 1 week ago

等啊。应该是阿里网盘限制了,目前就等吧

---- Replied Message ---- | From | @.> | | Date | 09/13/2024 23:35 | | To | DDS-Derek/xiaoya-alist @.> | | Cc | m2kall @.>, Comment @.> | | Subject | Re: [DDS-Derek/xiaoya-alist] driver: [AliyundriveShare2Open], Error: failed to refresh token (Issue #204) |

重新换了这个镜像,也还是不行,后台的token验证网址有问题,拉取这个镜像后生成的文件有个opentokenurl,这个网址是不能访问的或者已经被墙,关闭该docker应用后台修改为 https://api.xhofe.top/alist/ali_open/token 并重启,然后后台会自动修改为不能用的网址。

我有梯子,两个api都能访问到。但是还是会出现同样问题。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

XueLongYan commented 1 week ago

passwall 中将api.nn.ci强制走代理就行了(其他梯子操作方法类似),如果你没有梯子,那就等等吧

benwong1124 commented 1 week ago

2024-09-14_08-15

这样就没报错了

kylongteng commented 1 week ago

我这强制代理api.nn.ci就好了。

ps: 如果将https://api.nn.ci/alist/ali_open/token改成https://api.xhofe.top/alist/ali_open/token是不行的,因为启动后会会自动改回去

goldzy123 commented 1 week ago

passwall 中将 api.nn.ci 强制走代理就行了(其他梯子操作方法类似),如果你没有梯子,那就等等吧

有用,解决了

mimimiaomiao1 commented 1 week ago

passwall 中将api.nn.ci强制走代理就行了(其他梯子操作方法类似),如果你没有梯子,那就等等吧

我只能等等了。。我是群晖,太复杂的不会搞。谢谢提供方案

benwong1124 commented 1 week ago

2024-09-14_09-24

2024-09-14_09-38

最终是这样OK了

DoraEmon1984 commented 1 week ago

docker 永久化目录“/opt/alist/data”到本地,在这个目录下config.json中找到 "opentoken_auth_url": 并修改后边值为"https://api.xhofe.top/alist/ali_open/token",重启docker image

joss0926 commented 1 week ago

自己恢复了啊,好象不用做任何操作

anson198406 commented 1 week ago

docker 永久化目录“/opt/alist/data”到本地,在这个目录下config.json中找到 "opentoken_auth_url": 并修改后边值为"https://api.xhofe.top/alist/ali_open/token",重启docker image

请问这个文件在群晖哪里

m2kall commented 1 week ago

我换了另一个小雅项目正常了,前几天那个项目也有问题。现在恢复了。搜monlor的

---- Replied Message ---- | From | @.> | | Date | 09/14/2024 19:33 | | To | DDS-Derek/xiaoya-alist @.> | | Cc | m2kall @.>, Comment @.> | | Subject | Re: [DDS-Derek/xiaoya-alist] driver: [AliyundriveShare2Open], Error: failed to refresh token (Issue #204) |

docker 永久化目录“/opt/alist/data”到本地,在这个目录下config.json中找到 "opentoken_auth_url": 并修改后边值为"https://api.xhofe.top/alist/ali_open/token",重启docker

请问这个文件在群晖哪里

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

bilibilistack commented 5 days ago

我发现资源库没有了,现在转存的文件夹地址变成了aliyundrive.com/drive/file/all/667xxx,可能是这个原因

m2kall commented 4 days ago

现在全部恢复了的。我用的当前这个项目其实效果并不好,会慢很多。你github搜小雅alist等相关关键词试试看有些人的项目是真不错。原生小雅我也测试过并不好。这些项目都是原有基础修改的。如果你懂代码也可以自己开发。

---- Replied Message ---- | From | @.> | | Date | 09/18/2024 23:42 | | To | DDS-Derek/xiaoya-alist @.> | | Cc | m2kall @.>, Comment @.> | | Subject | Re: [DDS-Derek/xiaoya-alist] driver: [AliyundriveShare2Open], Error: failed to refresh token (Issue #204) |

我发现资源库没有了,现在转存的文件夹地址变成了aliyundrive.com/drive/file/all/667xxx,可能是这个原因

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>