gerben
Posts
-
“Update to latest” button/option -
PerformanceHi, this drop-in replacement for Github Pages works great.
Looking at the source code, it looks like the pages are served directly by the Express framework in NodeJS; correct? I wonder how well this performs under load; any estimates/experiences? (we are considering hosting redecentralize.org on our own server, but are a little worried about e.g. a slashdot effect taking it down when it is needed most..)
The Express docs suggest running e.g. nginx as a cache in front of it, might that be a good idea? And if not, perhaps at least the app could use gzip compression?
(besides, using an nginx server might also be useful to e.g. obtain server logs for statistics, but that’s a separate question)
-
Cloudron update failing -
Cloudron update failing@girish said in Cloudron update failing:
Indeed, the docker install logic was not cleaned up properly when we cleaned up other package installs. fixed now - https://git.cloudron.io/cloudron/box/-/commit/09d3d258b61ba338c0fadc88c0418d8bcc77f528 . Thanks for investigating!
Perhaps that fixes a similar bug, but just for clarity, note that I was using an old version Cloudron (6.1.2), and got stuck in this other loop that looks like it has already been removed from the script between version 6.2 and 6.3.
while ! dpkg --force-confold --configure -a; do log "Failed to fix packages. Retry" sleep 1 done
That “Failed to fix packages” is the message that appeared again and again in my infinite logs:
2022-01-13T17:05:53 ==> installer: Updating from 6.1.2 to 6.2.7 2022-01-13T17:05:53 ==> installer: updating docker 2022-01-13T17:05:58 ==> installer: Waiting for all dpkg tasks to finish... dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-modules-extra-5.4.0-59-generic; however: Package linux-modules-extra-5.4.0-59-generic is not installed. dpkg: error processing package linux-image-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 5.4.0.59.62); however: Package linux-image-generic is not configured yet. dpkg: error processing package linux-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-image-5.4.0-59-generic: linux-image-5.4.0-59-generic depends on linux-modules-5.4.0-59-generic; however: Package linux-modules-5.4.0-59-generic is not installed. dpkg: error processing package linux-image-5.4.0-59-generic (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: linux-image-generic linux-generic linux-image-5.4.0-59-generic 2022-01-13T17:05:58 ==> installer: Failed to fix packages. Retry dpkg: dependency problems prevent configuration of linux-image-generic: … …
-
Updating from v7.1.4For statistics, had the same issue here.
2023-02-08T13:57:54.944Z box:tasks setCompleted - 6496: {"result":null,"error":{"stack":"BoxError: Failed to download https://s3.amazonaws.com/prod-cloudron-releases/versions.json: downloadUrl exited with code 22 signal null\n at /home/yellowtent/box/src/updater.js:50:26\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n at async downloadUrl (/home/yellowtent/box/src/updater.js:42:5)\n at async downloadAndVerifyRelease (/home/yellowtent/box/src/updater.js:110:5)\n at async update (/home/yellowtent/box/src/updater.js:145:25)","name":"BoxError","reason":"Network Error","details":{},"message":"Failed to download https://s3.amazonaws.com/prod-cloudron-releases/versions.json: downloadUrl exited with code 22 signal null"}}
I deleted
/home/yellowtent/platformdata/update/updatechecker.json
, and alsoversions.json.sig
from the same folder (otherwise there was no ‘check versions’ button at all in the UI). Thensystemctl restart box
as described, seemed to work. (to then discover other update issues, but probably unrelated..) -
Cloudron update failingOk.. the underlying cause seems to have been that my
/lib/modules
is a 100MB tmpfs filesystem, on which dpkg tried to unpack 250MB of files. I don’t know how/why this happened, but I suppose it is not Cloudron’s fault either. (I managed to solve things by runningumount /lib/modules
so I could runapt --fix-broken install
without the disk space error; I’m somewhat surprised the machine managed to reboot after that)Anyhow, the part that is relevant for Cloudron seems to be that an issue in ubuntu/dpkg/whatever while updating things can apparently end up in an infinite loop that blocks future updates while creating gigabytes of log files; without feedback to the user that something is going wrong, let alone what is going wrong. Perhaps it could already help to have a time-limit on the updater service, and/or making dpkg stop rather than keep retrying, and then the UI can report that updating failed?