Upsource behind proxy
I'm trying to host Upsource on a centOS machine that needs proxy settings for internet. I have set the http_proxy and https_proxy as the environment variables on that machine. Now when I'm trying to add a project which is hosted on github I'm getting this error: "Test VCS connection failed. List remote refs failed: java.net.ConnectException: Connection timed out github.com"
It seems to me that it is not picking up my proxy settings. Is there a setting that I have to specify in Upsource to make it work behind proxy?
Please sign in to leave a comment.
Hi Sachin,
Upsource uses jgit to communicate with git repositories, so you might want to configure proxy settings through gitconfig by running commands below. But it's more about workaround and we would like to investigate why it doesn't work via environment variables
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080 git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
Hello Artem,
Yes I'm able to connect to repo by directly using git command.
I even added the proxy settings in .gitconfig file still I'm getting the same error.
Please let me know which log file you need.
Thanks,
Sachin
Hi Sachin,
Please post entire contents of logs folder from Upsource home directory. You may also send it to upsource-support@jetbrains.com
Thanks in advance.
I'm facing the same problem now. Is there any solution for this?
When I try to create a project, the "Test VCS connection" fails. No matter how can I try to set the proxy (.gitconfig or with java opts: -Dhttp.proxyHost etc.).
As I can see, the vcs-worker-impl plugin regrets to use any proxy, despite that it uses JGit inside, and JGit uses a ProxySelector for httpOpen.
Can you help me how can I configure Upsource to use proxy for VCS connection test?
There was an issue on the product side, that is now fixed in the latest 2017.1 update.
Could you please clarify which version you are using?
Hello Artem,
I'm using the latest version: 2017.1.1922
I've updated the jre's net.properties file (upsource-2017.1.1922/internal/java/linux-x64/jre/lib/net.properties) to use proxy, and when I run my own little test program with this jre (JGit inside), it uses the proxy, and it can fetch from a git repo.
But the VCS connection test fails in Upsource, with "no route" error message.
The full exception:
Try adding the same properties to the following file:
<Upsource_home_directory>/conf/upsource-frontend/upsource-frontend.jvmoptions
I'm having the same problem that Upsource fails with a connection timeout when trying to access github.com. I've tried using https and ssh, but the results stays the same. Also I've applied the changes mentioned above but it didn't change anything. On the command line you can access github.com with both ssh and https.
Guys who have this issue, could you please check Upsource even tries to connect to your proxy?
Sorry, we have destroyed that environment and started to use Upsource with direct internet connection.
It's true we didn't check what you wrote, but I think Upsource didn't even try to connect to the proxy.