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
  • 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 | 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 3.9k 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
    #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 Online
          luckowL Online
          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
                          • M Offline
                            M Offline
                            Muhanand
                            wrote on last edited by Muhanand
                            #21

                            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-1044337550

                            That 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 bigint

                            ALTER 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';
                            
                            1 Reply Last reply
                            1
                            • nebulonN nebulon referenced this topic on
                            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