# Error while apply full schema dump

**URL:** <https://forum.yugabyte.com/t/error-while-apply-full-schema-dump/2509>\
**Category:** General\
**Created:** [February 20, 2024, 6:17am UTC](https://forum.yugabyte.com/t/error-while-apply-full-schema-dump/2509 "2024-02-20T06:17:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anurag\_trustt](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@anurag\_trustt](https://forum.yugabyte.com/u/anurag_trustt)\
**Post date:** [February 20, 2024, 6:17am UTC](https://forum.yugabyte.com/t/error-while-apply-full-schema-dump/2509/1 "2024-02-20T06:17:23Z")

</div>

while applying the full dump of yb DB getting the error: `num_tablets should be greater than 0. Client : would need to wait for master leader get heartbeats from tserver.`

The schema is created successfully but getting the error which creating tables. YB version is same on both machine : 2.20

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [February 20, 2024, 8:05am UTC](https://forum.yugabyte.com/t/error-while-apply-full-schema-dump/2509/2 "2024-02-20T08:05:27Z")

</div>

What command are you running?

Please paste the full error message, hopefully along with some messages above it if it’s in the logs.

What’s the status of the new cluster?

Looks like you don’t have any live yb-tservers?

---

<div class="post-metadata">

**Author:** ![anurag\_trustt](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@anurag\_trustt](https://forum.yugabyte.com/u/anurag_trustt)\
**Post date:** [February 20, 2024, 8:58am UTC](https://forum.yugabyte.com/t/error-while-apply-full-schema-dump/2509/3 "2024-02-20T08:58:39Z")

</div>

a. ./ysqlsh  
b. \i   
`ERROR: Invalid table definition: Error creating table yugabyte.account on the master: num_tablets should be greater than 0. Client would need to wait for master leader get heartbeats from tserver.`

 ![Screenshot from 2024-02-20 14-27-23](https://canada1.discourse-cdn.com/flex027/uploads/yugabyte/original/1X/5cd5aeb1095241d7f0879dcd41f4ab295bf56bc1.png)

---

<div class="post-metadata">

**Author:** ![anurag\_trustt](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@anurag\_trustt](https://forum.yugabyte.com/u/anurag_trustt)\
**Post date:** [February 20, 2024, 10:40am UTC](https://forum.yugabyte.com/t/error-while-apply-full-schema-dump/2509/4 "2024-02-20T10:40:47Z")

</div>

yb-tserver is running with `--yb_num_shards_per_tserver=1 --ysql_num_shards_per_tserver=1` flags

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [February 20, 2024, 1:43pm UTC](https://forum.yugabyte.com/t/error-while-apply-full-schema-dump/2509/5 "2024-02-20T13:43:17Z")

</div>

Can you do `./bin/yugabyted collect_logs` and share the zip file?
