Your script, Drive Migrator, has recently failed to finish successfully - google-apps-script

I have this email from google.
Your script, Drive Migrator, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
There are about 200 messages of the format:
Start 1/1/19 4:53 PM
Function processFilesAndFolders
Error Message Authorization is required to perform that action.
Trigger time-based
End 1/1/19 4:53 PM
When i click there i fund there is an empty trigger and no further information.
Project -
Last run -
Deployment -
Event Time-based
Function -
Error rate -
Its very strange given nobody was on the system at this time, and I cannot see any details about the trigger.
How do I see what is happening here? Is someone on my system, trying to move my files around? How is is possible to have a trigger that is void of information like this? It looks somewhat hacky. Can I centrally disable this "drive migrator"?
I found an old question about this: Drive Migrator Fail Message
But, perhaps it does not have enough information to get a proper answer.
I also contacted google support directly, but they said that asking here is the only way to get technical support on this service. I understand this is not the best "stackoverflow type question", but I'm at a loss on where to get further information about this.

The failure notifications likely occur when a Google Script is deleted from your Drive without de-authorization or when the permissions get revoked for some reason.
Go here and you'll find a list of all triggers running under your Google account. Delete the one associated with your Failure emails.
This guide explains how you can unsubscribe from the failure emails and also properly de-authorize the associated script.

Related

Google purgeGmail script script suddenly turns up in my inbox with the status failed - what are my next steps?

My original question was asked in google's support forum (https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!msg/gmail/0t_T1zvYzJQ/xCPLQXpYBQAJ), then redirected to their dev support (https://developers.google.com/apps-script/support) which finally redirects to this site when clicked on "Ask a question". So please don't blame me for asking this question here.
Please refer to the first link above for my question. It contains a lot of details and 2 screenshots. I'm copy-pasting them here also but you are free to refer to that link for more details.
I received the following email. However, I don't recognize this "script" or what it means. I wasn't trying to run a "purgeGmail" script. Any idea what this email means or should be my next steps?
Your script, Copy of Gmail Purge - Digital Inspiration, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
Start Function Error Message Trigger End
1/17/17 12:13 AM purgeGmail Authorization is required to perform that action. time-based 1/17/17 12:13 AM
Sincerely,
Google Apps Script
Need help? Visit the Google Apps Script documentation. Please do not reply to this message. (c) 2017 Google
I checked my account activity and found nothing suspicious. I did change my password about 2 weeks back actually because I received an email alert saying "sign-in attempt was blocked - unusual activity".
However, I'm not sure whether this "purgeGmail" script is a default script gone haywire or is it some kind of custom script setup by someone. If it's a custom script then I'm going to delete it.
When I goto script.google.com it shows me "Triggers for script Copy of Gmail Purge - Digital Inspiration" > 4 options underneat - initialize, install, uninstall, purgeGmail.
Not sure how this ended up in my account. I would like to report this to the authorities so that they can take down this script. But I'm not seeing any link or option to report it to the authorities. (1) Any idea where I need to report it?
(2) Also, any idea whether this is a default script or custom script? If it's custom I'm going to delete it. I click the cross icon. The heading still remains but the 4 options are gone. Then there is a save button. I'm not sure whether I should click that save button. The UI just sucks for this whole thing.
Here's a screenshot for this whole thing. I'm guessing you can open this pic in a new window so that it shows the actual size. Just right-click "open image in new tab" or download and open should work as on most websites.
I figured out what to do in this situation and would like to post an answer here so that it may help someone else too.
This script has come via some unknown source. I'm not sure how that person got in but google had once given me an alert for my account activity following which I had chaned the password. Here are the steps which I took to remove that script. In other words if you ever get an email from google stating script xyz failed due to lack of permissions then you can do the following steps:
1) Observe that the script is named "Copy of PurgeGmail". Hence, it is not part of the usual Gmail because had it been so it wouldn't have been named "copy of". This is definitely the work of some person (which you can also see in the screenshots in the question).
2) The script wasn't running because the permission was missing. So the next step is to go to script.google.com, use your google account to sign-in by clicking on "Start scripting".
3) On trying to sign-in Google asks you whether you want to create an account in scipt.google.com . If you do get this confirmation then click yes.
4) Google takes you to the default script editor. It loads a "new script" with only 2 lines showing up in the code section.
function myFunction() {
}
If this code is not present then add it. To view the trigger settings the IDE requires you to have an error free code. If you have a blank canvas or any errors in the code then the IDE will give you an error and not allow you to navigate away from this page.
5) Once you've copy-pasted the code above just click on Resources> All my triggers. This should now open a popup that actually shows you the triggers with a delete button (cross button).
6) Click the cross button and it instantly deletes the script. Click okay to confirm.
Now the suspicious script is not present anymore and you should not receive any further notifications. Just to be safe double-check your secondary email address to safguard against a second attempt.

