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. Support
  3. Cloudron can't access dashboard because my Domains expired

Cloudron can't access dashboard because my Domains expired

Scheduled Pinned Locked Moved Solved Support
dashboarddomains
11 Posts 6 Posters 1.7k 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.
    • L Offline
      L Offline
      letecho
      wrote on last edited by girish
      #1

      Hi,

      -I had installed last year on DigitalOcean with a Cloudron Droplet and configured DNS via Cloudflare Domains ect...

      ->Today the situation is the Domains was not renewed and the Setup DNS Cloudflare is full erased.

      I have only the acces to the VPS console via DigitalOcean and i can access to the url IPV4: 142.93.48.34.

      Can i do something to access to Cloudron dashboard & Can i reassigned a DomainName ?

      Best regards.

      girishG 1 Reply Last reply
      0
      • L letecho

        Hi,

        -I had installed last year on DigitalOcean with a Cloudron Droplet and configured DNS via Cloudflare Domains ect...

        ->Today the situation is the Domains was not renewed and the Setup DNS Cloudflare is full erased.

        I have only the acces to the VPS console via DigitalOcean and i can access to the url IPV4: 142.93.48.34.

        Can i do something to access to Cloudron dashboard & Can i reassigned a DomainName ?

        Best regards.

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

        @letecho Do you still own the domain ? If so, all you have to do is to add a DNS entry manually from my.domain.com to the IP address. If you don't own the domain, just put an /etc/hosts entry from my.domain.com to the IP address. You can then access the dashboard via the browser.

        Once you reach the dashboard, the certificate may or may not have expired. Accept the self-signed certificate and login. Then, go to the Domains view and you can add another domain, if you like and change the dashboard domain to that - https://docs.cloudron.io/domains/#dashboard-domain . You can also keep the same domain and sync DNS records instead as well - https://docs.cloudron.io/domains/#sync-dns

        L ShaiS 2 Replies Last reply
        1
        • girishG girish

          @letecho Do you still own the domain ? If so, all you have to do is to add a DNS entry manually from my.domain.com to the IP address. If you don't own the domain, just put an /etc/hosts entry from my.domain.com to the IP address. You can then access the dashboard via the browser.

          Once you reach the dashboard, the certificate may or may not have expired. Accept the self-signed certificate and login. Then, go to the Domains view and you can add another domain, if you like and change the dashboard domain to that - https://docs.cloudron.io/domains/#dashboard-domain . You can also keep the same domain and sync DNS records instead as well - https://docs.cloudron.io/domains/#sync-dns

          L Offline
          L Offline
          letecho
          wrote on last edited by
          #3

          @girish
          <<<<
          Thanks a lot i found a solution.

          Best regards

          scookeS 1 Reply Last reply
          0
          • L letecho

            @girish
            <<<<
            Thanks a lot i found a solution.

            Best regards

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

            @letecho What did you do?

            A life lived in fear is a life half-lived

            1 Reply Last reply
            0
            • M msbt referenced this topic on
            • girishG girish

              @letecho Do you still own the domain ? If so, all you have to do is to add a DNS entry manually from my.domain.com to the IP address. If you don't own the domain, just put an /etc/hosts entry from my.domain.com to the IP address. You can then access the dashboard via the browser.

              Once you reach the dashboard, the certificate may or may not have expired. Accept the self-signed certificate and login. Then, go to the Domains view and you can add another domain, if you like and change the dashboard domain to that - https://docs.cloudron.io/domains/#dashboard-domain . You can also keep the same domain and sync DNS records instead as well - https://docs.cloudron.io/domains/#sync-dns

              ShaiS Offline
              ShaiS Offline
              Shai
              wrote on last edited by
              #5

              @girish I had the same problem as @letecho. @msbt sent me here.

              I have tried putting the following into /etc/hosts

              my.example.com 123.45.678.901
              

              and

              123.45.678.901 my.example.com
              

              Also note that already in the /etc/hosts file, which I left untouched was:

              127.0.0.1       localhost
              

              Navigating in a browser to https://123.45.678.901 returns

              You are seeing this page because this domain points to Cloudron server IP but no app is installed on that domain.
              

              Ideas? thx.

              M mehdiM 2 Replies Last reply
              0
              • ShaiS Shai referenced this topic on
              • ShaiS Shai

                @girish I had the same problem as @letecho. @msbt sent me here.

                I have tried putting the following into /etc/hosts

                my.example.com 123.45.678.901
                

                and

                123.45.678.901 my.example.com
                

                Also note that already in the /etc/hosts file, which I left untouched was:

                127.0.0.1       localhost
                

                Navigating in a browser to https://123.45.678.901 returns

                You are seeing this page because this domain points to Cloudron server IP but no app is installed on that domain.
                

                Ideas? thx.

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

                @shai well yes, you have to navigate to the domain, not the ip address 😉

                1 Reply Last reply
                0
                • ShaiS Shai

                  @girish I had the same problem as @letecho. @msbt sent me here.

                  I have tried putting the following into /etc/hosts

                  my.example.com 123.45.678.901
                  

                  and

                  123.45.678.901 my.example.com
                  

                  Also note that already in the /etc/hosts file, which I left untouched was:

                  127.0.0.1       localhost
                  

                  Navigating in a browser to https://123.45.678.901 returns

                  You are seeing this page because this domain points to Cloudron server IP but no app is installed on that domain.
                  

                  Ideas? thx.

                  mehdiM Offline
                  mehdiM Offline
                  mehdi
                  App Dev
                  wrote on last edited by
                  #7

                  @shai said in Cloudron can't access dashboard because my Domains expired:

                  my.example.com 123.45.678.901

                  And remove the my.example.com 123.45.678.901 line from your hosts file. It's not valid and may cause issues

                  ShaiS 1 Reply Last reply
                  0
                  • mehdiM mehdi

                    @shai said in Cloudron can't access dashboard because my Domains expired:

                    my.example.com 123.45.678.901

                    And remove the my.example.com 123.45.678.901 line from your hosts file. It's not valid and may cause issues

                    ShaiS Offline
                    ShaiS Offline
                    Shai
                    wrote on last edited by
                    #8

                    @mehdi Okay. But why would my.example.com work? And it does not. When the registration expired the Registrar disabled the DNS records for that domain which is normal. So how would associating an IP address with the domain name on /etc/hosts help that problem?

                    now that I think of it I should be able to access the Cloudron from Cloudron CLI. I'll go look to see if I can add domains and associate them to apps with Cloudron CLI.

                    I'll also look at @girish reference to the dns-sync documents.

                    Am I missing something?

                    mehdiM girishG 2 Replies Last reply
                    0
                    • ShaiS Shai

                      @mehdi Okay. But why would my.example.com work? And it does not. When the registration expired the Registrar disabled the DNS records for that domain which is normal. So how would associating an IP address with the domain name on /etc/hosts help that problem?

                      now that I think of it I should be able to access the Cloudron from Cloudron CLI. I'll go look to see if I can add domains and associate them to apps with Cloudron CLI.

                      I'll also look at @girish reference to the dns-sync documents.

                      Am I missing something?

                      mehdiM Offline
                      mehdiM Offline
                      mehdi
                      App Dev
                      wrote on last edited by
                      #9

                      @shai It will not help with the SSL certificate. It helps with being able to have your browser connect to the interface : there is something called SNI ( https://fr.wikipedia.org/wiki/Server_Name_Indication ) , which makes your browser send the actual address you are trying to access, when trying to connect to the server's IP. This makes it possible to differentiate between websites on the same server. So if you try to access the raw IP, the server will not even try to send you the management interface : you have to put the my.example.com in the address bar, and the only way for that to actually contact the proper IP if the DNS is expired is the hosts file. You will still have to accept an expired certificate, but it should let you pass.

                      (if you still have trouble, I suggest trying a different browser / clearing the browser's cache, ...)

                      1 Reply Last reply
                      2
                      • ShaiS Shai

                        @mehdi Okay. But why would my.example.com work? And it does not. When the registration expired the Registrar disabled the DNS records for that domain which is normal. So how would associating an IP address with the domain name on /etc/hosts help that problem?

                        now that I think of it I should be able to access the Cloudron from Cloudron CLI. I'll go look to see if I can add domains and associate them to apps with Cloudron CLI.

                        I'll also look at @girish reference to the dns-sync documents.

                        Am I missing something?

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

                        @shai Let's say your old domain is olddomain.com and your new domain is newdomain.com . Then,

                        • You have to put "123.45.678.901 my.olddomain.com" in the /etc/hosts file of your PC/laptop (and not on the Cloudron server!)
                        • What the above does is that, when you access https://my.olddomain.com via your browser, the browser does not send any DNS request at all (so nothing hits your registrar). Instead, it looks up that file and translates to your server IP. This is why it "works". But of course, this will work only on your PC/laptop and won't work from any other laptop/machine.
                        • Note that https://123.45.678.901 won't work . This is expected since access via IP won't work on Cloudron. You have to access using a domain name. (Both SNI and vhost configuration require domain names).

                        Once you have access to the dashboard:

                        • Add newdomain.com in the Domains view.
                        • Change the dashboard domain - https://docs.cloudron.io/domains/#dashboard-domain
                        • Move all apps to use the newdomain.com
                        • Delete olddomain.com from Cloudron Domains view.
                        ShaiS 1 Reply Last reply
                        1
                        • girishG girish

                          @shai Let's say your old domain is olddomain.com and your new domain is newdomain.com . Then,

                          • You have to put "123.45.678.901 my.olddomain.com" in the /etc/hosts file of your PC/laptop (and not on the Cloudron server!)
                          • What the above does is that, when you access https://my.olddomain.com via your browser, the browser does not send any DNS request at all (so nothing hits your registrar). Instead, it looks up that file and translates to your server IP. This is why it "works". But of course, this will work only on your PC/laptop and won't work from any other laptop/machine.
                          • Note that https://123.45.678.901 won't work . This is expected since access via IP won't work on Cloudron. You have to access using a domain name. (Both SNI and vhost configuration require domain names).

                          Once you have access to the dashboard:

                          • Add newdomain.com in the Domains view.
                          • Change the dashboard domain - https://docs.cloudron.io/domains/#dashboard-domain
                          • Move all apps to use the newdomain.com
                          • Delete olddomain.com from Cloudron Domains view.
                          ShaiS Offline
                          ShaiS Offline
                          Shai
                          wrote on last edited by
                          #11

                          @girish So clever! Worked like a charm.

                          The only part where I had to fuss for a few minutes is that the app errored on changing to the new domain; it got stuck on de-registering the old domain. I went into the Domain manager and deleted the domain entirely from the Cloudron and then the app was able to receive the new domain without problem.

                          Thank you so much for writing the steps out in detail. I really appreciate it!

                          1 Reply Last reply
                          0
                          • girishG girish forked this topic on
                          • girishG girish locked 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