المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : السي بانال WHM/cPanel حل مشكلة Backup transport errors بسبب Upload attempt failed



Rise Company
28-01-2023, 11:03
السي بانال WHM/cPanel حل مشكلة Backup transport errors بسبب Upload attempt failed
cpbackup_transporter Upload attempt failed
Backup transfer failed with a lot of "Upload attempt failed" errors
[cpbackup_transporter] Upload attempt failed: upload_file_content_single() missing upload_uri
[cpbackup_transporter] Failed with 403: Forbidden
Google Drive backup validation [Failed with 403: Forbidden]
BackUp Transport To Google Drive Destination Fails Halfway With A 403 Error If the Google Drive Account Is A Shared Drive

المشكلة :

الباك اب على السيرفر يكتمل بشكل كامل وسليم ولكن عملية النقل الى جوجل درايف
تفشل بعض الموقع فى النقل !
Unable to send “/backup/weekly/

سبب المشكلة :
من جوجل وليس من السيرفر الخاص بك

ادخل هذا الامر لمعرفة المشكلة


cat /usr/local/cpanel/logs/cpbackup_transporter.log


Individual users can only upload 750 GB each day between My Drive and all shared drives. Users who reach the 750-GB limit or upload a file larger than 750 GB cannot upload additional files that day. Uploads that are in progress will complete. The maximum individual file size that you can upload or synchronize is 5 TB.

-----------------------------------------
This is an error that we usually get asked about often because the failure message can be quite vague and difficult to understand what the real cause is.

However, the 403 Forbidden failure message will generally be an issue on Google's end that will require the Google account owner to address. Most commonly users encounter this because their Google Drive disk space is no longer sufficient and thus validation or backups fail, however, if this is not the issue, you may review the other possible reasons according to Google.

Google's documentation (https://developers.google.com/drive/api/v3/handle-errors) states that these are the following possible reasons for a 403 error:




Usage limit exceeded:

An error 403 occurs when a quota usage limit has been exceeded

To Fix the issue: Increase space available (https://support.google.com/drive/answer/2375123)






Daily limit exceeded:

A dailyLimitExceeded error indicates that the courtesy API limit for your project has been reached.

To Fix the issue: Request additional quota (https://developers.google.com/drive/api/v3/handle-errors#quota).






Number of items in folder:

This error occurs when the limit for a folder's number of children (folders, files, and shortcuts) has been exceeded. There is a 500,000 item limit for folders, files, and shortcuts directly in a folder. Items nested in subfolders do not count against this 500,000 item limit.

For more information on folder limits, refer to Folder limits in Google Drive (https://support.google.com/a/answer/2490100#limits).






User rate limit exceeded:

This indicates that the per-user limit has been reached. This limit might be the limit from the API console or a limit from the Drive backend.

To fix this error:

Raise the per-user quota in the Developer Console project. For more information, see Request additional quota (https://developers.google.com/drive/api/v3/handle-errors#quota).
If one user is making a lot of requests on behalf of many users of a G Suite domain, consider a Service Account (https://developers.google.com/identity/protocols/OAuth2ServiceAccount) with authority delegation (setting the quotaUser parameter (https://developers.google.com/drive/api/v3/query-parameters)).
Use exponential backoff (https://developers.google.com/drive/api/v3/handle-errors#exponential-backoff) to retry the request.







Rate limit exceeded:

The error indicates that the user has reached Google Drive API's maximum request rate.

To fix this error:

Batch (https://developers.google.com/drive/api/v3/batch) the requests.
Use exponential backoff (https://developers.google.com/drive/api/v3/handle-errors#exponential-backoff) to retry the request.







Sharing rate limit exceeded:

The error occurs when the user has reached a sharing limit.

To fix this error:

Do not send emails when sharing lot of files.
If one user is making a lot of requests on behalf of many users of a G Suite domain, consider a Service Account (https://developers.google.com/identity/protocols/OAuth2ServiceAccount) with authority delegation to impersonate the owner of each document to share (setting the quotaUser parameter (https://developers.google.com/drive/api/v3/query-parameters)).







The user has not granted the app {appId} {verb} access:

The error occurs when your app is not on the ACL for the file. This error prevents the user from opening the file with your app.

To fix this error, perform one of the following operations:

Open the Google Drive picker (https://developers.google.com/drive/api/v3/integrate-open#using_the_file_picker) and prompt the user to open the file.
Instruct the user to use your app to open the file using the Open with (https://developers.google.com/drive/api/v3/about-apps#open) context menu in the Drive UI.

You can also check the isAppAuthorized field on a file to see if the file was created by or opened with your app.






The user does not have sufficient permissions for file:

The error occurs when the user does not have write access to a file, and your app is attempting to modify that file.

To fix this error, instruct the user to contact the file's owner and request edit access.






App with id {appId} cannot be used within the:

A domainPolicy error occurs when the policy for the user's domain doesn't allow access to Google Drive by your app.

To fix this error:

Inform the user that the domain doesn't allow your app to access files in Drive.
Instruct the user to contact the domain Admin to request access for your app.





حل المشكلة :
https://youtu.be/xqhnifQ8mWc

اذا كان لديك اكثر من سيرفر ضع كل سيرفر على ايميل منفصل فى جوجل درايف
حتى لا تواجه مشكلة فى Limit وتتجنب Backup transport errors
هذا هام جدا لا تجمع اكثر من سيرفر داخل مشروع واحد او ايميل واحد

OAuth rate limits Your token grant rate Token grant rates limit how quickly your application can get new users. Your current per day token grant rate limit is 10,000 grants per day. The per day token grant rate resets every day.


https://www.rise.company/forum/images/imported/2020/10/35.png

I've contacted Google and there's actually an API setting in Google Workspace Admin that needs to be updated.
Sign in - Google Accounts (https://admin.google.com/) > Security > API controls > App access control > Filter 'CPanelBackup' > Change access to 'Trusted'

المرجع:
https://forums.cpanel.net/threads/google-drive-backup-transport-errors.706769/
https://forums.cpanel.net/threads/backup-transfer-failed-with-a-lot-of-upload-attempt-failed-errors.568291/
https://forums.cpanel.net/threads/cpbackup_transporter-upload-attempt-failed.384231/
https://forums.cpanel.net/threads/backup-transport-errors-on.396462/
https://support.cpanel.net/hc/en-us/articles/360051769374-Google-Drive-backup-validation-Failed-with-403-Forbidden-
https://support.cpanel.net/hc/en-us/articles/360047376674--cpbackup-transporter-Failed-with-403-Forbidden
https://support.cpanel.net/hc/en-us/articles/1500008502762-BackUp-Transport-To-Google-Drive-Destination-Fails-Halfway-With-A-403-Error-If-the-Google-Drive-Account-Is-A-Shared-Drive?_ga=2.26313209.53852226.1674893431-1792525322.1662857201
https://support.cpanel.net/hc/en-us/articles/360052317434-Backup-Destination-is-Showing-a-Timeout-Error-