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

Bug 334891

Summary: [headless agregator] cannot install headless agregator
Product: [Technology] CBI Reporter: Bouchet Stéphane <sbouchet>
Component: CBI p2 Repository AggregatorAssignee: Project Inbox <b3.aggregator-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: henrik.lindberg, peter.kullmann, thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 337026    
Bug Blocks:    
Attachments:
Description Flags
log about signed contents of sat4j none

Description Bouchet Stéphane CLA 2011-01-20 09:44:28 EST
Hi,

Following the wiki instructions[1], i cannot install b3 headless agregator.

the provided repository fails to load any artifact.

i changed the repo URL to point out the 3.6 update site[2] and the process prints out some info and then seems stuck after a while. ( waiting half hour ) 

looking at the plugins directory, the org.sat4j.pb_2.2.0.v20100429.jar is zero bytes and seems to be downloaded again and again.

[1] http://wiki.eclipse.org/Eclipse_b3/aggregator/manual#Headless_installation
[2] http://download.eclipse.org/modeling/emft/b3/headless-3.6/
Comment 1 Henrik Lindberg CLA 2011-01-21 12:42:30 EST
Are you behind a proxy/firewall?
(There are many problematic cases when this is the case, and it is worth trying exactly the same when not being behind proxy to rule out proxy problems).

Did you try turning off use of mirrors?
(Sometimes there are issues with the mirrors; being directed to the worst possible mirror, a broken mirror, or a mirror with bad data).
Comment 2 Bouchet Stéphane CLA 2011-01-24 05:33:05 EST
Created attachment 187406 [details]
log about signed contents of sat4j

