-
Notifications
You must be signed in to change notification settings - Fork 11
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
Image upload times out after an hour (401 response) #1464
Comments
If the session timeout is really only an hour we should probably make it longer. Very odd about the fetch failed, I’ll look into that. Those are on the bulk-write posts? They’d have to be, that’s the only request being made hundred of times. Another thing we can look into for this problem is making the chunks bigger. I think we picked a 512 KiB max in crucible because that’s the max request size we’ve configured for dropshot, but if we got this over the line oxidecomputer/dropshot#618 we could give the bulk-write endpoint a higher limit, maybe a few MiB. As far as I know there is no hard requirement in crucible that it be 512 KiB. |
Looks like Chrome logs spurious |
The 401s start around an hour after I start the upload, so it seems so. In the limit we probably want to make the session timeout configurable (I have worked at sites where 10 minutes is the maximum allowed for anything like this) - is there any way that hitting the |
I think it's supposed to work that way already. I'll look into why it's not.
Those numbers are currently supposed to be 1 hour and 8 hours. |
I was not able to reproduce the (Oh my god upload is slow over VPN.) |
I expect this to fix it: |
I believe this is fixed. I'm seeing the expected 8 hour TTL on the session cookie on the dogfood rack. |
I am trying to upload an 8GiB image from home. My connection over the VPN to the rack is higher latency than something local, but it is not that bad. When the upload starts, I see around 6Mb/s sustained upload.
With the base64 overhead, iI'll have to upload around 10.3GiB. The latency for each chunk is around 4 seconds. It is not going to be quick.
Just noting that the console constantly logs
Fetch failed
(because of the204
reply code?), but the upload is working.The upload progresses while I get a coffee.
and after an hour, the browser gets
401
responses, the page changes to showSomething went wrong
, and then refreshes to the login page.which is a long way of asking if the upload can keep the authentication fresh to avoid this.
The text was updated successfully, but these errors were encountered: