archimatetool / archi-modelrepository-plugin

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

Mac Archi 4.7.1 plugin 0.6.2. git push says not unauthorized user #150

Closed alberttwong closed 3 years ago

alberttwong commented 3 years ago

I have GPG and SSH keys uploaded to github. No branch protection for the project. Can't find the logs on my mac. Where are they?

Phillipus commented 3 years ago

Please provide more info about your type of connection, authentication details, steps taken (what were you doing) etc, etc. We can't help with this little amount of information.

Can't find the logs on my mac. Where are they?

The Configuration and 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.

However, jGit does not log messages so I doubt there's anything useful there.

Please see if the wiki can help - https://github.com/archimatetool/archi-modelrepository-plugin/wiki

alberttwong commented 3 years ago

"View Error Log" button is greyed out. I cannot press it.

Phillipus commented 3 years ago

"View Error Log" button is greyed out. I cannot press it.

That will mean there is no error log. On a Mac the path to the log is:

/Users/username/Library/Application Support/Archi4/.metadata/.log

Please provide more info about your type of connection, authentication details, steps taken (what were you doing) etc, etc.

alberttwong commented 3 years ago

no logs in /Users/alberttwong/Library/Application Support/Archi4/.metadata/.log. There is only a `.plugins' folder in '.metadata'.

type of connection, authentication details,

For the pull, I put in my username and password and downloaded my github project. There was no problem there. As far as the push, it prompted me again and I put in my name, username and password. In the settings, I did see that it found my ~home/.ssh/id_rsa key. Which is the same key I have uploaded to github. I can't think that I did anything unique. If I was just using git on the CLI, I do use my GPG key to sign my commits while also using my username and password. Typically I have branch security (all commits should be signed) but I deleted it when I ran into auth problems with archi.

Phillipus commented 3 years ago

GPG is not supported in coArchi if that's any help. See https://github.com/archimatetool/archi-modelrepository-plugin/issues/114

Phillipus commented 3 years ago

And check this https://github.com/archimatetool/archi-modelrepository-plugin/wiki/SSH-Authentication

alberttwong commented 3 years ago

So i also hit https://github.com/archimatetool/archi-modelrepository-plugin/issues/88

I then regen my ssh to PEM and used git@github.com:alberttwong/archi_cloudnative.git and it's now working. Thanks!