Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328028

Summary: Helios metadata repository reports premature end of file error while mirroring
Product: [Eclipse Project] Platform Reporter: Ankush Kalkote <kalkote.ankush>
Component: RelengAssignee: Platform-Releng-Inbox <platform-releng-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: david_williams, ds.martin.trummer, kim.moir, marek.zdunek, pwebster
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ankush Kalkote CLA 2010-10-18 07:24:37 EDT
Build Identifier: 3.5.2.M20100211-1343

When trying to mirror the Helios p2 repository with p2 mirroring application I am getting [Fatal Error]:30542:6: Premature end of file. I am running:
/opt/eclipse35/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source http://download.eclipse.org/releases/helios/ -destination file:/usr/local/repos/helios/

Reproducible: Always

Steps to Reproduce:
Run following command:
/opt/eclipse35/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source http://download.eclipse.org/releases/helios/ -destination <dest_file>
Comment 1 Kim Moir CLA 2010-10-18 09:37:29 EDT
This worked for me using a linux.gtk.x86 SDK. What are you using?
Comment 2 Ankush Kalkote CLA 2010-10-18 13:50:46 EDT
I am too using linux.gtk.x86 and able to reproduce it.

Thanks,
Ankush.

(In reply to comment #1)
> This worked for me using a linux.gtk.x86 SDK. What are you using?
Comment 3 Kim Moir CLA 2010-10-19 10:22:37 EDT
Can you try setting  eclipse.p2.mirrors=false as a VM argument when run the mirrorApplication?  You might be hitting a wonky mirror.
Comment 4 Kim Moir CLA 2010-10-22 17:39:21 EDT
Are you still seeing this issue if you set eclipse.p2.mirrors=false?
Comment 5 Ankush Kalkote CLA 2010-10-25 10:41:07 EDT
(In reply to comment #4)
> Are you still seeing this issue if you set eclipse.p2.mirrors=false?

Thanks Kim for looking into it.
I tried setting this argument and ran the following command; but the issue is still seen.
/opt/eclipse35/eclipse -application
org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source
http://download.eclipse.org/releases/helios/ -destination
file:/usr/local/repos/helios/ -vmargs -Declipse.p2.mirrors=false

I am trying to do the same thing with Ant task, would that make any difference?
Comment 6 Martin Trummer CLA 2011-03-01 09:18:38 EST
I am not sure, if this is (was) the same problem that I just had.

Anyway, I'd like to post my problem here for reference.

I used the following repository in my maven build:
http://download.eclipse.org/releases/helios 
and maven reported "Premature end of file." when trying to read this repository.

It turned out, that I had to remove the ".cache" directory from my local repository and then it worked fine again.

Maybe I killed maven during a build? (I cannot reproduce it now)
Comment 7 Marek Zdunek6 CLA 2011-03-20 12:47:54 EDT
same problem here

[Fatal Error] :3687:29: Premature end of file.

Build id: 20110218-0911
Comment 8 David Williams CLA 2012-10-10 00:00:12 EDT
Just ran across this old bug. It sounds like we could not reproduce, and did not "fix" anything. Since it is on such an old stream/repo, unlikely we've fix anyway :/ ... but, if anyone sees this on Juno or Kepler sites, please re-open or open new bug. 

Thanks for reporting.