I use the feature to automatically backup the database to google diver everyday. The probability of a backup error is quite common. About 20% of all backups fail.
This error occurs randomly.
Here is my backup log:
★Start backup[2021-03-19 03:30:01]
|-Backup database:databasename
|-Database size: 284.61 MB
|-Database character set: utf8
|-Partition / available disk space is: 56.77 GB, available Inode is: 39042407
|-Start exporting database: 2021-03-19 03:30:01
|-Compression completed, took 5.48 seconds, compressed package size: 26.68 MB
|-Uploading to Google Drive, please wait ...
Traceback (most recent call last):
File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 669, in
q.execute_command(sys.argv)
File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 606, in execute_command
save=int(args[3]))
File "class/panelBackup.py", line 465, in backup_database
if self.cloud.upload_file(dfile, 'database'):
File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 287, in upload_file
parents = self.create_folder_cycle(get.filepath)
File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 234, in create_folder_cycle
fid = self.__get_folder_id(i)
File "/www/server/panel/plugin/gdrive/gdrive_main.py", line 323, in __get_folder_id
results = service.files().list(pageSize=10, q="name='{}' and mimeType='application/vnd.google-apps.folder'".format(floder_name),fields="nextPageToken, files(id, name)").execute()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/googleapiclient/helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/googleapiclient/http.py", line 856, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError:
★Start backup[2021-03-19 09:14:30]
|-Backup database:databasename
|-Database size: 284.61 MB
|-Database character set: utf8
|-Partition / available disk space is: 56.68 GB, available Inode is: 39041867
|-Start exporting database: 2021-03-19 09:14:30
|-Compression completed, took 5.34 seconds, compressed package size: 26.73 MB
|-Uploading to Google Drive, please wait ...
Upload Success ,File ID: 1OPvmc0Xw5x9-EzWxqREVpFiSBAMUHRVZ
|-Successfully uploaded to Google Drive
|-Database has been backed up to: /www/backup/database/db_databasename20210319_091430.sql.gz
|-User settings do not retain local backups, deleted /
|-Keep the latest number of backups: 30 copies
|-----------------------------------------------------------------------------------------
delete ok
|-Expired backup files have been cleaned from Google Drive: db_databasename__20210213_033001.sql.gz
☆Backup completed[2021-03-19 09:14:51]
Please give me instructions to fix this situation.