![Rclone 同步失败:googleapi:错误 403:很抱歉,但您所在的位置无法使用此服务,禁止使用](https://linux22.com/image/1067563/Rclone%20%E5%90%8C%E6%AD%A5%E5%A4%B1%E8%B4%A5%EF%BC%9Agoogleapi%EF%BC%9A%E9%94%99%E8%AF%AF%20403%EF%BC%9A%E5%BE%88%E6%8A%B1%E6%AD%89%EF%BC%8C%E4%BD%86%E6%82%A8%E6%89%80%E5%9C%A8%E7%9A%84%E4%BD%8D%E7%BD%AE%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%E6%AD%A4%E6%9C%8D%E5%8A%A1%EF%BC%8C%E7%A6%81%E6%AD%A2%E4%BD%BF%E7%94%A8.png)
我想使用以下方法将我的文件备份到 Google Drive克隆通过这个命令:
sudo rclone sync "/media/so/ACAC8B5FAC8B2346/Company Informations/مدارک شرکت GSH/اداری (copy)" gsh:Company_Informations/office_files --checkers 3 --log-file /home/so/Desktop/trash/rclone_sync.log -v --transfers 3
所以我收到这个错误:
Failed to sync: googleapi: Error 403: We're sorry, but this service is not available in your location, forbidden
所以整个日志文件是这样的:
2019/12/30 21:16:04 Failed to create file system for "gsh_email:drive": drive: failed when making oauth client: error opening service account credentials file: open ss: no such file or directory
2019/12/30 21:52:45 ERROR : : error reading destination directory: googleapi: Error 403: We're sorry, but this service is not available in your location, forbidden
2019/12/30 21:52:45 INFO : GCS bucket Company_Informations path office_files: Waiting for checks to finish
2019/12/30 21:52:45 INFO : GCS bucket Company_Informations path office_files: Waiting for transfers to finish
2019/12/30 21:52:45 ERROR : GCS bucket Company_Informations path office_files: not deleting files as there were IO errors
2019/12/30 21:52:45 ERROR : GCS bucket Company_Informations path office_files: not deleting directories as there were IO errors
2019/12/30 21:52:45 ERROR : Attempt 1/3 failed with 1 errors and: googleapi: Error 403: We're sorry, but this service is not available in your location, forbidden
2019/12/30 21:52:45 ERROR : : error reading destination directory: googleapi: Error 403: We're sorry, but this service is not available in your location, forbidden
2019/12/30 21:52:45 INFO : GCS bucket Company_Informations path office_files: Waiting for checks to finish
2019/12/30 21:52:45 INFO : GCS bucket Company_Informations path office_files: Waiting for transfers to finish
2019/12/30 21:52:45 ERROR : GCS bucket Company_Informations path office_files: not deleting files as there were IO errors
2019/12/30 21:52:45 ERROR : GCS bucket Company_Informations path office_files: not deleting directories as there were IO errors
2019/12/30 21:52:45 ERROR : Attempt 2/3 failed with 1 errors and: googleapi: Error 403: We're sorry, but this service is not available in your location, forbidden
2019/12/30 21:52:46 ERROR : : error reading destination directory: googleapi: Error 403: We're sorry, but this service is not available in your location, forbidden
2019/12/30 21:52:46 INFO : GCS bucket Company_Informations path office_files: Waiting for checks to finish
2019/12/30 21:52:46 INFO : GCS bucket Company_Informations path office_files: Waiting for transfers to finish
2019/12/30 21:52:46 ERROR : GCS bucket Company_Informations path office_files: not deleting files as there were IO errors
2019/12/30 21:52:46 ERROR : GCS bucket Company_Informations path office_files: not deleting directories as there were IO errors
2019/12/30 21:52:46 ERROR : Attempt 3/3 failed with 1 errors and: googleapi: Error 403: We're sorry, but this service is not available in your location, forbidden
2019/12/30 21:52:46 Failed to sync: googleapi: Error 403: We're sorry, but this service is not available in your location, forbidden
那么您对解决这个问题有什么建议呢?
答案1
该消息中的 403 表示 Google 不向您的国家或地区提供此服务。
鉴于您的 VPN 问题将您定位在伊朗,这可能是由于您所在国家/地区实施了制裁,而 Google 遵守这些制裁的法律并禁止伊拉克访问此服务。不幸的是,这是 Google 的决定,除了建议您使用 VPN(这可能会也禁止伊拉克连接)之外,我们无法为您提供任何帮助