Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » Mysterious p2 error message - please help explain it
Mysterious p2 error message - please help explain it [message #22632] Wed, 11 March 2009 20:46 Go to next message
Eclipse User
Originally posted by: eclipse-news.rizzoweb.com

Can anyone offer an explanation for the p2 installation message:
"Failed to prepare partial IU: [R]my.plugin.id 1.2.0"

This occurred while testing installation from an update site that was
build using Tycho. The dialog message says:
"'Install' has encountered a problem.
An error occurred during provisioning."

With the message above in the Details >> section.

Any hints about what this means?

TIA,
Eric
Re: Mysterious p2 error message - please help explain it [message #22677 is a reply to message #22632] Wed, 11 March 2009 21:55 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon Kaegi
Messages: 381
Registered: July 2009
Senior Member
In p2 when you download a bundle from an old style update site we "prepare"
it for installation in the profile. What this really amount to doing is
replacing the bare-bones partial IU (really just the bsn and version) with a
full bundle IU we generate from the bundle. To do this we need to bring the
jar file local. (You can see the logic in
org.eclipse.equinox.p2.touchpoints.eclipse.EclipseTouchpoint )

When you get the "failed to prepare partial IU" message that's a fairly
low-level error that usually means that the download is in someway corrupt
or altogether missing and so we're unable to generate the full IU at install
time. To be honest we didn't anticipate on that error ever getting shown to
a user. We do a "much" better job of trapping the sorts of download errors
that could cause this sort of thing in 3.5 as compared to the fairly limited
networking infrastructure we had for 3.4.x, so I'm curious if you are
getting this error using 3.5 or 3.4.x.

-Simon

"Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
news:gp97vr$r3k$1@build.eclipse.org...
> Can anyone offer an explanation for the p2 installation message:
> "Failed to prepare partial IU: [R]my.plugin.id 1.2.0"
>
> This occurred while testing installation from an update site that was
> build using Tycho. The dialog message says:
> "'Install' has encountered a problem.
> An error occurred during provisioning."
>
> With the message above in the Details >> section.
>
> Any hints about what this means?
>
> TIA,
> Eric
Re: Mysterious p2 error message - please help explain it [message #22721 is a reply to message #22632] Wed, 11 March 2009 22:56 Go to previous messageGo to next message
Eclipse User
Originally posted by: igor.ifedorenko.com

I have not seen this error before. Can you check if there is anything
obviously wrong with the generated site under target/site? You should
see standard update site layout with proper P2 metadata there. Or if you
can provide sample projects and steps to reproduce the problem, I'll be
happy to debug it here.

Also, what Tycho version you are using? Note that we are still using
fairly old P2 runtime (from e3.4.1, IIRC) so I wonder if this causes any
incompatibilities with more recent clients.

--
Regards,
Igor

Eric Rizzo wrote:
> Can anyone offer an explanation for the p2 installation message:
> "Failed to prepare partial IU: [R]my.plugin.id 1.2.0"
>
> This occurred while testing installation from an update site that was
> build using Tycho. The dialog message says:
> "'Install' has encountered a problem.
> An error occurred during provisioning."
>
> With the message above in the Details >> section.
>
> Any hints about what this means?
>
> TIA,
> Eric
Re: Mysterious p2 error message - please help explain it [message #22765 is a reply to message #22677] Wed, 11 March 2009 23:05 Go to previous messageGo to next message
Eclipse User
Originally posted by: igor.ifedorenko.com

Simon,

Will p2 produce "failed to prepare partial IU" message if there is a
discrepancy between artifact size reported in artifacts.xml and actual
artifact file size? We had such mismatch once (see
http://jira.codehaus.org/browse/MNGECLIPSE-1092), but were never able to
reproduce the problem nor explain how it happened.

--
Regards,
Igor

Simon Kaegi wrote:
> In p2 when you download a bundle from an old style update site we "prepare"
> it for installation in the profile. What this really amount to doing is
> replacing the bare-bones partial IU (really just the bsn and version) with a
> full bundle IU we generate from the bundle. To do this we need to bring the
> jar file local. (You can see the logic in
> org.eclipse.equinox.p2.touchpoints.eclipse.EclipseTouchpoint )
>
> When you get the "failed to prepare partial IU" message that's a fairly
> low-level error that usually means that the download is in someway corrupt
> or altogether missing and so we're unable to generate the full IU at install
> time. To be honest we didn't anticipate on that error ever getting shown to
> a user. We do a "much" better job of trapping the sorts of download errors
> that could cause this sort of thing in 3.5 as compared to the fairly limited
> networking infrastructure we had for 3.4.x, so I'm curious if you are
> getting this error using 3.5 or 3.4.x.
>
> -Simon
>
> "Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
> news:gp97vr$r3k$1@build.eclipse.org...
>> Can anyone offer an explanation for the p2 installation message:
>> "Failed to prepare partial IU: [R]my.plugin.id 1.2.0"
>>
>> This occurred while testing installation from an update site that was
>> build using Tycho. The dialog message says:
>> "'Install' has encountered a problem.
>> An error occurred during provisioning."
>>
>> With the message above in the Details >> section.
>>
>> Any hints about what this means?
>>
>> TIA,
>> Eric
>
>
Re: Mysterious p2 error message - please help explain it [message #22810 is a reply to message #22765] Thu, 12 March 2009 03:45 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon Kaegi
Messages: 381
Registered: July 2009
Senior Member
This would normally get caught by a consistency check done while downloading
the artifact.\
Reading the bug report you added I'm not sure this is the issue but it's
possible; the prepare iu error will get thrown if the artifact is not a
valid zip.

"Igor Fedorenko" <igor@ifedorenko.com> wrote in message
news:gp9g3i$tps$1@build.eclipse.org...
> Simon,
>
> Will p2 produce "failed to prepare partial IU" message if there is a
> discrepancy between artifact size reported in artifacts.xml and actual
> artifact file size? We had such mismatch once (see
> http://jira.codehaus.org/browse/MNGECLIPSE-1092), but were never able to
> reproduce the problem nor explain how it happened.
>
> --
> Regards,
> Igor
>
> Simon Kaegi wrote:
>> In p2 when you download a bundle from an old style update site we
>> "prepare" it for installation in the profile. What this really amount to
>> doing is replacing the bare-bones partial IU (really just the bsn and
>> version) with a full bundle IU we generate from the bundle. To do this we
>> need to bring the jar file local. (You can see the logic in
>> org.eclipse.equinox.p2.touchpoints.eclipse.EclipseTouchpoint )
>>
>> When you get the "failed to prepare partial IU" message that's a fairly
>> low-level error that usually means that the download is in someway
>> corrupt or altogether missing and so we're unable to generate the full IU
>> at install time. To be honest we didn't anticipate on that error ever
>> getting shown to a user. We do a "much" better job of trapping the sorts
>> of download errors that could cause this sort of thing in 3.5 as compared
>> to the fairly limited networking infrastructure we had for 3.4.x, so I'm
>> curious if you are getting this error using 3.5 or 3.4.x.
>>
>> -Simon
>>
>> "Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
>> news:gp97vr$r3k$1@build.eclipse.org...
>>> Can anyone offer an explanation for the p2 installation message:
>>> "Failed to prepare partial IU: [R]my.plugin.id 1.2.0"
>>>
>>> This occurred while testing installation from an update site that was
>>> build using Tycho. The dialog message says:
>>> "'Install' has encountered a problem.
>>> An error occurred during provisioning."
>>>
>>> With the message above in the Details >> section.
>>>
>>> Any hints about what this means?
>>>
>>> TIA,
>>> Eric
>>
Re: Mysterious p2 error message - please help explain it [message #22853 is a reply to message #22677] Thu, 12 March 2009 14:32 Go to previous messageGo to next message
Eclipse User
Originally posted by: eclipse-news.rizzoweb.com

On 3/11/2009 5:55 PM, Simon Kaegi wrote:
> In p2 when you download a bundle from an old style update site we "prepare"
> it for installation in the profile. What this really amount to doing is
> replacing the bare-bones partial IU (really just the bsn and version) with a
> full bundle IU we generate from the bundle. To do this we need to bring the
> jar file local. (You can see the logic in
> org.eclipse.equinox.p2.touchpoints.eclipse.EclipseTouchpoint )
>
> When you get the "failed to prepare partial IU" message that's a fairly
> low-level error that usually means that the download is in someway corrupt
> or altogether missing and so we're unable to generate the full IU at install
> time. To be honest we didn't anticipate on that error ever getting shown to
> a user. We do a "much" better job of trapping the sorts of download errors
> that could cause this sort of thing in 3.5 as compared to the fairly limited
> networking infrastructure we had for 3.4.x, so I'm curious if you are
> getting this error using 3.5 or 3.4.x.

It's 3.4.
I will see if we can try an install into 3.5M5 today and report any
difference in behavior. It might not be possible, though, because I some
of our plugins might have dependency ranges that exclude 3.5.



> "Eric Rizzo"<eclipse-news@rizzoweb.com> wrote in message
> news:gp97vr$r3k$1@build.eclipse.org...
>> Can anyone offer an explanation for the p2 installation message:
>> "Failed to prepare partial IU: [R]my.plugin.id 1.2.0"
>>
>> This occurred while testing installation from an update site that was
>> build using Tycho. The dialog message says:
>> "'Install' has encountered a problem.
>> An error occurred during provisioning."
>>
>> With the message above in the Details>> section.
>>
>> Any hints about what this means?
>>
>> TIA,
>> Eric
>
>
Re: Mysterious p2 error message - please help explain it [message #22897 is a reply to message #22721] Thu, 12 March 2009 14:48 Go to previous messageGo to next message
Eclipse User
Originally posted by: eclipse-news.rizzoweb.com

On 3/11/2009 6:56 PM, Igor Fedorenko wrote:
> I have not seen this error before. Can you check if there is anything
> obviously wrong with the generated site under target/site? You should
> see standard update site layout with proper P2 metadata there. Or if you
> can provide sample projects and steps to reproduce the problem, I'll be
> happy to debug it here.
>
> Also, what Tycho version you are using? Note that we are still using
> fairly old P2 runtime (from e3.4.1, IIRC) so I wonder if this causes any
> incompatibilities with more recent clients.

We're using the latest Tycho and Eclipse 3.4, so I think they should be
compatible.
Our buildmaster guy had removed the Tycho-generated p2 data from the
site because we've had troubles before with those files that are built
from the IDE. When he left them in, we get the dreaded "unable to find a
solution..." error from p2. Unfortunately, those error messages are next
to useless for debugging what is wrong with a site, so...



> Eric Rizzo wrote:
>> Can anyone offer an explanation for the p2 installation message:
>> "Failed to prepare partial IU: [R]my.plugin.id 1.2.0"
>>
>> This occurred while testing installation from an update site that was
>> build using Tycho. The dialog message says:
>> "'Install' has encountered a problem.
>> An error occurred during provisioning."
>>
>> With the message above in the Details >> section.
>>
>> Any hints about what this means?
>>
>> TIA,
>> Eric
Re: Mysterious p2 error message - please help explain it [message #22941 is a reply to message #22765] Thu, 12 March 2009 14:54 Go to previous message
Eclipse User
Originally posted by: eclipse-news.rizzoweb.com

On 3/11/2009 7:05 PM, Igor Fedorenko wrote:
> Simon,
>
> Will p2 produce "failed to prepare partial IU" message if there is a
> discrepancy between artifact size reported in artifacts.xml and actual
> artifact file size? We had such mismatch once (see
> http://jira.codehaus.org/browse/MNGECLIPSE-1092), but were never able to
> reproduce the problem nor explain how it happened.

In our case, the "failed to prepare partial IU" error happened when
artifacts.xml had been removed from the update site.


> Simon Kaegi wrote:
>> In p2 when you download a bundle from an old style update site we
>> "prepare" it for installation in the profile. What this really amount
>> to doing is replacing the bare-bones partial IU (really just the bsn
>> and version) with a full bundle IU we generate from the bundle. To do
>> this we need to bring the jar file local. (You can see the logic in
>> org.eclipse.equinox.p2.touchpoints.eclipse.EclipseTouchpoint )
>>
>> When you get the "failed to prepare partial IU" message that's a
>> fairly low-level error that usually means that the download is in
>> someway corrupt or altogether missing and so we're unable to generate
>> the full IU at install time. To be honest we didn't anticipate on that
>> error ever getting shown to a user. We do a "much" better job of
>> trapping the sorts of download errors that could cause this sort of
>> thing in 3.5 as compared to the fairly limited networking
>> infrastructure we had for 3.4.x, so I'm curious if you are getting
>> this error using 3.5 or 3.4.x.
>>
>> -Simon
>>
>> "Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
>> news:gp97vr$r3k$1@build.eclipse.org...
>>> Can anyone offer an explanation for the p2 installation message:
>>> "Failed to prepare partial IU: [R]my.plugin.id 1.2.0"
>>>
>>> This occurred while testing installation from an update site that was
>>> build using Tycho. The dialog message says:
>>> "'Install' has encountered a problem.
>>> An error occurred during provisioning."
>>>
>>> With the message above in the Details >> section.
>>>
>>> Any hints about what this means?
>>>
>>> TIA,
>>> Eric
>>
>>
Previous Topic:Eclipse 3.5 support?
Next Topic:Initial 0.9.8 plan
Goto Forum:
  


Current Time: Fri Oct 24 18:08:30 GMT 2014

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

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