5 Replies Latest reply: Nov 23, 2010 4:29 PM by Dave Watts RSS

    New Apache sites return 500 Internal Server Error for all CFML requests

    ilssac Community Member

      This is an ugly one.  I think it is an Apache2 - ColdFusion 9 web server connector problem.

       

      I have two Solaris Unix web servers.  Each of these servers have a dozen and a half Apache web sites each one connected to one of five ColdFusion instances.

       

      All, but TWO of them are working properly.  We created two new Apache web sites and connected them to a new ColdFusion instance.  This worked fine on one of our boxes, the development one, but not on the other, production of course.

       

      Whenever we try to request a cfm url from one of these sites on the production server we get a 500 Internal Server Error.  HTML pages serve up just fine, and the new instance's Administrator runs fine on its 8305 port.  So both Apache and ColdFusion seem to be working independently, but they are not talking to each other.  All the other Apache sites connected to the other four ColdFusion instances also work properly.

       

      This has led me to investigate the web server connectors.  They have always been tricky and problematic to set up on these boxes.  The built in tools have never worked for us on these boxes and we have always had to manually compile the connectors and configure the connections in the web sites..

       

      But, as far as I can tell, all the connection setups are the same between working examples and these non-working sites.

       

      Any insights into what else I should be checking and|or how web server connectors actually work (they have alwasy been mysterious black boxes to me) would be greatly appreciated.

       

      TIA

      Ian

        • 1. Re: New Apache sites return 500 Internal Server Error for all CFML requests
          ilssac Community Member

          Some more information.

           

          I took a closer look at the logs (I wasn't looking 
          in the Apache logs before).  I found this block for the last attempt to
          request a cfm page.

          [Tue Nov 23 15:17:17 2010] [notice] jrApache[18177: 60758]  could not
          open serverstore "/opt/jrun4/lib/wsconfig/www/jrunserver.store": No such
          file or directory[Tue Nov 23 15:17:17 2010] [notice] jrApache[18177:
          60758]  Couldn't initialize from remote server, JRun server(s) probably
          down.

          What I don't understand is why could it not open that file, it is there
          and it has the same permissions as all the other web server connectors.

          /opt/jrun4/lib/wsconfig/www
          $ ls -al
          total 166
          drwxr-xr-x   2 root     root         512 May 29 13:51 .
          drwxr-xr-x   8 root     root         512 May 29 13:51 ..
          -rw-r--r--   1 root     root          14 May 29 13:51 jrunservers.store
          -rwxr-xr-x   1 root     root       81528 May 29 13:51 mod_jrun20.so

          The following is the 'calpip' connector folder that is working just fine.

          /opt/jrun4/lib/wsconfig/calpip
          $ ls -al
          total 166
          drwxr-xr-x   2 root     root         512 May 29 13:51 .
          drwxr-xr-x   8 root     root         512 May 29 13:51 ..
          -rw-r--r--   1 root     root          14 May 29 13:51 jrunservers.store
          -rwxr-xr-x   1 root     root       81528 May 29 13:51 mod_jrun20.so

          • 2. Re: New Apache sites return 500 Internal Server Error for all CFML requests
            Dave Watts CommunityMVP

            According to your directory list, you have files named "jrunservers.store". They should be named "jrunserver.store", I think. Try renaming them, restarting the Apache instances, and see what happens.

             

            Dave Watts, CTO, Fig Leaf Software

            http://www.figleaf.com/

            http://training.figleaf.com/

             

            Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

            GSA Schedule, and provides the highest caliber vendor-authorized

            instruction at our training centers, online, or onsite.

             

            Read this before you post:

            http://forums.adobe.com/thread/607238

            • 3. Re: New Apache sites return 500 Internal Server Error for all CFML requests
              ilssac Community Member

              Dave Watts wrote:

               

              According to your directory list, you have files named "jrunservers.store". They should be named "jrunserver.store", I think. Try renaming them, restarting the Apache instances, and see what happens.

               

              I am reluctant to try that since all them have "jrunservers.store" and only the "www" one is the one that is not working.

               

              As well as, since this is the production server, it takes an official publicly announced server outage|interruption notice signed off by management and directors to restart apache.  (Well they have to at least be informed and give a verbal OK)

              • 4. Re: New Apache sites return 500 Internal Server Error for all CFML requests
                ilssac Community Member

                OK I see what you are talking about!

                 

                The Apache JRunConfig Serverstore line asks for a 'jrunserver.store' file.

                 

                Also on the development server, there are 'jrunserver.store' files in each connector folder.

                 

                But that just BEGS the question, how the hell are all the other web sites working?  Being less then an hour before closing time on the last day before a five day holiday is not a time I feel like messing with the configurations of working and PUBLIC sites to try and get a new, and not yet public, site working!

                 

                I'll have to wait to next Monday to address changing those file names.  But I would really like to know how the other sites are working.

                • 5. Re: New Apache sites return 500 Internal Server Error for all CFML requests
                  Dave Watts CommunityMVP

                  I ... don't know about the other sites. My presumption is that there's a jrunserver.store file somewhere that they're using, but that's really just a WAG. But here's what I'd do to test things. On the sites that aren't working, try copying the existing jrunservers.store file to jrunserver.store and making sure the permissions and ownership are the same. That way, you don't have to chance breaking any of the other sites.

                   

                  Dave Watts, CTO, Fig Leaf Software

                  http://www.figleaf.com/

                  http://training.figleaf.com/

                   

                  Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

                  GSA Schedule, and provides the highest caliber vendor-authorized

                  instruction at our training centers, online, or onsite.

                   

                  Read this before you post:

                  http://forums.adobe.com/thread/607238