# MIGRATION_SNAPSHOTS_UNREADABLE

The migration snapshots are there and could not be read from disk.

## Cause

The migration snapshots are there and could not be read from disk.

`nextly repair-columns` reads the snapshots in the migrations folder's `meta/` to learn what the database last had applied. That folder, the migrations folder, or the snapshot of an applied migration exists and could not be read. The command stops rather than judge columns by an older definition. A snapshot that opens and is not valid is [`INVALID_SNAPSHOT`](https://nextlyhq.com/docs/cli/errors/invalid-snapshot.md).

## Fix

The Why line is the system's own reason. Where it is a permission, make the folder or file the message names readable by the user running the command. Where the snapshot is gone, restore it from version control. Otherwise put right what the reason names. Then run `nextly repair-columns` again.

## Example

```text
✗ The migration snapshots in `/app/migrations/meta` could not be read.
  Why:  EACCES: permission denied, scandir '/app/migrations/meta'
  Next: Make the folder readable by the user running the command, then run `nextly repair-columns` again.
  Docs: https://nextlyhq.com/docs/cli/errors/migration-snapshots-unreadable  (MIGRATION_SNAPSHOTS_UNREADABLE)
```
