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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. App Packaging & Development
  3. CloudronVersions.json weirdness

CloudronVersions.json weirdness

Scheduled Pinned Locked Moved App Packaging & Development
3 Posts 2 Posters 86 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.
  • timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote last edited by
    #1

    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 add loses 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.

    Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

    1 Reply Last reply
    4
    • timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote last edited by
      #2

      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.

      Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

      1 Reply Last reply
      1
      • jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote last edited by james
        #3

        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.

        1 Reply Last reply
        0

        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
        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