# Error migrating tables for database on storagenode: piece\_space\_used

**URL:** <https://forum.storj.io/t/error-migrating-tables-for-database-on-storagenode-piece-space-used/26914>\
**Category:** troubleshooting\
**Tags:** database\
**Created:** [July 2, 2024, 9:25pm UTC](https://forum.storj.io/t/error-migrating-tables-for-database-on-storagenode-piece-space-used/26914 "2024-07-02T21:25:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flwstern](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/flwstern/32/7821_2.png) [@flwstern](https://forum.storj.io/u/flwstern)\
**Post date:** [July 2, 2024, 9:25pm UTC](https://forum.storj.io/t/error-migrating-tables-for-database-on-storagenode-piece-space-used/26914/1 "2024-07-02T21:25:36Z")

</div>

![image](https://storj-s3.bcdn.literatehosting.net/original/3X/3/8/38b6e68bbcf4a117d3850efa18345b887a2dd62a.png)

```auto
4-07-02T23:24:09+02:00	FATAL	Unrecoverable error	{"error": "Error migrating tables for database on storagenode: migrate: v29: no such table: piece_space_used\n\tstorj.io/storj/private/migrate.(*Migration).Run:212\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).MigrateToLatest:387\n\tmain.cmdRun:98\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tstorj.io/common/process.ExecWithCustomConfigAndLogger:77\n\tstorj.io/common/process.ExecWithCustomConfig:72\n\tstorj.io/common/process.Exec:62\n\tmain.(*service).Execute.func1:107\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78", "errorVerbose": "Error migrating tables for database on storagenode: migrate: v29: no such table: piece_space_used\n\tstorj.io/storj/private/migrate.(*Migration).Run:212\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).MigrateToLatest:387\n\tmain.cmdRun:98\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tstorj.io/common/process.ExecWithCustomConfigAndLogger:77\n\tstorj.io/common/process.ExecWithCustomConfig:72\n\tstorj.io/common/process.Exec:62\n\tmain.(*service).Execute.func1:107\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78\n\tmain.cmdRun:100\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tstorj.io/common/process.ExecWithCustomConfigAndLogger:77\n\tstorj.io/common/process.ExecWithCustomConfig:72\n\tstorj.io/common/process.Exec:62\n\tmain.(*service).Execute.func1:107\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78"}

```

I renamed the old database since it has “trash” in it which blocks 4 TB of free space. A new database is created but i still get the error message. This is happening on all my nodes? This has worked before. What to do?

---

<div class="post-metadata">

**Author:** ![flwstern](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/flwstern/32/7821_2.png) [@flwstern](https://forum.storj.io/u/flwstern)\
**Post date:** [July 2, 2024, 10:23pm UTC](https://forum.storj.io/t/error-migrating-tables-for-database-on-storagenode-piece-space-used/26914/2 "2024-07-02T22:23:56Z")

</div>

Just recreated all databases, will this have any impact on the TTLs? Or anything else that will back fire now?

---

<div class="post-metadata">

**Author:** ![striker43](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/striker43/32/1135_2.png) [@striker43](https://forum.storj.io/u/striker43)\
**Post date:** [July 3, 2024, 6:13am UTC](https://forum.storj.io/t/error-migrating-tables-for-database-on-storagenode-piece-space-used/26914/3 "2024-07-03T06:13:27Z")

</div>

all TTL files will now be collected by garbage collection, so you will store them a few days longer than you would have before your database recreation. But nothing bad will happen to you node.
