Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need ability to overwrite existing shiny apps on shinyapps.io #464

Closed
karangattu opened this issue Aug 23, 2023 · 3 comments · Fixed by #468
Closed

Need ability to overwrite existing shiny apps on shinyapps.io #464

karangattu opened this issue Aug 23, 2023 · 3 comments · Fixed by #468
Assignees
Labels
bug Something isn't working high

Comments

@karangattu
Copy link

Currently if I deploy an app with a title that does not exist on shinyapps.io, it creates a new app on shinyapps.io.
Now, in between the next deploy if I delete the manifest file(CI build), it will create a new app while appending 1 to the provided title name
If you again delete the manifest file and deploy it again, it fails stating that

Error: shinyapps.io reported an error (calling /v1/applications/): Application exists with name: example_deploy_app101

I couldn't figure out a way to deploy the same app with a new version if the manifest file does not exist locally on the machine.

@pevolution-ahmed
Copy link

Facing the same issue here, recently have been working on automating pyshiny app deployment to shinyapps.io using github actions, but faced an issue where it doesn't overwrite the old deployed version, and instead it creates a new version with different name.

I checked the rsconnect '--new' option and '--app-id' option and they both didn't achieve overwriting and replacing the old version with the same name with the new one.

I wonder if this is a sort of limitation from just using rsconnect-python as CLI tool, not as a library we can configure using code?

Here is a demo app with a GitHub action that I talked about, feel free to check it out: https://github.com/pevolution-ahmed/shinyapps-action-demo

@mslynch
Copy link
Contributor

mslynch commented Sep 5, 2023

I wonder if this is a sort of limitation from just using rsconnect-python as CLI tool, not as a library we can configure using code?

This is definitely a bug – passing --app-id to redeploy to the same app is a supported use case.

@cesar-vigario-knok
Copy link

+1 here
I also found that sometimes the deploy gets stucked in "building - Installing packages" and fails with "[ERROR]: Application deployment failed with error: Unhandled Exception: Child Task 1332846024 error: Unhandled Exception: 599".

A workaround I found was to stop the instance in the shinyapps.io UI and then use the deploy command:
rsconnect deploy shiny name_of_app_folder --name account_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants