Deployment error: No App found by the provided id
When I try to deploy my app, I get this:
# rc-apps deploy --url http://localhost:3000 -i <userid> -t <token>
packaging your app... packaged!
deploying your app... !
Error: Deployment error: No App found by the provided id: <id>
I got this error after doing the following:
- I successfully deployed and updated my app several times
- I added a setting to the configuration with
configuration.settings.provideSetting()but didn't see it show up in the UI after an update, so... - I uninstalled the app via the UI
- I tried to re-install it with the command pasted above (no
--upgradeflag)
This is where I've hit the error. I've tried using the --upgrade flag, authenticating with username and password instead of ID and token, using -f to force (though I know that's for the Typescript compiler), restarting my Rocket.Chat server (it's a snap), etc - nothing has worked. I've also tried searching through issues and even code for where this is coming from - I see the error is returned by the /apps REST endpoint, but I can't find much more than that.
Looks like the error is getting thrown from here, which reinforces my suspicion that the configuration.settings.provideSetting() change has something to do with it. When I reverted to a previous commit without that method call to add a setting, I am able to deploy. Furthermore, I am able to deploy --upgrade to the version with the method call to add a setting, but the setting does not appear in the UI.
Maybe I'm using configuration.settings.provideSetting() incorrectly, perhaps in the wrong method of the App class - I'm trying this out now
Hey @pbaity, I would like to know if this issue is still there or not.
@preeesha I haven't tried again since then and I'm no longer using RocketChat.