Linux宝塔面板下网站备份数据库到谷歌硬盘失败解决办法

问题:谷歌云盘备份总是失败,谷歌的token验证已经完成没问题。
环境:系统CentOS7
面板:7.1.0谷歌网盘1.7

086617afe1c8dd77bbe9f71a32f6f830

日志报错

Traceback (most recent call last): File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 551, in data = q.backup_path(sys.argv[2],sys.argv[3]) File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 469, in backup_path self.upload_file(get) File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 238, in upload_file file = drive_service.files().create(body=file_metadata, media_body=media, fields='id').execute() File "/usr/lib/python2.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper return wrapped(*args, **kwargs) File "/usr/lib/python2.7/site-packages/googleapiclient/http.py", line 827, in execute _, body = self.next_chunk(http=http, num_retries=num_retries) File "/usr/lib/python2.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper return wrapped(*args, **kwargs) File "/usr/lib/python2.7/site-packages/googleapiclient/http.py", line 988, in next_chunk headers=headers) File "/usr/lib/python2.7/site-packages/google_auth_httplib2.py", line 198, in request uri, method, body=body, headers=request_headers, **kwargs) File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 2189, in request cachekey, File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1884, in _request content,httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header.Traceback (most recent call last): File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 551, in data = q.backup_path(sys.argv[2],sys.argv[3]) File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 469, in backup_path self.upload_file(get) File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 238, in upload_file file = drive_service.files().create(body=file_metadata, media_body=media, fields='id').execute() File "/usr/lib/python2.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper return wrapped(*args, **kwargs) File "/usr/lib/python2.7/site-packages/googleapiclient/http.py", line 827, in execute _, body = self.next_chunk(http=http, num_retries=num_retries) File "/usr/lib/python2.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper return wrapped(*args, **kwargs) File "/usr/lib/python2.7/site-packages/googleapiclient/http.py", line 988, in next_chunk headers=headers) File "/usr/lib/python2.7/site-packages/google_auth_httplib2.py", line 198, in request uri, method, body=body, headers=request_headers, **kwargs) File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 2189, in request cachekey, File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1884, in _request content,httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header.

解决办法:先升级pip

/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip

在软件商店卸载谷歌硬盘,然后修复面板,再安装谷歌硬盘,再重新获取安装.最后测试显示备份成功!

d934780be0194b448c1650fd0f712b42

THE END
分享
二维码
打赏
海报
Linux宝塔面板下网站备份数据库到谷歌硬盘失败解决办法
问题:谷歌云盘备份总是失败,谷歌的token验证已经完成没问题。 环境:系统CentOS7 面板:7.1.0谷歌网盘1.7 日志报错 Traceback (most recent call last): F……
<<上一篇
下一篇>>
文章目录
关闭
目 录