Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit, Amazon S3 and Windows -
JGit, Amazon S3 and Windows - [message #1726446] Sun, 13 March 2016 21:26 Go to next message
Oculus Hut is currently offline Oculus HutFriend
Messages: 1
Registered: March 2016
Junior Member
So, I have downloaded the file ( and am trying to use it to store a repository within Amazon S3.

I am on Windows 10 with the following Java runtime:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

I have created a local Git test repository.
F:\#Downloads\JGit\afolder>git status
On branch master
nothing to commit, working directory clean

I have specified the remote repository URL that I would like to push to:
F:\#Downloads\JGit\afolder>git remote -v
origin  amazon-s3://secret@git.test/ (fetch)
origin  amazon-s3://secret@git.test/ (push)

The AWS account I am using should have access to the git.test bucket.

This is what I get when I try and push to the S3 bucket:
F:\#Downloads\JGit\afolder>java -cp F:\#Downloads\JGit\\ org.eclipse.jgit.pgm.Main push origin master
org.eclipse.jgit.api.errors.TransportException: amazon-s3://git.test//objects: error in packed-refs
        at org.eclipse.jgit.pgm.TextBuiltin.execute(
        at org.eclipse.jgit.pgm.Main.execute(
        at org.eclipse.jgit.pgm.Main.main(
Caused by: org.eclipse.jgit.errors.TransportException: amazon-s3://git.test//objects: error in packed-refs
        at org.eclipse.jgit.transport.WalkRemoteObjectDatabase.readPackedRefs(
        at org.eclipse.jgit.transport.TransportAmazonS3$DatabaseS3.readAdvertisedRefs(
        at org.eclipse.jgit.transport.TransportAmazonS3.openPush(
        at org.eclipse.jgit.transport.PushProcess.execute(
        at org.eclipse.jgit.transport.Transport.push(
        ... 5 more
Caused by: Reading of '/packed-refs' failed: 403 Forbidden
        at org.eclipse.jgit.transport.AmazonS3.error(
        at org.eclipse.jgit.transport.AmazonS3.get(
        at org.eclipse.jgit.transport.TransportAmazonS3$
        at org.eclipse.jgit.transport.WalkRemoteObjectDatabase.openReader(
        at org.eclipse.jgit.transport.WalkRemoteObjectDatabase.readPackedRefs(
        ... 10 more
Caused by:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>D4C469A1471BFA57</RequestId><HostId>THRefkTC6doabYZqxoqIMoyNyEh4cXcFqbOqj7mcOsNvI7+t/f9oWVcaYQdGONluQRpkLlywm1s=</HostId></Error>
        at org.eclipse.jgit.transport.AmazonS3.error(
        ... 14 more

Any ideas what could have gone wrong? JGit setup problem, AWS setup problem or something else?

Any assistance would be very much appreciated!
Re: JGit, Amazon S3 and Windows - [message #1729406 is a reply to message #1726446] Wed, 13 April 2016 21:53 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1154
Registered: July 2009
Senior Member
TransportAmazonS3 loads credentials from a property file named like the userid given in the URL [1]
either .git/<userid> or ~/<userid>

See [2] for instructions, I didn't try this on my own

Previous Topic:Eclipse upgrade to 4.5.2
Next Topic:How can i increase the log level of egit/jgit
Goto Forum:

Current Time: Mon Sep 21 00:49:19 GMT 2020

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

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

Back to the top