Skip to content

ocis can't finish uploading if the storage disk is full #11236

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

Open
2403905 opened this issue Apr 15, 2025 · 0 comments
Open

ocis can't finish uploading if the storage disk is full #11236

2403905 opened this issue Apr 15, 2025 · 0 comments
Labels

Comments

@2403905
Copy link
Contributor

2403905 commented Apr 15, 2025

Describe the bug

ocis can't finish uploading if the storage disk is full.
I tried to upload a 50GB file via UI on local env. If my free disk space is less than the [file size]* 2 the upload is finished with the error 500. The ocis logs show an error "insufficient storage: disk full" The blob file is already in a storage/users/uploads

{"level":"error","service":"storage-users","pkg":"rhttp","pid":80557,"request-id":"a23eddcc-a974-415f-84f0-cf1073e970ee","path":"/Users/roman/.ocis/storage/users/spaces/so/me-admin-user-id-0000-000000000000/nodes/4c/a2/e9/2b/-c49b-457f-8c70-059fcc079539","error":"error: insufficient storage: disk full","time":"2025-04-15T11:04:34+02:00","message":"failed to init new node"}
{"level":"error","service":"storage-users","pkg":"rhttp","datatx":"tus","method":{},"path":{},"requestId":{},"id":{},"time":"2025-04-15T11:04:34+02:00","message":"InternalServerError"}
{"level":"error","service":"storage-users","pkg":"rhttp","traceid":"72ffebab89f5031e63b6f10729c225cc","host":"127.0.0.1","method":"PATCH","uri":"/data/tus/9723bb65-2d77-41c5-816b-3fbd1e0a23f4","url":"/9723bb65-2d77-41c5-816b-3fbd1e0a23f4","proto":"HTTP/1.1","status":500,"size":66,"start":"15/Apr/2025:11:01:53 +0200","end":"15/Apr/2025:11:04:34 +0200","time_ns":161738686731,"time":"2025-04-15T11:04:34+02:00","message":"http"}
~/.ocis/storage/users/uploads
$ ll
total 102400008
-rw-r--r--@ 1 roman  staff    49G Apr 15 11:01 9723bb65-2d77-41c5-816b-3fbd1e0a23f4
-rw-------@ 1 roman  staff   825B Apr 15 10:58 9723bb65-2d77-41c5-816b-3fbd1e0a23f4.info

~/.ocis/storage/users/uploads
$ df -h
Filesystem        Size    Used   Avail Capacity iused ifree %iused  Mounted on
/dev/disk1s1s1   932Gi    10Gi    43Gi    20%    412k  452M    0%   /
devfs            193Ki   193Ki     0Bi   100%     668     0  100%   /dev
/dev/disk1s3     932Gi   2.2Gi    43Gi     5%    3.8k  452M    0%   /System/Volumes/Preboot
/dev/disk1s5     932Gi    11Gi    43Gi    21%      11  452M    0%   /System/Volumes/VM
/dev/disk1s6     932Gi   2.4Mi    43Gi     1%      23  452M    0%   /System/Volumes/Update
/dev/disk1s2     932Gi   863Gi    43Gi    96%    3.6M  452M    1%   /System/Volumes/Data
map auto_home      0Bi     0Bi     0Bi   100%       0     0     -   /System/Volumes/Data/home
/dev/disk1s4     932Gi   1.2Gi    43Gi     3%     321  452M    0%   /Volumes/Recovery
Image

Steps to reproduce

Expected behavior

A clear and concise description of what you expected to happen.

Actual behavior

A clear and concise description of what happened.

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

OCIS_XXX=somevalue
OCIS_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant