Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Transport Error : Git-upload-pack not permitted (Transport Error : Git-upload-pack not permitted while performing the transaction operations lilke( Push, list branches, pull etc))
Transport Error : Git-upload-pack not permitted [message #1828655] Mon, 15 June 2020 22:50 Go to next message
Eclipse UserFriend
Getting the following transport exception while performing the git operations from jgit api's. These api's are called from java program which is running on tomcat inside docker container.

Caused by: org.eclipse.jgit.api.errors.TransportException: https://${github/gitlab url}/xxxxx/sampletest.git: git-upload-pack not permitted
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:221)
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)

Caused by: org.eclipse.jgit.errors.TransportException: https://${github/gitlab url}xxxxx/sampletest.git: git-upload-pack not permitted
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:501)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:290)
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:198)
... 142 common frames omitted
Re: Transport Error : Git-upload-pack not permitted [message #1828663 is a reply to message #1828655] Tue, 16 June 2020 04:28 Go to previous messageGo to next message
Eclipse UserFriend
We need more details if you want help:
- which code is running on client side ?
- which JGit version are you using ?
- which Java version are you using ?
- it seems the server side is Gitlab, does it require authentication ? Does your client code authenticate ?
- was http.sslVerify true or false ?
- does Java on the client side trust the server certificates ?
Re: Transport Error : Git-upload-pack not permitted [message #1829735 is a reply to message #1828663] Thu, 09 July 2020 14:23 Go to previous messageGo to next message
Eclipse UserFriend
Yes, i also facing same problem on bitbucket.org
git-upload-pack not permitted on


E git version 5.8
Eclipse version 4.16
Java jdk 11
http.sslVerify = false
OS: Windows 10

user .gitconfig

[user]
	email = xxx@gmail.com
	name = XXX
[credential]
	helper = manager
[http]
	postBuffer = 1048576000
	sslVerify = false
[core] 
	packedGitLimit = 512m
	packedGitWindowSize = 512m
	compression = 1
	autocrlf = true
[pack] 
	deltaCacheSize = 2047m
	packSizeLimit = 2047m
	windowMemory = 2047m
[filesystem "Oracle Corporation|1.8.0_221|-1406546411"]
	timestampResolution = 8001 microseconds
	minRacyThreshold = 0 nanoseconds
[filesystem "Amazon.com Inc.|11.0.5|-1406546411"]
	timestampResolution = 8498 microseconds
	minRacyThreshold = 0 nanoseconds


github.com is OK. seems this is bitbucket.org issue.
https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-commit-to-the-Bitbucket-server-returns-unable-to/qaq-p/1024699#U1428246

[Updated on: Thu, 09 July 2020 15:25] by Moderator

Re: Transport Error : Git-upload-pack not permitted [message #1829833 is a reply to message #1829735] Sun, 12 July 2020 07:22 Go to previous messageGo to next message
Eclipse UserFriend
confirmed this is bitbucket.org issue. Seems this issue is due to internet speed during authentication.

To close this topic

[Updated on: Sun, 12 July 2020 08:47] by Moderator

Re: Transport Error : Git-upload-pack not permitted [message #1830436 is a reply to message #1829833] Sun, 26 July 2020 04:22 Go to previous messageGo to next message
Eclipse UserFriend
It still sometime happens again in Eclipse.
But if i use Sourcetree (https://www.sourcetreeapp.com/) to commit, then it can work fine. So i don't know whether this is Eclipse issue or bitbucket.org issue
Re: Transport Error : Git-upload-pack not permitted [message #1830452 is a reply to message #1830436] Sun, 26 July 2020 16:37 Go to previous messageGo to next message
Eclipse UserFriend
EGit supports two different HTTP clients: by default it uses the Apache libraries, but it can also use the JDK built-in HTTP client. Does this occur with both, or only with one of them? If it occurs with the JDK one: which Java version are you using to run Eclipse?

Also, what authentication mechanism is used?

Debug logging for the HTTP client might give additional insights. For the JDK client, I think there are system properties to enable debugging output. For the Apache client, it may be necessary to start Eclipse with an externally defined log4j config; see here for one way of doing so. (That description is for the JGit command-line client, but I think this should also work for Eclipse.)
Re: Transport Error : Git-upload-pack not permitted [message #1830467 is a reply to message #1830452] Mon, 27 July 2020 06:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi.
it only happens on Apache libraries http client. With JDK built-in HTTP client, it works fine. i am using JDK 11 64bit.
Authentication mechanism: https/user/password
Re: Transport Error : Git-upload-pack not permitted [message #1830471 is a reply to message #1830467] Mon, 27 July 2020 09:05 Go to previous messageGo to next message
Eclipse UserFriend
In that case only a network trace might help to figure out what's going on.
Re: Transport Error : Git-upload-pack not permitted [message #1834520 is a reply to message #1830471] Wed, 11 November 2020 11:42 Go to previous messageGo to next message
Eclipse UserFriend
I had the same problem since I upgraded to Eclipse 2020-09 and Java 15.

The tip to use the JDK http client helped. Now I do not get the errors anymore.
Re: Transport Error : Git-upload-pack not permitted [message #1839944 is a reply to message #1834520] Thu, 01 April 2021 11:54 Go to previous messageGo to next message
Eclipse UserFriend
Udo Walker wrote on Wed, 11 November 2020 16:42
I had the same problem since I upgraded to Eclipse 2020-09 and Java 15.

The tip to use the JDK http client helped. Now I do not get the errors anymore.


I had exactly the same issue with eclipse 2020-12. In Preferences->Git I changed "Http Client" to "Java built-in HTTP" and the issue is resolved.

Re: Transport Error : Git-upload-pack not permitted [message #1842078 is a reply to message #1839944] Tue, 08 June 2021 11:51 Go to previous message
Eclipse UserFriend
Thanks by the last reply, Just it fixed my problem
Previous Topic:Getting Exception org.eclipse.jgit.errors.LargeObjectException
Next Topic:Using JGit on Kubernetes
Goto Forum:
  


Current Time: Mon Jul 21 10:30:32 EDT 2025

Powered by FUDForum. Page generated in 0.04992 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top