-
Notifications
You must be signed in to change notification settings - Fork 132
Kinto Error HTTP 507 Insufficient Storage #791
Comments
@glasserc any thoughts on this? |
cc @Natim |
also cc @bqbn |
My account no longer sync, but notes should have a notification to warn me about this. @ryanfeeley should we design something ? |
from our end:
|
Remove quota 👍 |
@Natim We are worried that that kinto saves too many old revisions, can we delete old stuff or is that auto? |
There are no such things as revisions, it always override with the last update. With multiple notes you should ask definitely ask for more storage. |
I wouldn't be surprised if there's an issue with quotas on the server side. See also https://bugzilla.mozilla.org/show_bug.cgi?id=1422673. I did in fact ask Wei to run some queries and got some scary numbers back, but I had been putting off actually looking at this until I had a user who could reliably reproduce it so I could try to dig in a bit more. I'll try to write up some debugging instructions later today. |
So, I just reread the original issue. I thought at first that the issue was that the quota numbers were wrong and that you actually hadn't exceeded the quota. But now I think the problem may be that you actually did exceed the quota and don't know how to un-exceed it? Here are the debugging instructions I wrote in case you are trying to figure out why the quota numbers are wrong. If they aren't actually wrong, then maybe I misunderstood the issue, and please feel free to add an explanation. Debugging quota numbersYou can't directly inspect quota records via the HTTP interface, but you can at least check what's being stored on the server. For this you'll need an FXA token. With the fxa_client library, you can do
@vladikoff -- can you confirm for me that the scope is correct? This will write a file called env.sh that will have an environment variable called OAUTH_BEARER_TOKEN in it. Then, you can make requests using that token.
I'd be curious to know what your bucket ID is. If you can get that, you can probably ask one of the operations guys (for instance @bqbn) to run SQL queries against the kintotp stack. In particular, assuming your bucket_id is some_bucket_id, you might be curious about the outcome of queries such as
You might compare these numbers against what is visible when you just request records in the default bucket in the notes collection. (Are there lots of records? You may need to know how to paginate in Kinto.) The sizes should match the string length of the JSON of all the records. |
To unexeed it you need to remove the object. But I think the issue is that notes need to store more than what is currently authorized so we should ask OPS to actually update quotas to a much higher value. If you think that a note can be up to 4kb and that we want use to be able to store 100 notes we should make sure they can store up to 500kb |
Hit the limit while testing with @ryanfeeley , we added a 160kb note to an existing list of notes: |
I guess we can raise the limit for notes by a lot, even 1MB or 10MB is fine we only have a couple hundreds thousands of users and we can alocate 100GB for sure 💃 |
@sebastienbarbier @glasserc @Natim Even after deleting several large Notes in testing we were not able to get our storage back. So we might need to investigate to make sure deletion actually frees up storage. |
If you delete singleNotes you should recover it |
Ah I see, after we hit a 507 we "lose sync" so deleting anything won't make any network requests |
All right looks like some deep investigation is needed! |
@Natim is there a way to tell how much space is remaining in Kinto (for users's notes) OR do we have to calculate that ourselves? |
Filed a bug on the server to figure out server limits: https://bugzilla.mozilla.org/show_bug.cgi?id=1449402 but we still need to handle errors as part of this issue |
According to https://testpilot.settings.services.mozilla.com/v1/ we don't show it here. We could/should. |
Hi, I'm sorry for reopen, but I've got this error today:
There is a relation with this issue and that error? Thanks. |
No, probably not, because Notes doesn't use extension-storage as far as I know. |
... i have the same Problem. 1570931509947 Sync.Engine.Extension-Storage INFO Successfully synced 'jid1-vs5odTmtIydjMg@jetpack' |
On authentication using FxA, Kinto print in console an error 507
Having lots of async multi-thread stuff going on, I had a couple of infinite loop populating my storage. On sync I receive 370 skipped entries having deleted: true.
Still trying to use it, seams like it keeps increasing with time.
Error: HTTP 507; Error: HTTP 507 Insufficient Storage: Resource access is forbidden for this user (Collection maximum size exceeded (212530 > 204800 Bytes).)
The text was updated successfully, but these errors were encountered: