Error moving app to different organization

Hello I am trying to handoff a set of apps to a user in a different organization (which I have been added as an admin). I am running:

flyctl apps move <app-name> --org <new-org-name> --yes

Which fails with:

Error: failed moving app: failed to run mutation ($input: MoveAppInput!) { moveApp(input: $input) { app { id networkId organization { slug } } } }: server returned a non-200 status code: 500

When I try to transfer the app via the UI it fails with this same error during deployment.

Any ideas?

This is still happening, the server is still returning a 500🧐

Error: failed moving app: failed to run mutation ($input: MoveAppInput!) { moveApp(input: $input) { app { id networkId organization { slug } } } }: server returned a non-200 status code: 500

@ozziek, hi! Thanks for flagging this. I found some error traces, and our team is looking into what’s going on. We’ll keep you posted.

Sounds good thank you! Any updates on this? I just tried again today and the error is still persisting.

Hi Ozzie, Our services had differing opinions about which org your app belonged to, with some still thinking it belonged to your personal app. I’ve manually patched that up, and I think if you try again it should work. If not please let me know.

2 Likes

Awesome thank you @Tim_Newsham, looks like things are working now. I was able to move the apps successfully!

Not sure if it is intentional, but the UI for moving apps did not list all the organizations that I am apart of (only the ones I created). So to move to a different users organization I had to use the move command:

flyctl apps move <app-name> --org <new-org-name> --yes 

Which worked fine.

@ozziek hi! Glad that you were able to find a workaround. This is not intentional. We show the list of organizations that you are a member of (except the current app org) in that select field. I will try to check logs to find any issues. Maybe the fact that @Tim_Newsham manually patched some db records intertwines with the fact that you don’t see that org as an option.

Gotcha! Feel free to reach out via email, happy to provide the details of the apps/the orgs I moved.

1 Like