Archi Forum

Archi Plug-ins => coArchi => Topic started by: asc on March 24, 2022, 11:15:22 AM

Title: Error CoArchi on Publish changes
Post by: asc on March 24, 2022, 11:15:22 AM
Hello,

I have an error when I want to publish changes from Archi with ArchiCo plugin to a GIT on Azure DevOps :
"There is an error : https://..... : not authorized" (screenshot in attachment)

But when I try to commit with GIT in command line (git push origin branch_name), that's work.

Is someone have an idea why it doesn't work in ARchi ?

Archi Version 4.9.2
Plugin CoArch 0.8.2 (in screenshot)

error_archi (2).png
version_plugin (2).png
Title: Re: Error CoArchi on Publish changes
Post by: anderstn on March 24, 2022, 14:36:49 PM
I am having the same issue. The only difference being that we locally use HTTP and not HTTPS for our repository (PS: I would never use HTTP for this even if the traffic is local, but I'm not in charge of the department that owns this so there is little I can do about it).
Title: Re: Error CoArchi on Publish changes
Post by: Xiaoqi on March 30, 2022, 00:45:57 AM
Hello asc,

Our team are also putting Archi model repo in Azure DevOps, I saw this kind of issue sometimes, it can happen in variable Archi version, so from my experience, it's not relating to Archi Main Tool or coArchi plug-in.

Could you verify two possible problem areas?

1) Whether your personal token generated from Azure DevOps site has been expired? If you didn't specify, it can only a short period and can be overdue soon. Or

2) Check on the "Authentication" tab of your model within Workspace is keyed in correct User Name, which should be same from Azure DevOps when you trying to do "clone"

Good luck.
Title: Re: Error CoArchi on Publish changes
Post by: Martine on April 07, 2022, 19:01:02 PM
Hello,
I'm having the same problem, @asc did you manage to find a solution ?
@xiaoqi, I'm totaly new with Github I only use it for Archi, could you help me please ?
It seems your first point is not finished, could you complete your suggestion ?
As far as I can tell, my token is ok (see attachment).
I checked your second point, it's ok.
Thanks for any help.
2022-04-07 19_23_24-Settings ยท Personal access tokens.png
Title: Re: Error CoArchi on Publish changes
Post by: Martine on April 20, 2022, 14:03:33 PM
Hello,
in case it would help someone, here is what finally worked for me...
First, I had to reset my primary password, see here : https://forum.archimatetool.com/index.php?topic=1200.0
But I'm not sure this has to be done, perhaps something went wrong because of all my tests...

Then, I generated a new password from GitHub (see attachment 1)
Then, put this temporary password in model properties (see attachment 2)
I could then publish again!

Afer closing and reopening Archi, when I published for first time, I was prompted to enter the "real" primary password, the properties where updated with the "real" primary password, and the publish went well.

Hope this helps.
Martine

Title: Re: Error CoArchi on Publish changes
Post by: Martine on April 20, 2022, 14:06:16 PM
Attached files1 - get password from Github.png2 - put password in authentification.png 
Title: Re: Error CoArchi on Publish changes
Post by: Phil Beauvoir on April 20, 2022, 14:13:35 PM
Martine, I deleted the first image as it contained private info.
Title: Re: Error CoArchi on Publish changes
Post by: Martine on April 20, 2022, 15:18:30 PM
oops!!!
Thanks Phil!
M

Title: Re: Error CoArchi on Publish changes
Post by: Xiaoqi on April 22, 2022, 18:38:53 PM
Sorry for late replying, not quite sure whether the root cause is the Primary Password or another Github password (we use Azure DevOps not GitHub), but glad to see you're able to publish model now.

By the way, ensure remembe the Primary Password, everytime after you reboot your PC or reopen the Archi, you need that password for your next first commit.

Good luck.
Title: Re: Error CoArchi on Publish changes
Post by: asc on May 02, 2022, 09:41:05 AM
Hello Martine,

Yes I succeed to manage this issue.

I have generated new Azure Devops HTTPS credentials.
I have deleted the credentials file in .git folder.

And finally I have filled the authentification informations in Archi with my new credentials.