archi icon indicating copy to clipboard operation
archi copied to clipboard

Check for new version - No proxy definition

Open jyl13 opened this issue 5 years ago • 13 comments

Hello There is no way to configure proxy as it is possible in Eclipse, so check for new version does ot work. Could it possible include it ?

Regards

Jean-Yves Longueville

jyl13 avatar Apr 05 '19 08:04 jyl13

I believe @jbsarrodie has seen this problem too. We have Proxy support in the Collaboration plug-in, perhaps we could push this up to the main Archi code as general proxy settings at some point.

Phillipus avatar Apr 05 '19 08:04 Phillipus

Hi,

You may add the following lines to the archi.ini file

-Dhttp.proxyHost=<proxy name or IP address> -Dhttp.proxyPort=<proxy port> -Dhttp.proxyUser=<username if credentials are required> -Dhttp.proxyPassword=<password if credentials are required> -Dhttps.proxyHost=<proxy name or IP address> -Dhttps.proxyPort=<proxy port> -Dhttps.proxyUser=<username if credentials are required> -Dhttps.proxyPassword=<password if credentials are required> -Djdk.http.auth.tunneling.disabledSchemes= -Djdk.http.auth.proxying.disabledSchemes=

Best regards Hervé

herve91 avatar Apr 05 '19 13:04 herve91

Thanks Hervé.

Does it actually work with checking for new version from Archi, though?

Does it conflict with Model Collaboration Proxy settings?

Phillipus avatar Apr 05 '19 13:04 Phillipus

In fact, the INI lines just activate the proxy mechanism of the Eclipse framework.

As I did not install your Collaboration plugin, I can only suppose. Per my understanding, you bypass the standard proxy mechanism by providing the proxy configuration your get from the plugin parameters. So it shouldn't interfere. But it should be tested.

herve91 avatar Apr 05 '19 13:04 herve91

And, yes, it works for checking new versions of Archi :-)

herve91 avatar Apr 05 '19 13:04 herve91

Thanks! :-)

Added to wiki - https://github.com/archimatetool/archi/wiki/Proxy-Settings

Phillipus avatar Apr 05 '19 14:04 Phillipus

Hello Still some problem [cid:[email protected]] For info I am using Archi 4.3.1.

Regards

[Description: Description: Description: Description: Description: Description: Description: logo_big5] [cid:[email protected]]

Jean-Yves LONGUEVILLE | TINA: 043 6129 | Tel: +33 442 686 129 | Mobile: +33 637 178 476 STMicroelectronics | DIT Manufacturing & Quality | Technology Architect

ST online: www.st.comhttp://www.st.com/ | Follow us on twitter: @st_world

From: Phil Beauvoir [email protected] Sent: vendredi 5 avril 2019 16:09 To: archimatetool/archi [email protected] Cc: Jean-Yves LONGUEVILLE [email protected]; Author [email protected] Subject: Re: [archimatetool/archi] Check for new version - No proxy definition (#463)

Thanks! :-)

Added to wiki - https://github.com/archimatetool/archi/wiki/Proxy-Settings

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/archimatetool/archi/issues/463#issuecomment-480288916, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHU3alTX8-CzxHbQvDjUYzwXhPctDoDWks5vd1jzgaJpZM4cec8J.

jyl13 avatar Apr 05 '19 14:04 jyl13

@jyl13 Your message has not shown the error.

I would add that these proxy settings are "unsupported" so please don't be offended if I can't help on this issue (I'm not behind a proxy so can't test).

@herve91 Hervé, could you assist if possible?

BTW Archi 4.4 is available,

Phillipus avatar Apr 05 '19 14:04 Phillipus

No problem. The error message was "Error connecting to srever". What is the version on which it is working and tested? 4.4? Is it supported with the last collaborator plugin? If yes I will upgrade to 4.4 …

[Description: Description: Description: Description: Description: Description: Description: logo_big5] [cid:[email protected]]

Jean-Yves LONGUEVILLE | TINA: 043 6129 | Tel: +33 442 686 129 | Mobile: +33 637 178 476 STMicroelectronics | DIT Manufacturing & Quality | Technology Architect

ST online: www.st.comhttp://www.st.com/ | Follow us on twitter: @st_world

From: Phil Beauvoir [email protected] Sent: vendredi 5 avril 2019 16:54 To: archimatetool/archi [email protected] Cc: Jean-Yves LONGUEVILLE [email protected]; Mention [email protected] Subject: Re: [archimatetool/archi] Check for new version - No proxy definition (#463)

@jyl13https://github.com/jyl13 Your message has not shown the error.

I would add that these proxy settings are "unsupported" so please don't be offended if I can't spend time on this issue.

@herve91https://github.com/herve91 Hervé, could you assist if possible.

BTW Archi 4.4 is available,

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/archimatetool/archi/issues/463#issuecomment-480305845, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHU3akZEiGKZz_T0jt09JS_7VUdDzpNaks5vd2OOgaJpZM4cec8J.

jyl13 avatar Apr 05 '19 15:04 jyl13

What is the version on which it is working and tested? 4.4?

As I said, those archi.ini proxy settings are not supported, and seem to work for @herve91

The proxy settings for the Collaboration plug-in are only for connecting to git repositories, not the "Check for update" feature.

Phillipus avatar Apr 05 '19 15:04 Phillipus

I've removed the wiki page with those Proxy settings as my tests indicate that it is not working in all cases. It also depends on if the Collaboration plug-in uses a Proxy and if it has been initialised or not.

Needs more research.

Phillipus avatar Apr 05 '19 17:04 Phillipus

A workaround may be to set the Proxy settings in the Collaboration plugin, perform an action that requires a connection and then do a "Check for New Version" as I think this will set the proxy for the Archi session.

However, proxy settings and testing is one of those features where we could use some help in coding. I only can test with a local proxy server (CCProxy) and it doesn't really cover all cases.

Phillipus avatar Apr 05 '19 17:04 Phillipus

The "Error connecting to server" error message indicates that Archi cannot check if there is a new version available, thus that Archi cannot go through your proxy. It happens to me when my configuration is wrong (ie every month when my proxy credentials expire)

Unfortunately, I cannot say if this is related to the Collaboration plugin as I do not use it, but here is few things that might be checked:

  • check for any syntax error in your configuration
  • check you updated the right archi.ini file (it happened once I updated the ini file in one folder, and my shortcut launched Archi from another folder)
  • check there is no space around the equal signs
  • check your password do not contain special chars (space, quote, backslash, ...)
  • remove the proxyUser and proxyPassword lines if your firewall does not require credentials

Also, I haven't upgraded my plateform to Archi 4.4 yet and therefore haven't try if the OpenJDK bundles impact the proxy parameters.

herve91 avatar Apr 06 '19 07:04 herve91

Proxy settings will be supported in Archi 5.

Phillipus avatar Dec 04 '22 16:12 Phillipus