We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42252
    • 17 Posts
    Quote from: adskiremote at Dec 17, 2012, 07:10 PM
    Quote from: pyrographics at Dec 17, 2012, 07:03 PM
    Regarding my test file of semaphore locking, I put it on several sites without problem although one has still shown some cache errors. It probably won't work right if you turned off flock through the config since it ignores the existing non-flock workaround. It is 110% an experiment on my part so be careful with backing up first.

    ok thanks. I did turn flock off on the config. I'll try without.

    Tried without flock false in config. No luck.

    Well the website does run. But the manager is badly affected. Can't access chunks and snippets...most of the time the menu doesn't load.
      • 35028
      • 5 Posts
      Quote from: pyrographics at Dec 14, 2012, 11:14 AM
      You can try this unofficial blow-up of xpdocachemanager.class.php out. Just change 8675309 in the sem_get functions to your own unique key. Does the key need to be unique for each file?

      I now have it on all three sites I tried yesterday and they are operating without errors but that may just be because I broke flock not because I correctly implemented semaphor locking. Someone with more DEV experience than I will need to take a look at this.

      2.2.7 didn't resolve any issues for me, but this file did. So far, any sites I have applied this to are no longer generating errors. I'm not going to pretend to understand why it's working, so I'm hoping someone can shed some light on this, or provide a more official fix.
        • 42252
        • 17 Posts
        Quote from: horsmanjos at Dec 21, 2012, 09:10 AM
        Quote from: pyrographics at Dec 14, 2012, 11:14 AM
        You can try this unofficial blow-up of xpdocachemanager.class.php out. Just change 8675309 in the sem_get functions to your own unique key. Does the key need to be unique for each file?

        I now have it on all three sites I tried yesterday and they are operating without errors but that may just be because I broke flock not because I correctly implemented semaphor locking. Someone with more DEV experience than I will need to take a look at this.

        2.2.7 didn't resolve any issues for me, but this file did. So far, any sites I have applied this to are no longer generating errors. I'm not going to pretend to understand why it's working, so I'm hoping someone can shed some light on this, or provide a more official fix.

        Seems strange it doesn't on mine. Sod's law?
          • 37261 ☆ A M B ☆
          • 113 Posts
          One of my sites I applied the sem_get locking to did corrupt the web context cache this week so something is still wrong. No cache-related errors are displayed in the logs so I don't know what happened. Any updates from MODX/Rackspace on the issue?
            • 42252
            • 17 Posts
            Quote from: pyrographics at Dec 27, 2012, 10:10 AM
            One of my sites I applied the sem_get locking to did corrupt the web context cache this week so something is still wrong. No cache-related errors are displayed in the logs so I don't know what happened. Any updates from MODX/Rackspace on the issue?

            Not heard from Rackspace for a while. I'll chase them up and see if there's any progress.
              • 42252
              • 17 Posts
              I've spoken to Chris at Rackspace. This is what he's said...

              "We have provided what information we can to the developers of Modx about our environment in hopes that the devs of Modx can release a patch that would allow Modx to run on our environment. It's much easier for the devs to try and work around our environment than it is for us to make changes to our environment. We run multiple node web servers on a shared NFS system, and Modx uses some methods that are not particularly reliable in said environment.

              From my research, it appears that the cache corruption issue has been prevalent for some time now and a recent iptables change on our side simply made it more "noticeable" and we're looking into alternatives for that issue on our side."

              So hopefully modx devs will release a patch. Are there any modx devs that could inform us if you have all the information you need from Rackspace? And has there been any progress on the patch?

              Many thanks,

              Adam
                • 22303 MODX Staff
                • 10,725 Posts
                Quote from: adskiremote at Dec 27, 2012, 11:17 AM
                I've spoken to Chris at Rackspace. This is what he's said...

                "We have provided what information we can to the developers of Modx about our environment in hopes that the devs of Modx can release a patch that would allow Modx to run on our environment. It's much easier for the devs to try and work around our environment than it is for us to make changes to our environment. We run multiple node web servers on a shared NFS system, and Modx uses some methods that are not particularly reliable in said environment.

                From my research, it appears that the cache corruption issue has been prevalent for some time now and a recent iptables change on our side simply made it more "noticeable" and we're looking into alternatives for that issue on our side."

                So hopefully modx devs will release a patch. Are there any modx devs that could inform us if you have all the information you need from Rackspace? And has there been any progress on the patch?

                Many thanks,

                Adam

                Adam:

                If this was Chris Schneider at Rackspace, I'm a little surprised by the response. We have made efforts to contact Rackspace directly so we could work on a possible solution together, but so far, I have not received any contact from their engineers. I attempted to make a change I thought might resolve the issue but it does not seem to make any difference other than getting rid of the flock warning. The alternative solution provided by @pyrographics also does not seem to completely solve the problem. At the moment, I do not have access to the details of the NFS implementation being used by Rackspace, nor do I have a way to test possible solutions for this environment. Other multi-node environments work well when using local per-node caches, and some even on their shared fs, though I've never attempted this directly on an NFS mounted volume.

                Does anyone know what the details of the shared NFS volumes being used by Rackspace Cloud Sites? Does anyone know if there is access to a local filesystem on each node of Rackspace Cloud Sites? And if so, how it might be referenced/accessed? Until I have heard back from Rackspace, I'll just direct my questions here...

                Regards,

                Jason
                  • 42252
                  • 17 Posts
                  Jason,

                  many thanks for letting me know. I shall get on to Chris and ask him to respond.

                  Adam
                    • 22303 MODX Staff
                    • 10,725 Posts
                    FWIW:

                    I am in direct contact with an engineer from Rackspace and will update this thread if/when we find viable workarounds or solutions.
                      • 22303 MODX Staff
                      • 10,725 Posts
                      New builds available with a new attempt at solving the NFS exclusive lock issue...

                      http://modx.s3.amazonaws.com/releases/2.2.7/modx-2.2.7-dev-20121228.zip
                      http://modx.s3.amazonaws.com/releases/2.2.7/modx-2.2.7-dev-20121228-advanced.zip

                      NOTE: This still requires the use_flock => false configuration [ed. note: opengeek last edited this post 13 years, 9 months ago.]