druso12
Application failed to respond
thank you very much, I thought it was a generic error but actually it was quite specific and could have look it up myself. I solved it by adding this to the app.js config :
const port = process.env.PORT || 8080;
// Starting the server and listening on port 8080
app.listen(port, () => {
console.log(
Server is running on port ${port}
);
});
thank you very much for your support.8 replies
Installing Server Certificates
I see.
From https://www.cockroachlabs.com/docs/stable/connection-parameters sslmode=require
"Force a secure connection. An error occurs if the secure connection cannot be established."
Since I'm not seeing any error it should be connecting securely. I learned something new, thank you for your patience Brody.
My requirement of installing a certificate is not necessary anymore for this case.
But, to get a better understanding of the topic: would it be necessary for other cases, what would be the way to go? Is it a remote case?
18 replies
Installing Server Certificates
thank you for your response Brody. When the application tries to write on one my my tables I get
2023-08-08 00:07:44: Error uploading interaction to database: (psycopg2.OperationalError) connection to server at "gpt-cluster-9009.8nj.cockroachlabs.cloud" (35.205.46.41), port 26257 failed: root certificate file "/root/.postgresql/root.crt" does not exist
Either provide the file or change sslmode to disable server certificate verification.
(Background on this error at: https://sqlalche.me/e/20/e3q8)
18 replies