Forum: Building VoltDB Applications

Post: Not able to Start the voltdb server.

Not able to Start the voltdb server.
paresh
Aug 27, 2015
I had set up voltdb on ubuntu 14.04 and it was working fine . I could use sqlcmd and jdbcloader commands as well.
But for some reason it dose'nt start now.
Following is the information displayed on executing voltdb recover command:

Aug 27, 2015 10:39:00 AM org.voltcore.logging.VoltUtilLoggingLogger l7dlog
INFO: host_VoltDB_StartupString
Aug 27, 2015 10:39:00 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Creating voltdbroot directory: /home/paresh/Desktop/voltdbroot
Aug 27, 2015 10:39:00 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Generating default deployment file "/home/paresh/Desktop/voltdbroot/deployment.xml"
Aug 27, 2015 10:39:00 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Build: 5.5 voltdb-5.5-0-g5aa6d47-local Enterprise Edition
Aug 27, 2015 10:39:00 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Command line arguments: org.voltdb.VoltDB recover placementgroup 0 host localhost:3021
Aug 27, 2015 10:39:00 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Command line JVM arguments: -Xmx2048m -Djava.awt.headless=true -Dsun.net.inetaddr.ttl=300 -Dsun.net.inetaddr.negative.ttl=3600 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseTLAB -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseCondCardMark -Dsun.rmi.dgc.server.gcInterval=9223372036854775807 -Dsun.rmi.dgc.client.gcInterval=9223372036854775807 -XX:CMSWaitDuration=120000 -XX:CMSMaxAbortablePrecleanTime=120000 -XX:+ExplicitGCInvokesConcurrent -XX:+CMSScavengeBeforeRemark -XX:+CMSClassUnloadingEnabled -XX:PermSize=64m -Dlog4j.configuration=file:///home/paresh/voltdb-ent-5.5/voltdb/log4j.xml -Djava.library.path=dummyvalue
Aug 27, 2015 10:39:00 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Command line JVM classpath: /home/paresh/voltdb-ent-5.5/voltdb/voltdb-5.5.jar:/home/paresh/voltdb-ent-5.5/lib/jetty-http-7.6.1.v20120215.jar:/home/paresh/voltdb-ent-5.5/lib/jline-2.10.jar:/home/paresh/voltdb-ent-5.5/lib/jsch-0.1.51.jar:/home/paresh/voltdb-ent-5.5/lib/servlet-api-2.5.jar:/home/paresh/voltdb-ent-5.5/lib/slf4j-nop-1.6.2.jar:/home/paresh/voltdb-ent-5.5/lib/jetty-continuation-7.6.1.v20120215.jar:/home/paresh/voltdb-ent-5.5/lib/commons-codec-1.6.jar:/home/paresh/voltdb-ent-5.5/lib/slf4j-api-1.6.2.jar:/home/paresh/voltdb-ent-5.5/lib/tomcat-juli.jar:/home/paresh/voltdb-ent-5.5/lib/commons-logging-1.1.3.jar:/home/paresh/voltdb-ent-5.5/lib/jetty-server-7.6.1.v20120215.jar:/home/paresh/voltdb-ent-5.5/lib/avro-1.7.7.jar:/home/paresh/voltdb-ent-5.5/lib/commons-cli-1.2.jar:/home/paresh/voltdb-ent-5.5/lib/httpcore-4.3.2.jar:/home/paresh/voltdb-ent-5.5/lib/jetty-io-7.6.1.v20120215.jar:/home/paresh/voltdb-ent-5.5/lib/kafka_2.10-0.8.2.1.jar:/home/paresh/voltdb-ent-5.5/lib/protobuf-java-2.5.0.jar:/home/paresh/voltdb-ent-5.5/lib/lz4-1.2.0.jar:/home/paresh/voltdb-ent-5.5/lib/httpasyncclient-4.0.1.jar:/home/paresh/voltdb-ent-5.5/lib/log4j-1.2.16.jar:/home/paresh/voltdb-ent-5.5/lib/commons-lang3-3.0.jar:/home/paresh/voltdb-ent-5.5/lib/tomcat-jdbc.jar:/home/paresh/voltdb-ent-5.5/lib/jna.jar:/home/paresh/voltdb-ent-5.5/lib/metrics-core-2.2.0.jar:/home/paresh/voltdb-ent-5.5/lib/jetty-util-7.6.1.v20120215.jar:/home/paresh/voltdb-ent-5.5/lib/httpclient-4.3.2.jar:/home/paresh/voltdb-ent-5.5/lib/jackson-core-asl-1.9.13.jar:/home/paresh/voltdb-ent-5.5/lib/kafka-clients-0.8.2.1.jar:/home/paresh/voltdb-ent-5.5/lib/groovy-all-2.1.7-indy.jar:/home/paresh/voltdb-ent-5.5/lib/jackson-mapper-asl-1.9.13.jar:/home/paresh/voltdb-ent-5.5/lib/felix.jar:/home/paresh/voltdb-ent-5.5/lib/snappy-java-1.1.1.7.jar:/home/paresh/voltdb-ent-5.5/lib/super-csv-2.1.0.jar:/home/paresh/voltdb-ent-5.5/lib/scala-library-2.10.4.jar:/home/paresh/voltdb-ent-5.5/lib/httpcore-nio-4.3.2.jar:/home/paresh/voltdb-ent-5.5/lib/extension/voltdb-rabbitmq.jar
Aug 27, 2015 10:39:00 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Default network thread count: 2
Aug 27, 2015 10:39:01 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Beginning inter-node communication on port 3021.
Aug 27, 2015 10:39:01 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Attempting to bind to leader ip localhost/127.0.0.1:3021
Aug 27, 2015 10:39:01 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: Connecting to VoltDB cluster as the leader...
Aug 27, 2015 10:39:01 AM org.voltcore.logging.VoltUtilLoggingLogger log
INFO: binding to port /127.0.0.1:7181
Aug 27, 2015 10:39:01 AM org.voltcore.logging.VoltUtilLoggingLogger log
SEVERE: Thread Thread[main,5,main] died : Throwable: java.lang.NoClassDefFoundError: org/apache/log4j/Logger

I was trying to implement jdbc connection to mysql and voltdb.

Please help me resolve the issue.
Thanks
pzhao
Aug 28, 2015
paresh,

Looks like there maybe 2 problems here. The first suggestion would be to go back to the default log4j file and try. Finally, when you're running the recover command, either you need to specify the deployment file if you've specified the voltdbroot path. If not, you'll need to run 'voltdb recover' where your last working directory was. There will be a voltdbroot folder there.

Peter Zhao