We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36575
    • 104 Posts
    I am running revolution 2.6.5 and get the following error with Upgrade MOdx extra:

    Error: Could not get version list from GitHub -- No Code Returned Connection error (no internet?)
    Error: Regex failed

    I'm using the latest version of Upgrade Modx 2.1.1-pl
    The previous version had a error - but it was a diferent one (and i can't remember what it was)
    The version before that worked.

    I did update the php version on the server - would that cause it? It's php 7.2 on an apache server. Details on what I can choose in the screen shot.
    MySQL 5.6

    Any thoughts?

      • 3749
      • 24,544 Posts
      I haven't seen this. It would normally mean that either there's no internet connection, GitHub's API is down, or your server is refusing to make the request.

      There's a workaround on the docs page for using the API URL directly and pasting the result into the versionlist file. Search for 2.1.2.

      Here are the steps:
      As of UGM Version 2.1.2, if you get persistent errors about the versionlist, you can bypass them by creating the file: core/cache/upgrademodx/versionlist and following these steps:

      1. Go to this url in your browser: //api.github.com/repos/modxcms/revolution/tags.
      2. Copy the entire contents of your browser window (Ctrl-a, Ctrl-c)
      3. Paste it into the file (Ctrl-v).
      4. Note the name of the latest version at the top of the file (e.g., 2.7.0-pl)
      5. Set the ugm_last_check and ugm_file_version settings to the latest version
      6. Clear the Site Cache in the Manager

      You should be able to do as many upgrades as needed in the next 24 hours

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 22827
        • 129 Posts
        Interesting. I tried as the web user:

        curl --cacert core/components/upgrademodx/cacert.pem https://api.github.com/repos/modxcms/revolution/tags > core/cache/upgrademodx/versionlist


        To simulate what the snippet does, but this worked fine.

        Same error appears when accessing the upgrade-modx.html resource.

          • 38309
          • 40 Posts
          Interesting, I have about 6 different setups of Modx and they are all saying the same thing.

          Error: Could not get version list from GitHub -- No Code Returned Connection error (no internet?)
          Error: Regex failed


          This is the reponse with verbose loging enabled using the upgrade-modx.html url

          Error: Could not get version list from GitHub -- cURL error 7: Failed to connect to api.github.com port 80: Connection timed out (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
          Error: Regex failed
          [ed. note: bigben83 last edited this post 5 years, 2 months ago.]
            • 3749
            • 24,544 Posts
            Do you have the current version of UGM? The latest version doesn't use that cacert.pem file unless you've put the path to it in the ugm_cert_path System Setting. With that setting empty (the default), Guzzle looks in all the usual places for the cert file and that usually works.

            Is cURL installed and enabled on the server? Are you behind a proxy?

            That error is unusual. It means that Guzzle is not even returning a status code or error message when it tries to connect to GitHub. In other words, the odds are that the request is not even being made. It could possibly be a browser security setting or a security-related browser add-on.


              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 38309
              • 40 Posts
              Hello Bob, thanks for your reply,
              Yes cURL is installed and working, I am not behind a proxy. This is happening on production and dev versions of Modx. It seems to have started since the last update of UGM.
                • 3749
                • 24,544 Posts
                Have you tried setting the ugm_cert_path System Setting to point to the full path of either that cert file or (better) a .pem file path provided by your hosting service?
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 38309
                  • 40 Posts
                  pretty sure I have exhausted most of the variables that are provided. I can run the following fine

                  curl --cacert core/components/upgrademodx/cacert.pem https://api.github.com/repos/modxcms/revolution/tags > core/cache/upgrademodx/versionlist
                  


                  dev:~/public_html/site$ curl --cacert core/components/upgrademodx/cacert.pem https://api.github.com/repos/modxcms/revolution/tags > core/cache/upgrademodx/versionlist
                    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                   Dload  Upload   Total   Spent    Left  Speed
                  100 13572  100 13572    0     0   7126      0  0:00:01  0:00:01 --:--:--  7124
                    • 3749
                    • 24,544 Posts
                    Does UGM run successfully once you've updated the versionlist file and changed the ugm_last_check and ugm_file_version settings as described above?

                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 38309
                      • 40 Posts
                      Yes UGM does run successfully once you've done the manual changes as described. just defeats the purpose somewhat smiley