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. Adding multiple aliases to an app Fails

Adding multiple aliases to an app Fails

Scheduled Pinned Locked Moved Solved Support
aliases
9 Posts 3 Posters 1.6k Views 3 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.
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by girish
    #1

    I have a Surfer app that needed typo aliases, so I added 6 at once, and the save dialog spins for a while and throws a RED error popup message.

    Something about a property being set to 'null'.

    It also keeps the save button spinning, so one can't try again and one has to exit the app config and go back in where all changes are lost.

    Conscious tech

    nebulonN 1 Reply Last reply
    1
    • robiR robi

      I have a Surfer app that needed typo aliases, so I added 6 at once, and the save dialog spins for a while and throws a RED error popup message.

      Something about a property being set to 'null'.

      It also keeps the save button spinning, so one can't try again and one has to exit the app config and go back in where all changes are lost.

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

      @robi do you have the exact error message? It most likely is shown on the server side logs or in the failing network request from the browser inspector.

      robiR 1 Reply Last reply
      0
      • nebulonN nebulon

        @robi do you have the exact error message? It most likely is shown on the server side logs or in the failing network request from the browser inspector.

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

        @nebulon isn't it easier to simply add 6 aliases and get the repro error?

        It's quite repeatable. 😉

        Conscious tech

        nebulonN 1 Reply Last reply
        0
        • robiR robi

          @nebulon isn't it easier to simply add 6 aliases and get the repro error?

          It's quite repeatable. 😉

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

          @robi actually it works fine here, so I think there might be some edge case we miss.

          robiR 1 Reply Last reply
          0
          • nebulonN nebulon

            @robi actually it works fine here, so I think there might be some edge case we miss.

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #5

            @nebulon ok, trying this again, the domain is set up through Cloudflare.

            d0363bce-80ad-4a04-81b0-8eca5d2e65df-image.png

            That was with 7 aliases being added.

            I tried adding 6 on another cloudron and has no issue.

            Conscious tech

            1 Reply Last reply
            0
            • robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #6

              Dec 14 10:13:13 box:dns/cloudflare get: []
              Dec 14 10:13:15 box:dns/cloudflare get: []
              Dec 14 10:13:17 box:dns/cloudflare get: []
              Dec 14 10:13:18 box:dns/cloudflare get: []
              Dec 14 10:13:19 box:dns/cloudflare get: []
              Dec 14 10:13:20 box:dns/cloudflare get: []
              Dec 14 10:13:23 box:dns/cloudflare get: ["IP"]
              Cannot read property 'message' of null
              at Function.BoxError.toHttpError (/home/yellowtent/box/src/boxerror.js:107:16)
              at setLocation (/home/yellowtent/box/src/routes/apps.js:413:37)
              at runMicrotasks (<anonymous>)
              at processTicksAndRejections (internal/process/task_queues.js:95:5) {
              status: 500,
              internalError: TypeError: Cannot read property 'message' of null
              at Object.setLocation (/home/yellowtent/box/src/apps.js:1686:111)
              at runMicrotasks (<anonymous>)
              at processTicksAndRejections (internal/process/task_queues.js:95:5),
              details: null
              POST /api/v1/apps/5174ca9b-9b4e-44ee-aff9-633c3b52f243/configure/location 500 Internal Server Error Cannot read property 'message' of null 78.794 ms - 94

              Conscious tech

              nebulonN 1 Reply Last reply
              0
              • robiR robi

                Dec 14 10:13:13 box:dns/cloudflare get: []
                Dec 14 10:13:15 box:dns/cloudflare get: []
                Dec 14 10:13:17 box:dns/cloudflare get: []
                Dec 14 10:13:18 box:dns/cloudflare get: []
                Dec 14 10:13:19 box:dns/cloudflare get: []
                Dec 14 10:13:20 box:dns/cloudflare get: []
                Dec 14 10:13:23 box:dns/cloudflare get: ["IP"]
                Cannot read property 'message' of null
                at Function.BoxError.toHttpError (/home/yellowtent/box/src/boxerror.js:107:16)
                at setLocation (/home/yellowtent/box/src/routes/apps.js:413:37)
                at runMicrotasks (<anonymous>)
                at processTicksAndRejections (internal/process/task_queues.js:95:5) {
                status: 500,
                internalError: TypeError: Cannot read property 'message' of null
                at Object.setLocation (/home/yellowtent/box/src/apps.js:1686:111)
                at runMicrotasks (<anonymous>)
                at processTicksAndRejections (internal/process/task_queues.js:95:5),
                details: null
                POST /api/v1/apps/5174ca9b-9b4e-44ee-aff9-633c3b52f243/configure/location 500 Internal Server Error Cannot read property 'message' of null 78.794 ms - 94

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

                @robi ok so good catch. The error you are seeing is an actual bug, triggered by some other validation error most likely. Which is why it is not reproducible here.

                For a start, can you manually apply this change and then run systemctl restart box and attempt to set the aliases again?

                robiR 1 Reply Last reply
                2
                • nebulonN nebulon

                  @robi ok so good catch. The error you are seeing is an actual bug, triggered by some other validation error most likely. Which is why it is not reproducible here.

                  For a start, can you manually apply this change and then run systemctl restart box and attempt to set the aliases again?

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by robi
                  #8

                  @nebulon this appears to do the trick. 👍

                  The configuration after several seconds proceeded with the green progress bar with 6 added aliases.

                  Not sure why it waits for DNS propagation as the changes are instant.. looong wait.

                  it seems to wait for ALL the domains nameservers to respond, when it could do well with just the first. The rest will catch up in a few seconds as they update too.

                  It also does it for all the nameserver IPs, so if there are 4, it does it 4 times per each instance, no wonder it takes forever.

                  I'm sure you can find a way to optimize this as a non-blocking operation.

                  Thank you

                  Conscious tech

                  girishG 1 Reply Last reply
                  0
                  • robiR robi

                    @nebulon this appears to do the trick. 👍

                    The configuration after several seconds proceeded with the green progress bar with 6 added aliases.

                    Not sure why it waits for DNS propagation as the changes are instant.. looong wait.

                    it seems to wait for ALL the domains nameservers to respond, when it could do well with just the first. The rest will catch up in a few seconds as they update too.

                    It also does it for all the nameserver IPs, so if there are 4, it does it 4 times per each instance, no wonder it takes forever.

                    I'm sure you can find a way to optimize this as a non-blocking operation.

                    Thank you

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

                    @robi said in Adding multiple aliases to an app Fails:

                    it seems to wait for ALL the domains nameservers to respond, when it could do well with just the first. The rest will catch up in a few seconds as they update too.

                    this is done because we cannot predict which nameserver will be used by Let's Encrypt or the browser. By waiting on all nameservers, the whole process is more reliable. Especially for the end user, if the browser hits NXDOMAIN it can get complicated to clear the DNS cache.

                    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