Expand my Community achievements bar.

SOLVED

Replication agents on publish instances are not configurable

Avatar

Level 4

Hello, AEM Community

I have the following issue: when I click on "edit" in any replication agent on publish instances (on author works fine), the configurable dialog doesn't appear and there is the message in the console:

1839655_pastedImage_0.png

But dialog is situated under this path.

AEM 6.3.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi all of you!

It turned out that Apache Sling Get Servlet is having in configuration "Enable JSON" = false:

1839775_pastedImage_0.png

Due to this there were 404 requests to request with extensions .json.

Thanks all of you for such active discussions.

View solution in original post

16 Replies

Avatar

Community Advisor

Hi,

Can you check and make sure whether the logged in user in publisher instance has sufficient access to the content of that path?

Please use admin creds to make these changes if not using.

Regards,

Arpit Varshney

Avatar

Employee Advisor

Can you share the stacktrace of the error logged in the error.log file? Ideally, you should be getting 200 response for that request.Screen Shot 2019-10-03 at 7.56.52 AM.png

Also, Try to bypass dispatcher and directly go to the AEM instance.

Avatar

Level 4

Hi, JaideepBrar

Thanks for your answer.

Unfortunately, there aren't some messages about errors dedicated to replication in error.log. There is just a message in access.log:
10.0.2.2 - admin 03/Oct/2019:13:51:42 +0000 "GET /libs/cq/replication/components/agent/dialog.overlay.infinity.json HTTP/1.1" 404 363 "http://localhost:4503/etc/replication/agents.author/publish.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"

Yesterday, I faced with the following message:

02.10.2019 10:23:57.471 *ERROR* [qtp1328305755-26924] com.day.crx.delite.impl.servlets.FilesearchServlet Unable to search

javax.jcr.query.InvalidQueryException: java.text.ParseException: Query:

//.libscq(*)/replication/components/agent; expected: <end>

at org.apache.jackrabbit.oak.jcr.query.QueryManagerImpl.executeQuery(QueryManagerImpl.java:148)

at org.apache.jackrabbit.oak.jcr.query.QueryImpl$2.perform(QueryImpl.java:104)

at org.apache.jackrabbit.oak.jcr.query.QueryImpl$2.perform(QueryImpl.java:100)

at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:208)

at org.apache.jackrabbit.oak.jcr.query.QueryImpl.execute(QueryImpl.java:99)

at com.day.crx.delite.impl.servlets.FilesearchServlet.doService(FilesearchServlet.java:65)

at com.day.crx.delite.impl.AbstractServlet.service(AbstractServlet.java:52)

at com.day.crx.delite.impl.MainServlet.doService(MainServlet.java:132)

at com.day.crx.delite.impl.MainServlet.service(MainServlet.java:109)

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:79)

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

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:96)

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

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

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

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

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

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

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

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

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:499)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

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

Caused by: java.text.ParseException: Query:

//.libscq(*)/replication/components/agent; expected: <end>

at org.apache.jackrabbit.oak.query.xpath.XPathToSQL2Converter.getSyntaxError(XPathToSQL2Converter.java:1093)

at org.apache.jackrabbit.oak.query.xpath.XPathToSQL2Converter.convertToStatement(XPathToSQL2Converter.java:357)

at org.apache.jackrabbit.oak.query.xpath.XPathToSQL2Converter.convert(XPathToSQL2Converter.java:87)

at org.apache.jackrabbit.oak.query.QueryEngineImpl.parseQuery(QueryEngineImpl.java:179)

at org.apache.jackrabbit.oak.query.QueryEngineImpl.executeQuery(QueryEngineImpl.java:253)

at org.apache.jackrabbit.oak.jcr.query.QueryManagerImpl.executeQuery(QueryManagerImpl.java:136)

... 42 common frames omitted

02.10.2019 10:23:58.737 *INFO* [qtp1328305755-25342] org.apache.jackrabbit.oak.query.QueryImpl Traversal query (query without index): select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */; consider creating an index

02.10.2019 10:23:58.742 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 1000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:58.745 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 2000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:58.748 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 3000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:58.752 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 4000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:58.754 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 5000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:58.757 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 6000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:58.759 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 7000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:58.761 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 8000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:58.764 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 9000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:58.766 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 10000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:59.015 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 100000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

02.10.2019 10:23:59.017 *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.query.FilterIterators The query read or traversed more than 100000 nodes.

java.lang.UnsupportedOperationException: The query read or traversed more than 100000 nodes. To avoid affecting other tasks, processing was stopped.

at org.apache.jackrabbit.oak.query.FilterIterators.checkReadLimit(FilterIterators.java:66)

at org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor.fetchNext(Cursors.java:324)

at org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor.next(Cursors.java:303)

at org.apache.jackrabbit.oak.query.ast.SelectorImpl.next(SelectorImpl.java:422)

at org.apache.jackrabbit.oak.query.ast.JoinImpl.next(JoinImpl.java:250)

at org.apache.jackrabbit.oak.query.ast.JoinImpl.next(JoinImpl.java:250)

at org.apache.jackrabbit.oak.query.ast.JoinImpl.next(JoinImpl.java:250)

at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.fetchNext(QueryImpl.java:843)

at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.hasNext(QueryImpl.java:868)

at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.fetch(QueryResultImpl.java:98)

at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.<init>(QueryResultImpl.java:94)

at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl.getRows(QueryResultImpl.java:78)

at com.day.crx.delite.impl.servlets.FilesearchServlet.doService(FilesearchServlet.java:65)

at com.day.crx.delite.impl.AbstractServlet.service(AbstractServlet.java:52)

at com.day.crx.delite.impl.MainServlet.doService(MainServlet.java:132)

