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. Issue with Cloudflare Domain Installation

Issue with Cloudflare Domain Installation

Scheduled Pinned Locked Moved Solved Support
cloudflaredomains
16 Posts 6 Posters 1.6k 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.
  • I Offline
    I Offline
    ivan-petro
    wrote on last edited by
    #7

    @joseph , may be something wrong with my Cloudlfare account. Can you give me all API requests that Cloudron did when setup new domain with Cloudflare?
    I will check it manually.

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

      @ivan-petro Per your logs, all the operations succeeded. Only the delete didn't work. The code essentially makes the same call as the curl I posted. It's not clear to me why the curl can work but Cloudron cannot. This issue is always reproducible or was it temporary? If it's always reprooducible, can you drop us a mail to support@cloudron.io . We can debug this further .

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sarkriss
        wrote on last edited by
        #9

        Hi there, I have the same exact problem. It's weird, I've setup other Cloudron instances in the past, with no problem at all 😕

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

          @ivan-petro @sarkriss we found the problem. Cloudflare has recently removed a field from their response! They used to have a zone_id field in the list records API. This field has been removed. This field named zone_id is not in the latest docs - https://developers.cloudflare.com/api/resources/dns/subresources/records/methods/list/#(params) default > (param) comment > (schema) . But it was there back when we wrote the code (almost 6-8 years ago):

          https://web.archive.org/web/20220308033127/https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records

          image.png

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #11

            The fix is like this:

            • Edit /home/yellowtent/box/src/dns/cloudflare.js
            • Locate the line const zoneId = result[0].zone_id;
            • Replace the above line with const zoneId = zone.id;
            • systemctl restart box

            We will make a new patch release next week with this change.

            C 1 Reply Last reply
            3
            • girishG girish

              The fix is like this:

              • Edit /home/yellowtent/box/src/dns/cloudflare.js
              • Locate the line const zoneId = result[0].zone_id;
              • Replace the above line with const zoneId = zone.id;
              • systemctl restart box

              We will make a new patch release next week with this change.

              C Offline
              C Offline
              CodyS
              wrote on last edited by
              #12

              @girish This fixed my issue I was having setting up my new cloudron server.

              1 Reply Last reply
              0
              • I Offline
                I Offline
                ivan-petro
                wrote on last edited by
                #13

                Hi @girish,

                Thank you for the support! Your solution worked perfectly, and now the domain is successfully added to Cloudron.

                I'll be waiting for the patch release. Should I revert the manual change in the /home/yellowtent/box/src/dns/cloudflare.js file before updating Cloudron with the patch, or will it be handled automatically during the update?

                Thanks again for your help!

                girishG 1 Reply Last reply
                2
                • J joseph has marked this topic as solved on
                • I ivan-petro

                  Hi @girish,

                  Thank you for the support! Your solution worked perfectly, and now the domain is successfully added to Cloudron.

                  I'll be waiting for the patch release. Should I revert the manual change in the /home/yellowtent/box/src/dns/cloudflare.js file before updating Cloudron with the patch, or will it be handled automatically during the update?

                  Thanks again for your help!

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

                  @ivan-petro It will be part of the next update (8.2.4)

                  1 Reply Last reply
                  1
                  • T Offline
                    T Offline
                    tadeas
                    wrote on last edited by
                    #15
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #16

                      For those who hit this 8.2.4 is out . It's marked as unstable just to not have everyone update at the same time but it should be stable and has the fix for this issue.

                      1 Reply Last reply
                      3
                      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