Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [p2] no repository found
[p2] no repository found [message #128201] Tue, 31 March 2009 21:57 Go to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
We have ran into some issues while testing an update site for our product
with Galileo M6. Wondering if anyone has seen something like this before...

The update site is a p2-style site (no site.xml) and the base Eclipse we
are trying to install into is "Eclipse for Java EE Developers" EPP
packages for Galileo M6.

I have the update site on the same machine that I am running Eclipse on.
If I point p2 to this site using a local path, then everything installs
fine. If I start a web server to serve up the site and give the resulting
URL to the update manager, I get the "no repository found" dialog box when
I click on the text connection button. There is no additional information
in the log. I have verified that the various files in the update site can
be manually reached in the browser.

Has anyone seen this before? Is there any tracing that I can enable to get
more information about the actual underlying cause of the no repository
found message.

- Konstantin
Re: [p2] no repository found [message #128214 is a reply to message #128201] Tue, 31 March 2009 22:24 Go to previous messageGo to next message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
One advice I would offer is make sure the web server is doing "the right
thing" for the various artifacts that p2 is looking for. For example,
make sure it is sending HTTP 404 headers for files that don't exist
(such as artifacts.jar instead of artifacts.xml). This is a problem that
I ran into where the root cause was not at all evident. I ended up
debugging with the p2 source to figure it out.

-Ben

Konstantin Komissarchik wrote:
> We have ran into some issues while testing an update site for our
> product with Galileo M6. Wondering if anyone has seen something like
> this before...
>
> The update site is a p2-style site (no site.xml) and the base Eclipse we
> are trying to install into is "Eclipse for Java EE Developers" EPP
> packages for Galileo M6.
>
> I have the update site on the same machine that I am running Eclipse on.
> If I point p2 to this site using a local path, then everything installs
> fine. If I start a web server to serve up the site and give the
> resulting URL to the update manager, I get the "no repository found"
> dialog box when I click on the text connection button. There is no
> additional information in the log. I have verified that the various
> files in the update site can be manually reached in the browser.
> Has anyone seen this before? Is there any tracing that I can enable to
> get more information about the actual underlying cause of the no
> repository found message.
>
> - Konstantin
>
Re: [p2] no repository found [message #128227 is a reply to message #128201] Tue, 31 March 2009 22:33 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
To figure this stuff out I like to use a proxy like Fiddler2 and then
launch with -DproxySet=true -DproxyHost=127.0.0.1 -DproxyPort=8888

HTH
-Simon


"Konstantin Komissarchik" <konstantin.komissarchik@oracle.com> wrote in
message news:a37ad2887d7942ab0d117cd49d78ed59$1@www.eclipse.org...
> We have ran into some issues while testing an update site for our product
> with Galileo M6. Wondering if anyone has seen something like this
> before...
>
> The update site is a p2-style site (no site.xml) and the base Eclipse we
> are trying to install into is "Eclipse for Java EE Developers" EPP
> packages for Galileo M6.
>
> I have the update site on the same machine that I am running Eclipse on.
> If I point p2 to this site using a local path, then everything installs
> fine. If I start a web server to serve up the site and give the resulting
> URL to the update manager, I get the "no repository found" dialog box when
> I click on the text connection button. There is no additional information
> in the log. I have verified that the various files in the update site can
> be manually reached in the browser.
> Has anyone seen this before? Is there any tracing that I can enable to get
> more information about the actual underlying cause of the no repository
> found message.
>
> - Konstantin
>
Re: [p2] no repository found [message #128239 is a reply to message #128214] Tue, 31 March 2009 22:55 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
I have confirmed that I get HTTP 404 headers for files that do not exist.
This particular update site has artifacts.jar and content.jar files.

- Konstantin
Re: [p2] no repository found [message #128251 is a reply to message #128227] Tue, 31 March 2009 23:57 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Great tip on the Fiddler and Ben was right on the money with the comment
about the response codes. Now I know what is going on, just no why it is
happening.

Here is the trace of p2 hitting an update site running on a local server
(fresh Tomcat install):

15 502 HTTP localhost //localhost:8080/myweb/artifacts.jar 512 text/html eclipse:3576
16 502 HTTP localhost //localhost:8080/myweb/artifacts.xml 512 text/html eclipse:3576
17 502 HTTP localhost //localhost:8080/myweb/compositeArtifacts.jar 512 text/html eclipse:3576
18 502 HTTP localhost //localhost:8080/myweb/compositeArtifacts.xml 512 text/html eclipse:3576
19 502 HTTP localhost //localhost:8080/myweb/site.xml 512 text/html eclipse:3576
20 502 HTTP localhost //localhost:8080/myweb/site.xml 512 text/html eclipse:3576

Note that my update site has artifacts.jar file, so the first test should
have worked. Here is a trace of IE hitting the URL to artifacts.jar (which
works):

25 200 HTTP localhost:8080 /myweb/artifacts.jar 3,277 application/java-archive iexplore:3668

But clearly, p2 is not completely broken M6. Someone would have noticed. :)

Here is the trace from p2 hitting an update site hosted at eclipse.org.

72 200 HTTP download.eclipse.org /tools/buckminster/updates-3.5/artifacts.jar 1,954 application/java-archive eclipse:3576
73 200 HTTP download.eclipse.org /tools/buckminster/updates-3.5/content.jar 0 application/java-archive eclipse:3576
74 200 HTTP download.eclipse.org /tools/buckminster/updates-3.5/content.jar 21,537 application/java-archive eclipse:3576

Ok... Any ideas about what could be going on here? We've tried with fresh
Tomcat installs, fresh WebLogic Server installs as well as with a Tomcat
install that has no problem serving up p2-style update sites to Ganymede.
We've tried server and client on the same machine. We've tried server and
client on separate machines.

- Konstantin
Re: [p2] no repository found [message #128263 is a reply to message #128251] Wed, 01 April 2009 02:44 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Bizarre -- a 502 is a bad gateway error which would indicate something
really weird going on.
Looking at your log I would have expected.
15 502 HTTP localhost:8080 /myweb/artifacts.jar 512 text/html eclipse:3576

--
UPDATE:
I just tried this out and we seem to be losing the port!! e.g. I had to
change my server.xml to use port 80.
Please open a bug.

-Simon

"Konstantin Komissarchik" <konstantin.komissarchik@oracle.com> wrote in
message news:298375a9b71ed7d0d5af56c4b2618f7d$1@www.eclipse.org...
> Great tip on the Fiddler and Ben was right on the money with the comment
> about the response codes. Now I know what is going on, just no why it is
> happening.
>
> Here is the trace of p2 hitting an update site running on a local server
> (fresh Tomcat install):
>
> 15 502 HTTP localhost //localhost:8080/myweb/artifacts.jar 512 text/html
> eclipse:3576 16 502 HTTP localhost //localhost:8080/myweb/artifacts.xml
> 512 text/html eclipse:3576 17 502 HTTP localhost
> //localhost:8080/myweb/compositeArtifacts.jar 512 text/html eclipse:3576
> 18 502 HTTP localhost //localhost:8080/myweb/compositeArtifacts.xml 512
> text/html eclipse:3576 19 502 HTTP localhost
> //localhost:8080/myweb/site.xml 512 text/html eclipse:3576 20 502 HTTP
> localhost //localhost:8080/myweb/site.xml 512 text/html eclipse:3576
> Note that my update site has artifacts.jar file, so the first test should
> have worked. Here is a trace of IE hitting the URL to artifacts.jar (which
> works):
>
> 25 200 HTTP localhost:8080 /myweb/artifacts.jar 3,277
> application/java-archive iexplore:3668
> But clearly, p2 is not completely broken M6. Someone would have noticed.
> :)
>
> Here is the trace from p2 hitting an update site hosted at eclipse.org.
> 72 200 HTTP download.eclipse.org
> /tools/buckminster/updates-3.5/artifacts.jar 1,954
> application/java-archive eclipse:3576 73 200 HTTP download.eclipse.org
> /tools/buckminster/updates-3.5/content.jar 0 application/java-archive
> eclipse:3576 74 200 HTTP download.eclipse.org
> /tools/buckminster/updates-3.5/content.jar 21,537 application/java-archive
> eclipse:3576
>
> Ok... Any ideas about what could be going on here? We've tried with fresh
> Tomcat installs, fresh WebLogic Server installs as well as with a Tomcat
> install that has no problem serving up p2-style update sites to Ganymede.
> We've tried server and client on the same machine. We've tried server and
> client on separate machines.
>
> - Konstantin
>
Re: [p2] no repository found [message #128298 is a reply to message #128263] Wed, 01 April 2009 17:13 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Wow, that is truly bizarre. I didn't even think to suspect the port.
Thanks a lot for all your prompt help on this.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=270837

We will confirm that M6 works with a port 80 local update site a bit later
today.

- Konstantin
Re: [p2] no repository found [message #128351 is a reply to message #128201] Wed, 01 April 2009 20:24 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
There is a reported issue with parsing port:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=270749
- henrik

Konstantin Komissarchik wrote:
> We have ran into some issues while testing an update site for our
> product with Galileo M6. Wondering if anyone has seen something like
> this before...
>
> The update site is a p2-style site (no site.xml) and the base Eclipse we
> are trying to install into is "Eclipse for Java EE Developers" EPP
> packages for Galileo M6.
>
> I have the update site on the same machine that I am running Eclipse on.
> If I point p2 to this site using a local path, then everything installs
> fine. If I start a web server to serve up the site and give the
> resulting URL to the update manager, I get the "no repository found"
> dialog box when I click on the text connection button. There is no
> additional information in the log. I have verified that the various
> files in the update site can be manually reached in the browser.
> Has anyone seen this before? Is there any tracing that I can enable to
> get more information about the actual underlying cause of the no
> repository found message.
>
> - Konstantin
>
Previous Topic:any pointers on setting up a Tomcat/OSGI dev environemnt?
Next Topic:Update site caching
Goto Forum:
  


Current Time: Sat Apr 27 05:19:09 GMT 2024

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

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

Back to the top