Link checker in AEM 6.3 disabling certain links from same host. | Community
Skip to main content
November 21, 2018
Solved

Link checker in AEM 6.3 disabling certain links from same host.

  • November 21, 2018
  • 4 replies
  • 2186 views

Hi All,

We have migrated to 6.3 and we are facing some issues with link checker. It is disabling some of the links in publish, while allowing some other, but both the links are from same domain only.  We are getting following exception in logs,

19.11.2018 13:59:42.865 *ERROR* [sling-default-2278-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.7897] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask Failed to validate URL http://www.abc.com/*******; java.net.UnknownHostException: www.abc.com

This was working fine in 6.1 and link checker is enabled in both 6.1 and 6.3. We also compared the link checker configuration in both version and looks same.

Please advise.

Thanks in Advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

The exception is quite specific: java.net.UnknownHostException: www.abc.com means that Java (and probably also the underlying OS as well) cannot resolve the hostname "www.abc.com". This typically means either that there is a problem in the DNS resolution in that machine, or that the machine is not supposed to resolve this hostname.

Anyway, when you work with links to "local" resources, make sure that you use relative paths, because then the job of the Linkchecker is very easy and you avoid these costly lookups completely. Because then the validity of a link can be confirmed just by looking up a resource in the repository.

Jörg

4 replies

smacdonald2008
Level 10
November 21, 2018

Is this on a upgraded instance where the problem is?

GaneshM
Level 3
November 21, 2018

Did you notice any difference between those URL's (Valid vs Exception)? Wondering whether any special chars in the path?

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
November 21, 2018

The exception is quite specific: java.net.UnknownHostException: www.abc.com means that Java (and probably also the underlying OS as well) cannot resolve the hostname "www.abc.com". This typically means either that there is a problem in the DNS resolution in that machine, or that the machine is not supposed to resolve this hostname.

Anyway, when you work with links to "local" resources, make sure that you use relative paths, because then the job of the Linkchecker is very easy and you avoid these costly lookups completely. Because then the validity of a link can be confirmed just by looking up a resource in the repository.

Jörg

May 3, 2019

Hi anushap76803953, did you resolve the issue of unknown host exception as we are also getting the same.

Thanks

Naveen