when I try to do `prisma deploy` I get: ``` ERROR:...
# orm-help
c
when I try to do
prisma deploy
I get:
Copy code
ERROR: GraphQL Error (Code: 503)

{
  "error": "<html>\r\n<head><title>503 Service Temporarily Unavailable</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>503 Service Temporarily Unavailable</h1></center>\r\n</body>\r\n</html>\r\n",
  "status": 503
}
h
@captaindaylight Are you trying to deploy to the demo servers? Are you still facing this?
c
nope, I followed this tutorial and set something up on fargate https://www.prisma.io/tutorials/deploy-prisma-to-aws-fargate-ct14
h
Can you tell me on which step you are getting this error?
Please check the server logs in cloudwatch > logs in AWS
c
I’m seeing this:
Copy code
Exception in thread "main" java.sql.SQLTransientConnectionException: database - Connection is not available, request timed out after 5000ms.

14:29:54
at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:548)

14:29:54
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:186)

14:29:54
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:145)

14:29:54
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:83)

14:29:54
at slick.jdbc.hikaricp.HikariCPJdbcDataSource.createConnection(HikariCPJdbcDataSource.scala:14)

14:29:54
at slick.jdbc.JdbcBackend$BaseSession.<init>(JdbcBackend.scala:453)

14:29:54
at slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:46)

14:29:54
at slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:37)

14:29:54
at slick.basic.BasicBackend$DatabaseDef.acquireSession(BasicBackend.scala:249)

14:29:54
at slick.basic.BasicBackend$DatabaseDef.acquireSession$(BasicBackend.scala:248)

14:29:54
at slick.jdbc.JdbcBackend$DatabaseDef.acquireSession(JdbcBackend.scala:37)

14:29:54
at slick.basic.BasicBackend$DatabaseDef$$anon$2.run(BasicBackend.scala:274)

14:29:54
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

14:29:54
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

14:29:54
at java.lang.Thread.run(Thread.java:748)
Also I guess I’m seeing here an alarm on RDS too,
State changed to ALARM at 2019/05/14. Reason: Threshold Crossed: 2 datapoints
h
This error implies your database is not not taking connections from prisma
You used one of our database templated or it is your own db
If yes, I think you have a strict rule for connection limit
c
I used prisma’s database template
for postgres
h
Hmm
try deleting and recreating that stacks
from cloudformation
c
just RDS or the or the ECS cluster too
h
Both
c
k
will report back in 30 or so
I think the issue is that in the fargate.yml has this hardcoded
Copy code
DbConnector:
    Type: String
    Default: mysql
and I was using postgres
h
I think it is configurable
It should ask for that when you create the template
mysql is the default, you will need to change that to postgres when you apply the template
c
yup you’re right
the problem that I’m running into now is that I can’t configure the VPC that I want to run on
not sure how to configure that with this cloudformation script