Phantomjs: Auto configuration failed

Created on 25 Aug 2020  路  8Comments  路  Source: ariya/phantomjs

Hello i got the following error after runnig the below command

root@kali:/home/kali/Desktop# phantomjs hello.js
Auto configuration failed
140356851656640: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
140356851656640:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140356851656640:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
140356851656640:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

Most helpful comment

In my case, the line was not commented out. What helped me is:

$ OPENSSL_CONF=/etc/ssl phantomjs --version

Debian 10, PhantomJS 2.1.1.

Auto configuration failed
139776298270336: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
139776298270336:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
139776298270336:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
139776298270336:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

All 8 comments

@Aaryan9898 Did you solve the problem, and if so, would you mind sharing the solution? Thanks in advance.

Yes the following worked for me
Just Uncomment the following line putting # in /etc/ssl/openssl.cnf
[default_conf]

ssl_conf = ssl_sect

In my case, the line was not commented out. What helped me is:

$ OPENSSL_CONF=/etc/ssl phantomjs --version

Debian 10, PhantomJS 2.1.1.

Auto configuration failed
139776298270336: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
139776298270336:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
139776298270336:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
139776298270336:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

I am having the same issue. None of those things worked for me :(

Just had the same issue a few moments ago. Using OPENSSL_CONF=/etc/ssl fixed it for me.

I wonder what is causing this as I didn't update any specific packages. Do you have any idea?

Most probably related to openssl-1.1.1: See https://wiki.debian.org/ContinuousIntegration/TriagingTips/openssl-1.1.1 for more information.

On Debian, the problem occurs with versions >= 10 (buster). On Ubuntu LTS with versions >= 20.04. https://github.com/ariya/phantomjs/issues/15449#issuecomment-680228630 _should_ work.

@JanTrotnow Didn't update any npm packages? OS packages? What operating system? Do you have unattended-upgrades installed?

The issue should be re-opened until we undertand it and find out, who is responsible for fixing it.

Please re-open

Was this page helpful?
0 / 5 - 0 ratings