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.
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Is this on a upgraded instance where the problem is?
Views
Replies
Total Likes
Did you notice any difference between those URL's (Valid vs Exception)? Wondering whether any special chars in the path?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Hi anushap76803953, did you resolve the issue of unknown host exception as we are also getting the same.
Thanks
Naveen
Views
Replies
Total Likes
Views
Likes
Replies