Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Matrix (Synapse/Element)
  3. Unable to increase upload size above 2GB Matrix

Unable to increase upload size above 2GB Matrix

Scheduled Pinned Locked Moved Matrix (Synapse/Element)
21 Posts 5 Posters 8.7k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muhanand
    wrote on last edited by Muhanand
    #1

    Hello, I trying to change the max uplaod size in a matrix server. I have set the max upload size to around 10gb but whenever I upload anything that is above 2gb it fails saying "The file 'name' failed to upload."
    I tried to change it to 5gb or even 3gb in the homeserver.yaml file but it just fails.
    Is there anyway to fix this

    Thank you

    1 Reply Last reply
    0
    • nebulonN Away
      nebulonN Away
      nebulon
      Staff
      wrote on last edited by
      #2

      Do you have any more error information which helps to triage this further?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Muhanand
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • nebulonN Away
          nebulonN Away
          nebulon
          Staff
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Muhanand
            wrote on last edited by
            #5

            https://paste.cloudron.io/afojegabov.apache

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Muhanand
              wrote on last edited by
              #6

              Here is another try (this one is cleaner)
              https://paste.cloudron.io/igazinamek.apache

              1 Reply Last reply
              0
              • nebulonN Away
                nebulonN Away
                nebulon
                Staff
                wrote on last edited by
                #7

                hm yeah nothing much to be seen in those logs about the failing upload. Has anyone else here succeeded to increase upload size to such values?

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by girish
                  #8

                  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 ?

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Muhanand
                    wrote on last edited by
                    #9

                    yes, using element desktop and web as the client. cloudron using Ubuntu 22.04
                    had to restart to be able to try to upload a larger file or it will say file is too big

                    girishG 1 Reply Last reply
                    0
                    • girishG girish moved this topic from Support on
                    • M Muhanand

                      yes, using element desktop and web as the client. cloudron using Ubuntu 22.04
                      had to restart to be able to try to upload a larger file or it will say file is too big

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      @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?

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Muhanand
                        wrote on last edited by Muhanand
                        #11

                        It still doesn't work, it just shows a different error
                        before restart
                        before.png
                        after restart (changes to homeserver.yaml applied)
                        after.png

                        Steps to reproduce, install matrix
                        modify "max_upload_size:" to something above 2gb in homeserver.yaml

                        girishG 1 Reply Last reply
                        0
                        • luckowL Offline
                          luckowL Offline
                          luckow
                          translator
                          wrote on last edited by
                          #12

                          quick question: What is the purpose of uploading such large files?

                          Pronouns: he/him | Primary language: German

                          M 1 Reply Last reply
                          1
                          • M Muhanand

                            It still doesn't work, it just shows a different error
                            before restart
                            before.png
                            after restart (changes to homeserver.yaml applied)
                            after.png

                            Steps to reproduce, install matrix
                            modify "max_upload_size:" to something above 2gb in homeserver.yaml

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #13

                            @Muhanand looks like a known problem . See https://github.com/element-hq/synapse/issues/12023

                            M 1 Reply Last reply
                            1
                            • luckowL luckow

                              quick question: What is the purpose of uploading such large files?

                              M Offline
                              M Offline
                              Muhanand
                              wrote on last edited by
                              #14

                              @luckow video files

                              1 Reply Last reply
                              1
                              • girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by girish
                                #15

                                @Muhanand I think luckow means to ask why upload such large files to a chat , instead of say some filehosting program like say nextcloud

                                M 1 Reply Last reply
                                1
                                • girishG girish

                                  @Muhanand I think luckow means to ask why upload such large files to a chat , instead of say some filehosting program like say nextcloud

                                  M Offline
                                  M Offline
                                  Muhanand
                                  wrote on last edited by
                                  #16

                                  @girish family group chats 😅
                                  telegram used to allow 20gb now it's 2gb still not bad

                                  1 Reply Last reply
                                  1
                                  • robiR Offline
                                    robiR Offline
                                    robi
                                    wrote on last edited by
                                    #17

                                    Might be best to link in chat to videos hosted on peertube or similar. Then transcoding can happen and other video optimizations based on device.

                                    Conscious tech

                                    1 Reply Last reply
                                    0
                                    • girishG girish

                                      @Muhanand looks like a known problem . See https://github.com/element-hq/synapse/issues/12023

                                      M Offline
                                      M Offline
                                      Muhanand
                                      wrote on last edited by
                                      #18

                                      @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

                                      1 Reply Last reply
                                      0
                                      • girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #19

                                        @Muhanand per the bug report, it fails for encrypted and unencrypted rooms (in the description of the issue).

                                        M 1 Reply Last reply
                                        0
                                        • girishG girish

                                          @Muhanand per the bug report, it fails for encrypted and unencrypted rooms (in the description of the issue).

                                          M Offline
                                          M Offline
                                          Muhanand
                                          wrote on last edited by
                                          #20

                                          @girish Thank you, seems to be a bug with Synapse then

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search