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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.