Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

anushap76803953
Level 1
Level 1

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.

1 Accepted Solution
Jörg_Hoh
Correct answer by
Employee
Employee

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

View solution in original post

0 Replies
smacdonald2008
Level 10
Level 10

Is this on a upgraded instance where the problem is?

GaneshM
Level 3
Level 3

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

Jörg_Hoh
Correct answer by
Employee
Employee

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

View solution in original post

naveenc44519935
Level 1
Level 1

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

Thanks

Naveen