标签: rclone

已有 15 条评论

  1. liveuha liveuha

    failed to get token: Post "https://oauth2.googleapis.com/token": dial tcp 172.217.160.74:443: i/o timeout

    请问这是什么原因造成的?

    1. Hogwarts Hogwarts

      没使用代理吧

  2. paul paul

    请教一下,我的token都只有一个小时的时间,"expiry":"2022-08-14T18:07:19.564142+08:00"}很快就到期了,试了很多次都不行,应该怎么办,非常感谢。

    1. Hogwarts Hogwarts

      暂还没遇到这种情况,是不是OAuth的问题呀。比如:需新建一个 OAuth 2.0 客户端 ID ,或者 OAuth 用户数上限 的问题。再或者是rclone v1.59.1的问题?还没测试,仅测试了1.58.0。应该不是版本的问题。

      1. paul paul

        我第一次的Token没有问题,大概用了有一个月,然后发现连不上。SSH连上,发现 Rclone config都没有了,只能重装rclone。然后按照您这的知道,一步步下来。然后下了Mac rclone去拿的Token,结果就发现Token只能用一个小时。
        我需要新建个客户端ID?主要是懒得再去Google里面折腾了,您看看还有啥办法?我网上搜了半天,发现不少人这样,但是,似乎都没有解决方案。
        https://stackoverflow.com/questions/52585327/googleapi-oauth2-refresh-token-expires-in-1-hour
        https://forum.rclone.org/t/rclone-google-drive-token-expires-every-week/22502
        这两个很类似。 您看看,谢谢。

        1. Hogwarts Hogwarts

          我想起来了,我好像也遇到过这个问题。好像是把测试用户加入到一般用户解决的。应该就是googleapi里面用户的问题。需要见一个客户端ID的,你试一下。https://winamp.top/161.html 这里面有补充,我也遇到过这个问题。年纪大,脑子不好使,记不住东西了。

          1. Hogwarts Hogwarts

            等有空了,我重新用新账号和新版本的rclone测试一下,看看问题出在哪里,再解答您的问题。

          2. paul paul

            我把我的Role除了 Owner,还加了个Service Account Admin,不知道这样是不是可以

          3. paul paul

            您好,不好意思,还是要麻烦您。如何新建服务用户,是在Service Account, Create Service Account. 我建立了一个Account,但不知道如何使用。Rclone配置上有什么区别?
            抱歉,对技术不是很熟,麻烦您了

          4. Hogwarts Hogwarts

            应该就是测试用户的问题,新建服务用户就没问题了,刚又看了一下你发的参考资料:如前所述,使用 OAuth 2.0 Playground 创建的刷新令牌会在几个小时后自动撤销,因为 Playground 主要用于测试目的。但是,您可以将 OAuth 操场配置为使用您自己的应用程序凭据(使用右上角的“轮式”图标)。如果您使用自己的应用凭据,则不会撤销刷新令牌。

            也就是说,您似乎想要运行访问 Google API 的后台服务。为此,如果您不访问特定用户的数据,您可能需要使用服务帐户。

          5. paul paul

            我晚上试一下,非常感谢!

  3. 陈东 陈东

    你好,我在完成3.3.5,返回了got code,出现了
    2022/06/23 10:18:12 NOTICE: Got code
    2022/06/23 10:18:12 DEBUG : Closing auth server
    2022/06/23 10:18:12 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
    2022/06/23 10:18:12 DEBUG : temp-fs: config out: out=, err=failed to get token: Post "https://oauth2.googleapis.com/token": read tcp 10.31.19.102:53364->172.217.160.106:443: wsarecv: An existing connection was forcibly closed by the remote host.
    Error: failed to get token: Post "https://oauth2.googleapis.com/token": read tcp 10.31.19.102:53364->172.217.160.106:443: wsarecv: An existing connection was forcibly closed by the remote host.
    Usage:
    rclone authorize [flags]

    Flags:

    --auth-no-open-browser Do not automatically open auth link in default browser

    -h, --help help for authorize

    Use "rclone [command] --help" for more information about a command.
    Use "rclone help flags" for to see the global flags.
    Use "rclone help backends" for a list of supported services.

    2022/06/23 10:18:12 Fatal error: failed to get token: Post "https://oauth2.googleapis.com/token": read tcp 10.31.19.102:53364->172.217.160.106:443: wsarecv: An existing connection was forcibly closed by the remote host.
    这个错误,请问有什么解决方法吗?

    1. 北风之言申 北风之言申

      win下本地rclone authorize之前要设置cmd走代理,不然你浏览器确认授权显示Success! All done. Please go back to rclone但是cmd里面却提示无法获取到code:

      如果只是暂时使用代理,你可以在windows的cmd命令行中,执行下面命令:

      使用sock5代理

      set http_proxy=socks5://127.0.0.1:10808
      set https_proxy=socks5://127.0.0.1:10808

      如果你要取消设置:
      set http_proxy=
      set https_proxy=

      临时生效方案中,当你关闭cmd,再次打开时,之前的设置将会失效,代理依然使用不了。

      1. Hogwarts Hogwarts

        原来是这样,我是默认软路由,故没发现问题所在。谢谢解惑。

    2. Hogwarts Hogwarts

      从字面意思看是:无法获取令牌。是不是GoogleDriveAPI没弄好呢。

添加新评论