Thank you for raising this.  I just fixed the documentation.  Please
try <logLevel>debug</logLevel>

On Mon, Feb 21, 2022 at 9:57 AM Bridger Dyson-Smith
<[email protected]> wrote:
>
> Hi all -
>
> I'm trying to run a localhost-only service to work on a number of PDFs. I've 
> downloaded v2.3.0 of the tika-server-standard, and after having some odd 
> problems, I wanted to try running the server with a config file. I'm using 
> the config example from the Tika wiki[1], with some minor changes. When I try 
> to launch with the `-c` (or `--config`) flag, I get the following error:
>
> $  java -jar tika-server-standard-2.3.0.jar -c tika-config.xml
> org.apache.tika.exception.TikaConfigException: Couldn't find setter: setLog 
> for object class org.apache.tika.server.core.TikaServerConfig
>         at org.apache.tika.config.ConfigBase.tryToSet(ConfigBase.java:433)
>         at org.apache.tika.config.ConfigBase.setParams(ConfigBase.java:267)
>         at org.apache.tika.config.ConfigBase.setParams(ConfigBase.java:209)
>         at org.apache.tika.config.ConfigBase.configure(ConfigBase.java:476)
>         at 
> org.apache.tika.server.core.TikaServerConfig.load(TikaServerConfig.java:202)
>         at 
> org.apache.tika.server.core.TikaServerConfig.load(TikaServerConfig.java:189)
>         at 
> org.apache.tika.server.core.TikaServerConfig.load(TikaServerConfig.java:146)
>         at 
> org.apache.tika.server.core.TikaServerCli.execute(TikaServerCli.java:83)
>         at 
> org.apache.tika.server.core.TikaServerCli.main(TikaServerCli.java:66)
> ERROR [main] 09:11:42,455 org.apache.tika.server.core.TikaServerCli Can't 
> start:
> org.apache.tika.exception.TikaConfigException: Couldn't find setter: setLog 
> for object class org.apache.tika.server.core.TikaServerConfig
>         at org.apache.tika.config.ConfigBase.tryToSet(ConfigBase.java:433) 
> ~[tika-server-standard-2.3.0.jar:2.3.0]
>         at org.apache.tika.config.ConfigBase.setParams(ConfigBase.java:267) 
> ~[tika-server-standard-2.3.0.jar:2.3.0]
>         at org.apache.tika.config.ConfigBase.setParams(ConfigBase.java:209) 
> ~[tika-server-standard-2.3.0.jar:2.3.0]
>         at org.apache.tika.config.ConfigBase.configure(ConfigBase.java:476) 
> ~[tika-server-standard-2.3.0.jar:2.3.0]
>         at 
> org.apache.tika.server.core.TikaServerConfig.load(TikaServerConfig.java:202) 
> ~[tika-server-standard-2.3.0.jar:2.3.0]
>         at 
> org.apache.tika.server.core.TikaServerConfig.load(TikaServerConfig.java:189) 
> ~[tika-server-standard-2.3.0.jar:2.3.0]
>         at 
> org.apache.tika.server.core.TikaServerConfig.load(TikaServerConfig.java:146) 
> ~[tika-server-standard-2.3.0.jar:2.3.0]
>         at 
> org.apache.tika.server.core.TikaServerCli.execute(TikaServerCli.java:83) 
> ~[tika-server-standard-2.3.0.jar:2.3.0]
>         at 
> org.apache.tika.server.core.TikaServerCli.main(TikaServerCli.java:66) 
> [tika-server-standard-2.3.0.jar:2.3.0]
>
> When I start without the `-c|--config` flag, the server/service starts up, 
> but seems to fail after processing an unknown number of files (I'm trying to 
> see if I have enough scroll back to figure out where the problem started - I 
> confess I was a bit naive when I started throwing files at the server!). 
> "Fail" here means that there aren't any errors reported in the Tika server's 
> stderr/stdout, but the server doesn't respond to curl.
>
> Is there anything I can do differently to run with a config file? I've copied 
> in my tika-config.xml without the comments.
> Thanks for any insights you can share.
> Best,
> Bridger
>
> [1] https://cwiki.apache.org/confluence/display/TIKA/TikaServer+in+Tika+2.x
> [2] tika-config.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <properties>
>    <server>
>       <params>
>          <port>9990</port>
>          <host>localhost</host>
>          <id/>
>          <cors>NONE</cors>
>          <digest>sha256</digest>
>          <digestMarkLimit>1000000</digestMarkLimit>
>          <log>debug</log>
>          <includeStack>false</includeStack>
>          <nofork>false</nofork>
>          <taskTimeoutMillis>600000</taskTimeoutMillis>
>          <taskPulseMillis>10000</taskPulseMillis>
>          <pingTimeoutMillis>60000</pingTimeoutMillis>
>          <pingPulseMillis>10000</pingPulseMillis>
>          <maxForkedStartupMillis>120000</maxForkedStartupMillis>
>          <maxRestarts>2</maxRestarts>
>          <maxFiles>100000</maxFiles>
>          <javaHome/>
>          <forkedJvmArgs>
>             <arg>-Xms2g</arg>
>             <arg>-Xmx2g</arg>
>             <arg>-Dlog4j.configurationFile=my-forked-log4j2.xml</arg>
>          </forkedJvmArgs>
>          <enableUnsecureFeatures>true</enableUnsecureFeatures>
>          <endpoints>
>             <endpoint>status</endpoint>
>             <endpoint>rmeta</endpoint>
>          </endpoints>
>       </params>
>    </server>
> </properties>

Reply via email to