Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » standaloneUpdate -search "connection error"
standaloneUpdate -search "connection error" [message #657791] Fri, 04 March 2011 04:48 Go to next message
Eclipse UserFriend
Originally posted by: lab2k1.gmail.c0m

I am running a fresh v3.6.2 and toying with the update manager.

The documented command for "searching a remote site, listing
all available features for install"

java -jar plugins/org.eclipse.equinox.launcher_<version>.jar
-application org.eclipse.update.core.standaloneUpdate
-command search -from remote_site_url

fails for remote_site_url = http://download.eclipse.org/releases/helios/
with "Connection error / Command failed". The equivalent comand

eclipsec.exe -application org.eclipse.update.core.standaloneUpdate
-command search -from http://download.eclipse.org/releases/helios/

fails with the same error. Verified to happen on a couple different
machines. Both can "see" the remote site fine, and the packages are
listed correctly in eclipse's "install new" dialog, so it doesn't look
like a 'net problem, or dns etc.

The exact same commands work as expected with a local mirror
when replacing the remote_site_url = file:c/eclipse/repo/helios.

I have tried all variations of quotes or no quotes around the url, and
trailing slash or not - still no luck. Any ideas much appreciated about
how to fix it, or at least what to look for.

Liviu
Re: standaloneUpdate -search "connection error" [message #657878 is a reply to message #657791] Fri, 04 March 2011 12:47 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 03/03/2011 11:48 PM, Liviu wrote:
> I am running a fresh v3.6.2 and toying with the update manager.

If you want the correct 3.6 commands, you would use the director. See
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/p2_director.html

ex:

java -jar
eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507 .jar
-application org.eclipse.equinox.p2.director -repository
http://download.eclipse.org/eclipse/updates/3.6 -list

or

java -jar
eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507 .jar
-application org.eclipse.equinox.p2.director -repository
http://download.eclipse.org/eclipse/updates/3.6 -list org.eclipse.sdk.ide


>
> The documented command for "searching a remote site, listing
> all available features for install"
>
> java -jar plugins/org.eclipse.equinox.launcher_<version>.jar
> -application org.eclipse.update.core.standaloneUpdate
> -command search -from remote_site_url

bash-4.1$ java -jar
eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507 .jar
-application org.eclipse.update.core.standaloneUpdate -command search
-from http://download.eclipse.org/eclipse/updates/3.6
Connection error
Command failed.

I have the same problem.

>
> The exact same commands work as expected with a local mirror
> when replacing the remote_site_url = file:c/eclipse/repo/helios.

How did you create the local mirror? With the mirror app (or p2.mirror
ant task)?


>
> I have tried all variations of quotes or no quotes around the url, and
> trailing slash or not - still no luck. Any ideas much appreciated about
> how to fix it, or at least what to look for.


I'd open a bug at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox& amp;component=p2

Later,
PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: standaloneUpdate -search "connection error" [message #658007 is a reply to message #657878] Fri, 04 March 2011 22:45 Go to previous message
Eclipse UserFriend
Originally posted by: lab2k1.gmail.c0m

"Paul Webster" <pwebster@ca.ibm.com> wrote...
> On 03/03/2011 11:48 PM, Liviu wrote:
>>
>> I am running a fresh v3.6.2 and toying with the update manager.
>
> If you want the correct 3.6 commands, you would use the director. See
> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/p2_director.html

Thanks for the pointer. There are many ways to skin each cat in eclipse,
and it's not always obvious which is the most direct or preferred one.

> bash-4.1$ java -jar
> [...]
> I have the same problem.

Thanks for verifying. Filed a bug report at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338980

>> The exact same commands work as expected with a local mirror
>> when replacing the remote_site_url = file:c/eclipse/repo/helios.
>
> How did you create the local mirror? With the mirror app
> (or p2.mirror ant task)?

Tried both, following
http://wiki.eclipse.org/Equinox_p2_Repository_Mirroring
http://help.eclipse.org/helios/topic/org.eclipse.platform.do c.isv/guide/p2_repositorytasks.htm
and just noticed a(nother?) way using the update manager
http://help.eclipse.org/helios/topic/org.eclipse.platform.do c.isv/reference/misc/update_standalone.html

I am still unsure how to reliably check that a local mirror is
consistent and complete. For example, I've run the mirror app
three times on http://download.eclipse.org/releases/helios/ with
"-vmargs -Declipse.p2.mirrors=false" and ended up with three
local repos varying in size from 17 MB to 2.8 GB. There were
no errors reported in any of the runs, yet the end results were
quite obviously different.

Liviu
Previous Topic:Helios Internal browser fails for JSF - FireFox OK
Next Topic:Writing to zip file with Eclipse EFS
Goto Forum:
  


Current Time: Wed Jan 20 20:30:06 GMT 2021

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

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

Back to the top