From Rabbi Aviner:
In the book "Chayei Ha-Re'eiyah" (p. 212 and see the talk of Rav Tzvi Tau on Elkanah in Emunat Itenu vol. 1, p. 85), Rav Moshe Tzvi Neriyah relates that a Torah scholar who made aliyah from America came to Maran (our revered teacher) Ha-Rav Kook and complained about the state of Judaism in the Land of Israel. He was so distressed that he was considering leaving Israel. Maran Ha-Rav Kook said to him: Doesn't your honor remember the learning of his youth? The Book of Shmuel relates about Elkana: "This man would ascend from his city every year to prostrate himself and to bring sacrifices to Hashem, Master of Legions, in Shiloh, and the two sons of Eli, Chofni and Phinchas, were cohanim to Hashem there" (Shmuel 1 1:3). Rav Kook asked two questions about this verse: 1. Why are we told in this verse that Chofni and Phinchas were there? 2. Our Sages say that Elkana would not only go up to Shiloh, he would go around and encourage others to do so as well. Why did he have to do this? After all, isn’t ascending to the Mishkan on the holidays a Torah mitzvah? Why weren't people following this mitzvah? Rav Kook explains that the first question is in fact the answer to the second question. The fact that Chofni and Phinchas were the cohanim in Shiloh caused people not to make the pilgrimage there, since they were corrupt. People said that if there were Cohanim like this in this holy place, it was better not to go and see this ugliness and meet such sinners. Elkana then came and convinced them that despite the sons of Eli and despite the sins at this holy place, they should not give up on this mitzvah of Hashem. They should strengthen this holy place. Right now there are not great people there, but later there will be. Do not give up because of the difficulties. As a reward for this act, Elkana was blessed with a son, the prophet Shmuel, who served in the Mishkan. Rav Kook said to the Torah scholar that the same applies in relation to the holiness of the Land of Israel. Why are you mad at the Land of Israel? There are problems, therefore exert yourself and everything will work out. Although there are sinners, this is not a reason not to make Aliyah and all the more so not to leave the Land of Israel. The more people committed to the Torah and Mitzvot in the Land of Israel, the more holiness will be added to it.
[Today is the yahrzeit of Rav Kook zt"l]