Spring Boot application fails to start due to git-upload-pack not permitted

Solution Unverified - Updated -

Issue

Spring Boot application is failing to startup due to:

2018-09-26 15:19:23.395 ERROR 7 --- [           main] o.s.boot.SpringApplication               : Application startup failed
java.lang.IllegalStateException: Cannot clone or checkout repository
...
Caused by: org.eclipse.jgit.api.errors.TransportException: https://test@gitlab.example.org/mygroup/myrepo.git:  git-upload-pack not permitted
    at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
    at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:187)
        ...

Environment

  • Red Hat OpenShift Container Platform
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content