NativeScript / nativescript-app-sync-server

MIT License
22 stars 14 forks source link

Removed App deployments #10

Closed Vladi007 closed 4 years ago

Vladi007 commented 4 years ago

Recently I run into a problem with deploying the new version of my app.

After exectuing the command: nativescript-app-sync deployment history xxxxx Production

I get the following error: [Error] models.DeploymentsVersions.findById is not a function

When checking the https://appsync.nativescript.org I found out that the previous deployments with deployment keys were removed.

My question is how to get back the removed data?

Thank you very much for your answer.

EddyVerbruggen commented 4 years ago

What's xxxxx in this case?

Vladi007 commented 4 years ago

It is the App name: KCPG or devKCPG

EddyVerbruggen commented 4 years ago

Yeah I'm aware of that, just wanted to know which one it is :)

Looks like there's a problem with the database itself at the moment which may cause the issue. I'll investigate.

Vladi007 commented 4 years ago

It is both of them. Thank you very much.

EddyVerbruggen commented 4 years ago

Does that command work again?

Vladi007 commented 4 years ago

Still not working. The "release" command is not working too. Also there is the same response from the android app which is looking for the new version.

EddyVerbruggen commented 4 years ago

Oh dear. R.I.P. my sunday.

EddyVerbruggen commented 4 years ago

I see the same error for one of my apps. This no longer seems to be a database issue. 🕵️‍♂️

EddyVerbruggen commented 4 years ago

The probable cause is this change by @dependabot which tried to automatically fix a vulnerability: https://github.com/EddyVerbruggen/nativescript-app-sync-server/commit/da29915d8f2146b5e281f7f805b55acd181f94c2

I'm going to revert that.

EddyVerbruggen commented 4 years ago

@Vladi007 Should be much better now. It was indeed that dependency bump on Nov 1st which killed AppSync. Thanks for reporting this issue!

Vladi007 commented 4 years ago

@EddyVerbruggen thank you for your fast response and solution. You saved my sunday! :)