Simple question for begin, is it possible to deploy content from RStudio server to rsconnect server?
Parameters
rsconnect:
RStudio Connect v1.7.8-7
Build "1144ac9" with Available R Version: 3.6.1
rstudio server (Open Source)
1.2.5019 (Elderflower)
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
RStudio IDE:
Version 1.2.1335
Build 1379 (f1ac3452)
From RStudio IDE is possible to connect and publish
When i tried to login to rsconnect from desktop version everything works fine.
Via Tools -> Global Options -> Publishing I was able to login to rsconnect and deploy content.
Hello @michalslovik! This is a fantastic question, and yes, it is possible to publish from RStudio Server to RStudio Connect. In fact, it works just the same through the IDE with click-button publishing and the like.
The trick is that networking is a bit different between RStudio Server and RStudio Connect because three computers are now involved (instead of two). Can you say a bit more about how / where RStudio Server and RStudio Connect are installed? Are they installed on separate servers? Inside of a data center?
The requirement that is very important to validate here:
RStudio Connect needs to be reachable at the same URL from both RStudio Server and from your local desktop in order for publishing to work as expected
If you execute the following from your terminal in RStudio Server, what output do you get?
Interesting!! That is the behavior we would expect to see... Hm...
How about this, can you try to "Enable verbose deployment logging"?
You can turn on verbose logging by going to Tools -> Global Options -> Publishing and selecting "Show diagnostic information when publishing".
It also might be worth checking the version of rsconnect that you have installed on the server. The latest version on CRAN is 0.8.15, and the dev version is presently 0.8.15-9000:
packageVersion("rsconnect")
You can also set the following settings inside of your R console (again on the server):
It's also worth noting (and I should have mentioned this earlier). This is definitely covered under our professional support for RStudio Connect, so you can also send an email to our support team / open a ticket with the information that I requested and we can handle through that channel as well!
And after click on publish, it ask where i would like to publish (RPubs or RStudio Connect). I click on RStudio Connect -> Publish finished document only ->
Connect Publishing after that ask for RStudio Connect Account where i enter servername:3939 and result is:
And after click on publish, it ask where i would like to publish (RPubs or RStudio Connect). I click on RStudio Connect -> Publish finished document only ->
Connect Publishing after that ask for RStudio Connect Account where i enter servername:3939 and result is:
It looks like you have a squid proxy set up somewhere? Can you share the output of Sys.getenv() (be sure to redact any secrets stored therein).
I suspect you have an HTTP_PROXY or HTTPS_PROXY (or lowercase variants) set on the RStudio Server Pro server, and so outbound traffic (to RStudio Connect) is trying to go through the proxy and getting killed on accounts of accessing a port that is "disallowed."