Issue after updating PAT

Started by KBrennan, April 05, 2023, 19:12:19 PM

Previous topic - Next topic

KBrennan

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?

Phil Beauvoir

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.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

KBrennan

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>"

Phil Beauvoir

Check that you have entered the primary password in preferences correctly as well.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

KBrennan

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.

Phil Beauvoir

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. 
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

KBrennan

The Error Log button is greyed out and unselectable.

Phil Beauvoir

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.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Jean-Baptiste Sarrodie

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
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Phil Beauvoir

#9
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.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.