Friday, February 8, 2013

OrientDB deployment

Publishing the V7 Demo

Demo now available 

There is now an online demo of V7.

Last minute snag

I has a situation where everything worked on my desktop, but when deployed to a virtual server, connection to the OrientDB database was being refused.  The error I was getting was:


java.lang.IllegalStateException: Node id is possible to generate only on machine which have at least one network interface with mac address.
at com.orientechnologies.orient.core.util.OHostInfo.getMac(OHostInfo.java:48)
at com.orientechnologies.orient.core.version.OVersionFactory.<clinit>(OVersionFactory.java:32)
at com.orientechnologies.orient.core.storage.impl.local.OTxSegment.<clinit>(OTxSegment.java:68)
at com.orientechnologies.orient.core.storage.impl.local.OStorageLocalTxExecuter.<init>(OStorageLocalTxExecuter.java:53)
at com.orientechnologies.orient.core.storage.impl.local.OStorageLocal.<init>(OStorageLocal.java:111)
at com.orientechnologies.orient.core.engine.local.OEngineLocal.createStorage(OEngineLocal.java:44)



It turns out that my OpenVZ virtual private server (VPS) does not allocate a MAC address - which is why the failure occurred.

This does raise the question why a single node database needs a MAC address, but apparently this question had already been asked - the fix for it was in the latest snapshot.

So, I've updated the code to use OrientDB 1.4.0-SNAPSHOT and that problem is solved.

Enjoy the demo (but I will admit it does not look as good as the Vaadin 7 demo ....)

No comments:

Post a Comment