Issues with creating projections

Hello all,

I’m having trouble getting projections working on Ubuntu. I’ve followed the README, and every except projections runs smoothly, but when I try to create a projection, I get “faulted due to ‘js1’” errors.

Everything is built from source, and I’ve tried both master and dev branches. I don’t see any compilation errors when building mono, v8, js1, or EventStore.

  • Ubuntu 12.04.01 LTS

  • Mono JIT compiler version 3.0.2 (master/a56f69f Mon Nov 19 14:49:03 PST 2012)

  • v8 master/a8140cb (Fri Aug 17 15:21:15 2012)

Error:

[02804,17,23:25:26.070] The ‘testing’ projection faulted due to 'Cannot create a projection state handler.

Handler type: JS

Query:

fromAll().whenAny(function(state,event) { return state; });

Message:

js1’

js1

[02804,15,23:25:26.073] The ‘testing’ projection faulted due to ‘js1’

Any ideas?

Thanks!

-Ken

Hi Ken,

Do you have the ES bin directory on LD_LIBRARY_PATH ? The libjs1.so and libv8.so should be dynamically loadable by its name. Read me does not mention this.

-yuriy

Thanks Yuriy, that worked like a charm!

I just needed:

export LD_LIBRARY_PATH="/path/to/EventStore/bin/eventstore/debug/anycpu"

(for others happening upon this thread)