Assigning a persistent store + Uninstalling apps issue

19 views
Skip to first unread message

Michael S

unread,
Aug 4, 2017, 2:41:30 PM8/4/17
to Tethys Platform
Is there a command for assigning a persistent store from the terminal? If not, I think we need one and here is the reason.

I added an app in production, the app uses a persistent store database but something, which I cannot tell yet (I did not create this app) happened and the app threw an error saying X database doesn't exist, Now, the server would just give me a 502 gateway error preventing me from going and adding the persistent store from the admin settings, which is what needed to be done for the app to work. In addition, I would get an error when trying to uninstall the app because apps have to work fine  for them to be able to be delete it (this doesn't make sense to me). Anyway, I was stuck in a loop: the server wouldn't start because the app throws an error, and I could not uninstall the app because was throwing an error.

I went and added the persistent store manually using pgadmin and that solved it, but it made me think that we need that command to do it directly. 

Besides asking for that add persistentstore command, the second part of my blab refers to uninstalling apps. Here is a post by Shawn about it (https://groups.google.com/forum/#!searchin/tethysplatform/uninstall%7Csort:relevance/tethysplatform/96txiLymB4A/0t1rrEyCAwAJ). Nathan said in a comment that "we needed to talk about the criteria for uninstalling apps" Was this already discussed? If not, I think we need to make it a priority for the next meeting.

Thanks,
Michael

swainn

unread,
Jan 25, 2018, 12:39:09 PM1/25/18
to Tethys Platform
I don't know why I didn't see this initially, but we have developed these CLI interfaces at Aquaveo, including interfaces for linking services to apps. Just need to submit a pull request. 

sdc50

unread,
Jan 31, 2018, 1:33:07 PM1/31/18
to Tethys Platform
Michael,

Have you pulled the latest version of Tethys? This was a known issue, but we've issued a patch for the release branch and merged in a fix on the master branch, so with the latest version of the code you shouldn't run into this problem. If you are still getting stuck where you can't uninstall apps with the latest version then please send me the details so we can look at fixing it.
Reply all
Reply to author
Forward
0 new messages