at com.day.crx.delite.impl.MainServlet.service(MainServlet.java:109)

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:79)

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

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:96)

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

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

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

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

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

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

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

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

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:499)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

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

02.10.2019 10:23:59.018 *ERROR* [qtp1328305755-25342] com.day.crx.delite.impl.servlets.FilesearchServlet Unable to search

java.lang.UnsupportedOperationException: The query read or traversed more than 100000 nodes. To avoid affecting other tasks, processing was stopped.

at org.apache.jackrabbit.oak.query.FilterIterators.checkReadLimit(FilterIterators.java:66)

at org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor.fetchNext(Cursors.java:324)

at org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor.next(Cursors.java:303)

at org.apache.jackrabbit.oak.query.ast.SelectorImpl.next(SelectorImpl.java:422)

at org.apache.jackrabbit.oak.query.ast.JoinImpl.next(JoinImpl.java:250)

at org.apache.jackrabbit.oak.query.ast.JoinImpl.next(JoinImpl.java:250)

at org.apache.jackrabbit.oak.query.ast.JoinImpl.next(JoinImpl.java:250)

at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.fetchNext(QueryImpl.java:843)

at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.hasNext(QueryImpl.java:868)

at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.fetch(QueryResultImpl.java:98)

at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.<init>(QueryResultImpl.java:94)

at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl.getRows(QueryResultImpl.java:78)

at com.day.crx.delite.impl.servlets.FilesearchServlet.doService(FilesearchServlet.java:65)

at com.day.crx.delite.impl.AbstractServlet.service(AbstractServlet.java:52)

at com.day.crx.delite.impl.MainServlet.doService(MainServlet.java:132)

at com.day.crx.delite.impl.MainServlet.service(MainServlet.java:109)

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:79)

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

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:96)

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

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

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

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

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

at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:74)

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

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

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

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:499)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

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

But today there is no logs about it and configuration doesn't work all the same.

Sorry, what do you mean "bypass dispatcher and directly go to AEM instance"?

Avatar

Level 4

Hi, arpitv27529355

Thanks for you answer. I logged in as admin/admin and the following issue I see. I suggest that administrator has access to all content repository as on author instance. But I haven't found the way to check permissions on publish instance yet. (e.g. on author it is <host>:port/useradmin). Do you know the way to check it?

Thanks.

Avatar

Community Advisor

Why do you want to configure agents on publsih server?

Avatar

Level 4

Hi, ka786

It is needed for out edit. team.

And this functionality is provided by default. I don't know, why it doesn't work for me. I suggest it can be due to permissions.

Avatar

Community Advisor

Could you please with the team what they are trying to achieve ? Which we cant achieve configuring agents on author.

Ideally we dont configure agents on publish

Avatar

Community Advisor

Hi,

The url is same for publisher as well(localhost:4503/useradmin).

If you're not able to access the useradmin portal using admin creds as well then I suspect there might be some access issue in admin creds in your publisher.

Please verify first whether you logged in as admin or not?

Regards,

Arpit

Avatar

Employee

Hello,

These traversal warnings have nothing to do with the issue at hand.

Looks like query [1] were executed from crxde navigation bar.

Basically, someone might have tried to search in crxde Search bar. Whenever you search in crxde or try to navigate to any path, always put a slash in front.

It is recommended to do search in crx home using Query tool i.e Tools-> Query

[1] *WARN* [qtp1328305755-25342] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 7000 nodes with filter Filter(query=select d.[jcr:path] as [jcr:path], d.[jcr:score] as [jcr:score], d.* from [nt:base] as a inner join [nt:base] as b on ischildnode(b, a) inner join [nt:base] as c on ischildnode(c, b) inner join [nt:base] as d on ischildnode(d, c) where name(a) = 'cq' and name(b) = 'replication' and name(c) = 'components' and name(d) = 'agent' /* xpath: //cq/replication/components/agent */, path=*, property=[:localname=[cq]]); consider creating an index or changing the query

Regards,

Vishu

Avatar

Employee

As ka786​ mentioned, what exactly is the use case here? Are you trying to do reverse replication to the author or replicating to another publish?

As a workaround, you can create the agent on the author or any other working publish agent. Create a package of this agent and install the package in a non-working publish instance.

Regards,

Vishu

Avatar

Employee Advisor

You should be able to create replication agents on publish instance without any issues. Can you setup a DEBUG logger on "com.day.cq.replication" and check if you get any mor info on why its failing.

Also, try to disable link checker and check by going directly to the Publish instance and by-passing dispatcher

Avatar

Correct answer by
Level 4

Hi all of you!

It turned out that Apache Sling Get Servlet is having in configuration "Enable JSON" = false:

1839775_pastedImage_0.png

Due to this there were 404 requests to request with extensions .json.

Thanks all of you for such active discussions.

Avatar

Employee Advisor

Please do not open the JSON representation of the default get servlet on publish, because then every URL can be fetched with the .json extension and might be handled by the DefaultGetServlet. And if not properly secured, the .2.json might work as well.

Jörg

Avatar

Level 4

Hi, Jörg Hoh

Thanks for your answer. Well, this is a very good question we are thinking about right now. Could you please give an advice:

-Should "enabling JSON"=true be on publish instance? If yes, is it enough to restrict ".json"-requests to security paths in config dispatcher?

Or do you think that it is bad practice to enable json representation on publish instances?

Thanks, Artur.

Avatar

Employee Advisor

In my opinion you should disable it whenever possible on publish. That prevents quite a few angles to extract information from publish instances, often without any negative impact on functionality. There should not be a need to use to configure the replication agents on publish, and the rare occassions you have to you can also use the crxde light to change it directly there.

Jörg

Avatar

Level 4

Thanks a lot for your consultation! I agree with you.