Attached the log of the headless install, showing that sat4j might be corrupted
Comment 3 Bouchet Stéphane CLA 2011-01-25 03:29:39 EST
(In reply to comment #1)
> Are you behind a proxy/firewall?
> (There are many problematic cases when this is the case, and it is worth trying
> exactly the same when not being behind proxy to rule out proxy problems).
> 
> Did you try turning off use of mirrors?
> (Sometimes there are issues with the mirrors; being directed to the worst
> possible mirror, a broken mirror, or a mirror with bad data).

Hi,
sorry i did see you replied to my request ( didn't received any mail ).

BTW, i don't use a proxy. 
I manually mirrored the 3.6 repo locally and get the log attached in previous comment.

I tried also to modify the artifacts.xml file in order to make the process complete ( yes, this is nasty ) and get a successful installation : 

Installing org.eclipse.b3.cli.product 0.1.0.r01290.
Installing org.eclipse.b3.aggregator.engine.feature.feature.group 0.1.0.r01408.
Operation completed in 2826 ms.


BUT , when i tried the b3 aggregate command, i get this error : 
 ./b3 aggregate
No such command: aggregate

Usage: b3 command [options...]
 --eclipseLogLevel [DEBUG | INFO |      : Controls the verbosity of the eclipse
 WARNING | ERROR]                       : log trace output. Defaults to global
                                          b3 settings.
 --logLevel [DEBUG | INFO | WARNING |   : Controls the verbosity of the console
 ERROR]                                 : trace output. Defaults to global b3
                                          settings.
 --stacktrace                           : Display stack trace on error
 -? (--help)                            : Print help screen for specified
                                          command

Available commands:
runScript - Runs a set of commands from a script file


so it seems only the cli feature is installed.

many thanks if you could help me to have a correct installation of the b3 headless aggregator..
Comment 4 Peter Kullmann CLA 2011-02-12 04:32:00 EST
I can confirm this. Both on my laptop at home and in the office and on two of our servers in the office i had the same problem. The Installation is just stuck and tries to download the org.sat4j.pb bundle again and again. I checked it with wireshark and this is what's repeated over and over (look at the times: this is about three minutes after the installation was started):
No.     Time        Source                Destination           Protocol Info
   8513 186.378608  10.0.1.2              206.191.52.47         HTTP     GET /modeling/emft/b3/headless-3.7milestones/plugins/org.sat4j.pb_2.2.0.v20100429.jar.pack.gz HTTP/1.1
   8547 187.467916  206.191.52.47         10.0.1.2              HTTP     HTTP/1.1 200 OK  (application/x-gzip)
   8557 187.954866  10.0.1.2              206.191.52.47         HTTP     GET /modeling/emft/b3/headless-3.7milestones/plugins/org.sat4j.pb_2.2.0.v20100429.jar.pack.gz HTTP/1.1
   8607 193.750089  206.191.52.47         10.0.1.2              HTTP     HTTP/1.1 200 OK  (application/x-gzip)
Comment 5 Thomas Hallgren CLA 2011-02-12 07:49:54 EST
I rebuilt the updates-3.6 and headless-3.6 sites. I cannot currently build the 3.7 site due to bug 	337026.
Comment 6 Bouchet Stéphane CLA 2011-02-14 09:16:05 EST
(In reply to comment #5)
> I rebuilt the updates-3.6 and headless-3.6 sites. I cannot currently build the
> 3.7 site due to bug     337026.

Hi, 

i tried the above updates sites, with no luck :( 

I decided to mirror the update site using b3 editor, and then using the mirrored update site.

mirroring went ok, with no error, but when i tried to use it, i got the error : 
$:~/director$ ./director -d /tmp/b3_director -p b3 -i org.eclipse.b3.cli.product -i org.eclipse.b3.aggregator.engine.feature.feature.group -r file:/tmp/b3headless/final/
Installing org.eclipse.b3.cli.product 0.1.0.r01290.
Installing org.eclipse.b3.aggregator.engine.feature.feature.group 0.1.0.r01417.
Installation failed.
An error occurred while collecting items to be installed
 session context was:(profile=b3, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
 Problems downloading artifact: osgi.bundle,org.sat4j.core,2.2.0.v20100429.
  File has invalid content:/tmp/signatureFile8176.jar
   Invalid content:org/sat4j/minisat/constraints/cnf/BinaryClause.class
Caused by:    org.eclipse.osgi.signedcontent.InvalidContentException: The file "org/sat4j/minisat/constraints/cnf/BinaryClause.class" in the jar "/tmp/signatureFile8176.jar" has been tampered!
   Invalid content:org/sat4j/minisat/constraints/AbstractDataStructureFactory.class
Caused by:    org.eclipse.osgi.signedcontent.InvalidContentException: The file "org/sat4j/minisat/constraints/AbstractDataStructureFactory.class" in the jar "/tmp/signatureFile8176.jar" has been tampered!
   Invalid content:org/sat4j/minisat/constraints/cnf/OriginalBinaryClause.class
Caused by:    org.eclipse.osgi.signedcontent.InvalidContentException: The file "org/sat4j/minisat/constraints/cnf/OriginalBinaryClause.class" in the jar "/tmp/signatureFile8176.jar" has been tampered!


and many other errors.

any clues ?
Comment 7 Thomas Hallgren CLA 2011-02-14 09:26:53 EST
Did you perhaps use a Java 1.5 at some point in this process?
Comment 8 Bouchet Stéphane CLA 2011-02-14 10:03:18 EST
(In reply to comment #7)
> Did you perhaps use a Java 1.5 at some point in this process?

hum, yes i am ! 

$ java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode)
Comment 9 Thomas Hallgren CLA 2011-02-15 06:01:48 EST
I rebuilt the site without pack200 enabled. Can you please try again and see if that helped?
Comment 10 Thomas Hallgren CLA 2011-02-15 06:04:05 EST
For the record, Java 1.5 reached it's EOSL over a year ago: http://www.oracle.com/technetwork/java/javase/downloads/index-jdk5-jsp-142662.html

Perhaps you should consider an upgrade ;-)
Comment 11 Bouchet Stéphane CLA 2011-02-15 06:14:28 EST
hi,

i'll try the new site right away. 

and we are planning to migrate to java6 soon ;)
Comment 12 Bouchet Stéphane CLA 2011-02-15 06:21:03 EST
Hi, 

the new update site provided did it ! 

i am able to install b3 headless with director without messages, and running b3 seems ok : 
./b3 -?
No command was specified

Usage: b3 command [options...]
 --eclipseLogLevel [DEBUG | INFO |      : Controls the verbosity of the eclipse
 WARNING | ERROR]                       : log trace output. Defaults to global
                                          b3 settings.
 --logLevel [DEBUG | INFO | WARNING |   : Controls the verbosity of the console
 ERROR]                                 : trace output. Defaults to global b3
                                          settings.
 --stacktrace                           : Display stack trace on error
 -? (--help)                            : Print help screen for specified
                                          command

Available commands:
aggregate - Aggregates source repositories into a resulting repository using aggregator definition
runScript - Runs a set of commands from a script file


thanks !
Comment 13 Peter Kullmann CLA 2011-02-15 06:39:53 EST
Thanks a lot. For me it worked as well - there was one strange message, though:

kup@webserver:~> director/director -p2.os linux -p2.ws gtk -p2.arch x86_64 -r http://download.eclipse.org/modeling/emft/b3/headless-3.6 -d /home/kup/b3headless -p b3 -i org.eclipse.b3.cli.product -i org.eclipse.b3.aggregator.engine.feature.feature.group -consolelog
Installing org.eclipse.b3.cli.product 0.1.0.r01421.
Installing org.eclipse.b3.aggregator.engine.feature.feature.group 0.1.0.r01418.
Artifact repository out of sync. Overwriting /home/kup/b3headless/plugins/org.sat4j.pb_2.2.0.v20100429.jar
Operation completed in 178211 ms.
kup@webserver:~>
Comment 14 David Williams CLA 2016-09-16 15:58:18 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
No change to assignee for resolved and verified bugs.]