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. Incorrect error when removing an obsolete alias for a service

Incorrect error when removing an obsolete alias for a service

Scheduled Pinned Locked Moved Solved Support
dnsalias
6 Posts 2 Posters 872 Views 2 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.
    • R Offline
      R Offline
      Robin
      wrote on last edited by girish
      #1

      I had an app hosted at, let's say, "foo.bar.com". It had an alias for "barfoo.net", which was an old domain that subsequently has expired. Today, I tried to remove the "barfoo.net" alias by just trashing it and clicking save, but got an error:

      An error occurred during the location change operation: Already Exists: DNS CNAME record already exists

      The CNAME that already exists is for "foo.bar.com". It doesn't seem correct that this is an error, since the CNAME it is complaining about was already set up by Cloudron. All I wanted to do was to remove the alias, not also change the location of the service.

      (Running Cloudron v7.3.2, using Hetzner DNS if it matters)

      girishG 1 Reply Last reply
      1
      • R Offline
        R Offline
        Robin
        wrote on last edited by
        #2

        For the record, it did actually remove the alias, so I think the only confusion here is the unexpected extra presentation of an error message.

        1 Reply Last reply
        0
        • R Robin

          I had an app hosted at, let's say, "foo.bar.com". It had an alias for "barfoo.net", which was an old domain that subsequently has expired. Today, I tried to remove the "barfoo.net" alias by just trashing it and clicking save, but got an error:

          An error occurred during the location change operation: Already Exists: DNS CNAME record already exists

          The CNAME that already exists is for "foo.bar.com". It doesn't seem correct that this is an error, since the CNAME it is complaining about was already set up by Cloudron. All I wanted to do was to remove the alias, not also change the location of the service.

          (Running Cloudron v7.3.2, using Hetzner DNS if it matters)

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

          @Robin said in Incorrect error when removing an obsolete alias for a service:

          The CNAME that already exists is for "foo.bar.com". It doesn't seem correct that this is an error, since the CNAME it is complaining about was already set up by Cloudron.

          mm, Cloudron does not set up CNAME records, only A records. Did you happen to set this up manually?

          The error path is hit when Cloudron tries to setup A record for foo.bar.com but it finds that it has a CNAME record already there (what you suspected is correct). I guess the question is how did it end up having a CNAME record.

          R 1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            Currently, the flow is:

            • At install time, Cloudron checks if there is a CNAME. If there is, it will ask your confirmation to "overwrite" it.
            • If confirmed, it will only put an A record.
            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              I am able to "reproduce" the issue atleast. If a record is change behind Cloudron's back, it basically gives you an error saying "there is something else here that I did not put". Then, if you "repair" it, it puts back the DNS records which it expects i.e removes the CNAME record and puts back the A record.

              I think it's this way because there is no way to know if the CNAME somehow ends up pointing to the server correctly for cert renewal etc to work reliably. Especially, if CNAMEd to some external service which then proxies to Cloudron server.

              1 Reply Last reply
              1
              • girishG girish

                @Robin said in Incorrect error when removing an obsolete alias for a service:

                The CNAME that already exists is for "foo.bar.com". It doesn't seem correct that this is an error, since the CNAME it is complaining about was already set up by Cloudron.

                mm, Cloudron does not set up CNAME records, only A records. Did you happen to set this up manually?

                The error path is hit when Cloudron tries to setup A record for foo.bar.com but it finds that it has a CNAME record already there (what you suspected is correct). I guess the question is how did it end up having a CNAME record.

                R Offline
                R Offline
                Robin
                wrote on last edited by
                #6

                @girish said in Incorrect error when removing an obsolete alias for a service:

                Did you happen to set this up manually?

                Hmm, I don't actually know. It's not impossible I guess...

                Good to know though, I'll work on cleaning DNS up 🙂

                1 Reply Last reply
                1
                • girishG girish marked this topic as a question on
                • girishG girish has marked this topic as solved 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