PhantomJS Issues

1,931 views
Skip to first unread message

Greg Logan

unread,
Feb 15, 2020, 3:52:40 PM2/15/20
to d...@opencast.org
HI all,

If you're running into issues building the admin UI and seeing an error that looks like this:

[INFO] 140164897451648:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory                                                                                                                 
there's a simple cause, and effect.  The cause appears to be PhantomJS not being compatible with (at lest) Debian's default openssl configuration file.  I have not found a way to patch this in our code, but there is a simple workaround: Set the openssl config environment variable.

export OPENSSL_CONF=/*Some Random String*/

You will see errors about being unable to load a file upon phantomjs startup, but it does run and test as expected.

G

Lars Kiesow

unread,
Feb 15, 2020, 4:23:14 PM2/15/20
to d...@opencast.org
Hi Greg,
instead of using PhantonJS which is deprecated for quite a while iirc,
you could switch to Chrome or Firefox by default instead:

https://github.com/opencast/opencast/blob/90d8965a2d0df997af4d1737084b3be06735c18e/.travis.yml#L128-L150

This might mean e.g. Firefox as a build requirement when running with
tests, but that shouldn't be a big problem.

–Lars

Greg Logan

unread,
Feb 15, 2020, 5:55:48 PM2/15/20
to d...@opencast.org
I'm fine with that switch. If things are known broken we should change the default and add the build dep - I spent the time I had for reviews today on attempting to get phantom to run.

Until we've go that switch made, my workaround will get people going, assuming anyone else is seeing this. 

G

--
To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@opencast.org.

Reply all
Reply to author
Forward
0 new messages