Can't connect after database maintenance - heroku

I was using a PostgreSQL database in Heroku until today when they started an automated maintenance in it, then it stopped connecting despite doing it again with the new credentials.
[
{
"definition": "x-x-x-x.compute-1.amazonaws.com",
"reason": "Inconsistent object: connection error",
"name": "source x-x-x-x.compute-1.amazonaws.com",
"type": "source",
"message": "connection to server at \"x-x-x-x.compute-1.amazonaws.com\" (x-x-x-x), port 5432 failed: FATAL: password authentication failed for user \"databasename\"\nconnection to server at \"x-x-x-x.compute-1.amazonaws.com\" (x-x-x-x), port 5432 failed: FATAL: no pg_hba.conf entry for host \"x-x-x-x\", user \"databasename\", database \"databasename\", no encryption\n"
}
]
I am trying to open it from DataGrip (a database client) like I did before just setting the new credentials given by the admin panel in the Settings section of the Heroku Dashboard.
I tried setting both the connection URL and the parameters manually with no success.
The project has an Hasura client linked which was working nicely before the maintenance too.

Related

Laravel forge server disconnected

We received the following error when connecting to the server:
WHEN CONNECTING AS "root" USER:
with Digitalocean droplet
Error Output
Server Disconnected
We had trouble connecting to your server. Typically, this means there is a problem with the SSH keys on the server. Or, your server may be prompting for a password when Forge attempts to SSH in as the root user.
Recently reset the root password? If you have recently reset your root password via the DigitalOcean control card, this will break Forge's access to your server. You must SSH into your server and set a new password for the root user.
We received the following error when connecting to the server:
WHEN CONNECTING AS "root" USER:
Please make sure that the following SSH key is placed in both the /home/forge/.ssh/authorized_keys file and the /root/.ssh/authorized_keys file on your server.

PostgresSQL SETPGPASSWORD not setting password

I am trying to push to Heroku and I got the password prompt with the wrong user like many people, so I went and did
SET PGUSER=[pg_username]
SET PGPASSWORD=[pg_password]
I am putting in the command:
heroku pg:push mylocaldb DATABASE_URL --app my-app
It changed the username but the password didn't work and I get the error message:
connection to database "mylocaldb" failed: FATAL: password authentication failed for user "Janet"
How do I change/find the password?
my pg_hba file looks like this :
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
host all all [redacted] trust
# IPv6 local connections:
host all all [redacted] md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
host replication all [redacted] trust
host replication all [redacted] trust

Installing Laravel with a database on another system

We have a local network, in the server's system I install SQL Server 2017, now I must install Laravel in my system with the server's database but I got this error
Connection failed: SQLSTATE[08001]: [Microsoft][ODBC Driver 13 for SQL Server]SQL Server Network Interfaces: Connection string is not valid [87].
my config
SQL Host : DESKTOP-Q03NUTO\LS
SQL Port : 1707
SQL Login: sa
SQL Password: ***

"Unknown Host" - Connecting to PostgreSQL database in SQL Shell (Windows)

I've previously been using PostgreSQL in Ubuntu using:
$sudo -i -u postgres
to access postgres through the terminal to create a role and database. And then able to log in and make changes using:
$sudo -u [dbname] psql
However now I need to use PostgreSQL with LabVIEW so I've had to download PostgreSQL on a Windows PC. I can access the database through Pgadmin and have created a database but when I go into SQL shell it comes up with:
Server [localhost]:
Database [postgres]:
Port [5432]:
Username [postgres]:
I'm not sure if this has anything to do with roles, as I haven't created one for the windows database. But I can't even get past the above to create a role or make any changes in the command prompt.
When I type my computer host name, it says
psql: could not translate host name "Lisa" to address: Unknown host
It says I am connected on PgAdmin and I am able to create databases and tables through the interface, but I can't figure out how to access it in the SQL Shell (psql).
Entered server as localhost IP.
Server [localhost]: 127.0.0.1
Database [localhost]: [dbname]
Port [5432]: 5432
Username [postgres]: [username]

SFTP Connection Issue "Connection reset by peer"

I am unable to connect to Secured FTP server Using Filezilla and psfTP too.
While connecting one popup message comes for Certification, then I find this error
Error Message:--
Status: Connecting to idx.XYZ.com...
Response: fzSftp started
Command: open "abc_mnp#idx.XYZ.com" 22
Command: Pass: ****
*Error: Network error: Connection reset by peer
Error: Could not connect to server*
Any Idea guys..
I feel this is an Issue with Server.

Resources