SharpSvn client through proxy

0
Hi I installed Mendix Modeler for the first time yesterday. I'm behind a corporate firewall / NTLM proxy. I could successfully download a sample project template and get it running locally. But I'm unable to upload it tot he version control server using `Project > More Versioning > Upload to Version Control Server...` An error occurs at the `Add project directory` stage and here is the stack trace: SharpSvn.SvnException: Unable to connect to a repository at URL 'https://teamserver.sprintr.com/87ae48e8-02f4-4caf-90ff-c024bd397191/trunk' ---> SharpSvn.SvnException: Connection timed out --- End of inner exception stack trace --- at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets) at SharpSvn.SvnClient.CheckOut(SvnUriTarget url, String path, SvnCheckOutArgs args, SvnUpdateResult& result) at SharpSvn.SvnClient.CheckOut(SvnUriTarget url, String path) at Mendix.Modeler.Utility.ActionUtil.TryNTimes[TException](Action action, Int32 n, Int32 sleepBetweenTries) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Utility\ActionUtil.cs:line 19 at Mendix.Modeler.VersionControl.SvnConnector.Checkout(Uri urlToCheckout, String targetProjectDirectory) in C:\jenkins-ci\workspace\AppStudio3.0-Build\modeler\Mendix.Modeler.Core\VersionControl\SvnConnector.cs:line 123 From what I gather in https://stackoverflow.com/questions/16581050/how-to-use-a-proxy-in-the-sharpsvn-client , SharpSvn uses the proxy settings configured in HKEY_CURRENT_USER\Software\Tigris.org\Subversion.  I also have TortoiseSVN installed (for my other development work) and I don't have problems checking out and committing with TortoiseSVN. I also ran a Wireshark trace briefly, and I couldn't see any attempts by Mendix Modeler to connect to the proxy. regards Francois Botha Mendix Modelere v 7.18.0 (this version isn't listed below!) build 39395
asked
4 answers
1

This is an old issue, but I finally solved it. It turns out our proxy server doesn’t by default allow the PROPFIND http method, (over HTTP or HTTPS). Maybe this info is of use to other people. More info here: https://serverfault.com/questions/314414/is-our-company-firewall-blocking-http-propfind

answered
0

In the Modeler you can configure a proxy server via the Menu: 'Edit-> Preferences... -> Advanced Tab'

Documentation: https://docs.mendix.com/refguide/preferences-dialog#advanced

 

answered
0

That configures only the proxy username and password. I don't see any references to the server host.

answered
0

Hi Francois,

You don't see a place to input the server host in the Modeler interface because we use system settings for determining the proxy server. Apparently, this doesn't work in your case :)

Since you're using Modeler version 7.18, you could try to manually specify the proxy server settings for SVN client that we use. Please do the following:

  • Go to \Users\<username>\AppData\Roaming\Subversion\ folder and locate servers file there
  • Open the file with any text editor you like, and locate [global] section in it
  • You will see the commented out lines with proxy settings - like http-proxy-porthttp-proxy-username etc. - please configure them in accordance with your company's proxy settings
  • Save the file, re-run the Modeler and try again.


If the servers file appears to be empty or almost empty, here are the default proxy settings that you would need to alter:

[global]
http-proxy-host = defaultproxy.whatever.com
http-proxy-port = 7000
http-proxy-username = defaultusername
http-proxy-password = defaultpassword
http-proxy-exceptions = *.exception.com, www.internal-site.org

Kindly let me know if this works for you.

Best regards,
Alexander.

 

P.S. Also, if this doesn't work, please locate the log.txt file in \Users\<username>\AppData\Local\Mendix\log\7.18.0 folder and attach it to your response in this thread. Thanks!

answered