question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto configuration failed

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

12reactions
bvisonlcommented, 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.

5reactions
nullablemindcommented, Apr 27, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto configuration failed #15449 - ariya/phantomjs - GitHub
Hello i got the following error after runnig the below command. root@kali:/home/kali/Desktop# phantomjs hello.js. Auto configuration failed
Read more >
Phantomjs won't install: Autoconfiguration Error - Stack Overflow
When trying to install Phantomjs on Ubuntu 22.04, I get the following error: There are some Q.& A's ...
Read more >
Microsoft Windows Server DNS Auto configuration Failed
1.On the DNS server, click Start, right-click Network, and then click Properties. 2.In the Network and Sharing Center, click Manage network connections. 3.In ......
Read more >
Error "Auto configuration failed" with Snowsql on Redhat ...
Issue Details: Below error message was seen while connecting to Snowflake using Snowsql on Redhat/CentOs 8.3.
Read more >
Auto Configuration failing | WordPress.org
Auto Configuration failing ... The automatic configuration of my CR Woo Plugin is constantly failing. ... Any advice for fixing the problem is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found