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. Support
  3. Can't connect to NextCloud console

Can't connect to NextCloud console

Scheduled Pinned Locked Moved Solved Support
dashboardweb terminalnextcloud
18 Posts 4 Posters 568 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.
  • nebulonN nebulon

    @potemkin_ai are you seeing anything in the browsers network inspector or console?

    potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    wrote last edited by
    #9

    @nebulon I do:

    terminal-c5ikyfn6.js:6307 WebSocket connection to 'wss://my.server.com/api/v1/apps/e075a2fe-7f7f-40ff-ae12-056766d2780d/exec/d7f60f4a9d5d72e7ced6aaf3d0f035fbe98c397f37690fe99ddcba72b0539d97/startws?tty=true&rows=25&columns=183&access_token=a8uNp2OOgZpy_00xcyYa3gKGGAb8SQGO0B6-Tydok3k' failed: 
    connect @ terminal-c5ikyfn6.js:6307
    terminal-c5ikyfn6.js:6322 Socket error. Reconnecting... Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …}
    terminal-c5ikyfn6.js:6317 Socket closed. Reconnecting...
    
    1 Reply Last reply
    0
    • potemkin_aiP Offline
      potemkin_aiP Offline
      potemkin_ai
      wrote last edited by
      #10

      and that is happening not only for NextCloud actually, I just didn't notice!

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

        ok, so just to rule out some more cases. Can you use cloudron exec for any of those apps, just to see if this may be something between your browser and the Cloudron or a backend issue.

        Also while trying to access the webterminal or cloudron exec, follow the cloudron logs at /home/yellowtent/platformdata/logs/box.log

        potemkin_aiP 1 Reply Last reply
        0
        • nebulonN nebulon

          ok, so just to rule out some more cases. Can you use cloudron exec for any of those apps, just to see if this may be something between your browser and the Cloudron or a backend issue.

          Also while trying to access the webterminal or cloudron exec, follow the cloudron logs at /home/yellowtent/platformdata/logs/box.log

          potemkin_aiP Offline
          potemkin_aiP Offline
          potemkin_ai
          wrote last edited by
          #12

          @nebulon will do, thanks.

          Could you please, tell me - what cloudron exec does? Never used it - only using WebUI and ssh command lines on the server, in those rare cases, when got to check something.

          1 Reply Last reply
          0
          • jamesJ Offline
            jamesJ Offline
            james
            Staff
            wrote last edited by
            #13

            Hello @potemkin_ai

            cloudron exec is the cloudron cli version of the web terminal but in your local shell.
            Example:

            cloudron exec --app nextcloud --tty
            

            Then you should have the nextcloud terminal in your local terminal.

            1 Reply Last reply
            0
            • potemkin_aiP Offline
              potemkin_aiP Offline
              potemkin_ai
              wrote last edited by
              #14

              Hello, @james . Thanks!

              For anyone wondering of the same - the best way is the following commands - from any other computer, then the server.

              npx cloudron login my.precious.com
              npx cloudron list
              npx cloudron exec --app $id--tty
              

              (no need to install anything globally)

              Nothing at the box.log, I'm getting the following error from the cli:

              npx cloudron exec --app e085a31f-7f7f-40ff-ae95-056766d2781d --tty
              Could not upgrade connection to tcp. http status: 502
              

              And here is the nginx log entries:

              IP - - [21/Jan/2026:14:18:03 +0000] "GET /api/v1/apps/e085a31f-7f7f-40ff-ae95-056766d2781d HTTP/2.0" 200 7965 "-" "-"
              IP - - [21/Jan/2026:14:18:03 +0000] "POST /api/v1/apps/e085a31f-7f7f-40ff-ae95-056766d2781d/exec HTTP/2.0" 200 78 "-" "-"
              

              The Cloudron is behind a proxy, but I can't see any WebSocket related restrictions.

              jamesJ 1 Reply Last reply
              0
              • potemkin_aiP potemkin_ai

                Hello, @james . Thanks!

                For anyone wondering of the same - the best way is the following commands - from any other computer, then the server.

                npx cloudron login my.precious.com
                npx cloudron list
                npx cloudron exec --app $id--tty
                

                (no need to install anything globally)

                Nothing at the box.log, I'm getting the following error from the cli:

                npx cloudron exec --app e085a31f-7f7f-40ff-ae95-056766d2781d --tty
                Could not upgrade connection to tcp. http status: 502
                

                And here is the nginx log entries:

                IP - - [21/Jan/2026:14:18:03 +0000] "GET /api/v1/apps/e085a31f-7f7f-40ff-ae95-056766d2781d HTTP/2.0" 200 7965 "-" "-"
                IP - - [21/Jan/2026:14:18:03 +0000] "POST /api/v1/apps/e085a31f-7f7f-40ff-ae95-056766d2781d/exec HTTP/2.0" 200 78 "-" "-"
                

                The Cloudron is behind a proxy, but I can't see any WebSocket related restrictions.

                jamesJ Offline
                jamesJ Offline
                james
                Staff
                wrote last edited by
                #15

                Hello @potemkin_ai

                @potemkin_ai said in Can't connect to NextCloud console:

                The Cloudron is behind a proxy

                This is a mayor detail which you should have mentioned earlier since it is outside the default Cloudron spectrum.
                Is it the whole Cloudron or just Nextcloud?
                Please explain in detail what you mean with Cloudron is behind a proxy.

                potemkin_aiP 1 Reply Last reply
                1
                • jamesJ james

                  Hello @potemkin_ai

                  @potemkin_ai said in Can't connect to NextCloud console:

                  The Cloudron is behind a proxy

                  This is a mayor detail which you should have mentioned earlier since it is outside the default Cloudron spectrum.
                  Is it the whole Cloudron or just Nextcloud?
                  Please explain in detail what you mean with Cloudron is behind a proxy.

                  potemkin_aiP Offline
                  potemkin_aiP Offline
                  potemkin_ai
                  wrote last edited by
                  #16

                  you should have mentioned earlier

                  @james I wish I was aware that it is the problem!

                  The whole cloudron is behind a haproxy that does TCP level proxy. From my understanding it should not affect, as it's one level below the HTTP(S) and WebSocket is above HTTPS.

                  And the console doesn't seem to work for all apps terminals.

                  Any ideas how to narrow down the root cause?

                  1 Reply Last reply
                  0
                  • jamesJ Offline
                    jamesJ Offline
                    james
                    Staff
                    wrote last edited by
                    #17

                    Hello @potemkin_ai
                    Sorry, but running Cloudron behind a proxy is an advanced setup outside the normal scope.
                    If you have a Cloudron subscription, feel free to reach out to our support mail support@cloudron.io.
                    Still, since this is outside the normal scope I can not guarantee any support there.

                    1 Reply Last reply
                    0
                    • J joseph has marked this topic as solved
                    • potemkin_aiP Offline
                      potemkin_aiP Offline
                      potemkin_ai
                      wrote last edited by
                      #18

                      I do have a subscription. Just yesterday I've figured out the problem is with HTTP 2 protocol that is failing on the hand-over; disabling it on the proxy and leaving with HTTP 1.1 works just fine, as the protocol do the fallback from H2 to WebSocket over HTTP 1.1, which works just fine.

                      1 Reply Last reply
                      1
                      • jamesJ james has marked this topic as solved
                      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