I currently have this is config/environment.rb :

DB = Sequel.connect(ENV['SCALINGO_POSTGRESQL_URL']) 
DB.extension(:connection_validator) # is implementing the extension as easy 
as adding this?? 

Le jeudi 9 février 2023 à 17:15:13 UTC+1, Thiebo a écrit :

> thanks Jeremy!
>
> Le jeudi 9 février 2023 à 16:59:50 UTC+1, Jeremy Evans a écrit :
>
>> On Thu, Feb 9, 2023 at 1:21 AM Thiebo <[email protected]> wrote:
>>
>>> Hi ! 
>>>
>>> I have an application that is working fine locally, but on the server 
>>> (env production) raises this error : 
>>>
>>> 2023-02-08 16:39:20.329238105 +0100 CET [web-1] 2023-02-08 15:39:20 - 
>>> Sequel::DatabaseDisconnectError - PG::ConnectionBad: PQconsumeInput() SSL 
>>> error: decryption failed or bad record mac
>>>
>>
>> Generally it means the connection to the database dropped.  Most likely, 
>> it's a network issue between the client and the database server.  Try to 
>> ensure that in your production your application server has a reliable 
>> connection to the database server.  If that becomes problematic, you can 
>> look into the connection_validator extension.
>>
>> Thanks,
>> Jeremy
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/10dff679-6560-4645-8c4c-d4be402001d7n%40googlegroups.com.

Reply via email to