Adding or importing new model in workspace sunddenly doesn't work anymore

Started by michel.wicky, February 27, 2025, 07:23:49 AM

Previous topic - Next topic

michel.wicky

I'm using Archi in several computer and synchronizing model using CoArchi with remote github repository I own by myself or I'm an Administrator.

The already existing models synchronisze well without any problem.
I'm however not able to create a new one for a new project event it is currently empty.

I got an exception :
org.eclipse.jgit.api.errors.TransportException: https://github.com/Inoshift/sig-processus-solaire.git: git-upload-pack not permitted on 'https://github.com/Inoshift/sig-processus-solaire.git/';
   at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:224)
   at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:311)
   at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:182)
   at org.archicontribs.modelrepository.grafico.ArchiRepository.cloneModel(ArchiRepository.java:199)
   at org.archicontribs.modelrepository.actions.CloneModelAction$1.run(CloneModelAction.java:105)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:124)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/Inoshift/sig-processus-solaire.git: git-upload-pack not permitted on 'https://github.com/Inoshift/sig-processus-solaire.git/';
   at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:692)
   at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:465)
   at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:141)
   at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:93)
   at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1317)
   at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:213)
   ... 5 more

I tested quiet everything but I didn't find the reason until yet.
Is it a way to get more detailed information to identify what is wrong ?

PAT is checked and is correct
URL are correct, cloning, fetching, pulling, ... by using git directly work fine
Other existing model syncs well, including removing them from the workspace and recreating them by importing.

Regards, Michel

Phil Beauvoir

Hi Michel,

unfortunately the error messages provided by JGit are not really very useful. But I think this one concerns a permissions problem. It might be worth checking branch and other permissions on the target repository settings.

Phil
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

michel.wicky

I checked everything...I'm able to clone and play with the remote repository manually by using git command.

Phil Beauvoir

As far as I can tell the error is caused by HTTP Status-Code 403: Forbidden.

Perhaps this is something to do with local permissions for JGit, see https://github.com/archimatetool/archi-modelrepository-plugin/wiki/Troubleshooting-Connection-Issues

Phil
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,

From my experience here are some potential root causes:
- Bad configuration in Archi (wrong URL/port)
- Certificate of the git server has been updated/changed and has not been added to Archi's JVM cacert file. If that's the case, your can look at this guide or this one.
- Network filtering (usually the case behind a corporate VPN) is in place and forbids some git operations. In such case you can try to enable proxy in Archi's Collaboration preference tab.

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.