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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Collabora Online (CODE)
  3. Collabora Online stops working after restart (502 Bad Gateway)

Collabora Online stops working after restart (502 Bad Gateway)

Scheduled Pinned Locked Moved Solved Collabora Online (CODE)
24 Posts 4 Posters 2.3k Views 4 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.
  • J Offline
    J Offline
    joseph
    Staff
    wrote on last edited by
    #2

    @archos you can try visiting https://collab.example.com/hosting/discovery on the browser . It should display some xml in the browser. If it works, then try curl of that URL from web terminal of nextcloud. Does that work? (Maybe there is cloudflare or some proxy in the middle blocking requests?)

    archosA 1 Reply Last reply
    1
    • J joseph

      @archos you can try visiting https://collab.example.com/hosting/discovery on the browser . It should display some xml in the browser. If it works, then try curl of that URL from web terminal of nextcloud. Does that work? (Maybe there is cloudflare or some proxy in the middle blocking requests?)

      archosA Offline
      archosA Offline
      archos
      wrote on last edited by
      #3

      @joseph I tried opening https://collab.example.com/hosting/discovery in a browser, and I got the same page as before ("This app is currently not responding").

      When I try it from the Nextcloud terminal using curl, I receive the HTML code of the Cloudron App Error page, which includes styling and the message:

      "This app is currently not responding. Please try refreshing the page in a few minutes."

      What should I check next?

      Thank you for your response.1000002546.png [link text](link url)

      1 Reply Last reply
      0
      • J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #4

        OK.. Not sure. Does this happen with a fresh install? I would say check if reinstall works because the app itself is stateless (has no data) . Collabora updates are quite hard to debug since they don't provider a real changelog

        archosA 1 Reply Last reply
        1
        • J joseph

          OK.. Not sure. Does this happen with a fresh install? I would say check if reinstall works because the app itself is stateless (has no data) . Collabora updates are quite hard to debug since they don't provider a real changelog

          archosA Offline
          archosA Offline
          archos
          wrote on last edited by
          #5

          @joseph Thank you for your response.
          I have tried reinstalling the application multiple times. I even installed it on a different domain once.

          But after every restart, the issue remains the same.

          J 1 Reply Last reply
          0
          • archosA archos

            @joseph Thank you for your response.
            I have tried reinstalling the application multiple times. I even installed it on a different domain once.

            But after every restart, the issue remains the same.

            J Offline
            J Offline
            joseph
            Staff
            wrote on last edited by
            #6

            @archos is there any proxy/cloudflare or anything in the network we need to be aware of?

            1 Reply Last reply
            0
            • J Offline
              J Offline
              joseph
              Staff
              wrote on last edited by
              #7

              Just installed in https://collabora.demo.cloudron.io/hosting/discovery and fresh install works atleast

              1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #8

                @archos do you see anything in the collabora app instance logs? Does it even startup fine? Since you get the default cloudron error page as a result, it seems that the app itself (in the container) isn't healthy for a start.

                archosA 1 Reply Last reply
                0
                • nebulonN nebulon

                  @archos do you see anything in the collabora app instance logs? Does it even startup fine? Since you get the default cloudron error page as a result, it seems that the app itself (in the container) isn't healthy for a start.

                  archosA Offline
                  archosA Offline
                  archos
                  wrote on last edited by
                  #9

                  @nebulon The application seems to work normally right after installation.
                  I tried connecting two Nextcloud instances – one on the same server as Collabora, and another on a different server.

                  When I add the "Memory Limit" application, after a restart, Collabora stops working, and I can no longer connect.

                  I also tried keeping only the instance that is on the same server as Collabora, but it only works until the next restart.

                  I’m not sure if it’s related, but the only errors I found in the logs are:

                  2025-03-17T20:08:05.532Z box:dns/cloudflare upsert: Adding new record fqdn: _acme-challenge.collab.example.com, zoneName: example.com proxied: false
                  2025-03-17T20:08:07.644Z box:dns/waitfordns isChangeSynced: NS damon.ns.cloudflare.com errored when resolving _acme-challenge.collab.example.com (TXT): Error: queryTxt ENOTFOUND _acme-challenge.collab.example.com
                  2025-03-17T21:11:21+01:00 Failed to initialize COOLWSD: SSL context exception: Error loading private key from file /etc/coolwsd/key.pem: error:8000000D:system library::Permission denied
                  
                  
                  
                  1 Reply Last reply
                  0
                  • nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by nebulon
                    #10

                    What is a "Memory Limit" application in this case?

                    Not sure what that .pem file is for. There seems to exist one from the initial package:

                    root@3c01b922-d875-4bc1-99b9-20c99a0d50c5:/app/code# ll /etc/coolwsd/key.pem
                    -rw------- 1 root root 1704 Mar 14 05:22 /etc/coolwsd/key.pem
                    

                    but I can't think of how this would be used in Cloudron, since the reverse proxy with SSL termination is not inside the container in Cloudron.

                    archosA 1 Reply Last reply
                    0
                    • nebulonN nebulon

                      What is a "Memory Limit" application in this case?

                      Not sure what that .pem file is for. There seems to exist one from the initial package:

                      root@3c01b922-d875-4bc1-99b9-20c99a0d50c5:/app/code# ll /etc/coolwsd/key.pem
                      -rw------- 1 root root 1704 Mar 14 05:22 /etc/coolwsd/key.pem
                      

                      but I can't think of how this would be used in Cloudron, since the reverse proxy with SSL termination is not inside the container in Cloudron.

                      archosA Offline
                      archosA Offline
                      archos
                      wrote on last edited by
                      #11

                      @nebulonThe "Memory Limit" setting in this case refers to the RAM allocation for Collabora Online in the Cloudron Dashboard.
                      Initially, the application was running with 1GB of RAM, but I increased it to 3GB to see if it helps with stability.

                      The only relevant issue I found is this one
                      but I’m not sure if it’s the same problem.

                      Unfortunately, I don’t have much experience with this.

                      1 Reply Last reply
                      0
                      • nebulonN Offline
                        nebulonN Offline
                        nebulon
                        Staff
                        wrote on last edited by
                        #12

                        Right the linked nextcloud forum entry is about the reverse proxy which in Cloudron's case is part of the platform. So you see no errors in the app logs itself and it starts up fine from the logs, but the healthcheck just doesn't succeed?

                        archosA 1 Reply Last reply
                        0
                        • nebulonN nebulon

                          Right the linked nextcloud forum entry is about the reverse proxy which in Cloudron's case is part of the platform. So you see no errors in the app logs itself and it starts up fine from the logs, but the healthcheck just doesn't succeed?

                          archosA Offline
                          archosA Offline
                          archos
                          wrote on last edited by
                          #13

                          @nebulon After restarting Collabora Online, I checked the logs and found the following errors:

                          connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.1, server: , request: "GET /hosting/discovery HTTP/1.1", upstream: "http://127.0.0.1:9980/hosting/discovery"
                          Failed to initialize COOLWSD: SSL context exception: Error loading private key from file /etc/coolwsd/key.pem: error:8000000D:system library::Permission denied
                          sh: 1: /usr/bin/coolmount: Operation not permitted
                          

                          It seems like Collabora Online fails to properly start after a reboot. Could the SSL certificate issue or permission errors be causing this? Any suggestions on what to check next?

                          1 Reply Last reply
                          0
                          • nebulonN Offline
                            nebulonN Offline
                            nebulon
                            Staff
                            wrote on last edited by
                            #14

                            very strange that I cannot reproduce this anywhere. Can't see why it would try to load some private key in the first place. Did you tweak any of the configs?

                            archosA 1 Reply Last reply
                            0
                            • nebulonN nebulon

                              very strange that I cannot reproduce this anywhere. Can't see why it would try to load some private key in the first place. Did you tweak any of the configs?

                              archosA Offline
                              archosA Offline
                              archos
                              wrote on last edited by
                              #15

                              @nebulon No, I haven’t manually modified any configuration files. Everything was set up through the Cloudron interface.

                              I have tried reinstalling Collabora multiple times, even on a different domain, but the issue persists. After installation, it works fine, but after a restart, it stops responding.

                              The only changes I made were increasing the memory allocation and connecting multiple Nextcloud instances.

                              1 Reply Last reply
                              0
                              • nebulonN Offline
                                nebulonN Offline
                                nebulon
                                Staff
                                wrote on last edited by
                                #16

                                I have tried to reproduce this with two nextcloud instances having office documents open and restarting collabora various times. Unfortunately I cannot reproduce any of those bits. Are you able to reproduce this on the demo cloudron?

                                archosA 1 Reply Last reply
                                0
                                • nebulonN nebulon

                                  I have tried to reproduce this with two nextcloud instances having office documents open and restarting collabora various times. Unfortunately I cannot reproduce any of those bits. Are you able to reproduce this on the demo cloudron?

                                  archosA Offline
                                  archosA Offline
                                  archos
                                  wrote on last edited by
                                  #17

                                  @nebulon Hi,
                                  I tried the demo instance of Collabora, but after a restart, I get the same error. I must be doing something wrong, but I really don't know what.

                                  I logged into Collabora and added my two Nextcloud domains: app1.demo.cloudron.io|app2.demo.cloudron.io. After a restart, I can no longer connect.

                                  At least now we know that the issue is somewhere on my side.

                                  1 Reply Last reply
                                  0
                                  • archosA Offline
                                    archosA Offline
                                    archos
                                    wrote on last edited by
                                    #18

                                    I also tried a fresh Nextcloud installation. My first Nextcloud instance is on the main domain, so I thought that might be the issue, but even with the new instance I have the same problem.

                                    After restarting the Collabora app, the same error appears again.

                                    It seems like someone had a similar issue here

                                    1 Reply Last reply
                                    0
                                    • nebulonN Offline
                                      nebulonN Offline
                                      nebulon
                                      Staff
                                      wrote on last edited by
                                      #19

                                      Aha, so possibly then changing the domain from default could be causing the issue. I didn't attempt that, since the test nextcloud instances are on the same main domain. Lets see if I can then reproduce it...

                                      1 Reply Last reply
                                      1
                                      • nebulonN Offline
                                        nebulonN Offline
                                        nebulon
                                        Staff
                                        wrote on last edited by
                                        #20

                                        I can now reproduce this by setting explicit domains. We have to debug and hopefully fix the package then. For the time being whildcard subdomains curiously seem to work fine as a workaround.

                                        M 1 Reply Last reply
                                        2
                                        • nebulonN nebulon

                                          I can now reproduce this by setting explicit domains. We have to debug and hopefully fix the package then. For the time being whildcard subdomains curiously seem to work fine as a workaround.

                                          M Offline
                                          M Offline
                                          msbt
                                          App Dev
                                          wrote on last edited by
                                          #21

                                          @nebulon can you also test it it multiple domains? I remember having issues with that a while back

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