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.

can't connect to heroku db server with SSL

See original GitHub issue

I’m probably doing something wrong.

I can connect to a DB hosted by Heroku from an EC2 box withpsql, but the application crashes on startup attempting to make the SSL connection to the database.

What’s odd is that the application runs fine from my machine.

Error: The server does not support SSL connections
    at Socket.<anonymous> (/home/bitnami/source/server/node_modules/pg.js/lib/connection.js:70:33)
    at g (events.js:175:14)
    at EventEmitter.emit (events.js:117:20)
    at Socket.<anonymous> (_stream_readable.js:746:14)
    at EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Readable.push (_stream_readable.js:127:10)
    at TCP.onread (net.js:526:21)

looking at the code there - the response looks like this:

< RESPONSE CODE: 51S7����~vK8Uv\w�V����`1|��#�� �#����0��0��    �v�\��-�0
<       *�H��
< 0'1%0#Uip-<redacted-IP>.ec2.internal0
< 140318000523Z
< 240315000523Z0'1%0#Uip-<redacted-IP>.ec2.internal0�"0
<       *�H��
< �0�
< ��/�6�`1�޹�JJ/�Y ��kw:%Ί��4\����"ҹ~�v��&d�>�������}Y��ZCɰ�p�{�����Z6���"$�%3d�Q���<��&|7�Ýb�sf+
< :QwC�X6�%~�����,��0���T�).��*82�SXa�w�~ا����/g��w{�l@�>Q��j�X����i��P�����������Ε�m���&۞�����!�h/�     ��SJ�a�z�)� ff�Y&~C�0
<       *�H��
< ��]��"�0LSk#k��.��L����F�]"%Z_�
< ��Ic���|��6���~ٽ�2%3n0 ���    �3��m�����R5�!M`�,�SJ��W~�cm;~+�
< LnJaL�k���`X�Hc�a
< R�x����Z{���M����{�kK;�{��|,���#.-��š�I�w6����v�)���1r�������˞l����1a��&���<�4{@�����3�~X�zj�꽎z���X�#��d�W�����XNI�� ����6k3l8
< E|��|[-����#�C��[���U��]8�4�|WC�l�3!,�*�<��)@�|��
< rֆ��)zʕٖ���
< P�F=f�]A��|��K"&���^�U�/x����F��^��UP��տ�����%")ύ;�3zs��r^&����dT�f�xM�}�B���<�g���,�l{Y�d��GHw9a�"|���Z`�9��g�N���ɠ
< �u����Ӗz ����3w��ԅ��?.�q�Ol�n��%5�0��L(�u9�����;����k͍�Zv ���k����K�����Ns�FP�)%4�2�ABsg����&��mOA�X��C!D�]���d�I��iP"��8���*��5.s��J��Γ������e>B�GW������]�NO�2�
< �t��U$�NMV'%���V0�Z���Ǖq��HsG��CK�y�b5%���]2c��K�ۊzc.�%��~5y?2�9������

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
junyada100commented, Sep 11, 2018

I know this is an old closed issue but google leads me here when I tried to solve the same problem. I noticed that the error will be raised if the heroku instance is in sleep (free tier insance), after wake it up, the error will be gone. Hope this comment can help.

0reactions
sevensfivecommented, Sep 17, 2018

I know this is an old closed issue but google leads me here when I tried to solve the same problem. I noticed that the error will be raised if the heroku instance is in sleep (free tier insance), after wake it up, the error will be gone. Hope this comment can help.

Is there any way to solve this problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't my third-party utility connect to Heroku Postgres with ...
This tool is trying to use SSL verification but the connection is failing. You are trying to find the CA files or certificate...
Read more >
Can't connect to Heroku Postgres with ssl - node.js
I'm hosting a node.js backend and Postgres database on Heroku. After Heroku started requiring ssl, any requests to the database stopped ...
Read more >
Connect to Heroku Postgres without SSL validation - JetBrains
Connect to Heroku Postgres without SSL validation · ssl:true : to validate both the SSL certificate and verify the server. · sslmode:verify-ca : ......
Read more >
Connect to PostgreSQL on Heroku Using ODBC and JDBC ...
Go to Security Tab, select Encryption Method as 1-SSL and uncheck Validate Server Certificate as shown below. NOTE: Disabling server certificate validation ...
Read more >
Unable to connect to Heroku postgres from outside of ... - GitHub
In order to connect to Heroku postgres from outside of Heroku we need to use SSL. So, I'm getting the following message when...
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