# FATAL Unrecoverable error {“error”: “Error creating tables for master database on storagenode: migrate: storage node database error: migrate tables:: attempt to write a readonly database

**URL:** <https://forum.storj.io/t/fatal-unrecoverable-error-error-error-creating-tables-for-master-database-on-storagenode-migrate-storage-node-database-error-migrate-tables-attempt-to-write-a-readonly-database/2030>\
**Category:** troubleshooting\
**Created:** [October 3, 2019, 8:58pm UTC](https://forum.storj.io/t/fatal-unrecoverable-error-error-error-creating-tables-for-master-database-on-storagenode-migrate-storage-node-database-error-migrate-tables-attempt-to-write-a-readonly-database/2030 "2019-10-03T20:58:47Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![JoshGarza](https://storj.bcdn.literatehosting.com/letter_avatar/joshgarza/32/6_449c533f586939b6e5f246632a46421f.png) [@JoshGarza](https://forum.storj.io/u/JoshGarza)\
**Post date:** [October 4, 2019, 10:08pm UTC](https://forum.storj.io/t/fatal-unrecoverable-error-error-error-creating-tables-for-master-database-on-storagenode-migrate-storage-node-database-error-migrate-tables-attempt-to-write-a-readonly-database/2030/21 "2019-10-04T22:08:16Z")

</div>

As I supposed, the permission issue was in the sqlite database itselfm not in the filesystem.

I got it working following next steps:

- Backup info.db
- Dump all info.db sql tables to a file
- Open new info.db
- Increase page size to 4096: **PRAGMA**** page\_size=4096;**
- read previously dumped tables.
- Save

Love all the vacuums and split in several dbs (one per satellite would be enough tho).  
Cheers!

---

_[View the full topic](https://forum.storj.io/t/fatal-unrecoverable-error-error-error-creating-tables-for-master-database-on-storagenode-migrate-storage-node-database-error-migrate-tables-attempt-to-write-a-readonly-database/2030)._
