# VAPOR crashes when reading files with OpenSSL error

**URL:** <https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141>\
**Category:** Uncategorized\
**Created:** [October 7, 2021, 6:46pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141 "2021-10-07T18:46:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreasPrein](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@AndreasPrein](https://vapor.discourse.group/u/AndreasPrein)\
**Post date:** [October 7, 2021, 6:46pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/1 "2021-10-07T18:46:32Z")

</div>

I am following the steps described on this [website](https://www2.cisl.ucar.edu/resources/computational-systems/casper/using-remote-desktops-casper-vnc) and I am able to launch VAPOR in the remote terminal (using TigerVNC) on NCAR’s Casper cluster. However, when I try to load data (I tried wrfout netCDFs and preprocessed vdc files) VAPOR is crashing with the following error message:

qt.network.ssl: Incompatible version of OpenSSL  
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed  
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed  
VAssert(rc \>= 0) failed in CalcEngineMgr.cpp, line 161

Do you have any idea why this is happening?

Thank you very much for your help!  
Andy

---

<div class="post-metadata">

**Author:** ![pearse](https://yyz2.discourse-cdn.com/free1/user_avatar/vapor.discourse.group/pearse/32/177_2.png) [@pearse](https://vapor.discourse.group/u/pearse)\
**Post date:** [October 11, 2021, 4:12pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/2 "2021-10-11T16:12:05Z")

</div>

Can you share a link to the file(s) on glade that are crashing? This could be a bug. Our test datasets for WRF have been loading without crashing and this could be an edge case.

---

<div class="post-metadata">

**Author:** ![AndreasPrein](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@AndreasPrein](https://vapor.discourse.group/u/AndreasPrein)\
**Post date:** [October 11, 2021, 4:29pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/3 "2021-10-11T16:29:52Z")

</div>

Hi Pearse,  
Thanks for your reply. I copied the wrfout netCDF files and the .vdc file that I tried to import to - /glade/scratch/prein/tmp/VAPOR/4km  
In the meantime I figured out that I can read those files when I load VAPORv3.0 but newer versions are crashing when I import/load data.  
Thanks!  
Andy

---

<div class="post-metadata">

**Author:** ![pearse](https://yyz2.discourse-cdn.com/free1/user_avatar/vapor.discourse.group/pearse/32/177_2.png) [@pearse](https://vapor.discourse.group/u/pearse)\
**Post date:** [October 11, 2021, 5:02pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/4 "2021-10-11T17:02:22Z")

</div>

Hmm I’m able to load the VDC and wrf files.

I’m using TurboVNC though. The error message you posted (CalcEngineMgr.cpp:161) indicates that this is a Vapor issue, not a VNC issue.

Are you using the version of Vapor packaged on Casper? When I do

```auto
module load vapor
vapor /glade/scratch/prein/tmp/VAPOR/4km/wrfout_d01_2012-05-31_00\:*

```

I can render the following:

 ![Screen Shot 2021-10-11 at 11.00.52 AM](https://global.discourse-cdn.com/free1/uploads/vapor/original/1X/9dc66f0a68abec6f960827c8d58b8cab85a1a101.jpeg)

Could you issue the following commands and let me know what version of Vapor is being run?

```auto
module load vapor
vaporversion -long

```

---

<div class="post-metadata">

**Author:** ![AndreasPrein](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@AndreasPrein](https://vapor.discourse.group/u/AndreasPrein)\
**Post date:** [October 11, 2021, 5:24pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/5 "2021-10-11T17:24:58Z")

</div>

The image looks correct.  
I opened a remote desktop using TurboVNC this time but I get the same error message as when using TigerVNC.

vaporversion -long outputs:  
Vapor Release version 3.5.0.1d3f2d9 (2021-08-03T15:11:38Z)

I tried using the same command to load the wrfout files as you do above and get the same error message as before (see screenshot).

 ![Screen Shot 2021-10-11 at 11.21.17 AM](https://global.discourse-cdn.com/free1/uploads/vapor/original/1X/40564b6b7a5af8f85f47738df373a8a4ea7ca203.png)

Thanks,  
Andy

---

<div class="post-metadata">

**Author:** ![pearse](https://yyz2.discourse-cdn.com/free1/user_avatar/vapor.discourse.group/pearse/32/177_2.png) [@pearse](https://vapor.discourse.group/u/pearse)\
**Post date:** [October 11, 2021, 6:07pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/6 "2021-10-11T18:07:56Z")

</div>

Interesting. Looks like a Python issue. Could you attach the file that’s generated from the following command?

```auto
printenv > printenv.txt

```

---

<div class="post-metadata">

**Author:** ![AndreasPrein](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@AndreasPrein](https://vapor.discourse.group/u/AndreasPrein)\
**Post date:** [October 11, 2021, 7:17pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/7 "2021-10-11T19:17:04Z")

</div>

The printenv.txt file is here - /glade/u/home/prein/printenv.txt  
Sorry, I did not know how to attach it.

---

<div class="post-metadata">

**Author:** ![pearse](https://yyz2.discourse-cdn.com/free1/user_avatar/vapor.discourse.group/pearse/32/177_2.png) [@pearse](https://vapor.discourse.group/u/pearse)\
**Post date:** [October 11, 2021, 7:24pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/8 "2021-10-11T19:24:29Z")

</div>

No problem. I see a few python flags in that configuration file and I think this could be the issue. Could you try the following and then reloading Vapor? Thanks for your patience.

```auto
module unload vapor
module unload ncarenv
module load vapor
vapor /glade/scratch/prein/tmp/VAPOR/4km/wrfout_d01_2012-05-31_00\:*

```

---

<div class="post-metadata">

**Author:** ![AndreasPrein](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@AndreasPrein](https://vapor.discourse.group/u/AndreasPrein)\
**Post date:** [October 11, 2021, 7:46pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/9 "2021-10-11T19:46:40Z")

</div>

These commands did not solve the issue but sourcing my own Python build instead of using the default build fixed it.

---

<div class="post-metadata">

**Author:** ![pearse](https://yyz2.discourse-cdn.com/free1/user_avatar/vapor.discourse.group/pearse/32/177_2.png) [@pearse](https://vapor.discourse.group/u/pearse)\
**Post date:** [October 11, 2021, 8:22pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/10 "2021-10-11T20:22:39Z")

</div>

Thanks Andreas. I’ll make a note of this. Let me know if you hit another snag.

---

<div class="post-metadata">

**Author:** ![AndreasPrein](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@AndreasPrein](https://vapor.discourse.group/u/AndreasPrein)\
**Post date:** [October 11, 2021, 8:35pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/11 "2021-10-11T20:35:10Z")

</div>

Thank you, Pearse!  
I would have never figured out without you that this problem is related to Python.  
Best,  
Andreas

---

<div class="post-metadata">

**Author:** ![kgurer](https://avatars.discourse-cdn.com/v4/letter/k/f04885/32.png) [@kgurer](https://vapor.discourse.group/u/kgurer)\
**Post date:** [November 11, 2021, 8:30pm UTC](https://vapor.discourse.group/t/vapor-crashes-when-reading-files-with-openssl-error/141/12 "2021-11-11T20:30:57Z")

</div>

Hello,

I installed Centos 7 from scratch to my workstation that has 128 Gb of RAM and 6 cpus with 24 cores each. uname -a gives:

“Linux localhost.localdomain 3.10.0-1160.45.1.el7.x86\_64”

All system software was updated. I then brought the latest (today, 11/11/21) “VAPOR3-3.5.0-Centos7-Weekly.sh” and extracted the files. When I launch vapor, I am also experiencing ssl error as with other folks mentioned ob vapor forum as well as by others on the Internet via different software:

qt.network.ssl: QSslSocket: cannot resolve OPENSSL\_init\_ssl  
qt.network.ssl: QSslSocket: cannot resolve OPENSSL\_init\_crypto  
qt.network.ssl: QSslSocket: cannot resolve ASN1\_STRING\_get0\_data  
qt.network.ssl: QSslSocket: cannot resolve EVP\_CIPHER\_CTX\_reset  
qt.network.ssl: QSslSocket: cannot resolve RSA\_bits  
qt.network.ssl: QSslSocket: cannot resolve OPENSSL\_sk\_new\_null  
qt.network.ssl: QSslSocket: cannot resolve OPENSSL\_sk\_push  
qt.network.ssl: QSslSocket: cannot resolve OPENSSL\_sk\_free  
qt.network.ssl: QSslSocket: cannot resolve OPENSSL\_sk\_num  
qt.network.ssl: QSslSocket: cannot resolve OPENSSL\_sk\_pop\_free  
qt.network.ssl: QSslSocket: cannot resolve OPENSSL\_sk\_value  
.  
.  
.  
Apparently, this problem is quite common. I searched the solutions online but couldn’t apply a suitable one to my problem. When I checked the vapor forum, a solution was offered by one of the vapor users, stating that he resolved the same ssl problem when he installed python:

* * *

[pearse](https://vapor.discourse.group/u/pearse)

No problem. I see a few python flags in that configuration file and I think this could be the issue. Could you try the following and then reloading Vapor? Thanks for your patience.

```auto
module unload vapor
module unload ncarenv
module load vapor
vapor /glade/scratch/prein/tmp/VAPOR/4km/wrfout_d01_2012-05-31_00\:*

```

[![](https://global.discourse-cdn.com/free1/uploads/vapor/original/1X/b77cfd98d819034e224cffb4010d185d351f017a.png)](https://vapor.discourse.group/u/AndreasPrein)

[AndreasPrein](https://vapor.discourse.group/u/AndreasPrein)

These commands did not solve the issue but sourcing my own Python build instead of using the default build fixed it.

* * *

Since the error states that qt.network cannot resolve openssl, then I updated qt.x86\_64 and also installed qt.i686. Subsequently, I installed ssl and python by following this link:

[https://docs.python.org/3/using/unix.html](https://docs.python.org/3/using/unix.html)

I put the path for ssl and python to the system PATH

export PATH="/usr/local/bin:/usr/local/python-3.9.8/bin:/usr/local/custom-openssl/bin:$PATH"

and put VAPOR-Deps to /usr/local and defined library path:

```
export LD_LIBRARY_PATH="/usr/local/VAPOR-Deps:/usr/lib64:$LD_LIBRARY_PATH"

```

But the ssl problem persists. Was what I did the right action to resolve the problem? What or what else should do?

Thanks for your help.

Kemal.
