Unable to increase upload size above 2GB Matrix
-
Here is the logs when I try to upload a file https://paste.ubuntu.com/p/Tn8ByHVWkB/
is there anything else that I should change other than the 'homeserver.yaml" file?
-
For some reason I can't reach the ubuntu.com paste url. I get a 502 error. You could use https://paste.cloudron.io/ as well.
-
-
Here is another try (this one is cleaner)
https://paste.cloudron.io/igazinamek.apache -
Just to double check, you are adjusting the
max_upload_size
in/app/data/configs/homeserver.yaml
correct ? Did you also restart the app after you changed it?Also, to check the obvious, is your synapse server hosted on Cloudron ?
-
-
@Muhanand said in Unable to increase upload size above 2GB Matrix:
had to restart to be able to try to upload a larger file or it will say file is too big
does this mean, it works now?
-
quick question: What is the purpose of uploading such large files?
-
@Muhanand looks like a known problem . See https://github.com/element-hq/synapse/issues/12023
-
@Muhanand I think luckow means to ask why upload such large files to a chat , instead of say some filehosting program like say nextcloud
-
@girish said in Unable to increase upload size above 2GB Matrix:
@Muhanand looks like a known problem . See https://github.com/element-hq/synapse/issues/12023
seems to be the same, it didn't work in a e2e room, but started the upload in an unencrypted room, still failed but it started.
I setup a matrix server without cloudron a couple months ago and it didn't have this issue
don't know if this is from synapse or cloudron tbh -
@Muhanand per the bug report, it fails for encrypted and unencrypted rooms (in the description of the issue).
-
Found a solution in the old bug report, only issue is that it doesn't work in e2e rooms
here is the solution https://github.com/matrix-org/synapse/issues/12023#issuecomment-1044337550That seemed to work because when uploading to an unencrypted room the upload does start, but when uploading in a e2e room it just failed (doesn't even start uploading) Does anyone have an idea on how we can make this work in e2e rooms as well?
btw for anyone trying to apply it do the following
1, go to the terminal. 2, click postgress then type psql and press enter.
3, paste in the following to change media_length from integer to bigintALTER TABLE local_media_repository ALTER COLUMN media_length TYPE bigint;
you can use the following to check if the change was applied
SELECT data_type FROM information_schema.columns WHERE table_name = 'local_media_repository' AND column_name = 'media_length';
-