Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Tue, 16 June 2020 02:50 Go to next message
Dharma B is currently offline Dharma BFriend
Messages: 1
Registered: June 2020
Junior Member
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 08:28 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
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 18:23 Go to previous messageGo to next message
Thang   Le is currently offline Thang LeFriend
Messages: 10
Registered: May 2010
Location: Vietnam
Junior Member
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 19:25]

Report message to a moderator

Re: Transport Error : Git-upload-pack not permitted [message #1829833 is a reply to message #1829735] Sun, 12 July 2020 11:22 Go to previous messageGo to next message
Thang   Le is currently offline Thang LeFriend
Messages: 10
Registered: May 2010
Location: Vietnam
Junior Member
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 12:47]

Report message to a moderator

Re: Transport Error : Git-upload-pack not permitted [message #1830436 is a reply to message #1829833] Sun, 26 July 2020 08:22 Go to previous messageGo to next message
Thang   Le is currently offline Thang LeFriend
Messages: 10
Registered: May 2010
Location: Vietnam
Junior Member
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 20:37 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
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 10:21 Go to previous messageGo to next message
Thang   Le is currently offline Thang LeFriend
Messages: 10
Registered: May 2010
Location: Vietnam
Junior Member
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 13:05 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
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 16:42 Go to previous messageGo to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
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 15:54 Go to previous messageGo to next message
Chad Juliano is currently offline Chad JulianoFriend
Messages: 1
Registered: April 2021
Junior Member
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 15:51 Go to previous message
Alexandro Rodríguez is currently offline Alexandro RodríguezFriend
Messages: 1
Registered: June 2021
Junior Member
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: Fri Apr 19 20:21:40 GMT 2024

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

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

Back to the top