CloudronVersions.json weirdness
-
I thought I was imagining it, but fairly certain that I am not.
- Working on an app using CloudronVersions to publish, suddenly the app would not update in the Cloudron dashboard.
- CloudronVersions.json is ~1600 lines long, from 0.0.1 to 0.7.5, jumping a few so about 60 versions
- on last update CloudronVersions.json "lost" versions 0.7.2, 0.7.3 and 0.7.4 (and who knows what from earlier in the chain), so app running last version 0.7.4 would not find/recognise 0.7.5 as an upgrade
- fixed by deleting versions 0.0.1 through 0.7.0 to shrink the file, copying 0.7.1 to 0.7.4 and manually editing values
- app then says 'oooo, I see I am on 0.7.4 and found 0.7.4', and allows me to upgrade to latest 0.7.5
- my build cycle is automated, I never touch CloudronVersions.json
Maybe lazy layman's diagnosis : some CLI bug in
cloudron versions addloses content in Versions while adding a new one. Triggered by length limit or buffer constraint ?
Not a problem as such, as I now know how to fix it.
Surfacing this in case others come across it, maybe Cloudron team can check it when no other pressing tasks. -
And again (or so it seems).
Custom App under active development, resulting in frequent additions to CloudronVersions.json and growing file size (~2000 lines).
Update fails
Trimmed old versions content so file is now ~200 lines, just the initial 0.0.1 version and the latest versions.
Update starts working again.Maybe it is some local weirdness (my problem), so would be good to know if others see similar issues when CloudronVersions.json grows large, and if Cloudron team have encountered this.
-
Hello @timconsidine
If you have already reproduced this now, we should look into it.
Have you tried if this is still an issue when you 'minify' the JSON, so it is just one line?
With that we'd know if that is either a max line number issue or a file size issue.
Although, if you minify the JSON to just one line, the file size also shrinks. -
Hello @timconsidine
If you have already reproduced this now, we should look into it.
Have you tried if this is still an issue when you 'minify' the JSON, so it is just one line?
With that we'd know if that is either a max line number issue or a file size issue.
Although, if you minify the JSON to just one line, the file size also shrinks.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login