Hi Qalyptus Support team,
We are experiencing an issue with exporting files to Google Drive. We repeatedly get the following error message:
Error uploading the existing file ‘Opl Laurion.xlsx’ to the folder ‘1VKwru0fIeu6ngTi0PBOIb6lZwNkImsE5’. The service drive has thrown an exception. HttpStatusCode is Gone. Internal Error
We do not know where this error is coming from. We updated to the latest version (9.6.3.0) last week hoping this would resolve the issue, but unfortunately, the problem persists.
When we reconnect/re-authenticate the Google Drive API, the export works again for a short while, but it doesn’t stay stable. Additionally, the issue seems to be intermittent: if we manually rerun the task a few times, the files sometimes do go through successfully.
Could you please help us investigate and solve this issue?
Thank you in advance.
Corné Peeters
Hi Corné,
This looks like a Google Drive API error.
Root Cause
HttpStatusCode: Gone (410) means the target folder no longer exists or is no longer accessible at that ID. The folder ID 1VKwru0fIeu6ngTi0PBOIb6lZwNkImsE5 was either:
- Deleted or moved in Google Drive
- Permissions revoked for the service account
- Shared drive item removed (if it’s a Shared Drive, items can disappear even if the drive exists)
How to fix it
1- Verify the folder exists. Go to Google Drive and search for the folder, or navigate directly via https://drive.google.com/drive/folders/1VKwru0fIeu6ngTi0PBOIb6lZwNkImsE5. If you get a 404/error, the folder is gone.
2- Check the service account permissions. In Google Drive, confirm the service account email still has at least Editor access to that folder.
3- Update the folder ID in your configuration. If the folder was recreated or you’re using a new destination, update the folder ID in Qalyptus’s destination settings to the new one.
Please try the fixes and let me know if you have questions.
Thank you.
Jeremie
Hi Jeremie,
Thank you for your reply. However, we have already verified all these steps and we can confirm that this is not the root cause of the issue.
To address your points:
- The folder definitely exists. We can navigate to it via the exact URL you provided.
- The service account permissions are correct and have not been revoked.
- The folder ID has not changed.
We are certain of this because the issue is intermittent. If the folder was deleted or permissions were revoked, the task would fail 100% of the time. However, in our case:
- If we simply rerun the task a few times, the exact same files do*upload successfully to that exact same folder.
- Whenever we reconnect/re-authenticate the Google Drive API in Qalyptus, the export works perfectly again for a short while, before the error eventually returns.
Additionally, the error specifically mentions an “Internal Error” alongside the 410 Gone status. This suggests that it’s not the folder that is gone, but rather the upload session/connection itself dropping midway.
How can we permanently solve this issue?
Thank you,
Corné