Can't re-deploy app previously deployed to another account - r

I have a Shiny app that I previously deployed to my now-defunct account on shinyapps.io. When I try to re-deploy using:
deployApp(appName="my_app")
I get the error message:
Error: Please specify the account you want to deploy
'my_app' to (you have previously deployed this application
to more than one account).
So I specify:
deployApp(account="new_account",appName="my_app")
But now I get the error:
Error in serverInfo(server) :
name must be a single element character vector
Based on this bug report, it sounds like I need to specify a server, but I am not sure where to find this information. For example, serverInfo() returns an error as well.
How can I get the relevant server info, or better yet, how can I deploy the app without all these workarounds?

Related

Azure Pipline Error: Failed to get Firebase project project-name. Please make sure the project exists and your account has permission to access it

Duplicate Question: By Uber, previously asked for google-cloud-firestore
My question is Related to Deploy Firebase from Azure DevOps. I have a list of tasks in my CI Pipeline which are running fine but the one firebase publish job consistently getting failed.
Error:
Also, I have put my token inside variables
install firebase tools:
firebase publish:
How can this be solved? what I'm doing wrong here?
I think the issue comes from the usage of your variables.
See all of the variables usage:
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#runtime-expression-syntax
You can find that no usage like this:
$key
I think it should be:
$(key)
In your situation, the issue should comes from $FIREBASE_TOKEN itself was been recognized as string "$FIREBASE_TOKEN", the actual value was not pass in.

Why do I get an error when deploying a shiny app?

When I try to publish my ShinyApp with shinyapps.io,
I keep getting the following error message: 'Application mode static requires at least one document'.
Here are some of the fixes, I've implemented:
create a different directory with all dependent files and a copy of the R-script.
re-created custom functions from my local environment within the app
Furthermore, in 'read.csv' I refer to the files directly without specifying the directory, in case this might be the culprit.
Do you have any idea, what the issue might be?

Firebase deploy fails after adding second project

After adding a second project to my code using the command $ firebase use --add second-project, I get the error
There was an issue deploying your functions. Verify that your project has a Google App Engine instance setup at https://console.cloud.google.com/appengine and try again. If this issue persists, please contact support.
Error: HTTP Error: 404, Could not find Application "second-project".
when I run $ firebase deploy.
I have added separate targets and a web app through Firebase console for the second project.
What should I be checking to get rid of this error?
I just ran into this same exact issue as well. Leaving this here for anyone that runs into this issue in the future. What caused this error for me was a permissions error, when Firebase tried to access specific resources in Google Cloud such as Cloud Functions without the necessary IAM/service accounts in place.
This happens when you create a new Firebase project without setting the Default GCP resource location under Settings > General in the Firebase Console, which occurs when you create a new Firebase project without doing any additional setup. You can set this in the settings or this is also set when you follow the walk-through instructions for setting up services such as Firestore or Firebase Storage in the Firebase console.
Without this set, the <YOUR_FIREBASE_PROJECT_NAME>#appspot.gserviceaccount.com IAM/service account will not be created in Google Cloud (which is needed to create/access specific resources), therefore when you run firebase deploy, it will fail with the error you mentioned above.
You can also check why your firebase deploy is failing in the firebase-debug.log that is generated when running this command (that's how I found out the cause of this error). Though I think this file is deleted after the command finishes execution, so you'll have to pipe the output into a file or save it some other way.
TL;DR: Set Default GCP resource location, one way this can be done is in the Firebase Console under Settings > General.

vb.net Sys.WebForms.PageRequestManagerServerErrorException error

I'm coming across this error when I run my web app. The error is given only when the code is run on my web server. I can run the exact same code on my local machine and it works just fine. The the only way that I see the error when running the app on my webserver is if I press f12 when I try to run a given page. The page is trying to SFTP a file to another server, but like I said, I can run the exact same code on my local machine with no errors so I know that the code will work. There are no message or error boxes that popup. I've gone over the code over and over as well as looking at the difference of the configuration and programs that are installed on my local machine as opposed to what is on my web server. There is nothing that I see that is different. Here is the whole error message I see:
Sys.WebForms.PageRequestManagerServerErrorException: The source was
not found, but some or all event logs could not be searched. To
create the source, you need permission to read all event logs to make
sure that the new source name is unique. Inaccessible logs: Security.
I've found quite a few questions about this error, most of them talk about giving access to all users in this registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security
or adding a user called Network Service to the above key and giving it full access or granting read permissions for the Network Service user to the whole EventLog branch. Another path I've explored is to change the identity of the app pool in IIS and then change it back. I've tried just about everything listed on SO and other places. Like I said, most of them involve writing new keys and changing permissions on keys in the registry. Another one I've tried is creating a registry key named HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\#MY APP# and then creating a string value inside it called EventMessageFile with the value of C:\Windows\Microsoft.NET\Framework\v4.0.30319\EventLogMessages.dll in it. Another suggestion is to open the the app as an Administrator. That didn't work either. I could go on and on and on but for the sake of not turning this into a novel I won't, but I hope I've shown enough examples to let everyone know that I've done due diligence in trying other solutions first before asking my question. Will someone please help me out with this very frustrating error?

Error whent trying to deploy shiny app: multiple existing deployments from this application directory already exist

When trying to deploy my shiny app
shinyapps::deployApp('C:\\MyProgramProject\\MyApp')
I get the following error:
Error: Unable to deploy using default arguments (multiple existing deployments from this application directory already exist). Please specify appName and/or account name explicitly.
I have a similar app under an entirely separate directory with a different shiny account which was uploaded from the separate directory. I made sure that I entered the correct token for the account and I can see in the shiny server of the account I want to upload to that there are no applications there at all. I also copied the ui.R and server.R files to a new subdirectory called Deployand tried to upload from there with identical results. Again, the tokens and directory paths are correct.
The reason we want to deploy to the new account is because we have had a lot of traffic and want to set up a new paid account with a higher allowance but need to make sure it works first.
Try removing any directory called rsconnect or shinyapps from your application folder.
You can also try calling:
deployApp(appName="my-app-name", account="my-account-name")

Resources