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. Feature Requests
  3. Please, separate automatic apps and platform upgrades

Please, separate automatic apps and platform upgrades

Scheduled Pinned Locked Moved Feature Requests
28 Posts 5 Posters 4.0k Views 5 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.
  • necrevistonnezrN necrevistonnezr

    @girish said in Please, separate automatic apps and platform upgrades:

    @potemkin_ai Ah yes, thanks. I just read the ticket. This is related to sftp keys migration which happenned many releases ago. It leaves the system in an inconsistent state. Strange bug somewhere.

    So was this a "standard" update or - as "many releases ago" suggests - an update crossing several versions?

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

    @necrevistonnezr said in Please, separate automatic apps and platform upgrades:

    So was this a "standard" update or - as "many releases ago" suggests - an update crossing several versions?

    We only have standard update i.e updating from previous version to next one. Cannot jump several versions (atleast, we have never tested this, but in any case there is no easy way to do this unless you hotfix the code from gitlab).

    I was debugging a bit yesterday but we have a code path where we create keys. These keys have to be written into filesystem and the database. It's written in db for backup and written in filesystem for containers to be able to use them. Unfortunately, writing to fs and db is not an atomic operation. The current code gets confused if there is some crash between the two writes (for example, no disk space). I will just fix it to be more robust.

    potemkin_aiP 1 Reply Last reply
    2
    • girishG girish

      @necrevistonnezr said in Please, separate automatic apps and platform upgrades:

      So was this a "standard" update or - as "many releases ago" suggests - an update crossing several versions?

      We only have standard update i.e updating from previous version to next one. Cannot jump several versions (atleast, we have never tested this, but in any case there is no easy way to do this unless you hotfix the code from gitlab).

      I was debugging a bit yesterday but we have a code path where we create keys. These keys have to be written into filesystem and the database. It's written in db for backup and written in filesystem for containers to be able to use them. Unfortunately, writing to fs and db is not an atomic operation. The current code gets confused if there is some crash between the two writes (for example, no disk space). I will just fix it to be more robust.

      potemkin_aiP Offline
      potemkin_aiP Offline
      potemkin_ai
      wrote on last edited by
      #10

      @girish thank you.

      Does it mean that separate apps updates and manual platform updates are out of the scope for the foreseeable future?

      girishG 1 Reply Last reply
      0
      • potemkin_aiP potemkin_ai

        @girish thank you.

        Does it mean that separate apps updates and manual platform updates are out of the scope for the foreseeable future?

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

        @potemkin_ai said in Please, separate automatic apps and platform upgrades:

        Does it mean that separate apps updates and manual platform updates are out of the scope for the foreseeable future?

        Ah no. I was simply stating the lay of the land 🙂

        If it's seen as useful by many, we will implement it.

        potemkin_aiP 1 Reply Last reply
        0
        • girishG girish

          @potemkin_ai said in Please, separate automatic apps and platform upgrades:

          Does it mean that separate apps updates and manual platform updates are out of the scope for the foreseeable future?

          Ah no. I was simply stating the lay of the land 🙂

          If it's seen as useful by many, we will implement it.

          potemkin_aiP Offline
          potemkin_aiP Offline
          potemkin_ai
          wrote on last edited by
          #12

          @girish I see, thank you for clarification. I guess it means we are speaking months here.

          Is there any API call, that I can probably execute with curl to automatically update only apps from cron?

          girishG 1 Reply Last reply
          1
          • potemkin_aiP potemkin_ai

            @girish I see, thank you for clarification. I guess it means we are speaking months here.

            Is there any API call, that I can probably execute with curl to automatically update only apps from cron?

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

            @potemkin_ai internally, there is only one update pattern, we have to implement splitting it up.

            potemkin_aiP 1 Reply Last reply
            0
            • girishG girish

              @potemkin_ai internally, there is only one update pattern, we have to implement splitting it up.

              potemkin_aiP Offline
              potemkin_aiP Offline
              potemkin_ai
              wrote on last edited by
              #14

              @girish Ok… what about something that gets all apps list, check and execute update on any of those, who has ‘update available’ flag?

              robiR 1 Reply Last reply
              0
              • potemkin_aiP potemkin_ai

                @girish Ok… what about something that gets all apps list, check and execute update on any of those, who has ‘update available’ flag?

                robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #15

                @potemkin_ai perhaps make an N8N workflow with the API

                Conscious tech

                potemkin_aiP 1 Reply Last reply
                1
                • robiR robi

                  @potemkin_ai perhaps make an N8N workflow with the API

                  potemkin_aiP Offline
                  potemkin_aiP Offline
                  potemkin_ai
                  wrote on last edited by
                  #16

                  @robi I prefer minimum of the moving parts and I don’t really like the programming with n8n; writing a script feels much easier and less error prone.

                  robiR 1 Reply Last reply
                  0
                  • potemkin_aiP potemkin_ai

                    @robi I prefer minimum of the moving parts and I don’t really like the programming with n8n; writing a script feels much easier and less error prone.

                    robiR Offline
                    robiR Offline
                    robi
                    wrote on last edited by
                    #17

                    @potemkin_ai it can do that too

                    Conscious tech

                    potemkin_aiP 1 Reply Last reply
                    0
                    • robiR robi

                      @potemkin_ai it can do that too

                      potemkin_aiP Offline
                      potemkin_aiP Offline
                      potemkin_ai
                      wrote on last edited by
                      #18

                      @robi pardon?

                      robiR 1 Reply Last reply
                      0
                      • potemkin_aiP potemkin_ai

                        @robi pardon?

                        robiR Offline
                        robiR Offline
                        robi
                        wrote on last edited by
                        #19

                        @potemkin_ai scripting within n8n.. or even just a bunch of curl commands I think

                        Conscious tech

                        potemkin_aiP 1 Reply Last reply
                        1
                        • robiR robi

                          @potemkin_ai scripting within n8n.. or even just a bunch of curl commands I think

                          potemkin_aiP Offline
                          potemkin_aiP Offline
                          potemkin_ai
                          wrote on last edited by
                          #20

                          @robi I wouldn't mind if you share whatever you have / ready to do, that's for sure.

                          The problem is that, according to @girish , there is no API, unless I'm missing something.

                          1 Reply Last reply
                          0
                          • robiR Offline
                            robiR Offline
                            robi
                            wrote on last edited by
                            #21

                            Well, if you can do it from the UI there's an API, so one can look at all the browser calls as they're made. I started a few posts here on the forum documenting my steps with similar attempts to automate it, but got stuck with no help.

                            Might be good to wait until @girish documents the overhauled API and makes things easier.

                            Conscious tech

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

                              We are just getting the 7.5 announcements out. Will fix up the rest API docs later this week. There's a lot of api calls that have changed. But what you are asking can be done using api as @robi said. If you curious just follow the browser api calls.

                              potemkin_aiP 1 Reply Last reply
                              1
                              • girishG girish

                                We are just getting the 7.5 announcements out. Will fix up the rest API docs later this week. There's a lot of api calls that have changed. But what you are asking can be done using api as @robi said. If you curious just follow the browser api calls.

                                potemkin_aiP Offline
                                potemkin_aiP Offline
                                potemkin_ai
                                wrote on last edited by
                                #23

                                @girish frankly speaking, reverse engineering is not what I've been hoping for 🙂

                                Please, check screenshots from the same platform - with automatic updates disabled, while it still says that apps are still covered by an automatic updates.

                                Where is a truth here?

                                Screenshot 2023-09-06 at 16.27.06.png Screenshot 2023-09-06 at 16.27.18.png

                                girishG 1 Reply Last reply
                                0
                                • potemkin_aiP potemkin_ai

                                  @girish frankly speaking, reverse engineering is not what I've been hoping for 🙂

                                  Please, check screenshots from the same platform - with automatic updates disabled, while it still says that apps are still covered by an automatic updates.

                                  Where is a truth here?

                                  Screenshot 2023-09-06 at 16.27.06.png Screenshot 2023-09-06 at 16.27.18.png

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

                                  @potemkin_ai The app section is referring to the app's update settings. The global section is referring to the global settings. Global settings overrides the app level settings. So, in this case, all updates are disabled.

                                  The app setting is simply saying updates are enabled at the app level. But the global level setting will prevent the app from updating.

                                  potemkin_aiP 1 Reply Last reply
                                  0
                                  • girishG girish

                                    @potemkin_ai The app section is referring to the app's update settings. The global section is referring to the global settings. Global settings overrides the app level settings. So, in this case, all updates are disabled.

                                    The app setting is simply saying updates are enabled at the app level. But the global level setting will prevent the app from updating.

                                    potemkin_aiP Offline
                                    potemkin_aiP Offline
                                    potemkin_ai
                                    wrote on last edited by
                                    #25

                                    @girish I see. It feels like the platform doesn't really favour manual updates or a separate platform and apps updates.

                                    I can understand that - the concept of making a lot of upgrades often - but it's really a pity from the perspective of managing quite a few cloudrons in business critical tasks.

                                    1 Reply Last reply
                                    0
                                    • potemkin_aiP Offline
                                      potemkin_aiP Offline
                                      potemkin_ai
                                      wrote on last edited by
                                      #26

                                      @girish , will that API call update all of the pending apps as well?
                                      https://docs.cloudron.io/api.html#tag/Updater/operation/updateCloudron

                                      If not, what would be?

                                      1 Reply Last reply
                                      0
                                      • nebulonN Offline
                                        nebulonN Offline
                                        nebulon
                                        Staff
                                        wrote on last edited by
                                        #27

                                        This only updates the platform itself. App updates have to be triggered individually via API (apps API docs are still pending as we rework the docs currently)

                                        potemkin_aiP 1 Reply Last reply
                                        0
                                        • nebulonN nebulon

                                          This only updates the platform itself. App updates have to be triggered individually via API (apps API docs are still pending as we rework the docs currently)

                                          potemkin_aiP Offline
                                          potemkin_aiP Offline
                                          potemkin_ai
                                          wrote on last edited by
                                          #28

                                          @nebulon thank you! I've managed to find a way around to keep automated updates keeping the risk of update failure to a minimum, but - don't you consider using btrfs or zfs's snapshots to work that around on the platform level?

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