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. WordPress (Managed)
  3. WordPress 5.5 auto-updates not working in Managed version, likely due to core updates blocked.

WordPress 5.5 auto-updates not working in Managed version, likely due to core updates blocked.

Scheduled Pinned Locked Moved Solved WordPress (Managed)
59 Posts 8 Posters 7.0k Views 8 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.
    • jdaviescoatesJ jdaviescoates

      @d19dotca said in WordPress 5.5 auto-updates not working in Managed version, likely due to core updates blocked.:

      I believe that message you saw is for 5.5 (coincidentally same version) of Cloudron itself, not WordPress Managed.

      No, it's for the WordPress (Managed) package update:

      wordpress_update.png

      Not a Cloudron update.

      d19dotcaD Offline
      d19dotcaD Offline
      d19dotca
      wrote on last edited by d19dotca
      #5

      @jdaviescoates oh that’s interesting, I somehow totally missed that message when I was updating. Hopefully this is just an issue with the pre-release version then.

      --
      Dustin Dauncey
      www.d19.ca

      1 Reply Last reply
      0
      • jdaviescoatesJ jdaviescoates

        @d19dotca said in WordPress 5.5 auto-updates not working in Managed version, likely due to core updates blocked.:

        I believe that message you saw is for 5.5 (coincidentally same version) of Cloudron itself, not WordPress Managed.

        No, it's for the WordPress (Managed) package update:

        wordpress_update.png

        Not a Cloudron update.

        d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote on last edited by
        #6

        @jdaviescoates interestingly the forum post with the release notes doesn’t mention it as beta either. https://forum.cloudron.io/topic/2407/wordpress-managed-package-updates

        --
        Dustin Dauncey
        www.d19.ca

        MooCloud_MattM jdaviescoatesJ 2 Replies Last reply
        1
        • d19dotcaD d19dotca

          @jdaviescoates interestingly the forum post with the release notes doesn’t mention it as beta either. https://forum.cloudron.io/topic/2407/wordpress-managed-package-updates

          MooCloud_MattM Offline
          MooCloud_MattM Offline
          MooCloud_Matt
          wrote on last edited by
          #7

          @d19dotca
          btw dont use the auto-update, it dosent provide any check on the update, we are faing many WordPress crash because customer activate this new feature.

          Matteo. R.
          Founder and Tech-Support Manager.
          MooCloud MSP
          Swiss Managed Service Provider

          d19dotcaD 1 Reply Last reply
          0
          • d19dotcaD d19dotca

            @jdaviescoates interestingly the forum post with the release notes doesn’t mention it as beta either. https://forum.cloudron.io/topic/2407/wordpress-managed-package-updates

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #8

            @d19dotca said in WordPress 5.5 auto-updates not working in Managed version, likely due to core updates blocked.:

            @jdaviescoates interestingly the forum post with the release notes doesn’t mention it as beta either. https://forum.cloudron.io/topic/2407/wordpress-managed-package-updates

            I also note that after hitting Check for Updates, the fact that there is now an update then triggers an email about the update, and the email doesn't contain the warning about it being unstable either:

            email_about_updates.png

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            1
            • MooCloud_MattM MooCloud_Matt

              @d19dotca
              btw dont use the auto-update, it dosent provide any check on the update, we are faing many WordPress crash because customer activate this new feature.

              d19dotcaD Offline
              d19dotcaD Offline
              d19dotca
              wrote on last edited by
              #9

              @MooCloud_Matt Just to clarify, you’re talking about the auto-update within WordPress itself, the new functionality right? Interesting that you’ve seen some crashes and stuff already.

              I went through and updated about 12 WordPress sites yesterday afternoon and did some brief testing of them all, one-by-one since it was a major WordPress update. Thankfully there were no public-facing issues, aside from one where I had to regenerate the CSS files. Everything went smoother than I expected, honestly.

              The only real issue I’ve experienced is the one I’m reporting here, but to be fair I only tried enabling the auto-update for plugins and themes on two of twelve sites. No crashes or anything though observed, just that the auto-update isn’t doing anything.

              --
              Dustin Dauncey
              www.d19.ca

              MooCloud_MattM 1 Reply Last reply
              0
              • girishG Do not disturb
                girishG Do not disturb
                girish
                Staff
                wrote on last edited by girish
                #10

                Yeah, we haven't heard any WP 5.5 related issues either. What crash are we talking about? The package itself gets rolled out slowly since we have a very large amount of WP installs.

                The auto-update of plugins should ideally work, let me check why it doesn't.

                MooCloud_MattM 1 Reply Last reply
                1
                • d19dotcaD d19dotca

                  @MooCloud_Matt Just to clarify, you’re talking about the auto-update within WordPress itself, the new functionality right? Interesting that you’ve seen some crashes and stuff already.

                  I went through and updated about 12 WordPress sites yesterday afternoon and did some brief testing of them all, one-by-one since it was a major WordPress update. Thankfully there were no public-facing issues, aside from one where I had to regenerate the CSS files. Everything went smoother than I expected, honestly.

                  The only real issue I’ve experienced is the one I’m reporting here, but to be fair I only tried enabling the auto-update for plugins and themes on two of twelve sites. No crashes or anything though observed, just that the auto-update isn’t doing anything.

                  MooCloud_MattM Offline
                  MooCloud_MattM Offline
                  MooCloud_Matt
                  wrote on last edited by
                  #11

                  @d19dotca
                  I called them crashes, but to be precise they are CSS errors, or WooCommerce for example or other plugins that are out of date with the current version of WordPress or other plugins and therefore create incompatibilities.
                  For example, those who activated this function and had Divi or Elementors, in the first hours the site did not load the images correctly because the two builders were not yet updated to support lazy load by WP.
                  For this reason it is recommended to use external tools that perform the updates, there are many even free ones, which perform a backup before the automatic update and once the update has been performed they compare the CSS and the HTML to check is identical, if not then they will proceed to reverse the backup.

                  Matteo. R.
                  Founder and Tech-Support Manager.
                  MooCloud MSP
                  Swiss Managed Service Provider

                  1 Reply Last reply
                  0
                  • girishG girish

                    Yeah, we haven't heard any WP 5.5 related issues either. What crash are we talking about? The package itself gets rolled out slowly since we have a very large amount of WP installs.

                    The auto-update of plugins should ideally work, let me check why it doesn't.

                    MooCloud_MattM Offline
                    MooCloud_MattM Offline
                    MooCloud_Matt
                    wrote on last edited by
                    #12

                    @girish
                    I'm speaking of the new auto-update feature of WP, that is similar to use an auto-update script for packages on a rolling realize linux distro, is not a good idea in production.

                    Matteo. R.
                    Founder and Tech-Support Manager.
                    MooCloud MSP
                    Swiss Managed Service Provider

                    1 Reply Last reply
                    1
                    • MooCloud_MattM Offline
                      MooCloud_MattM Offline
                      MooCloud_Matt
                      wrote on last edited by
                      #13

                      https://www.wordfence.com/blog/2020/08/wordpress-auto-updates-what-do-you-have-to-lose/

                      Matteo. R.
                      Founder and Tech-Support Manager.
                      MooCloud MSP
                      Swiss Managed Service Provider

                      jdaviescoatesJ 1 Reply Last reply
                      1
                      • girishG Do not disturb
                        girishG Do not disturb
                        girish
                        Staff
                        wrote on last edited by girish
                        #14

                        @d19dotca said in WordPress 5.5 auto-updates not working in Managed version, likely due to core updates blocked.:

                        Just a heads up to anyone on the Managed version who is hoping to take advantage of the built-in auto-updates for themes and plugins - it ain't working with he way the Managed app is configured.

                        @d19dotca What error did you see for this? Was this some cURL error?

                        8820bd2c-01b0-4962-808b-91552bc1bccf-image.png

                        I am debugging this bizzare error and was wondering if it's related to what you saw.

                        d19dotcaD 1 Reply Last reply
                        0
                        • girishG girish

                          @d19dotca said in WordPress 5.5 auto-updates not working in Managed version, likely due to core updates blocked.:

                          Just a heads up to anyone on the Managed version who is hoping to take advantage of the built-in auto-updates for themes and plugins - it ain't working with he way the Managed app is configured.

                          @d19dotca What error did you see for this? Was this some cURL error?

                          8820bd2c-01b0-4962-808b-91552bc1bccf-image.png

                          I am debugging this bizzare error and was wondering if it's related to what you saw.

                          d19dotcaD Offline
                          d19dotcaD Offline
                          d19dotca
                          wrote on last edited by
                          #15

                          @girish That's an interesting one, I never saw that error in my quick test, but I wonder if that error only shows for a short period of time so maybe I missed it.

                          Mine just had a message about 2 hours from now it'll check again, and I knew there were updates to it as it showed it, but it didn't install them and when I checked 3 hours later since it was supposed to be done 2 hours later, it showed the next attempt was 11 hours from then (so basically it tries to check every 12 hours I guess), but no action was taken to install the update when it should have done it.

                          --
                          Dustin Dauncey
                          www.d19.ca

                          1 Reply Last reply
                          0
                          • girishG Do not disturb
                            girishG Do not disturb
                            girish
                            Staff
                            wrote on last edited by
                            #16

                            Actually, this seems like some plugin related issue. Because on the same instance I could update other plugins. I have asked our customer to contact the plugin author, I will update once he gets back.

                            d19dotcaD 1 Reply Last reply
                            0
                            • girishG girish

                              Actually, this seems like some plugin related issue. Because on the same instance I could update other plugins. I have asked our customer to contact the plugin author, I will update once he gets back.

                              d19dotcaD Offline
                              d19dotcaD Offline
                              d19dotca
                              wrote on last edited by
                              #17

                              @girish Yeah that seems like a different issue, so that's a good conclusion on that one. I'm still interested in knowing why the auto-update isn't working, did you see it work for you then? I have a sneaky suspicion this has to do with the WordPress cron doing it every 12 hours but I think since it's disabled and we run our own in this app (correct me if I'm wrong but I think the cron was handled differently than default), this may explain the discrepancy.

                              --
                              Dustin Dauncey
                              www.d19.ca

                              1 Reply Last reply
                              0
                              • girishG Do not disturb
                                girishG Do not disturb
                                girish
                                Staff
                                wrote on last edited by
                                #18

                                @d19dotca How can I test the auto updates? Install an old version of plugin and enable auto update and wait for a day?

                                cron shouldn't be a problem. Essentially, php apps are loaded by the server only when someone makes a page request. Some PHP apps (like WP) have a built-in "cron" module which checks if some cron task is due and runs it, but it can do this only when someone requests a page. If you have a reasonable traffic site, it will work out. But if someone doesn't visit your site for 4 hours, those cron jobs are not going to be run. The alternate solution (WP supported) is to disable this built-in cron and instead just run it using crontab or something outside the PHP/Apache. This is what we do.

                                MooCloud_MattM d19dotcaD 2 Replies Last reply
                                0
                                • girishG girish

                                  @d19dotca How can I test the auto updates? Install an old version of plugin and enable auto update and wait for a day?

                                  cron shouldn't be a problem. Essentially, php apps are loaded by the server only when someone makes a page request. Some PHP apps (like WP) have a built-in "cron" module which checks if some cron task is due and runs it, but it can do this only when someone requests a page. If you have a reasonable traffic site, it will work out. But if someone doesn't visit your site for 4 hours, those cron jobs are not going to be run. The alternate solution (WP supported) is to disable this built-in cron and instead just run it using crontab or something outside the PHP/Apache. This is what we do.

                                  MooCloud_MattM Offline
                                  MooCloud_MattM Offline
                                  MooCloud_Matt
                                  wrote on last edited by MooCloud_Matt
                                  #19

                                  @girish yes that should work.

                                  Admin columns pro use private repo, the new autoupdate feature will overload the repo-server, because it try to update all the server in that time zone at the same time.
                                  That may be the cause of the timeout of curl request.

                                  But normally if u try to update it manually should work

                                  Matteo. R.
                                  Founder and Tech-Support Manager.
                                  MooCloud MSP
                                  Swiss Managed Service Provider

                                  1 Reply Last reply
                                  0
                                  • girishG girish

                                    @d19dotca How can I test the auto updates? Install an old version of plugin and enable auto update and wait for a day?

                                    cron shouldn't be a problem. Essentially, php apps are loaded by the server only when someone makes a page request. Some PHP apps (like WP) have a built-in "cron" module which checks if some cron task is due and runs it, but it can do this only when someone requests a page. If you have a reasonable traffic site, it will work out. But if someone doesn't visit your site for 4 hours, those cron jobs are not going to be run. The alternate solution (WP supported) is to disable this built-in cron and instead just run it using crontab or something outside the PHP/Apache. This is what we do.

                                    d19dotcaD Offline
                                    d19dotcaD Offline
                                    d19dotca
                                    wrote on last edited by d19dotca
                                    #20

                                    @girish Good question. My test was I had a plugin that was out-of-date (it coincidentally was at the time of WordPress 5.5 update), and as soon as I noticed it I set it to be enabled for auto-updates, and it gives a message saying at that time it'd be done in 2 hours, but it didn't do it and the counter reset afterwards to 11 hours (would have been 12 if I checked on time though).

                                    So to test I would think your proposal would work, uploading an out-of-date plugin, check for updates to verify it recognizes an update is available, then enable the auto-update on that particular plugin and see if it updates automatically by WordPress.

                                    For the cron part, you are likely correct - I am not intimately familiar with that level since moving to Cloudron for the app package, but I assumed this may be an issue because I thought the app package is calling the cron every 1-5 minutes, but yet the WordPress item is saying every 12 hours, so it seemed like a discrepancy and thus a possible issue. Plus the "disable core updates" plugin is there too which I felt may also interfere from auto-checks.

                                    --
                                    Dustin Dauncey
                                    www.d19.ca

                                    1 Reply Last reply
                                    0
                                    • MooCloud_MattM MooCloud_Matt

                                      https://www.wordfence.com/blog/2020/08/wordpress-auto-updates-what-do-you-have-to-lose/

                                      jdaviescoatesJ Offline
                                      jdaviescoatesJ Offline
                                      jdaviescoates
                                      wrote on last edited by
                                      #21

                                      @MooCloud_Matt said in WordPress 5.5 auto-updates not working in Managed version, likely due to core updates blocked.:

                                      https://www.wordfence.com/blog/2020/08/wordpress-auto-updates-what-do-you-have-to-lose/

                                      A good overview (as one would expect from Wordfence), thanks.

                                      I use Cloudron with Gandi & Hetzner

                                      1 Reply Last reply
                                      1
                                      • girishG Do not disturb
                                        girishG Do not disturb
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #22

                                        OK, I waiting for Hello Dolly to auto-update in 12 hours to see what the error is. I couldn't figure an obvious way to trigger auto-updates immediately.

                                        b2fa52cb-506c-4abc-8942-82fdd15733c6-image.png

                                        1 Reply Last reply
                                        0
                                        • girishG Do not disturb
                                          girishG Do not disturb
                                          girish
                                          Staff
                                          wrote on last edited by
                                          #23

                                          I was able to reproduce this. It looks like it triggers the cron event wp_update_plugins but that even does nothing.

                                          root@01d9cbb3-049c-4b99-b5e6-299ea3775d75:/app/code# exec /usr/local/bin/gosu www-data:www-data /app/pkg/wp --skip-themes cron event run wp_update_plugins
                                          Executed the cron event 'wp_update_plugins' in 0.007s.
                                          Success: Executed a total of 1 cron event.
                                          
                                          d19dotcaD 1 Reply Last reply
                                          1
                                          • girishG girish

                                            I was able to reproduce this. It looks like it triggers the cron event wp_update_plugins but that even does nothing.

                                            root@01d9cbb3-049c-4b99-b5e6-299ea3775d75:/app/code# exec /usr/local/bin/gosu www-data:www-data /app/pkg/wp --skip-themes cron event run wp_update_plugins
                                            Executed the cron event 'wp_update_plugins' in 0.007s.
                                            Success: Executed a total of 1 cron event.
                                            
                                            d19dotcaD Offline
                                            d19dotcaD Offline
                                            d19dotca
                                            wrote on last edited by
                                            #24

                                            @girish Is this a WordPress issue then in that case or to do with the way this is packaged in Cloudron?

                                            --
                                            Dustin Dauncey
                                            www.d19.ca

                                            d19dotcaD 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