# Old fly postgres app running V1 can not be migrated and is stuck in bad state - restart not available - migrate not available

**URL:** <https://community.fly.io/t/old-fly-postgres-app-running-v1-can-not-be-migrated-and-is-stuck-in-bad-state-restart-not-available-migrate-not-available/12702>\
**Category:** General\
**Tags:** login-only\
**Created:** [May 4, 2023, 4:52pm UTC](https://community.fly.io/t/old-fly-postgres-app-running-v1-can-not-be-migrated-and-is-stuck-in-bad-state-restart-not-available-migrate-not-available/12702 "2023-05-04T16:52:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danwetherald](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/danwetherald/32/37600_2.png) [@danwetherald](https://community.fly.io/u/danwetherald)\
**Post date:** [May 4, 2023, 4:52pm UTC](https://community.fly.io/t/old-fly-postgres-app-running-v1-can-not-be-migrated-and-is-stuck-in-bad-state-restart-not-available-migrate-not-available/12702/1 "2023-05-04T16:52:27Z")

</div>

We have a few old fly pg deployments on v1 and we are completely stuck, we are not able to restart these or migrate them to v2.

 ![image](https://global.discourse-cdn.com/fly1/original/3X/5/e/5e621a82abd72fc59fcc9ca2860c58f1a7fae84e.png)

We cant seem to find a way to get that second VM to properly restart and begin to pass all its checks.

Error:

```auto
cmd/keeper.go:720 cannot get configured pg parameters {"error": "dial unix /tmp/.s.PGSQL.5433: connect: no such file or directory"}

ERROR cmd/keeper.go:1452 different local dbUID but init mode is none, this shouldn't happen. Something bad happened to the keeper data. Check that keeper data is on a persistent volume and that the keeper state files weren't removed

```

```auto
fly apps restart rotator-api-pg                                                                                                                                                                    
Error: postgres apps should use `fly pg restart` instead

fly pg restart                                                                                                                                                                                       
Error: command is not compatible with this image

```

Running the `fly migrate-to-v2` command returns this:

```auto
Error: 404: 404 page not found

```

App: `rotator-api-pg`

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [May 11, 2023, 4:53pm UTC](https://community.fly.io/t/old-fly-postgres-app-running-v1-can-not-be-migrated-and-is-stuck-in-bad-state-restart-not-available-migrate-not-available/12702/2 "2023-05-11T16:53:24Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
