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

​Self-host affine meets file size limit when uploading #8537

Open
1 task done
xymeng16 opened this issue Oct 17, 2024 · 4 comments
Open
1 task done

​Self-host affine meets file size limit when uploading #8537

xymeng16 opened this issue Oct 17, 2024 · 4 comments

Comments

@xymeng16
Copy link

What happened?

In canary 3d3a66c (actually it also happens in other recent versions I've tested), when uploading a large file (50MB~), I met the following file size limit error.

image

As mentioned in #5978, "selfhost should have unlimited storage". So I regard this as a bug, hence reporting here.

Distribution version

Linux

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

  • Yes

Relevant log output

WARN [FsStorageProvider:blobs] Failed to read metadata of object `e5a7d11f-5678-4ba7-81ba-22a560c48d96/cPEezFL9kCjizhjoBhJcqwlbuRDajqTGEWGG35B7mSQ=`
   WARN [FsStorageProvider:blobs] Error: ENOENT: no such file or directory, open '/root/.affine/storage/blobs/e5a7d11f-5678-4ba7-81ba-22a560c48d96/cPEezFL9kCjizhjoBhJcqwlbuRDajqTGEWGG35B7mSQ=.metadata.json'
VERBOSE [FsStorageProvider:blobs] Read object `e5a7d11f-5678-4ba7-81ba-22a560c48d96/cPEezFL9kCjizhjoBhJcqwlbuRDajqTGEWGG35B7mSQ=`
   WARN [FsStorageProvider:blobs] Failed to read metadata of object `e5a7d11f-5678-4ba7-81ba-22a560c48d96/cPEezFL9kCjizhjoBhJcqwlbuRDajqTGEWGG35B7mSQ=`
   WARN [FsStorageProvider:blobs] Error: ENOENT: no such file or directory, open '/root/.affine/storage/blobs/e5a7d11f-5678-4ba7-81ba-22a560c48d96/cPEezFL9kCjizhjoBhJcqwlbuRDajqTGEWGG35B7mSQ=.metadata.json'
VERBOSE [FsStorageProvider:blobs] Read object `e5a7d11f-5678-4ba7-81ba-22a560c48d96/cPEezFL9kCjizhjoBhJcqwlbuRDajqTGEWGG35B7mSQ=`
   WARN [FsStorageProvider:blobs] Failed to read metadata of object `e5a7d11f-5678-4ba7-81ba-22a560c48d96/cPEezFL9kCjizhjoBhJcqwlbuRDajqTGEWGG35B7mSQ=`
   WARN [FsStorageProvider:blobs] Error: ENOENT: no such file or directory, open '/root/.affine/storage/blobs/e5a7d11f-5678-4ba7-81ba-22a560c48d96/cPEezFL9kCjizhjoBhJcqwlbuRDajqTGEWGG35B7mSQ=.metadata.json'
VERBOSE [FsStorageProvider:blobs] Read object `e5a7d11f-5678-4ba7-81ba-22a560c48d96/cPEezFL9kCjizhjoBhJcqwlbuRDajqTGEWGG35B7mSQ=`

Anything else?

No response

@Timtaran
Copy link
Contributor

Timtaran commented Oct 18, 2024

#6641 might be helpful for you because self-hosted is still not unrestricted​

@snmnr
Copy link

snmnr commented Nov 16, 2024

#6641可能对你有帮助,因为自托管仍然不是不受限制的

I can use this method to change the configuration, the capacity limit can see the change, but the upload limit is still 10M

@Timtaran
Copy link
Contributor

#6641可能对你有帮助,因为自托管仍然不是不受限制的

I can use this method to change the configuration, the capacity limit can see the change, but the upload limit is still 10M

I suppose you should edit blobLimit

@snmnr
Copy link

snmnr commented Nov 22, 2024

#6641可能对你有帮助,因为自托管仍然不是不受限制的

I can use this method to change the configuration, the capacity limit can see the change, but the upload limit is still 10M

I suppose you should edit blobLimit

I have tried to configure these configurations and only for upload restrictions not work
8 | free_plan_v1 | {"name":"Free","blobLimit":10485760,"storageQuota":10737418240,"historyPeriod":604800000,"memberLimit":3} 9 | pro_plan_v1 | {"name":"Pro","blobLimit":104857600,"storageQuota":107374182400,"historyPeriod":2592000000,"memberLimit":10} 10 | restricted_plan_v1 | {"name":"Restricted","blobLimit":1048576,"storageQuota":10485760,"historyPeriod":2592000000,"memberLimit":10} 11 | free_plan_v1 | {"name":"Free","blobLimit":104857600,"storageQuota":10737418240,"historyPeriod":604800000,"memberLimit":3} 12 | free_plan_v1 | {"name":"Free","blobLimit":10485760,"businessBlobLimit":104857600,"storageQuota":10737418240,"historyPeriod":604800000,"memberLimit":3} 13 | free_plan_v1 | {"name":"Free","blobLimit":10485760,"businessBlobLimit":104857600,"storageQuota":10737418240,"historyPeriod":604800000,"memberLimit":3,"copilotActionLimit":10} 14 | pro_plan_v1 | {"name":"Pro","blobLimit":104857600,"storageQuota":107374182400,"historyPeriod":2592000000,"memberLimit":10,"copilotActionLimit":10} 15 | restricted_plan_v1 | {"name":"Restricted","blobLimit":1048576,"storageQuota":10485760,"historyPeriod":2592000000,"memberLimit":10,"copilotActionLimit":10} 16 | lifetime_pro_plan_v1 | {"name":"Lifetime Pro","blobLimit":104857600,"storageQuota":1099511627776,"historyPeriod":2592000000,"memberLimit":10,"copilotActionLimit":10}

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

No branches or pull requests

3 participants