Rocket.Chat.Apps-cli icon indicating copy to clipboard operation
Rocket.Chat.Apps-cli copied to clipboard

Deployment error: No App found by the provided id

Open pbaity opened this issue 5 years ago • 3 comments

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:

  1. I successfully deployed and updated my app several times
  2. 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...
  3. I uninstalled the app via the UI
  4. I tried to re-install it with the command pasted above (no --upgrade flag)

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.

pbaity avatar Aug 13 '20 02:08 pbaity

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

pbaity avatar Aug 18 '20 19:08 pbaity

Hey @pbaity, I would like to know if this issue is still there or not.

preeesha avatar Feb 07 '24 05:02 preeesha

@preeesha I haven't tried again since then and I'm no longer using RocketChat.

pbaity avatar Feb 07 '24 15:02 pbaity