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