MailFred Issue Emails

I recently changed the security in my Google settings and I keep getting an email that starts with the following sentence:
"Your script, MailFred 1.145, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here."
When I click there all I get is a 404 Forbidden page. Back in the email text there is a long list of when the script has failed. I am not sure how to fix this issue, but I would like to stop getting the emails.
Any help would be much appreciated!
Go to your Google Accounts Settings and under Security, click the Apps and Websites link.
Here you'll see a list of all scripts that have access to your Google Account. Revoke access to the one that is sending those error notifications.
You're right in your comment : revoking authorization while letting the script run is the origin of the error and the subsequent errors notifications...
I don't know the MailFred app but from what I saw on their site it's all built using Google-Apps-Script so I guess the trigger they use must appear as any other one...
To disable this triggers that is trying to run , follow these simple steps :
open any Google Spreadsheet, document or form
then open the script editor (from the "tools" menu),
go to 'resources' > triggers > all your triggers
and there delete the trigger(s) that you don't want to run.
If you see many of them, try to determine which one belongs to this app... you can check the notification mode, set it to a known time and wait for the next email, see at what time it was sent... The method is not very acurate (about an hour time frame) but it can help.
Sorry I can't be more concise, I don't use this app and didn't find a lot of informations about it.
Here is the example of how I did it. It's a pretty straight forward according to me.
See the following message I got when my script fails. It says,
"Your script, clearContent, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here."
You should be getting the same kind of message. Click on "click here" hyper linked text, it will directly take you to the settings page of that trigger. And, just change the setting of the particular trigger or delete it.

Server Errors in Google Apps Script

Every morning I get an email from Apps Script saying this:
Summary of failures for Google Apps Script: Not found‏
Your script, Not found, has recently failed to finish successfully. A
summary of the failure(s) is shown below. To configure the triggers
for this script, or change your setting for receiving future failure
notifications, click here.
When I click the link in the email, it tries fetching the triggers but returns another error:
We're sorry, a server error occurred. Please wait a bit and try
again.Dismiss
How do I get rid of these messages?
There is a topic about this problem on the GAS issue tracker. Please star it to promote it to the support.
How do I get rid of these messages?
Now a solution is to filter such messages in your email system or to wait when the GAS teams fixes it.

Summary of failures for Google Apps Script: Not found

I have been receiving the following email since Sept 1 .
Prior to that I had set up Gmail Meter in Google Docs/Drive but deleted the spreadsheet.
How can I stop receiving the emails .
Your script, Not found, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
Details:
Start Function Error Message Trigger End
9/3/12 10:21 PM activityReport We're sorry, a server error occurred. Please wait a bit and try again. time-based 9/3/12 10:21 PM
Sincerely,
Google Apps Script
Here is a solution that helped me:
Go to script.google.com. Go to "Resource" -> "All your triggers".
A rename dialogue should pop up prompting you to save this fake script. Click Ok.
Try to find the trigger that's sending the email and delete it.
Now all your triggers should appear - even for documents that you've already deleted from Google Docs/Drive.
Good luck!
There is probably a trigger that is still in your trigger list, to remove it simply open any script in the script editor and go to /ressources/all your triggers/ and delete it.

Receiving apps script notifications about 1 per minute

I am receiving an apps script notification email about 1 per minute. I don't think I have any scripts running. How do I make it stop?
Your script, Unsaved script, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
Details:
Start Function Error Message Trigger End
6/21/12 1:15 PM myFunction We're sorry, a server error occurred. Please wait a bit and try again. time-based 6/21/12 1:15 PM
Sincerely,
Google Apps Script
You should check if you have some triggers that are running...
to check that : open or create a spreadsheet go to >tools>script editor > EDIT > all your triggers and see if something is firing every minute.
and... delete it with the x
I found I created a script and forgot about it. Kept getting many notifications. In my case, it was a script in Google Drive. Try this:
Open Google Drive
In search bar type: 'app:"Google Apps Script"'
This should list all apps. find the one with the same name as the notification and edit/disable.
Note, that you may also have a script bound to a google document a.k.a. Addon (https://developers.google.com/apps-script/guides/bound) which can have a trigger built in.
I had to find all spreadsheets and look under Tools (as above) to find the culprit. I could not find a way to search for sheets with scripts.
Go to google.com, then click your account picture in the top-right corner of the screen. Next, click Account, then Security, then Review permissions. Click Revoke Access next to the script whose authorization you want to revoke.