Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto configuration failed #563

Open
ZBilel opened this issue Apr 1, 2020 · 7 comments
Open

Auto configuration failed #563

ZBilel opened this issue Apr 1, 2020 · 7 comments

Comments

@ZBilel
Copy link

ZBilel commented Apr 1, 2020

I'm trying to build a simple pdf using this code :

...
 pdf.create(html).toStream(function(err, stream){
            if (err) reject(err) ;
            else  stream.pipe(fs.createWriteStream(path.join(__dirname, '../../../assets/docs/')+data.link+'.pdf'));
          });
...

but I get this error message

Error: html-pdf: Received the exit code '1'

    cc-server_1  | Auto configuration failed
    cc-server_1  | 139666354437760: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
    cc-server_1  | 139666354437760:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
    cc-server_1  | 139666354437760:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
    cc-server_1  | 139666354437760:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf
    cc-server_1  |
    cc-server_1  |     at ChildProcess.respond (/usr/src/app/node_modules/html-pdf/lib/pdf.js:121:31)
    cc-server_1  |     at ChildProcess.emit (events.js:311:20)
    cc-server_1  |     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)

the running environment is
os : Ubuntu 18.04.3 LTS
node : v8.10.0
html-pdf : latest

@dahituc
Copy link

dahituc commented Jul 2, 2020

Faced same issuse on WSL, but worked fine on Windows machine.

@bvisonl
Copy link

bvisonl commented Oct 20, 2020

This was happening to me too on WSL. I managed to make it work with #531 .

I basically created an empty file in /tmp/openssl.cnf and then added an environment variable called OPENSSL_CONF pointing to that file.

export OPENSSL_CONF=/tmp/openssl.cnf and then I stopped & started my node server.

Obviously in a production environment you would have to properly configure openssl if you are using it.

@yogithesymbian
Copy link

me too , i got same error

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

    at ChildProcess.respond (/var/www/html/nodeJS/node-js-jwt-auth/node_modules/html-pdf/lib/pdf.js:121:31)
    at ChildProcess.emit (events.js:198:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)

@nullablemind
Copy link

nullablemind commented Apr 27, 2021

I found the same solve.
https://github.com/wernight/docker-phantomjs/blob/master/latest/Dockerfile#L32-L35
Thank's @bvisonl

gbhrdt added a commit to gbhrdt/meteor-launchpad that referenced this issue Nov 15, 2021
@wilav-dev
Copy link

Same issue any update?

@maxizhukov
Copy link

Same issue, does somebody knows how to fix it?

@armujahid
Copy link

ENV OPENSSL_CONF=/etc/ssl/ solved this issue for me in containerized environment. Source: https://gist.github.com/julionc/7476620?permalink_comment_id=3877488#gistcomment-3877488

NhutTran98 pushed a commit to NhutTran98/meteor-launchpad that referenced this issue Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants