Skip navigation

CQ5

Currently Being Moderated

SOLVED: “AuthenticationSupport service missing. Cannot authenticate request.”

Jun 19, 2012 10:37 PM

A customer was installing CQ5 on a Red Hat Linux environment, and getting the following error displaying in the browser.

 

AuthenticationSupport service missing. Cannot authenticate request.

 

We checked the Felix Console, and all bundles were installed correctly.

 

We did however find the following message in the error log:

 

  1. 20.06.2012 10:49:26.689 *ERROR* [FelixStartLevel] org.apache.jackrabbit.core.RepositoryImpl failed to start Repository: Unable to register data store in cluster. javax.jcr.RepositoryException: Unable to register data store in cluster.
  1. ..
  1. Caused by: java.net.UnknownHostException: {server name}: {server name}

 

This was not a clustered instance.

On closer inspection, the error was caused by an incorrect IP address entry for {server name} in the hostnames file

 

Tim Goodman

 
Replies
  • Currently Being Moderated
    Jul 2, 2012 6:06 AM   in reply to Tim Goodman

    And can you tell us where is this file and which one is the line that we must change?

     

    I search for "hostname" or "server name" and the windows found nothing.

     

    Thanks.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 9:17 AM   in reply to MatheusOliveira

    I am using os x, but as far as i know the host file in windows can be found in C:/windows/system32/drivers/etc/.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 10:00 AM   in reply to mkiti

    Hello Mkiti,

     

        I take a look there and my host file only contains comments :s

     

        Heres the content:

     

            

    # Copyright (c) 1993-2009 Microsoft Corp.

    #

    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

    #

    # This file contains the mappings of IP addresses to host names. Each

    # entry should be kept on an individual line. The IP address should

    # be placed in the first column followed by the corresponding host name.

    # The IP address and the host name should be separated by at least one

    # space.

    #

    # Additionally, comments (such as these) may be inserted on individual

    # lines or following the machine name denoted by a '#' symbol.

    #

    # For example:

    #

    #      102.54.94.97     rhino.acme.com          # source server

    #       38.25.63.10     x.acme.com              # x client host

     

    # localhost name resolution is handled within DNS itself.

    #    127.0.0.1       localhost

    #    ::1             localhost

            

     

        The error only happen after I install the CQ5 update fix, from package share. I just renamed the crx-quickstart folder, the CQ create a new one and works, but my projects still in the old quickstart :s Is there a way to physically copy these projects, maybe?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 12:03 PM   in reply to MatheusOliveira

    Hi Matheus,

     

    no it is not possible to copy your project with filesystem mechanisms. I think you have to rename your old crx-quickstart folder back and start CQ. After the felix container is started, go to http://host:port/system/console and ensure that the status of all bundles is "Active". You will also see some fragment bundles with status "Fragment", this is ok.

    You will also find the bundle "Apache Sling Authentication Service", check the status of this bundle.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 12:19 PM   in reply to mkiti

    Mkiti,

     

       I checked the bundles, and there is one with the status "Resolved". I changed the status of this one to "Active", but there is no change (even after reboot the system). Futhermore, there are several of "Instaled" bundles, wich one I can't change to Active.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 12:34 PM   in reply to MatheusOliveira

    The inactive bundles are obviously the cause for your issue. Try it again to acitvate the bundles and try it with different orders. Some bundles have sometime dependencies to other bundles.

    Example:

     

    Bundle A

    Bundle B --> depends on Bundle C

    Bundle C --> depends on Bundle A

     

    So you have first to start Bundle A than Bundle C and finally Bunde B.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 10:11 AM   in reply to mkiti

    Mkiti,

     

       As I have already told, when I click in "Start", nothing happens.

       I have clicked in a bundle name of one of these, just to check, and I found a red line telling me that a specific package cannot be resolved. For every bundle with the status "Instaled", there are a lot of these "unresolved" packages, as bellow:

     

        CQ5 Bundles detail - Packages.jpg

     

       I'll never install a "update" package from Adobe again :s

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 28, 2013 3:39 AM   in reply to MatheusOliveira

    Another possible cause can be your lucene indexes can be corrupt.

     

    Yogesh was kind enough to post a solution here:

    http://www.wemblog.com/2011/12/how-to-rebuild-index-in-cq5-wem.html

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)