Error Validation for transport “xxxxxx” failed: Could not create path directory “/xxxx”: Token refresh failed at /usr/local/cpanel/3rdparty/perl/532

AlexSot

Member
Jun 11, 2020
5
1
3
Malta
cPanel Access Level
Root Administrator
Hi, I keep on getting this error after about 7days from creation of additional destination backup on google drive.

I follow this procedure to setup everything How to Configure Google Drive as a Backup Additional Destination - cPanel Knowledge Base - cPanel Documentation

I also followed this thread Google Validation for Transport Error , but I have no IPv6 in all points mentioned.

Everything works well, however every time, after about 7 days , the transport is not validated and I need to recreate everything.
Can you please advice how to solve?
 

cPDavidL

Linux Analyst II
Oct 15, 2012
79
18
133
cPanel Access Level
Root Administrator

AlexSot

Member
Jun 11, 2020
5
1
3
Malta
cPanel Access Level
Root Administrator
Hi, thanks for the replay.

The actual error is this:
Error: Validation for transport “XXXXXX” failed: Could not create path directory “/XXXXX”: Token refresh failed at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/OAuth/Cmdline.pm line 83

It's a bit different than the one you mentioned. I however checked the values and they are set to Queries per day 1,000,000,000; Queries per 100 seconds per user 10,000 and Queries per 100 seconds to 10,000.
 

cPDavidL

Linux Analyst II
Oct 15, 2012
79
18
133
cPanel Access Level
Root Administrator
The 'Token refresh failed' error means that the application is unable to acquire a new authentication token from the remote system(Google's API). This most often is due to reaching certain quotas.

Queries per day 1,000,000,000; Queries per 100 seconds per user 10,000 and Queries per 100 seconds to 10,000.
Per the documentation from google regarding their API, The quota 'requests per 100 seconds per user', has a maximum value of 1000. You may try setting it at that threshold, to see if the transport is able to function with that level.

Something that stands out to me is your comment:
after about 7 days , the transport is not validated and I need to recreate everything
Do I infer correctly that before recreation, attempting to validate the destination by the panel is failing as well?
 

AlexSot

Member
Jun 11, 2020
5
1
3
Malta
cPanel Access Level
Root Administrator
Per the documentation from google regarding their API, The quota 'requests per 100 seconds per user', has a maximum value of 1000. You may try setting it at that threshold, to see if the transport is able to function with that level.
These values where there by default. I amended to 1000, however I still get the same error when validating from WHM.

Do I infer correctly that before recreation, attempting to validate the destination by the panel is failing as well?
Yes.
Basically after I set up the Google Drive API and create account credentials, I configure the Google Drive transport from WHM and it validates. For about 7 days everything works... BKs are sent to my google drive with no problems. After I usually receive an email from VPS stating that transport had failed with that error. If from WHM I try to validate, it will give me that same error. What I usually do then is to delete everything and start again the procedure, which will allow me again 7 days of backups transportation till it fails again.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,440
1,004
313
cPanel Access Level
Root Administrator
That's definitely frustrating that it only works for 7 days, as intermittent issues are always the worst. However, consistently working for 7 days does seem to indicate an issue with some connection reaching a limit. Are there any errors on the Google side of things that you can see, as we know the configuration on the cPanel side of things isn't being changed.
 

AlexSot

Member
Jun 11, 2020
5
1
3
Malta
cPanel Access Level
Root Administrator
It is indeed!
I continued researching once I could not see any error from google and arrived to this page which might give an answer to why this happens every 7days
This Still did not solve the problem....
I Changed the status from "Testing" to "Production", the verification status is "Verification not required", but I still get the same error after 7 days.
Token refresh failed at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/OAuth/Cmdline.pm line 83

Is it possible that I'm the only one with this error????