Skip navigation
MeintD
Currently Being Moderated

CF 10 with Apache on Centos 5.8

May 21, 2012 2:16 PM

Tags: #apache #centos #connector #cf10

Hi,

 

Cannot get my install to render the CF Admin pages succesfully, keep getting a 503 - Service temporarily unavailable.

 

Log files all look clean with the exception of the Tomcat log file which gives a load of the below:

 

[Mon May 21 21:54:30 2012] [3457:47024938890000] [info] init_jk::mod_jk.c (3299)

: mod_jk/1.2.32 () initialized

[Mon May 21 21:54:30 2012] [3458:47024938890000] [info] init_jk::mod_jk.c (3299)

: mod_jk/1.2.32 () initialized

[Mon May 21 22:02:54 2012] [3461:47024938890000] [error] jk_open_socket::jk_conn

ect.c (448): socket() failed (errno=22)

[Mon May 21 22:02:54 2012] [3461:47024938890000] [info] ajp_connect_to_endpoint:

:jk_ajp_common.c (1027): Failed opening socket to (127.0.0.1:8012) (errno=22)

[Mon May 21 22:02:54 2012] [3461:47024938890000] [error] ajp_send_request::jk_aj

p_common.c (1649): (cfusion) connecting to backend failed. Tomcat is probably no

t started or is listening on the wrong port (errno=22)

[Mon May 21 22:02:54 2012] [3461:47024938890000] [info] ajp_service::jk_ajp_comm

on.c (2629): (cfusion) sending request to tomcat failed (recoverable), because o

f error during request sending (attempt=1)

[Mon May 21 22:02:54 2012] [3461:47024938890000] [error] jk_open_socket::jk_conn

ect.c (448): socket() failed (errno=22)

[Mon May 21 22:02:54 2012] [3461:47024938890000] [info] ajp_connect_to_endpoint:

:jk_ajp_common.c (1027): Failed opening socket to (127.0.0.1:8012) (errno=22)

[Mon May 21 22:02:54 2012] [3461:47024938890000] [error] ajp_send_request::jk_aj

p_common.c (1649): (cfusion) connecting to backend failed. Tomcat is probably no

t started or is listening on the wrong port (errno=22)

 

To confirm some of my settings:

 

[root@web-dev4 1]# sestatus

SELinux status:                 disabled

 

[root@web-dev4 1]# service iptables status

Firewall is stopped.

 

[root@web-dev4 1]# more /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1               localhost.localdomain localhost web-dev4

::1             localhost6.localdomain6 localhost6

 

[root@web-dev4 1]# hostname

web-dev4

 

[root@web-dev4 1]# telnet localhost 8012

Trying 127.0.0.1...

Connected to localhost.localdomain (127.0.0.1).

Escape character is '^]'.

Connection closed by foreign host.

 

Really have no ideas at this point, installation repeated a few times, looks all clean. Anybody?

 

Thanks

 
Replies
  • Currently Being Moderated
    Jun 1, 2012 7:48 PM   in reply to MeintD

    I get exact same error on Centos 5.8 .

    Tried with few apache version , same issue .

    SeLinux & Firewall completely disabled .

    Not doing anything fancy , clean install , default server install with apache .

    [root@mel-survey-dev conf]# cat mod_jk.conf

    # Load mod_jk module

    LoadModule    jk_module  "/opt/coldfusion10/config/wsconfig/1/mod_jk.so"

    # Where to find workers.properties

    JkWorkersFile "/opt/coldfusion10/config/wsconfig/1/workers.properties"

    JkMountFile "/opt/coldfusion10/config/wsconfig/1/uriworkermap.properties"

    # Where to put jk logs

    JkLogFile "/opt/coldfusion10/config/wsconfig/1/mod_jk.log"

    # Where to put jk shared memory

    JkShmFile "/opt/coldfusion10/config/wsconfig/1/jk_shm"

    # Set the jk log level [debug/error/info]

    JkLogLevel info

    # Select the timestamp log format

    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

    AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf

    Alias /CFIDE "/opt/coldfusion10/cfusion/wwwroot/CFIDE"

    <Directory "/opt/coldfusion10/cfusion/wwwroot/CFIDE">

    Options Indexes FollowSymLinks

    AllowOverride None

    Order allow,deny

    Allow from all

    </Directory>

    <Files ~ ".hbmxml$">

    Order allow,deny

    Deny from all

    </Files>

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2012 12:25 AM   in reply to ravimedia
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2012 10:32 AM   in reply to MeintD

    Meint,

     

    I performed a clean install of CentOS 6.2 in the "Software Development" installation type.  After installation, I configured SELinux to be permissive rather than enforcing.  ColdFusion 10 installed correctly and I was able to complete the configuration of Apache 2.2 without any problems.


    I see that you set SELinux to disabled, so that should not have been an issue, although since I was in permissive mode I did get some warnings.

     

    I'm afraid that I dont' have an answer for you, except to say that I can verify that installation of CF10 and configuration of Apache on a clean CentOS server worked.  I could provide a package list or other OS config info if requested for your comparison.

     

    -Steve

     

    Screenshots:

     

    http://www.mobypicture.com/user/stevenerat/view/12991831

     

    http://www.mobypicture.com/user/stevenerat/view/12991835

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2012 10:41 AM   in reply to Steven Erat

    On Twitter, Andy Allan commented that he experiences a connector problem only on CentOS 5.8, not 6.x.  https://twitter.com/fymd/statuses/211150454535630848

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 12:12 PM   in reply to MeintD

    This is by design, as part of various CF10 security enhancements.

     

    For instance, in this article on CF10 Security enhancements (http://www.adobe.com/devnet/coldfusion/articles/security-improvements. html), it notes this with respect to changes about CFLOGIN, which the CF Admin uses under the covers:

     

           Now you can have only one active session open for one user for a given application that uses the cflogin tag.

     

     

     

          For example, you can now access the Administrator console one user at a time with a given set of UserIDs and passwords.

     

    It’s also in the CF10 docs, though not worded as obviously applying to this situation. At the bottom of http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318 5183e145c0d1353e31f559-7ff7.html, it says:

     

             You are logged out from one of the ColdFusion administrators, if:

             From the same host, you log in to the ColdFusion (10) Administrator and the ColdFusion Administrator of an older version.

     

    HTH.

     

    /charlie

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 12:32 PM   in reply to Charlie Arehart

    I should have added that while you may think, "but that doesn't explain why another user and I can't use it at once", actually it does. Note that the login is not "per user" but "per account". And by default, there is one account used for logging into the CF Admin, called the Admin user (we normally don't even notice or use that, and only need to enter the password for that account).

     

    So it's saying that "2 users of the same account can't be logged into the CF Admin at one time." I agree it's an annoyance, but I'm sure there's a worthy security problem for which it was the solution. Maybe someone from Adobe will chime in with more thoughts.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 14, 2012 7:08 AM   in reply to MeintD

    Thanks for the update (and the kind regards).

     

    And I do agree both that it could offer a better message and that it could be better highlighted (in the docs, in the interface, or perhaps even in the installer or something) so people know of it in advance.

     

    Until then, I did a blog entry on it (motivated by this thread), and it’s now at:

     

    Have you noticed the #ColdFusion 10 admin allows only one login at a time? It's by design

    http://www.carehart.org/blog/client/index.cfm/2012/6/13/cf10_admin_all ows_one_logon_at_a_time

     

     

     

    /charlie

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points