Hello! I’m trying from this example <https://www.p...
# orm-help
l
Hello! I’m trying from this example https://www.prisma.io/forum/t/prisma-server-as-docker-container/3329/3 to set local graphql server I run into this problem:
prisma_1  | Caused by: java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=db)(port=3306)(type=master) : Connection refused (Connection refused)
. I noticed, that the
db
container is probably not yet running, so the prisma can’t connect to it. Is there a way to extend waiting time?
n
can you connect to the DB directly?
l
Yes, I can
I think I managed to fix that.
Copy code
volumes:
  mysql:
was missing from my docker-compose.yml file
I have different error though, while running
prisma deploy
Copy code
akka.pattern.AskTimeoutException: Ask timed out on [Actor[<akka://single-server/user/$m#-1378336921>]] after [300000 ms]. Sender[null] sent message of type "com.prisma.deploy.migration.migrator.DeploymentProtocol$Schedule".
k
I'm receiving the same issue...here's the full error from the server logs for me:
Copy code
{
  "key": "error/unhandled",
  "requestId": "local:management:cjh1a8tzq00050803wkndanwn",
  "payload": {
    "exception": "akka.pattern.AskTimeoutException: Ask timed out on [Actor[<akka://single-server/user/$m#1287779284>]] after [300000 ms]. Sender[null] sent message of type \"com.prisma.deploy.migration.migrator.DeploymentProtocol$Schedule\".",
    "query": "      mutation($name: String!, $stage: String! $types: String! $dryRun: Boolean $secrets: [String!], $subscriptions: [FunctionInput!], $force: Boolean) {\n        deploy(input: {\n          name: $name\n          stage: $stage\n          types: $types\n          dryRun: $dryRun\n          secrets: $secrets\n          subscriptions: $subscriptions\n          force: $force\n        }) {\n          errors {\n            type\n            field\n            description\n          }\n          warnings {\n            type\n            field\n            description\n          }\n          migration {\n            ...MigrationFragment\n          }\n        }\n      }\n      \nfragment MigrationFragment on Migration {\n  revision\n  steps {\n    type\n    __typename\n    ... on CreateEnum {\n      name\n      ce_values: values\n    }\n    ... on CreateField {\n      model\n      name\n      cf_typeName: typeName\n      cf_isRequired: isRequired\n      cf_isList: isList\n      cf_isUnique: unique\n      cf_relation: relation\n      cf_defaultValue: default\n      cf_enum: enum\n    }\n    ... on CreateModel {\n      name\n    }\n    ... on CreateRelation {\n      name\n      leftModel\n      rightModel\n    }\n    ... on DeleteEnum {\n      name\n    }\n    ... on DeleteField {\n      model\n      name\n    }\n    ... on DeleteModel {\n      name\n    }\n    ... on DeleteRelation {\n      name\n    }\n    ... on UpdateEnum {\n      name\n      newName\n      values\n    }\n    ... on UpdateField {\n      model\n      name\n      newName\n      typeName\n      isRequired\n      isList\n      isUnique: unique\n      relation\n      default\n      enum\n    }\n    ... on UpdateModel {\n      name\n      um_newName: newName\n    }\n  }\n}\n\n    ",
    "variables": "{\"name\":\"default\",\"stage\":\"default\",\"types\":\"type User {\\n  id: ID! @unique\\n  name: String!\\n}\\n\\n\",\"secrets\":null,\"subscriptions\":[]}",
    "code": "0",
    "stack_trace": "akka.pattern.PromiseActorRef$.$anonfun$defaultOnTimeout$1(AskSupport.scala:595)\\n akka.pattern.PromiseActorRef$.$anonfun$apply$1(AskSupport.scala:605)\\n akka.actor.Scheduler$$anon$4.run(Scheduler.scala:140)\\n scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:864)\\n scala.concurrent.BatchingExecutor.execute(BatchingExecutor.scala:109)\\n scala.concurrent.BatchingExecutor.execute$(BatchingExecutor.scala:103)\\n scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:862)\\n akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(LightArrayRevolverScheduler.scala:328)\\n akka.actor.LightArrayRevolverScheduler$$anon$4.executeBucket$1(LightArrayRevolverScheduler.scala:279)\\n akka.actor.LightArrayRevolverScheduler$$anon$4.nextTick(LightArrayRevolverScheduler.scala:283)\\n akka.actor.LightArrayRevolverScheduler$$anon$4.run(LightArrayRevolverScheduler.scala:235)\\n java.lang.Thread.run(Thread.java:748)",
    "message": "Ask timed out on [Actor[<akka://single-server/user/$m#1287779284>]] after [300000 ms]. Sender[null] sent message of type \"com.prisma.deploy.migration.migrator.DeploymentProtocol$Schedule\"."
  }
}
n
thanks @Lotafak @Kurt Aschliman, can you provide a reproduction here: https://github.com/graphcool/prisma/?
l
Hey @nilan. I created an issue: https://github.com/graphcool/prisma/issues/2419. Hope you (or someone else) can help 🙂
👍 1