Only one project stopped connecting to RedShift.
Users from one squad reported that their project has stopped working completely.
We checked that the environment has an exclamation mark that says "invalid operation database does not exist"
We've tried to edit the environment and when we try to select the database it shows "failed to retrieve the options" and it is greyed out.
The same happens if we try to create a new environment.
This is happening in only one project, and other projects remain working properly.
We've downloaded the server log and it looks like Matillion is trying to put the user name instead of the database name when it tries to connect.
Follow the piece of log:
Caused by: java.sql.SQLException: Environment connection creation failed: [Amazon](500310) Invalid operation: database "here shows username instead database name" does not exist;
at com.matillion.bi.emerald.server.jdbc.connectiontask.AbstractConnectorCreator.newConnection(AbstractConnectorCreator.java:89)
at com.matillion.bi.emerald.server.jdbc.connectiontask.EnvironmentConnectionCreator.create(EnvironmentConnectionCreator.java:49)
at com.matillion.bi.emerald.server.jdbc.connectiontask.SimpleConnectionPool$PooledConnection.initialise(SimpleConnectionPool.java:277)
at com.matillion.bi.emerald.server.jdbc.connectiontask.SimpleConnectionPool.getConnectionFromPool(SimpleConnectionPool.java:123)
at com.matillion.bi.emerald.server.jdbc.connectiontask.SimpleConnectionPool.checkOutConnection(SimpleConnectionPool.java:102)
at com.matillion.bi.emerald.server.jdbc.connectiontask.SimpleConnectionPool.getAvailableConnection(SimpleConnectionPool.java:67)
at com.matillion.bi.emerald.server.jdbc.connectiontask.SimpleConnectionPool.getAvailableConnection(SimpleConnectionPool.java:55)
at com.matillion.bi.emerald.server.jdbc.connectiontask.PooledConnectionExecutor.getConnection(PooledConnectionExecutor.java:67)
... 37 more
Caused by: java.sql.SQLException: [Amazon](500310) Invalid operation: database "usr-maitllion-v4-hub-xxxxx" does not exist;
at com.amazon.redshift.client.messages.inbound.ErrorResponse.toErrorException(Unknown Source)
at com.amazon.redshift.client.InboundDataHandler.read(Unknown Source)
at com.amazon.support.channels.AbstractSocketChannel.readCallback(Unknown Source)
at com.amazon.support.channels.TLSSocketChannel.read(Unknown Source)
Caused by: com.amazon.support.exceptions.ErrorException: [Amazon](500310) Invalid operation: database "usr-maitllion-v4-hub-xxxxx" does not exist;