Hello All,
I systematically get this error when I restart MCF after running a job
that uses a new Repo Connector I'm creating:
ERROR 2025-03-03T13:01:30Z (Agents thread) -
MCF|MCF-agent|apache.manifoldcf.agents|Exception tossed: Service 'A' of
type 'AGENT_org.apache.manifoldcf.crawler.system.CrawlerAgent' is
already active
org.apache.manifoldcf.core.interfaces.ManifoldCFException: Service 'A'
of type 'AGENT_org.apache.manifoldcf.crawler.system.CrawlerAgent' is
already active
at
org.apache.manifoldcf.core.lockmanager.ZooKeeperLockManager.registerServiceBeginServiceActivity(ZooKeeperLockManager.java:171)
~[mcf-core.jar:?]
at
org.apache.manifoldcf.core.lockmanager.ZooKeeperLockManager.registerServiceBeginServiceActivity(ZooKeeperLockManager.java:131)
~[mcf-core.jar:?]
at
org.apache.manifoldcf.agents.system.AgentsDaemon.checkAgents(AgentsDaemon.java:277)
~[mcf-agents.jar:?]
at
org.apache.manifoldcf.agents.system.AgentsDaemon$AgentsThread.run(AgentsDaemon.java:209)
[mcf-agents.jar:?]
This error runs in a loop, even after restarting the service again. I
have to stop MCF and wait a while, maybe ten minutes, then restart MCF
again and the error disappears. I have found a workaround: change the
parameter: "-Dorg.apache.manifoldcf.processid=A" to "B" for example. I
switch between "A" and "B" to restart MCF.
I've been careful to close all my connections to any remote services I
might use, and these closures work fine... I've cleared everything in
the disconnect() method of the Repository class. No matter how much I
compare my connector with others that don't have this problem, I can't
see any big difference with what I've done...
Have any of you ever faced this error?
--
Bien cordialement,
Guylaine
France Labs – Your knowledge, now
Datafari Enterprise Search – Découvrez la version 6 / Discover our version 6
www.datafari.com <http://www.datafari.com>
Retrouvez-nous au Salon Digital Workplace
<https://www.salon-intranet.com/> les 19 et 20 mars à Paris
<https://www.salon-intranet.com/visiter.php>