archimatetool / archi-modelrepository-plugin

coArchi - a plug-in to share and collaborate on Archi models.
153 stars 52 forks source link

Problems with Collaboration Mode - SSH related? #203

Closed DrsG closed 1 year ago

DrsG commented 1 year ago

Version of Archi, Operating System

Arche 4.9 - On Windows 10 -

Version of this plug-in

plugin version 0.8.7

Any other plug-ins installed?

XLS and Lighbox plugin installed

Expected Behaviour

I tried to setup the Collaborative mode.

Actual Behaviour

I got the following Error message: Screenshot 2023-02-24 170944

Steps to Reproduce the Behaviour

Collaborative parameters: Screenshot2

Phillipus commented 1 year ago

I had to Google the error message and found that “The semaphore timeout period has expired” means the SSH session timed out. I don't know why this happens. I don't think this points to anything in coArchi itself but perhaps a network problem.

Key-pair added to the ssh-agent

This isn't necessary for coArchi. All coArchi needs is the two SSH private/public key files and a password to access the private key. You could try unchecking the "Scan .ssh folder for identity files" option and set it to the specific private key file.

Do you have a ssh-agent setup? Maybe disable that?

DrsG commented 1 year ago

Ho Phil,

I tried all sorts of things but cannot get it working.

I have setup the Colab plugin as described in the documentation. When I use the SSL URL, I get the "semaphore timeout" message.

When I use the HTTPS URL, I get the following message: [cid:c5e9a655-dbec-49c9-906f-307fa21890d5]

The Plugin creates a local git repo (logical). When I open the git bash to interact with that repo, I can do a git PUSH to the github repo which I specified via its HTTPS URL. [cid:ec37c084-ebdd-4e73-be0b-9fa23f4c4851]

So the underlying git - github via HTTPS part is working.

If I specify the remove repo via the SSL URL, I get the following error message: [cid:fe4d73f5-635d-4ced-8f5f-5ac8642e9c8a]

How can I make Archi working with the HTTPS URL for the remote repo?

Kind regards

Geert Haerens


