Archi Forum

Archi Plug-ins => coArchi => Topic started by: KBrennan on April 05, 2023, 19:12:19 PM

Title: Issue after updating PAT
Post by: KBrennan on April 05, 2023, 19:12:19 PM
I'm using Archi 5.02 on Mac Silicon, coArchi 0.87. My PAT expired on GitHub and I generated a replacement. Since generating the replacement I am unable to log into the repository to refresh my Archi Model. I tried putting the new PAT token in as the password on the settings but it didn't help. What am I doing wrong/missing?
Title: Re: Issue after updating PAT
Post by: Phil Beauvoir on April 05, 2023, 19:34:11 PM
Hi, if you are using HTTPS for a repository the PAT needs to be updated in the Password field of the "Authentication" section of the Properties tab. Selecting the repository in the Collaboration Workspace will select this in the Properties Window.
Title: Re: Issue after updating PAT
Post by: KBrennan on April 05, 2023, 19:49:35 PM
Yes, I did that and it's not working. I get an error saying "An incorrect password was entered or the encryption key is invalid>"
Title: Re: Issue after updating PAT
Post by: Phil Beauvoir on April 05, 2023, 19:53:35 PM
Check that you have entered the primary password in preferences correctly as well.
Title: Re: Issue after updating PAT
Post by: KBrennan on April 05, 2023, 20:07:39 PM
Yes, I did that too. I don't know if this is relevant, but when I click the "Apply and Close" button on the relevant settings it doesn't close.
Title: Re: Issue after updating PAT
Post by: Phil Beauvoir on April 05, 2023, 20:14:26 PM
Please check the error log. The error log can be accessed in Archi by selecting the "About Archi" menu item. In the dialog box press the "Installation Details" button, then select the "Configuration" tab and press the "View Error Log" button. 
Title: Re: Issue after updating PAT
Post by: KBrennan on April 05, 2023, 20:18:53 PM
The Error Log button is greyed out and unselectable.
Title: Re: Issue after updating PAT
Post by: Phil Beauvoir on April 05, 2023, 20:27:02 PM
That means there is no error log.

This is hard to diagnose at my end. I think you're going to have try different things your end to narrow this one down. In theory, if the primary password and the repo PAT are correct this should work OK, unless there's some unknown factor at play here.
Title: Re: Issue after updating PAT
Post by: Jean-Baptiste Sarrodie on April 06, 2023, 10:47:47 AM
Hi,

Quote from: KBrennan on April 05, 2023, 19:12:19 PMMy PAT expired on GitHub and I generated a replacement. Since generating the replacement I am unable to log into the repository to refresh my Archi Model. I tried putting the new PAT token in as the password on the settings but it didn't help. What am I doing wrong/missing?

In such case, try to create another PAT (use the "classic" one) and double-check the associated rights. Also check which username you use with this PAT (in the past, with PAT a dummy username was required to be set to "oauth2").

Regards,

JB
Title: Re: Issue after updating PAT
Post by: Phil Beauvoir on April 06, 2023, 11:27:42 AM
I suspect that, in this case, the PAT has not been saved/encrypted properly when changing settings. Perhaps the primary password was updated with the option to re-encrypt, or perhaps not saved properly because of this:

>but when I click the "Apply and Close" button on the relevant settings it doesn't close.

I would try again to set the primary password, ensure it's saved, and re-enter the PAT for the repository. As you're on Mac and using Archi 5, check that Archi has permissions to write to the <user>/Documents folder.

Edit: there are two situations where saving preferences will fail:

(1) If SSH Identity Password is set and the encrypted storage can't save it
(2) If Enable Proxy and password is set and and the encrypted storage can't save it

If the secure encrypted storage can't be set this might be because of access permissions to the model-repository folder.