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. App cannot be deleted nor reinstalled, weird.

App cannot be deleted nor reinstalled, weird.

Scheduled Pinned Locked Moved Solved Support
cloudflareapptask
7 Posts 2 Posters 827 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.
  • micmcM Offline
    micmcM Offline
    micmc
    wrote on last edited by girish
    #1

    Running on Cloudron 7.7.1
    First I was trying to clone an app onto a new subdomain, though it had been put on QUEUE instead of proceeding?
    Never seen that.
    Why? Nothing obvious.
    Yet, it was not proceeding any backup.
    Though, I needed to proceed like, now.
    After a few minutes while looking for something in the forum and here and there and docs, found nothing, I just went to simply try to stop the process somehow and I simply tried to remove the app while in "queue"(???) (I mean wtf? lol) at first so I can try again.

    The uninstall process went as normal up to DNS removal (I verified and the subdomain anymore is not in my DNS record) and that is according to the logs of the culprit app. However, the app does want to go out of the dashboard, I get an "error" message instead "running" and "cannot read properties of null (reading 'length')" on mouseover. Moreover, I get the same message -"cannot read properties of null (reading 'length')"- appearing at the top left of the dashboard in a red box, when I try to reinstall a new fresh copy of the app.

    Now, here's a copy of the log from where it starts to glitch, I've separated lines to make it easier to read:

    9:31:59 - box:tasks update 17173: {"message":"Unregistering location: xxxxx.xxxxxxx.com"}
    
    09:31:59 - box:dns removeDNSRecords: xxxxx on xxxxxxx.com type A values [ 'ip.add.re.ss' ]
    
    09:32:01 - box:dns unregisterLocation: Error unregistering location A. retryable: false. Cannot read properties of null (reading 'length')
    
    09:32:01 - box:apptask run: app error for state pending_uninstall: BoxError: Cannot read properties of null (reading 'length') at unregisterLocation (/home/yellowtent/box/src/dns.js:277:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /home/yellowtent/box/src/dns.js:291:13 at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20) at async Object.unregisterLocations (/home/yellowtent/box/src/dns.js:290:9) at async uninstall (/home/yellowtent/box/src/apptask.js:716:5) { reason: 'External Error', details: {} }
    
    09:32:01 - box:tasks setCompleted - 17173: {"result":null,"error":{"stack":"BoxError: Cannot read properties of null (reading 'length')\n    at unregisterLocation (/home/yellowtent/box/src/dns.js:277:11)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async /home/yellowtent/box/src/dns.js:291:13\n    at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n    at async Object.unregisterLocations (/home/yellowtent/box/src/dns.js:290:9)\n    at async uninstall (/home/yellowtent/box/src/apptask.js:716:5)","name":"BoxError","reason":"External Error","details":{},"message":"Cannot read properties of null (reading 'length')"}}
    
    09:32:01 - box:tasks update 17173: {"percent":100,"result":null,"error":{"stack":"BoxError: Cannot read properties of null (reading 'length')\n    at unregisterLocation (/home/yellowtent/box/src/dns.js:277:11)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async /home/yellowtent/box/src/dns.js:291:13\n    at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n    at async Object.unregisterLocations (/home/yellowtent/box/src/dns.js:290:9)\n    at async uninstall (/home/yellowtent/box/src/apptask.js:716:5)","name":"BoxError","reason":"External Error","details":{},"message":"Cannot read properties of null (reading 'length')"}}
    
    09:32:01 - box:taskworker Task took 2.64 seconds
    19:00:00 - [ERR_ASSERTION]: The expression evaluated to a falsy value:
    19:00:00 - Cannot read properties of null (reading 'length')
    19:00:00 - Not found
    19:00:00 - 
    node:internal/errors:541
          throw error;
          ^
    
    TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received an instance of SyntaxError
        at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
        at Stream.exit (node:internal/process/per_thread:182:24)
        at Stream.emit (node:events:531:35)
        at emit (/usr/local/lib/node_modules/cloudron/node_modules/split/index.js:31:23)
        at Stream.<anonymous> (/usr/local/lib/node_modules/cloudron/node_modules/split/index.js:60:7)
        at _end (/usr/local/lib/node_modules/cloudron/node_modules/through/index.js:65:9)
        at stream.end (/usr/local/lib/node_modules/cloudron/node_modules/through/index.js:74:5)
        at IncomingMessage.onend (node:internal/streams/readable:946:10)
        at Object.onceWrapper (node:events:633:28)
        at IncomingMessage.emit (node:events:531:35) {
      code: 'ERR_INVALID_ARG_TYPE'
    }
    
    Node.js v21.7.1
    
    

    Ignorance is not an excuse anymore!
    https://AutomateKit.com

    girishG 1 Reply Last reply
    0
    • micmcM micmc

      Running on Cloudron 7.7.1
      First I was trying to clone an app onto a new subdomain, though it had been put on QUEUE instead of proceeding?
      Never seen that.
      Why? Nothing obvious.
      Yet, it was not proceeding any backup.
      Though, I needed to proceed like, now.
      After a few minutes while looking for something in the forum and here and there and docs, found nothing, I just went to simply try to stop the process somehow and I simply tried to remove the app while in "queue"(???) (I mean wtf? lol) at first so I can try again.

      The uninstall process went as normal up to DNS removal (I verified and the subdomain anymore is not in my DNS record) and that is according to the logs of the culprit app. However, the app does want to go out of the dashboard, I get an "error" message instead "running" and "cannot read properties of null (reading 'length')" on mouseover. Moreover, I get the same message -"cannot read properties of null (reading 'length')"- appearing at the top left of the dashboard in a red box, when I try to reinstall a new fresh copy of the app.

      Now, here's a copy of the log from where it starts to glitch, I've separated lines to make it easier to read:

      9:31:59 - box:tasks update 17173: {"message":"Unregistering location: xxxxx.xxxxxxx.com"}
      
      09:31:59 - box:dns removeDNSRecords: xxxxx on xxxxxxx.com type A values [ 'ip.add.re.ss' ]
      
      09:32:01 - box:dns unregisterLocation: Error unregistering location A. retryable: false. Cannot read properties of null (reading 'length')
      
      09:32:01 - box:apptask run: app error for state pending_uninstall: BoxError: Cannot read properties of null (reading 'length') at unregisterLocation (/home/yellowtent/box/src/dns.js:277:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /home/yellowtent/box/src/dns.js:291:13 at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20) at async Object.unregisterLocations (/home/yellowtent/box/src/dns.js:290:9) at async uninstall (/home/yellowtent/box/src/apptask.js:716:5) { reason: 'External Error', details: {} }
      
      09:32:01 - box:tasks setCompleted - 17173: {"result":null,"error":{"stack":"BoxError: Cannot read properties of null (reading 'length')\n    at unregisterLocation (/home/yellowtent/box/src/dns.js:277:11)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async /home/yellowtent/box/src/dns.js:291:13\n    at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n    at async Object.unregisterLocations (/home/yellowtent/box/src/dns.js:290:9)\n    at async uninstall (/home/yellowtent/box/src/apptask.js:716:5)","name":"BoxError","reason":"External Error","details":{},"message":"Cannot read properties of null (reading 'length')"}}
      
      09:32:01 - box:tasks update 17173: {"percent":100,"result":null,"error":{"stack":"BoxError: Cannot read properties of null (reading 'length')\n    at unregisterLocation (/home/yellowtent/box/src/dns.js:277:11)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async /home/yellowtent/box/src/dns.js:291:13\n    at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n    at async Object.unregisterLocations (/home/yellowtent/box/src/dns.js:290:9)\n    at async uninstall (/home/yellowtent/box/src/apptask.js:716:5)","name":"BoxError","reason":"External Error","details":{},"message":"Cannot read properties of null (reading 'length')"}}
      
      09:32:01 - box:taskworker Task took 2.64 seconds
      19:00:00 - [ERR_ASSERTION]: The expression evaluated to a falsy value:
      19:00:00 - Cannot read properties of null (reading 'length')
      19:00:00 - Not found
      19:00:00 - 
      node:internal/errors:541
            throw error;
            ^
      
      TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received an instance of SyntaxError
          at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
          at Stream.exit (node:internal/process/per_thread:182:24)
          at Stream.emit (node:events:531:35)
          at emit (/usr/local/lib/node_modules/cloudron/node_modules/split/index.js:31:23)
          at Stream.<anonymous> (/usr/local/lib/node_modules/cloudron/node_modules/split/index.js:60:7)
          at _end (/usr/local/lib/node_modules/cloudron/node_modules/through/index.js:65:9)
          at stream.end (/usr/local/lib/node_modules/cloudron/node_modules/through/index.js:74:5)
          at IncomingMessage.onend (node:internal/streams/readable:946:10)
          at Object.onceWrapper (node:events:633:28)
          at IncomingMessage.emit (node:events:531:35) {
        code: 'ERR_INVALID_ARG_TYPE'
      }
      
      Node.js v21.7.1
      
      
      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @micmc said in App cannot be deleted nor reinstalled, weird.:

      Yet, it was not proceeding any backup.
      Though, I needed to proceed like, now.

      This is a known issue (fix coming in the next release). For the moment, kill the backup in the Backups view. It will let all the app tasks proced.

      micmcM 1 Reply Last reply
      0
      • girishG girish

        @micmc said in App cannot be deleted nor reinstalled, weird.:

        Yet, it was not proceeding any backup.
        Though, I needed to proceed like, now.

        This is a known issue (fix coming in the next release). For the moment, kill the backup in the Backups view. It will let all the app tasks proced.

        micmcM Offline
        micmcM Offline
        micmc
        wrote on last edited by
        #3

        @girish said in App cannot be deleted nor reinstalled, weird.:

        @micmc said in App cannot be deleted nor reinstalled, weird.:

        Yet, it was not proceeding any backup.
        Though, I needed to proceed like, now.

        This is a known issue (fix coming in the next release). For the moment, kill the backup in the Backups view. It will let all the app tasks proced.

        What backup in Backups view, the backup of the original app? Because there's no backup of the attempted clone.

        Ignorance is not an excuse anymore!
        https://AutomateKit.com

        girishG 1 Reply Last reply
        0
        • micmcM micmc

          @girish said in App cannot be deleted nor reinstalled, weird.:

          @micmc said in App cannot be deleted nor reinstalled, weird.:

          Yet, it was not proceeding any backup.
          Though, I needed to proceed like, now.

          This is a known issue (fix coming in the next release). For the moment, kill the backup in the Backups view. It will let all the app tasks proced.

          What backup in Backups view, the backup of the original app? Because there's no backup of the attempted clone.

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

          @micmc In the main Backups view of Cloudron where you configure system wide backups. That task blocks all the other tasks.

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

            Maybe related, but it seems Cloudflare is down and the API is not returning any response. @micmc are you using Cloudflare?

            micmcM 1 Reply Last reply
            1
            • girishG girish

              Maybe related, but it seems Cloudflare is down and the API is not returning any response. @micmc are you using Cloudflare?

              micmcM Offline
              micmcM Offline
              micmc
              wrote on last edited by
              #6

              @girish said in App cannot be deleted nor reinstalled, weird.:

              Maybe related, but it seems Cloudflare is down and the API is not returning any response. @micmc are you using Cloudflare?

              Ahh indeed I'm using Cloudflare. Interesting, now Cloudflare is back and all gets removed with the Retry uninstall function.
              Nevertheless, I'm using CF even before Cloudron and never seen that error before, could be a good idea to implement a proper feedback message then, in such case so we then have a CLUE! 😉

              Ignorance is not an excuse anymore!
              https://AutomateKit.com

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

                @micmc yes, already implemented the crash fix -https://git.cloudron.io/cloudron/box/-/commit/d862f1f5b4f10b5852aed958ecc4ce42709103f7 . CF was returning an invalid response that our code was not prepared for.

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