I’ve been putting together a development environment in a docker container based on Debian 11 (“bullseye”). I’ve got mod-plugin-builder working and mod-sdk almost working - I can build and deploy an icon but attempting to generate screenshots on the Icon Screenshot tab produces an error:
Auto configuration failed
140078579771328: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
140078579771328:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140078579771328:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
140078579771328:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf
This seems to be caused by PhantomJS requiring an shared object related to SSL config that isn’t included in the latest releases of Debian and/or OpenSSL. Googling for the error brings up a lot of reports of PhantomJS not working after upgrading to Debian 10 or above. It also brings up some ‘solutions’ that involve settings the OPENSSL_CONF environment variable to /dev/null or an empty file. However, while this prevents the error, it doesn’t actually get PhantomJS to work and take the screenshots.
At least in the short to medium term, is doesn’t look like PhantomJS is being maintained, so it’s unlikely to get a fix for this issue: see https://github.com/ariya/phantomjs/issues/15344.
Has anyone else hit this problem? I’ve been looking for a workaround for a couple of days now and am drawing a blank.