Expand my Community achievements bar.

Is linkchecker enabled by default?

Avatar

Level 3

Hi all,

I am trying to enable the link checker on my instance, because of the concern of the broken links on the website. Is the link checker enabled by default and does the events get triggered when we are authoring the pages with say rich text field component? I have been through quite a few articles that are on the web - for instance AEM Link Checker : Comprehensive Guide , but there is nothing different than in the configuration, that we have it on our AEM 6.2 instance, from what it is mentioned. The default parameters have never been changed and neither it's disabled. Most of my internet search ended up with only disabling a link checker and not that anything else need to be configured for making it to work. Upon making changes to configuration, I could see that in the logs but when I apply broken links for validation while authoring, it doesn't show up either in logs nor in the link checker console /etc/linkchecker.html.

02.08.2019 08:19:14.382 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.adobe.cq.mobile.cq-mobile-dps Service [com.adobe.cq.mobile.dps.impl.rewriter.PathRewriterTransformerFactory,3967, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent UNREGISTERING

02.08.2019 08:19:14.384 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.mcm.cq-mcm-core Service [com.day.cq.mcm.core.newsletter.NewsletterTransformerFactory,2481, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent UNREGISTERING

02.08.2019 08:19:14.386 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.wcm.cq-wcm-mobile-core Service [com.day.cq.wcm.mobile.core.impl.rewriter.MobileTransformerFactory,2731, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent UNREGISTERING

02.08.2019 08:19:14.388 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.wcm.cq-wcm-content-sync Service [com.day.cq.wcm.contentsync.impl.rewriter.PathRewriterTransformerFactory,3983, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent UNREGISTERING

02.08.2019 08:19:14.388 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.cq-rewriter Service [com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl,2479, [java.lang.Runnable, com.day.cq.rewriter.linkchecker.LinkChecker]] ServiceEvent UNREGISTERING

02.08.2019 08:19:14.389 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.adobe.cq.mobile.cq-mobile-core Service [com.adobe.cq.mobile.platform.impl.rewriter.HybridAppPathRewriterTransformerFactory,2480, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent UNREGISTERING

02.08.2019 08:19:14.392 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.cq-rewriter Service [com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformerFactory,2482, [org.apache.sling.rewriter.TransformerFactory, org.osgi.service.event.EventHandler, com.day.cq.rewriter.linkchecker.LinkCheckerConfigProvider]] ServiceEvent UNREGISTERING

02.08.2019 08:19:14.393 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.cq-rewriter Service [com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask,2483, [java.lang.Runnable, com.day.cq.rewriter.linkchecker.ExternalLinkChecker, org.apache.sling.discovery.TopologyEventListener]] ServiceEvent UNREGISTERING

02.08.2019 08:19:14.394 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask LinkChecker service shut down

02.08.2019 08:19:14.396 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.adobe.cq.media.cq-media-publishing-dps-integration Service [com.adobe.cq.media.publishing.dps.impl.rewriter.PathRewriterTransformerFactory,5339, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent UNREGISTERING

02.08.2019 08:19:14.408 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.adobe.cq.mobile.cq-mobile-dps Service [com.adobe.cq.mobile.dps.impl.rewriter.PathRewriterTransformerFactory,12215, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent REGISTERED

02.08.2019 08:19:14.411 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.mcm.cq-mcm-core Service [com.day.cq.mcm.core.newsletter.NewsletterTransformerFactory,12216, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent REGISTERED

02.08.2019 08:19:14.412 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.wcm.cq-wcm-mobile-core Service [com.day.cq.wcm.mobile.core.impl.rewriter.MobileTransformerFactory,12217, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent REGISTERED

02.08.2019 08:19:14.414 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.wcm.cq-wcm-content-sync Service [com.day.cq.wcm.contentsync.impl.rewriter.PathRewriterTransformerFactory,12218, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent REGISTERED

02.08.2019 08:19:14.414 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.cq-rewriter Service [com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl,12214, [java.lang.Runnable, com.day.cq.rewriter.linkchecker.LinkChecker]] ServiceEvent REGISTERED

02.08.2019 08:19:14.415 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.adobe.cq.mobile.cq-mobile-core Service [com.adobe.cq.mobile.platform.impl.rewriter.HybridAppPathRewriterTransformerFactory,12219, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent REGISTERED

02.08.2019 08:19:14.417 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.cq-rewriter Service [com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformerFactory,12220, [org.apache.sling.rewriter.TransformerFactory, org.osgi.service.event.EventHandler, com.day.cq.rewriter.linkchecker.LinkCheckerConfigProvider]] ServiceEvent REGISTERED

02.08.2019 08:19:14.418 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.cq-rewriter Service [com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask,12221, [java.lang.Runnable, com.day.cq.rewriter.linkchecker.ExternalLinkChecker, org.apache.sling.discovery.TopologyEventListener]] ServiceEvent REGISTERED

02.08.2019 08:19:14.420 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask LinkChecker service activated

02.08.2019 08:19:14.421 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] org.apache.sling.discovery.commons.providers.base.ViewStateManagerImpl enqueue: enqueuing topologyEvent TopologyEvent [type=TOPOLOGY_INIT, oldView=null, newView=DefaultTopologyView[current=true, num=1, instances=106405bb-0ee8-4fd7-9ede-e4f8dccdcd48[local=true,leader=true]]], to com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask@3bd38214

02.08.2019 08:19:14.422 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.adobe.cq.media.cq-media-publishing-dps-integration Service [com.adobe.cq.media.publishing.dps.impl.rewriter.PathRewriterTransformerFactory,12222, [org.apache.sling.rewriter.TransformerFactory]] ServiceEvent REGISTERED

Can someone please let me know if there is anything else need to be done to make it work on AEM instance or if I am missing anything else?

As far as the link checker configuration is concerned, all the environments including Dev, QA, UAT and PROD are on AEM 6.2 and has the same default configuration.

Appreciate your help. Thanks in advance.

Thanks,
Arvind

6 Replies

Avatar

Employee Advisor

Go to [1] and make sure the "Disable Checking" checkbox is unchecked. By Default, Link checker runs every hour which can be configured by changing the "Scheduler Period" from [2]

[1] http://<host>:<port>/system/console/configMgr/com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransf...

[2] http://<host>:<port>/system/console/configMgr/com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask

Screen Shot 2019-08-02 at 10.39.20 AM.png

Avatar

Level 3

Hi JaideepBrar,

I confirm that, the "Disable checking" is unchecked and the default value for "Scheduler period" was changed to random values and tried testing it and then had reset values. No luck yet. Was not able to see anything related to link checker in logs nor in the link checker tool console.

Avatar

Employee Advisor

Follow the steps below:

- Change the "Scheduler period" to 5

- Open any page

- Add Text Component to it

- Add a hyperlink to text(www.adobe.com)

- Now, go to <host>:<port>/etc/linkchecker.html

- AEM should list the newly added link here

- Wait for 5 seconds and AEM should verify the links.

You can setup a DEBUG logger on "com.day.cq.rewriter.linkchecker" to check whats happening in the background.

Avatar

Level 3

JaideepBrar​,

I followed the same steps before, but I did what you said again. I have added an internal and external broken links in the rich text editor.

I don't see any activity in /etc/linkchecker.html. And below is what I see in the logs.

02.08.2019 11:55:25.243 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask LinkChecker service shut down

02.08.2019 11:55:25.244 *DEBUG* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl LinkChecker service shut down

02.08.2019 11:55:25.245 *DEBUG* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl LinkChecker service activated

02.08.2019 11:55:25.254 *DEBUG* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformerConfig maxMapCacheSize=5000, validateElements=[a:href, area:href, form:action, img:src, link:href, script:src]

02.08.2019 11:55:25.262 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl)] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask LinkChecker service activated

02.08.2019 11:58:11.730 *DEBUG* [pool-82-thread-1] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformerConfig Cache cleared

02.08.2019 11:58:11.760 *DEBUG* [pool-82-thread-1] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformerConfig Cache cleared

02.08.2019 11:58:42.527 *DEBUG* [pool-82-thread-1] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformerConfig Cache cleared

02.08.2019 11:58:42.535 *DEBUG* [pool-82-thread-1] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformerConfig Cache cleared

Avatar

Employee Advisor

Might be one of the services is not active.

- Go to <host>:<port>/system/console/components

- Search for "linkchecker"

- Check if all the components are in active state

- Also, check if the bundle named "com.day.cq.cq-rewriter" is active.

If this is still an issue, log a daycare ticket and we can further debug the issue.

Avatar

Level 3

JaideepBrar​ - Yes, all the components and bundle are in active state. Will give a last try and will go ahead and create a daycare ticket. Thank you.!