Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Update issue from custom package

    Matrix (Synapse/Element)
    autoupdate
    5
    17
    308
    Loading More Posts
    • 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.
    • girish
      girish Staff last edited by girish

      Update issue from custom package

      1 Reply Last reply Reply Quote 1
      • yusf
        yusf last edited by

        Something is off with the update mechanism regarding my Matrix package. I have to manually look for updates and manually upgrade it. I migrated the package from msbt's predecessor by adding it to the official app update channel.

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          @yusf I created a new topic.

          In the previous release, we changed the update polling frequency. It could be just that. We poll only 1 time a day now, previously we used to a poll for updates like every hour. This was putting a lot of load on our appstore server for no real benefit. In the next release, we have reached a compromise of polling 4 times a day. Is this what you are seeing?

          1 Reply Last reply Reply Quote 1
          • yusf
            yusf last edited by

            I doubt it but I'll keep better tabs on the duration between version release and any delays in automatic upgrading.

            1 Reply Last reply Reply Quote 1
            • yusf
              yusf last edited by

              Still on Matrix package 1.2.0 here. Automatic Updates currently enabled, of course. 🤔

              murgero 1 Reply Last reply Reply Quote 0
              • M
                msbt App Dev last edited by

                @yusf mine updated 4 days ago

                1 Reply Last reply Reply Quote 0
                • murgero
                  murgero App Dev @yusf last edited by

                  @yusf Try disabling then re-enabling auto updates??

                  --
                  https://urgero.org
                  ~ Professional Nerd. Freelance Programmer. ~
                  Matrix: @murgero:urgero.org

                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff last edited by girish

                    I suspect the appStoreId is not set correctly in the database (since @yusf is coming from a custom app).

                    can you check what this provides (you have to substitute the theappid` below (this is the id in the url bar when you go the configure view of the app):

                    mysql -uroot -ppassword -e "SELECT appStoreId FROM apps WHERE id='theappid'"
                    
                    yusf 1 Reply Last reply Reply Quote 0
                    • yusf
                      yusf @girish last edited by

                      @murgero Did try that, yes.
                      @girish ERROR 1046 (3D000) at line 1: No database selected.

                      1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff last edited by

                        @girish said in Update issue from custom package:

                        Missed the database name in the command line:

                        mysql -uroot -ppassword -e "SELECT appStoreId FROM box.apps WHERE id='theappid'"

                        yusf 1 Reply Last reply Reply Quote 0
                        • yusf
                          yusf @girish last edited by

                          @girish said in Update issue from custom package:

                          mysql -uroot -ppassword -e "SELECT appStoreId FROM box.apps WHERE id='theappid'"

                          +--------------------+
                          | appStoreId         |
                          +--------------------+
                          | org.matrix.synapse |
                          +--------------------+
                          
                          1 Reply Last reply Reply Quote 0
                          • yusf
                            yusf last edited by

                            Think I found the culprit:
                            54947994-4a79-4db1-80c7-7eca0f678f93-bild.png

                            Let's see if it triggers the update tonight.

                            1 Reply Last reply Reply Quote 0
                            • yusf
                              yusf last edited by yusf

                              Alas it did not. It's still prompting me to manually update.

                              1 Reply Last reply Reply Quote 0
                              • girish
                                girish Staff last edited by

                                @yusf I think I know what might be the problem. IIRC, the custom synapse package used very high version numbers. When I published to App Store, I reset it back to 0.1.0.

                                Can you get the output of this:

                                
                                
                                    mysql -uroot -ppassword -e "SELECT manifestJson FROM box.apps WHERE id='theappid'"
                                
                                
                                yusf 1 Reply Last reply Reply Quote 0
                                • yusf
                                  yusf @girish last edited by

                                  {"id":"org.matrix.synapse","title":"Matrix Synapse","author":"Matrix synapse authors","description":"This app packages Synapse <upstream>1.14.0</upstream>.\n\n**This package only provides the Matrix backend. A variety of clients are available\n[here](https://matrix.org/clients/). Riot is a popular web frontend for Matrix and\nis available as a separate app.**\n\nMatrix is an ambitious new ecosystem for open federated Instant Messaging and VoIP.\n\n## Matrix\n\nMatrix specifies a set of pragmatic RESTful HTTP JSON APIs as an open standard, which handle:\n\n* Creating and managing fully distributed chat rooms with no single points of control or failure\n* Eventually-consistent cryptographically secure synchronisation of room state across a global open network of federated servers and services\n* Sending and receiving extensible messages in a room with (optional) end-to-end encryption[1]\n* Inviting, joining, leaving, kicking, banning room members\n* Managing user accounts (registration, login, logout)\n* Using 3rd Party IDs (3PIDs) such as email addresses, phone numbers, Facebook accounts to authenticate, identify and discover users on Matrix.\n* Placing 1:1 VoIP and Video calls\n\n## Synapse\n\nSynapse is a reference \"homeserver\" implementation of Matrix from the core development\nteam at matrix.org, written in Python/Twisted.\n\n","changelog":"* Update Synapse to 1.14.0\n* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.14.0)\n","tagline":"Secure & decentralized communication","version":"1.2.0","healthCheckPath":"/","httpPort":8008,"memoryLimit":536870912,"addons":{"localstorage":{},"ldap":{},"postgresql":{},"sendmail":{},"turn":{}},"manifestVersion":2,"website":"https://matrix.org","contactEmail":"support@cloudron.io","icon":"logo.png","tags":["im","collaboration","voip","videochat","chat"],"mediaLinks":["https://cloudron-app-screenshots.s3.amazonaws.com/org.matrix.synapse/606cd9d4ccc3bee11a49f91444a2dad8947cbc7c/1.png","https://cloudron-app-screenshots.s3.amazonaws.com/org.matrix.synapse/606cd9d4ccc3bee11a49f91444a2dad8947cbc7c/2.png","https://cloudron-app-screenshots.s3.amazonaws.com/org.matrix.synapse/606cd9d4ccc3bee11a49f91444a2dad8947cbc7c/3.png"],"postInstallMessage":"<sso>\nThis app integrates with the Cloudron User Management. Cloudron users can register\nthemselves using any client and use Matrix Synapse.\n</sso>\n\n**IMPORTANT: See the [docs](https://cloudron.io/documentation/apps/synapse/) on\nhow to complete setup and start using this app.**\n\n","minBoxVersion":"5.1.4","documentationUrl":"https://cloudron.io/documentation/apps/synapse/","dockerImage":"cloudron/org.matrix.synapse:20200529-132808-991e95e3b"}
                                  1 Reply Last reply Reply Quote 0
                                  • nebulon
                                    nebulon Staff last edited by

                                    @yusf said in Update issue from custom package:

                                    "version":"1.2.0"

                                    Looks like @girish suspicion was correct. I think the best way to migrate this would be to follow https://cloudron.io/documentation/backups/#import-app-backup by installing a new fresh app and importing there the backup of the old one. (until the new one works, do not uninstall the old one)

                                    We used to have a way in the command line tool to override an app with a specific app package version, but that seems to have gone missing with the move from cloudron install to cloudron update. Have to see if this is worth bringing back.

                                    yusf 1 Reply Last reply Reply Quote 1
                                    • yusf
                                      yusf @nebulon last edited by

                                      @nebulon Thanks. Will try it.

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post
                                      Powered by NodeBB