Archi Forum

Archi Plug-ins => coArchi => Topic started by: jyves on August 29, 2019, 09:21:32 AM

Title: Error when using Import Model to Workspace
Post by: jyves on August 29, 2019, 09:21:32 AM
When using "Import Remote Model to WorkSpace" I get the following error "There was an error: Connection timed-out: connect".
I have checked successfully the URL and the credentials with my Navigator (IE 11), the access is ok.
In the Collaboration preferences I did not specify any proxy to align with the Internet configuration of my Navigator.
The LAN settings of my Navigator is "Automatically detect settings" is selected, no proxy server is selected.
I made several verifications and Archi is not blocked by my Windows Defender Firewall.
I use Archi version 4.4.0.
Any idea to investigate this problem ?
Title: Re: Error when using Import Model to Workspace
Post by: Phil Beauvoir on August 29, 2019, 15:50:09 PM
Hi, it's hard to diagnose this kind of problem without a lot more information regarding network setups, git host and so on. Can you provide any more details?
Title: Re: Error when using Import Model to Workspace
Post by: jyves on August 30, 2019, 08:30:02 AM
Please find attach the Archi Collaboration Preferences and the LAN parameters setting.
Could you precise the other settings that could be useful ?
Title: Re: Error when using Import Model to Workspace
Post by: Phil Beauvoir on August 30, 2019, 08:36:46 AM
What is the git server? Is it something like GitHub, GitLab or network server? Do you have to have special credentials? What is the URL type of the git server.

Also, search here in case someone had a similar problem - https://github.com/archimatetool/archi-modelrepository-plugin/issues
Title: Re: Error when using Import Model to Workspace
Post by: jyves on August 30, 2019, 08:53:34 AM
The Git server is a network server, the URL is https://gitlab.kazan.xxxxx.com/yyy/zzzz.git
I can access this URL with my IE navigator using same credentials I use when importing the remote model to workspace.
Attach is the Windows Defender configuration.
Title: Re: Error when using Import Model to Workspace
Post by: Manj75 on September 02, 2019, 14:35:32 PM
Hi Jyves,

I had similar issue when first setting up for my client on their network - you can try the following to see if you get further:

1. To test install GIT for Windows and try to clone your remote GIT repo - if this succeeds then all good so far
2. If you are using in a work organisation then there surely must be a proxy that you will need to get through - you need to confirm and setup details in the collaboration settings.
3. If step 1 succeeds and step 2 is confirmed then I suspect that endpoint is unreachable due to SSL certificate issue.  I found that the SSL being stored in the Windows Certificate Manager (Trust Store) is being accessed correctly by GIT for Windows, but not so for Archi.  Try adding the following parameters to the Archi.ini file, which instructs it to use the WCM - this worked for me after a lot of research and trial & error.

-Djavax.net.ssl.trustStore=NUL
-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT

Hope this helps.
Title: Re: Error when using Import Model to Workspace
Post by: jyves on September 06, 2019, 08:20:32 AM
Hi Manj75,

Thanks for your help.
1) I successfully installed GIT and tried to clone my remote GIT repo.
I got an error very similar to the one I get with Archi, that is : 
"fatal: unable to access 'ttps://gitlab.kazan.xxxxx.com/yyy/zzzz.git': Failed to connect to gitlab.kazan.xxxxx.com port 443: Timed out.
2) I tried also to add -Djavax.net.ssl.trustStore=NUL and -Djavax.net.ssl.trustStoreType=WINDOWS-ROOT in my Archi.ini file. I got the same error in Archi (connection time-out).

Any other idea ?
Title: Re: Error when using Import Model to Workspace
Post by: Manj75 on September 10, 2019, 13:29:54 PM
Hi jyves,

Sorry for the late reply.

Seems to me that there is an underlying issue with access to the endpoint and likely to do with SSL certificates.  The fact that a separate GIT application is getting the same error means that you don't have the correct certs installed.

Kind Regards,

Manjit