From: Phil Beauvoir @.> Sent: Friday, February 24, 2023 5:34 PM To: archimatetool/archi-modelrepository-plugin @.> Cc: DrsG @.>; Author @.> Subject: Re: [archimatetool/archi-modelrepository-plugin] Problems with Collaboration Mode - SSH related? (Issue #203)

I had to Google the error message and found that “The semaphore timeout period has expired” means the SSH session timed out. I don't know why this happens. I don't think this points to anything in coArchi itself but perhaps a network problem.

Key-pair added to the ssh-agent

This isn't necessary for coArchi. All coArchi needs is the two SSH private/public key files and a password to access the private key. You could try unchecking the "Scan .ssh folder for identity files" option and set it to the specific private key file.

— Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchimatetool%2Farchi-modelrepository-plugin%2Fissues%2F203%23issuecomment-1443971606&data=05%7C01%7C%7C17c5eb19dfae4707678a08db16850c5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638128532913085893%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KDPTEmeLXxN6YZReLgIxHzBp4xNPLTJBg%2BcvoMrN7ro%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFT5Q6TNQUQHKCP57WGFXHTWZDPKTANCNFSM6AAAAAAVHCP5ZA&data=05%7C01%7C%7C17c5eb19dfae4707678a08db16850c5c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638128532913085893%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=666GSkdyMEAA8s%2BN75z58NcTAktHV6YBqAo8z4fzvKc%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Phillipus commented 1 year ago

How can I make Archi working with the HTTPS URL for the remote repo?

Delete the local copy of the repo and re-import using the https form of the URL - like https://github.com/user/rep.git

DrsG commented 1 year ago

Sorry but I've tried that one multiple times. I aways get the SSL error when trying to use HTTPS


From: Phil Beauvoir @.> Sent: Monday, February 27, 2023 10:03 AM To: archimatetool/archi-modelrepository-plugin @.> Cc: DrsG @.>; Author @.> Subject: Re: [archimatetool/archi-modelrepository-plugin] Problems with Collaboration Mode - SSH related? (Issue #203)

How can I make Archi working with the HTTPS URL for the remote repo?

Delete the local copy of the repo and re-import using the https form of the URL - like https://github.com/user/rep.git

— Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchimatetool%2Farchi-modelrepository-plugin%2Fissues%2F203%23issuecomment-1445948048&data=05%7C01%7C%7Cc743291ff0304570fd1e08db18a18eae%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638130854373555264%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=kOVoNlu1zx4SEcIAYAz6s5HitcuJOWuBAxifRtF4jUU%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFT5Q6VA7R6R6LDSWPCYHZLWZRUXXANCNFSM6AAAAAAVHCP5ZA&data=05%7C01%7C%7Cc743291ff0304570fd1e08db18a18eae%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638130854373555264%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UQLWM%2BSR0%2FVOsoXQDl0r79FYdP12x5tzHpBSpfSmLoY%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Phillipus commented 1 year ago

If you are using email to reply to these messages attachments like screenshots do not appear.

jbsarrodie commented 1 year ago

I aways get the SSL error when trying to use HTTPS

If you get a SSL error, then that's most certainly because you are using a SSL proxy which uses an unknown certificate. In such case, you'll have to add it into the cacert file included with the built-in JRE. You can find some guidance here.

DrsG commented 1 year ago

Hi Jean-Baptise, I think that's the case indeed - I got it working on my personal PC (no proxies) but have issues on the company PC (using a cloud based proxy). I'll try the likin you sent. One question, when you talk about certificates, am I right in assuming that what I need to include is the github certificate?

Kind regards

Geert


From: Jean-Baptiste Sarrodie @.> Sent: Monday, February 27, 2023 4:58 PM To: archimatetool/archi-modelrepository-plugin @.> Cc: DrsG @.>; Author @.> Subject: Re: [archimatetool/archi-modelrepository-plugin] Problems with Collaboration Mode - SSH related? (Issue #203)

I aways get the SSL error when trying to use HTTPS

If you get a SSL error, then that's most certainly because you are using a SSL proxy which uses an unknown certificate. In such case, you'll have to add it into the cacert file included with the built-in JRE. You can find some guidance herehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchimatetool%2Farchi%2Fwiki%2FHow-to-create-a-packaged-version-of-Archi-(including-configuration-and-plugins)%23use-custom-certificates&data=05%7C01%7C%7C168e20637b424e47f02508db18db7842%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638131103108874377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JoykQwsVw72JEVzilKZfxESoz6eO%2Bfungqbnmk%2BWoLE%3D&reserved=0.

— Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchimatetool%2Farchi-modelrepository-plugin%2Fissues%2F203%23issuecomment-1446588497&data=05%7C01%7C%7C168e20637b424e47f02508db18db7842%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638131103108874377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=E9DcRr8gi%2BNOK6nA%2BSqlhdhJGpBod02FNnyeO4vOUbY%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFT5Q6TWXN5TLHXQLCIXLY3WZTFKLANCNFSM6AAAAAAVHCP5ZA&data=05%7C01%7C%7C168e20637b424e47f02508db18db7842%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638131103108874377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6ZLh2H3s3XX7%2Fi9ENGBRdDfKwfm6or%2BcaRYYj%2Bk%2B9U0%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

jbsarrodie commented 1 year ago

One question, when you talk about certificates, am I right in assuming that what I need to include is the github certificate?

Not really. Because you are using a corporate proxy, what Archi (or any browser) sees is the proxy's certificate, not the real github certificate. One simple way to get it is to simply connect to github using a browser and then clic on the lock icon: you'll get access to some security related information dialog which usually (on most if not all browsers) allows you to see and then export the certificate.

DrsG commented 1 year ago

Dear Jean-Baptiste, Good news, the procedure works! Thanks a lot for your fast ans excellent support !

Kind regards

Geert


From: Jean-Baptiste Sarrodie @.> Sent: Tuesday, February 28, 2023 9:02 PM To: archimatetool/archi-modelrepository-plugin @.> Cc: DrsG @.>; Author @.> Subject: Re: [archimatetool/archi-modelrepository-plugin] Problems with Collaboration Mode - SSH related? (Issue #203)

One question, when you talk about certificates, am I right in assuming that what I need to include is the github certificate?

Not really. Because you are using a corporate proxy, what Archi (or any browser) sees is the proxy's certificate, not the real github certificate. One simple way to get it is to simply connect to github using a browser and then clic on the lock icon: you'll get access to some security related information dialog which usually (on most if not all browsers) allows you to see and then export the certificate.

— Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchimatetool%2Farchi-modelrepository-plugin%2Fissues%2F203%23issuecomment-1448799695&data=05%7C01%7C%7C03d26e334fca4eb823ee08db19c6ac07%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638132113302972781%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6%2FxWGCZXgY9sZwFRDTEzjODsksg%2FaOa82P%2BuynbGCZM%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFT5Q6THSEH4B5DINSBO2ETWZZKT7ANCNFSM6AAAAAAVHCP5ZA&data=05%7C01%7C%7C03d26e334fca4eb823ee08db19c6ac07%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638132113302972781%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=M8BeReaxAajxFS%2Bjt0ybsliNA%2FTs0Vu4h8h%2BTHGg4uA%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Phillipus commented 1 year ago

Thanks, JB, for solving this. 😄