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. CORS/Timeout error when searching for public rooms

CORS/Timeout error when searching for public rooms

Scheduled Pinned Locked Moved Solved Matrix (Synapse/Element)
20 Posts 6 Posters 3.6k Views 6 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.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #7

    Actually, I am able to reproduce this when joining a public room which has > 10k users. The browser says CORS error. @ocelotsloth trying to debug more to see if this is a packaging issue or something else. But in general, it seems it has better luck with larger rooms when the memory for synapse server is increased. Right now, I have it at at 2GB and it is able to join ~8k user rooms. Can you check by bumping up the memory limit?

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

      I am able to join matrix public room now after bumping memory all the way to 8GB.

      ericdrgnE 1 Reply Last reply
      0
      • girishG girish

        I am able to join matrix public room now after bumping memory all the way to 8GB.

        ericdrgnE Offline
        ericdrgnE Offline
        ericdrgn
        wrote on last edited by
        #9

        @girish @ocelotsloth

        I can also confirm I had this issue before increasing my RAM for Matrix. Never had an issue once I increased it. Mine is at 10gb.

        nebulonN timconsidineT 2 Replies Last reply
        0
        • ericdrgnE ericdrgn

          @girish @ocelotsloth

          I can also confirm I had this issue before increasing my RAM for Matrix. Never had an issue once I increased it. Mine is at 10gb.

          nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #10

          @ericdrgn wow 10gb for the matrix/synapse instance?

          girishG ericdrgnE 2 Replies Last reply
          0
          • nebulonN nebulon

            @ericdrgn wow 10gb for the matrix/synapse instance?

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

            @nebulon It seems that to join large rooms it needs much memory to start with. After joining, it seems to not need that memory. The runtime memory use is not that high.

            nebulonN 1 Reply Last reply
            0
            • girishG girish

              @nebulon It seems that to join large rooms it needs much memory to start with. After joining, it seems to not need that memory. The runtime memory use is not that high.

              nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #12

              @girish I guess that situation then could be improved, if somehow we could have a soft memory limit to allow short temporary spikes.

              1 Reply Last reply
              0
              • nebulonN nebulon

                @ericdrgn wow 10gb for the matrix/synapse instance?

                ericdrgnE Offline
                ericdrgnE Offline
                ericdrgn
                wrote on last edited by
                #13

                @nebulon Yeah, but like @girish said it isn't like it ever really hits that. And if I remember right I think I found that out via some Matrix bug and their blog posts. I think the situation has improved recently but don't think it is a Cloudron issue.

                Anyway I self host so upping it to that wasn't a problem for me. Since it never mantains usage at that level I wasn't too worried about giving it that much I just got tired of random rooms still needing even more due to spikes so I just gave it a relatively absurd amount. On other instances where I have federation disabled I keep the default and have no issues.

                1 Reply Last reply
                0
                • ericdrgnE ericdrgn

                  @girish @ocelotsloth

                  I can also confirm I had this issue before increasing my RAM for Matrix. Never had an issue once I increased it. Mine is at 10gb.

                  timconsidineT Offline
                  timconsidineT Offline
                  timconsidine
                  App Dev
                  wrote on last edited by
                  #14

                  @ericdrgn : I'm struggling to search and find rooms on servers with my instance set at 16Gb (just as a test).

                  Doesn't seem right to me that it's just a memory issue.

                  scookeS 1 Reply Last reply
                  0
                  • timconsidineT timconsidine

                    @ericdrgn : I'm struggling to search and find rooms on servers with my instance set at 16Gb (just as a test).

                    Doesn't seem right to me that it's just a memory issue.

                    scookeS Offline
                    scookeS Offline
                    scooke
                    wrote on last edited by scooke
                    #15

                    @timconsidine Give me a try, @scooke:incroyable.net, and I just made this room for you to try finding: #cloudron:incroyable.net

                    A life lived in fear is a life half-lived

                    timconsidineT 1 Reply Last reply
                    1
                    • scookeS scooke

                      @timconsidine Give me a try, @scooke:incroyable.net, and I just made this room for you to try finding: #cloudron:incroyable.net

                      timconsidineT Offline
                      timconsidineT Offline
                      timconsidine
                      App Dev
                      wrote on last edited by
                      #16

                      @scooke said in CORS/Timeout error when searching for public rooms:

                      #cloudron:incroyable.net

                      Great domain !
                      But no joy.
                      Maybe I am doing something wrong
                      Screenshot 2021-10-17 at 19.02.07.png

                      scookeS 1 Reply Last reply
                      0
                      • timconsidineT timconsidine

                        @scooke said in CORS/Timeout error when searching for public rooms:

                        #cloudron:incroyable.net

                        Great domain !
                        But no joy.
                        Maybe I am doing something wrong
                        Screenshot 2021-10-17 at 19.02.07.png

                        scookeS Offline
                        scookeS Offline
                        scooke
                        wrote on last edited by
                        #17

                        @timconsidine Hmm, you know, I recall having a similar issue when I started but I can't recal what it was. Hold on a sec...

                        A life lived in fear is a life half-lived

                        1 Reply Last reply
                        1
                        • scookeS Offline
                          scookeS Offline
                          scooke
                          wrote on last edited by
                          #18

                          Well, a common setting that is overlooked is having an app installed on the root domain that the Matrix server is on. So if your address is matrix.tim.com, you need to make sure there is an app (any app) installed on tim.com in Cloudron. I came across this post -

                          https://forum.cloudron.io/topic/3974/help-making-federation-work/31

                          -- which saw a user have an app installed there, and they had to go to that app's Location and re-press "Save". This is for pre-6.1 installs, but hey, you never know.

                          So, I guess you have Matrix and Element installed, right? Your Element is using your own Matrix?

                          A life lived in fear is a life half-lived

                          timconsidineT 1 Reply Last reply
                          2
                          • scookeS Offline
                            scookeS Offline
                            scooke
                            wrote on last edited by
                            #19

                            Try https://federationtester.matrix.org/ out. It might give you a hint as to what might be missing.

                            A life lived in fear is a life half-lived

                            1 Reply Last reply
                            3
                            • scookeS scooke

                              Well, a common setting that is overlooked is having an app installed on the root domain that the Matrix server is on. So if your address is matrix.tim.com, you need to make sure there is an app (any app) installed on tim.com in Cloudron. I came across this post -

                              https://forum.cloudron.io/topic/3974/help-making-federation-work/31

                              -- which saw a user have an app installed there, and they had to go to that app's Location and re-press "Save". This is for pre-6.1 installs, but hey, you never know.

                              So, I guess you have Matrix and Element installed, right? Your Element is using your own Matrix?

                              timconsidineT Offline
                              timconsidineT Offline
                              timconsidine
                              App Dev
                              wrote on last edited by timconsidine
                              #20

                              @scooke : thank you
                              Yes, I have another app on the domain.
                              I pressed 'save' to re-save and re-start it.

                              The domain.tld/.well-known/matrix/server returns a response.

                              But the tester link you gave returns an error

                              Connection Errors
                              Get "https://107.155.122.83:8448/_matrix/key/v2/server": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
                              

                              And complains there is no SRV record.
                              Seems to me that the tester is not compatible with Cloudron matrix installs which are on :443

                              Maybe it's a DNS propagation issue as it's been changed ... but has it really? because Cloudron installs are under a wildcard in my case.

                              I will try again in a while in case it is a propagation issue.

                              But there is one change.
                              Previously Element said "cannot find" your server incroyable.net, and now it says "you are not allowed to view this server's rooms list" and I could successfully join your room with a direct link.

                              And I can find some other random servers also.

                              Think I can this is now working, despite tester link errors.
                              Many thanks for your help !

                              1 Reply Last reply
                              1
                              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