Forum: Installation

Post: VoltDB has encountered an unrecoverable error and is exiting.... Where is error log?

VoltDB has encountered an unrecoverable error and is exiting.... Where is error log?
AndrashTM
Feb 27, 2012
Can anyone help me out with the following VoltDB issue?
When trying to compile a VoltDB project, I got the following error...


log4j:WARN No appenders could be found for logger (COMPILER).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
------------------------------------------
Project compilation failed. See log for errors.
------------------------------------------
log4j:WARN No appenders could be found for logger (HOST).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
VoltDB has encountered an unrecoverable error and is exiting.
The log may contain additional information.

I cannot find an error code or something more specific ...What is the problem? Where is the error log, so I can figure out what is wrong?
Could my java code be wrong? Could my DDL be wrong? Perhaps project.xml?


I know as a fact that my DDL is wrong (I changed it to a good one, and still same error), because I am trying to migrate Oracle to Volt, and I want to alter the Oracle DDL accordingly, but without the error dumps I cannot know what Volt is not liking...
Hi Andrash, If you specify
aweisberg
Feb 27, 2012
Hi Andrash,

If you specify -Dlog4j.configuration=file://[log4j.xml config path] you will get output. We used to generate a config if none was supplied but that was clobbering user supplied configuration.

-Ariel
I`m sorry, I don`t quite
AndrashTM
Feb 27, 2012
I`m sorry, I don`t quite follow you... This is my current run.sh, how should I use that?

CLASSPATH="./:/opt/db/voltdb-2.2.1/lib/*:/opt/db/voltdb-2.2.1/voltdb/*"
export CLASSPATH

javac src/OracleToVolt/Client.java
javac src/OracleToVolt/procedures/Insert.java
javac src/OracleToVolt/procedures/Select.java

java org.voltdb.compiler.VoltCompiler project.xml helloworld.jar

java -Djava.library.path=/opt/db/voltdb/voltdb \
org.voltdb.VoltDB \
catalog helloworld.jar \
deployment deployment.xml \
leader localhost \
license /opt/db/voltdb/voltdb/license.xml
Hi, You need java
aweisberg
Feb 28, 2012
Hi,
You need
java -Djava.library.path=/opt/db/voltdb/voltdb \
-Dlog4j.configuration=file:///opt/db/voltdb/voltdb/log4j.xml \
org.voltdb.VoltDB \
catalog helloworld.jar \
deployment deployment.xml \
leader localhost \
license /opt/db/voltdb/voltdb/license.xml
Alternatively you could use the wrapper script that takes care of this in /opt/db/voltdb/bin
-Ariel
Thanks Ariel! One more
AndrashTM
Feb 29, 2012
Thanks Ariel!

One more thing...


VoltDB has encountered an unrecoverable error and is exiting.
The log may contain additional information.
FATAL 14:32:34,316 [main] HOST: Unable to distribute catalog.


What does Unable to distribute catalog error mean and where is the log file located?
update build.xml to specify log4j configuration
stephen.foster@adcudo.com
Aug 13, 2012
Adding <jvmarg value="-Dlog4j.configuration=file:/opt/voltdb/voltdb/log4j.xml" /> to build.xml will do this also.
Hi Andrash, The issue is
aweisberg
Feb 29, 2012
Thanks Ariel!

One more thing...

VoltDB has encountered an unrecoverable error and is exiting.
The log may contain additional information.
FATAL 14:32:34,316 [main] HOST: Unable to distribute catalog.


What does Unable to distribute catalog error mean and where is the log file located?


Hi Andrash,
The issue is usually that the catalog can't be found at the path specified on the command line. The output you posted is missing the logging that would have printed the exception causing the error.
If you use the log4j.properties file in file:///opt/db/voltdb/voltdb/log4j.properties it will log to a file. The log4j.xml logs to the console.
Ariel