13 Replies Latest reply on Apr 29, 2013 12:39 PM by Ameeth Palla

    Set up Clustering !!!!!!!!!

    codonvirginia Level 1

      Anyone know why I got this exeption when I set up clustering. "java.io.IOException: Server returned HTTP response code: 401 for URL: http://cm-web1.cen.com:4504/crx/config/cluster.jsp". I try to join that url to the master author then I got that exeption.

       

      I follow this url http://dev.day.com/docs/en/crx/current/administering/cluster.html  instruction.

       

      Thanks,

       

      Jenny

        • 1. Re: Set up Clustering !!!!!!!!!
          Ameeth Palla Adobe Employee

          Hi Jenny,

            CRX needs you to login before you can use any CRX consoles. It should typically prompt you for credentials when you access the above link. But if it is not doing so then follow the below steps:

          1. Try to first go to http://cm-web1.cen.com:4504/crx/explorer and ensure you are logged in as admin user.

          2. Then go to the link you are trying. However the link http://cm-web1.cen.com:4504/crx/config/cluster.jsp will just show you the cluster properties of that node.

           

          If you want to create a cluster then try to access http://cm-web1.cen.com:4504/libs/granite/cluster/content/admin.html#/libs/granite/cluster/content/admin/node.new.html

          Access the above link from a node which you want to act as a slave. The enter the URL for the node which you want to act as the master in the Master URL field and also the Admin credentials for that node and click on 'Join' button. That should do the trick.

           

          Thanks

          Ameeth

          • 3. Re: Set up Clustering !!!!!!!!!
            Ameeth Palla Adobe Employee

            Hi Jenny,

              What version of CQ are you using?

            Thanks,

            Ameeth

            • 4. Re: Set up Clustering !!!!!!!!!
              codonvirginia Level 1

              I am using 5.5 ? I try to setup cluster by GUI.

               

              Thanks,

              • 5. Re: Set up Clustering !!!!!!!!!
                Yogesh Upadhyay Level 4

                401 status code mean unautorized. Make sure that you are using correct user name (That is admin) and password for join.

                 

                Yogesh

                • 6. Re: Set up Clustering !!!!!!!!!
                  codonvirginia Level 1

                  Hi,

                  I login admin user name and password. and Master URL is http://cm-web1.cen.com:4504/ .  I got exeption "java.io.IOException: Server returned HTTP response code: 401 for URL: http://cm-web1.cen.com:4504/crx/config/cluster.jsp" after I click join. Can you help me?

                   

                  thanks,

                   

                  Jenny

                  • 7. Re: Set up Clustering !!!!!!!!!
                    Yogesh Upadhyay Level 4

                    Jenny,

                     

                    We need more information in order to help. Can you send master and slave error log at a time when you are trying to join ? If you have access to server then you can try manual join as well

                     

                    http://crxcluster.wemblog.com/manual-cluster-join

                     

                    Yogesh

                    • 8. Re: Set up Clustering !!!!!!!!!
                      codonvirginia Level 1

                      Hi Yogesh,

                       

                      This is error log in slave server, in maser server have nothing in log file.

                      29.04.2013 14:25:44.797 *INFO* [170.20.145.196 [1367259944796] GET /crx/config/cluster.jsp HTTP/1.1] org.apache.sling.extensions.web

                      consolesecurityprovider.internal.SlingWebConsoleSecurityProvider authenticate: User admin failed to authenticate with the repository

                      for Web Console access javax.jcr.LoginException

                              at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1486)

                              at org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:123)

                              at org.apache.sling.extensions.webconsolesecurityprovider.internal.SlingWebConsoleSecurityPr ovider.authenticate(SlingWebCons

                      oleSecurityProvider.java:130)

                              at com.day.crx.explorer.impl.compat.SecurityProvider.authenticate(SecurityProvider.java:83)

                              at com.day.crx.explorer.impl.compat.SecurityProvider.authenticate(SecurityProvider.java:63)

                              at com.day.crx.explorer.impl.compat.ClusterServlet.service(ClusterServlet.java:60)

                              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

                              at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)

                              at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)

                              at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)

                              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)

                              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                              at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

                              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                              at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:238)

                              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                              at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)

                              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                              at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )

                              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                              at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)

                              at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)

                              at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

                              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

                              at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)

                              at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)

                              at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)

                      at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:377)

                              at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:351)

                              at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:625)

                              at java.lang.Thread.run(Thread.java:662)

                      Caused by: javax.security.auth.login.FailedLoginException

                              at org.apache.jackrabbit.core.security.authentication.AbstractLoginModule.authenticate(Abstr actLoginModule.java:452)

                              at org.apache.jackrabbit.core.security.authentication.AbstractLoginModule.login(AbstractLogi nModule.java:326)

                              at org.apache.jackrabbit.core.security.authentication.LocalAuthContext.login(LocalAuthContex t.java:86)

                              at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1458)

                              ... 42 more

                      • 9. Re: Set up Clustering !!!!!!!!!
                        Yogesh Upadhyay Level 4

                        This error mean you are trying wrong user name and password. But if you are using right information, I would suggest to raise a daycare ticket and some one will help you with set up.

                         

                        Yogesh

                        • 10. Re: Set up Clustering !!!!!!!!!
                          codonvirginia Level 1

                          You right, I enter the password of master sever not slave sever. Now I got this exeption , can you help me why I got this.

                           

                          29.04.2013 14:43:10.285 *INFO* [pool-5-thread-3] com.day.cq.polling.importer.impl.PollingImporterImpl importData: Importing data fro

                          m sitecatalyst:default to /content/abc/en/jcr:content/analytics/pollconfig as admin by com.day.cq.analytics.sitecatalyst.Impressi

                          onsImporter@30a59324

                          29.04.2013 14:43:10.286 *ERROR* [pool-5-thread-3] com.day.cq.polling.importer.impl.PollingImporterImpl importData: Unexpected failur

                          e importing PollConfig(/content/abc/en/jcr:content/analytics/pollconfig): scheme=sitecatalyst,source=default,target=/content/cens

                          us/en/jcr:content/analytics/pollconfig,interval=300s,enabled=true java.lang.NullPointerException

                                  at com.day.cq.analytics.impl.AnalyticsConfigurationImpl.getSitecatalystAccount(AnalyticsConf igurationImpl.java:108)

                                  at com.day.cq.analytics.sitecatalyst.ImpressionsImporter.importData(ImpressionsImporter.java :141)

                                  at com.day.cq.polling.importer.impl.PollingImporterImpl.importData(PollingImporterImpl.java: 347)

                                  at com.day.cq.polling.importer.impl.PollingImporterImpl.access$000(PollingImporterImpl.java: 52)

                                  at com.day.cq.polling.importer.impl.PollingImporterImpl$1.run(PollingImporterImpl.java:268)

                                  at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java: 56)

                                  at org.quartz.core.JobRunShell.run(JobRunShell.java:213)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

                                  at java.lang.Thread.run(Thread.java:662)

                          29.04.2013 14:43:13.198 *INFO* [pool-5-thread-4] com.day.cq.statistics.impl.StatisticsServiceImpl Running clean up reports...

                          29.04.2013 14:43:13.203 *INFO* [pool-5-thread-4] com.day.cq.statistics.impl.StatisticsServiceImpl Clean up reports finished

                          29.04.2013 14:43:13.203 *INFO* [pool-5-thread-4] com.day.cq.statistics.impl.StatisticsServiceImpl Running keyword update report...

                          29.04.2013 14:43:13.208 *WARN* [pool-5-thread-4] com.day.cq.statistics.impl.StatisticsServiceImpl Exception while cleaning up javax.

                          jcr.ValueFormatException: property /content/abc/en/topics/population/PopPublicationList/the-2010-abc-brief-overview-of-race- an

                          d-hispanic-origin/jcr:content/cq:keywords is a single-valued property, so it's value can not be retrieved as an array

                                  at org.apache.jackrabbit.core.PropertyImpl.internalGetValues(PropertyImpl.java:467)

                                  at org.apache.jackrabbit.core.PropertyImpl.getValues(PropertyImpl.java:500)

                                  at com.day.crx.statistics.keyword.KeywordsReport.getResult(KeywordsReport.java:87)

                                  at com.day.cq.statistics.impl.StatisticsServiceImpl.updateKeywords(StatisticsServiceImpl.jav a:230)

                                  at com.day.cq.statistics.impl.StatisticsServiceImpl.run(StatisticsServiceImpl.java:186)

                                  at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java: 56)

                                  at org.quartz.core.JobRunShell.run(JobRunShell.java:213)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

                                  at java.lang.Thread.run(Thread.java:662)

                           

                          Thanks,

                          • 11. Re: Set up Clustering !!!!!!!!!
                            Ameeth Palla Adobe Employee

                            Are you logging in as Admin user?

                             

                            Also - verify that the admin user/password for crx is not different from the one for the Admin Console. Are you able to login using the same credentials to http://cm-web1.cen.com:4504/crx/explorer ?

                            crx.JPG

                             

                            Thanks

                            Ameeth

                            • 12. Re: Set up Clustering !!!!!!!!!
                              codonvirginia Level 1

                              Hi Ameeth,

                               

                              I log in as user name is admin.

                               

                              do you know why i got that exeption privious post?

                               

                              Thank,

                               

                              Jenny

                              • 13. Re: Set up Clustering !!!!!!!!!
                                Ameeth Palla Adobe Employee

                                Hi Jenny,

                                 

                                  Please log a Daycare ticket to get help with this. Looks like there could be some issue with your CQ set-up.

                                 

                                Thanks

                                Ameeth