Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is not sufficient space available in your Google Account #10

Open
Garildi opened this issue Sep 27, 2021 · 4 comments · May be fixed by #11
Open

There is not sufficient space available in your Google Account #10

Garildi opened this issue Sep 27, 2021 · 4 comments · May be fixed by #11
Assignees
Labels
bug Something isn't working in progress

Comments

@Garildi
Copy link

Garildi commented Sep 27, 2021

Not sure if this is still supposed to work with the current Google Photos APIs. No matter which API I use (the provided one or my own custom one), I'm always getting the following error message when trying to upload something:

`INFO Authentiation complete.
WARN There is not sufficient space available in your Google Account to upload this folder.
WARN 10.152905 Mb required, only -9.536743E-07 available
Upload failed of Album '001'
WARN There is not sufficient space available in your Google Account to upload this folder.
WARN 10.8710375 Mb required, only -9.536743E-07 available
Upload failed of Album 'New folder'


Upload summary:
Album not uploaded. Not sufficient storage space in Google Photos.
Album not uploaded. Not sufficient storage space in Google Photos.`

Listing existing albums works fine. It's a Business Standard account that still has more than 1TB free space.

@runerasmussen
Copy link
Owner

@Garildi it may be an issue with the Google Drive API where storage information for Business Standard account may be exposed in a different way.
To confirm this theory is it possible you can share information from the log file (log\google-photos-upload.log) with me? Specifically I'm interested in the 3 lines with the text below, so just extract those lines and update here in this case:

Google account space limit (bytes):
Google account space used (bytes):
Google account space available (bytes):

@Garildi
Copy link
Author

Garildi commented Sep 29, 2021

Thank you for looking into this! Here you go:

2021/09/27 12:28:18.765|DEBUG|Google account space limit (bytes):
2021/09/27 12:28:18.765|DEBUG|Google account space used (bytes): 387414638072
2021/09/27 12:28:18.765|DEBUG|Google account space available (bytes): -1

@runerasmussen
Copy link
Owner

@Garildi:
The issue is as expected that the Google Drive with unlimited storage is currently not handled appropriately in the UploadService class in the "Google Photos Upload" tool.

Documentation from the Google Drive API:
The usage limit, if applicable. This will not be present if the user has unlimited storage.
https://googleapis.dev/dotnet/Google.Apis.Drive.v3/latest/api/Google.Apis.Drive.v3.Data.About.StorageQuotaData.html#Google_Apis_Drive_v3_Data_About_StorageQuotaData_Usage

For safety reasons I had implemented a measure to avoid filling up the storage account completely. This check should be avoided for accounts with unlimited storage.

I expect to fix the issue this coming weekend. Would you be open to test the change? (I don't have an unlimited Google Drive account)

@runerasmussen
Copy link
Owner

@runerasmussen runerasmussen linked a pull request Oct 19, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants