Auto configuration failed
See original GitHub issueI’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:
- Created 3 years ago
- Reactions:5
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 calledOPENSSL_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.
I found the same solve. https://github.com/wernight/docker-phantomjs/blob/master/latest/Dockerfile#L32-L35 Thank’s @bvisonl