libjs1.so issues

Hi all,

I just tried running the event store in a docker image. All seems well, until I try to create projection. I get the following error (on STDOUT):

“The projection subsystem failed to load a libjs1.so/js1.dll/… or one of its dependencies. The original error message is: js1’”

I created a docker container with the following docker file (changing line 11 in “RUN apt-get install -y git subversion”):

https://github.com/pjvds/Dockerfiles/blob/master/EventStore

Some information about the system running the application:

ES VERSION: configuration=release (master/02af8bb647aade441c4507eb958ffb0ffac99212, Thu, 6 Mar 2014 15:22:57 +0200)

root@ba1360048028:/# uname -a

Linux ba1360048028 3.13.6-1-ARCH #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014 x86_64 x86_64 x86_64 GNU/Linux

root@ba1360048028:/# cat /etc/lsb-release

DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=12.04

DISTRIB_CODENAME=precise

DISTRIB_DESCRIPTION=“Ubuntu 12.04 LTS”

root@ba1360048028:/# mono --version

Mono JIT compiler version 3.1.2 (tarball Tue Mar 11 12:39:32 UTC 2014)

Copyright © 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com

TLS: __thread

SIGSEGV: altstack

Notifications: epoll

Architecture: amd64

Disabled: none

Misc: softdebug

LLVM: supported, not enabled.

GC: sgen

root@ba1360048028:/# locate js1

/dev/input/js1

/var/local/EventStore/bin/eventstore.tests/release/anycpu/libjs1.so

/var/local/EventStore/bin/eventstore/release/anycpu/libjs1.so

/var/local/EventStore/src/EventStore/EventStore.Projections.Core/v8/js1.cs

/var/local/EventStore/src/EventStore/EventStore.Projections.v8Integration/js1.cpp

/var/local/EventStore/src/EventStore/EventStore.Projections.v8Integration/js1.h

/var/local/EventStore/src/EventStore/EventStore.Projections.v8Integration/js1.ii

/var/local/EventStore/src/EventStore/EventStore.Projections.v8Integration/js1.o

/var/local/EventStore/src/EventStore/EventStore.Projections.v8Integration/js1.s

/var/local/EventStore/src/EventStore/libs/libjs1.so

/var/local/EventStore/src/EventStore/Scripts/v8/build-js1.sh

Any pointers to what might be wrong or how to debug it? Some googling only brought up old threads so far.

Best,

Alexander

what is your LD_LIBRARY_PATH set to?

Ok, that was the problem!

root@9c0b06e1fd2f:/# echo $LD_LIBRARY_PATH

“/var/local/EventStore/bin/eventstore/release/anycpu:$LD_LIBRARY_PATH”

I’ve corrected it to be:

“/var/local/EventStore/bin/eventstore/release/anycpu”

For those interested, I’ve put up the Dockerfile that builds a container that works on GitHub:
https://github.com/asm89/docker-event-store

Makes it easy to try things out if you already have docker installed.

Using the automated build system of index.docker.io there is also a docker image available to pull now.

https://index.docker.io/u/asm89/event-store/

If you have docker running, all you need to do to give it a spin is:

$ docker pull asm89/event-store

$ docker run asm89/event-store

Then find the ip address of the running container and check out the web interface:

http://:2113, for example: http://172.16.42.2:2113

Have fun!