# Future timeout when starting the sandbox with persistence

**URL:** <https://forum.canton.network/t/future-timeout-when-starting-the-sandbox-with-persistence/449>\
**Category:** App Development\
**Tags:** sandbox\
**Created:** [May 13, 2020, 8:09am UTC](https://forum.canton.network/t/future-timeout-when-starting-the-sandbox-with-persistence/449 "2020-05-13T08:09:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![georg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/georg/32/368_2.png) [@georg](https://forum.canton.network/u/georg)\
**Post date:** [May 13, 2020, 8:09am UTC](https://forum.canton.network/t/future-timeout-when-starting-the-sandbox-with-persistence/449/1 "2020-05-13T08:09:43Z")

</div>

When I run the sandbox with persistence against a Postgres database I see the following error repeatedly on startup:

```haskell
INFO: No ledger end found, assuming empty database. Skipping migration.
Exception in thread "main" java.util.concurrent.TimeoutException: Futures timed out after [1 minute]
        at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:255)
        at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:259)
        at scala.concurrent.Await$.$anonfun$result$1(package.scala:215)
        at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)
        at scala.concurrent.Await$.result(package.scala:142)
        at com.daml.resources.ProgramResource.$anonfun$run$1(ProgramResource.scala:40)
        at com.daml.resources.ProgramResource.$anonfun$run$1$adapted(ProgramResource.scala:29)
        at com.daml.logging.LoggingContext$.newLoggingContext(LoggingContext.scala:15)
        at com.daml.resources.ProgramResource.run(ProgramResource.scala:29)

```

Ultimately, the sandbox seems to start up properly, but should I be worried about those errors?

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [May 13, 2020, 8:26am UTC](https://forum.canton.network/t/future-timeout-when-starting-the-sandbox-with-persistence/449/2 "2020-05-13T08:26:56Z")

</div>

1. Can you confirm that, as the log suggests, you are running against a pristine database?
2. What SDK version are you using?
3. Can you use the same JDBC connection string you are using in another tool and confirm that it works?

---

<div class="post-metadata">

**Author:** ![georg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/georg/32/368_2.png) [@georg](https://forum.canton.network/u/georg)\
**Post date:** [May 13, 2020, 8:55am UTC](https://forum.canton.network/t/future-timeout-when-starting-the-sandbox-with-persistence/449/3 "2020-05-13T08:55:55Z")

</div>

> [@stefanobaghino-da](#):
>
> Can you confirm that, as the log suggests, you are running against a pristine database?

Yes, it’s freshly created.

> [@stefanobaghino-da](#):
>
> What SDK version are you using?

v1.0.1

> [@stefanobaghino-da](#):
>
> Can you use the same JDBC connection string you are using in another tool and confirm that it works?

I don’t have a Java program that takes the exact connection string, but using `psql` with the same parameters I can see that the DB got initialized:

```List
 Schema | Name | Type | Owner
--------+----------------------------------------------+-------+-----------
 public | configuration_entries | table | damlonsql
 public | contract_data | table | damlonsql
 public | contract_divulgences | table | damlonsql
 public | contract_key_maintainers | table | damlonsql
 public | contract_keys | table | damlonsql
 public | contract_observers | table | damlonsql
 public | contract_signatories | table | damlonsql
 public | contract_witnesses | table | damlonsql
 public | contracts | table | damlonsql
 public | disclosures | table | damlonsql
 public | flyway_schema_history | table | damlonsql
 public | ledger_entries | table | damlonsql
 public | ledger_flyway_schema_history | table | damlonsql
 public | ledger_log | table | damlonsql
 public | ledger_meta | table | damlonsql
 public | ledger_state | table | damlonsql
 public | package_entries | table | damlonsql
 public | packages | table | damlonsql
 public | parameters | table | damlonsql
 public | participant_command_completions | table | damlonsql
 public | participant_command_submissions | table | damlonsql
 public | participant_event_flat_transaction_witnesses | table | damlonsql
 public | participant_event_witnesses_complement | table | damlonsql
 public | participant_events | table | damlonsql
 public | parties | table | damlonsql
 public | party_entries | table | damlonsql

```

So I’m wondering if those errors are even relevant. I haven’t tried submitting commands against it yet, so can’t say if it actually works.

---

<div class="post-metadata">

**Author:** ![SamirTalwar](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/samirtalwar/32/374_2.png) [@SamirTalwar](https://forum.canton.network/u/SamirTalwar)\
**Post date:** [May 13, 2020, 3:37pm UTC](https://forum.canton.network/t/future-timeout-when-starting-the-sandbox-with-persistence/449/4 "2020-05-13T15:37:28Z")

</div>

You can probably ignore the error. It was fixed in [PR #5564](https://github.com/digital-asset/daml/pull/5564) and will be shipped as part of DAML SDK v1.1.1 (hopefully later today).
