Bug 488687 - Eclipse IDE doesn't open after update
Summary: Eclipse IDE doesn't open after update
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.5.1   Edit
Hardware: PC Windows 7
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Patrik Suzzi CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2016-02-29 08:24 EST by can lekili CLA
Modified: 2016-04-03 16:48 EDT (History)
2 users (show)

See Also:


Attachments
log (464.70 KB, text/plain)
2016-02-29 08:24 EST, can lekili CLA
no flags Details
.log (464.70 KB, application/octet-stream)
2016-02-29 09:09 EST, can lekili CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description can lekili CLA 2016-02-29 08:24:28 EST
Created attachment 259986 [details]
log

I just updated the my eclipse installation from mars update site and when i restarted the ide it didn't open and told me to check the log file(attached) in my workspace metadata folder. However even if i remove the workspace the error persists. 

Please help,

p.s. I am using a secure network which blocks many unauthorized connections.
Comment 1 David Williams CLA 2016-02-29 08:59:38 EST
Comment on attachment 259986 [details]
log

appears to be a "text" document
Comment 2 can lekili CLA 2016-02-29 09:09:36 EST
Created attachment 259987 [details]
.log
Comment 3 can lekili CLA 2016-02-29 09:12:34 EST
(In reply to David Williams from comment #1)
> Comment on attachment 259986 [details]
> log
> 
> appears to be a "text" document

i'm sorry about that, i re-uploaded the file.
Comment 4 David Williams CLA 2016-02-29 09:15:21 EST
From reading your log you have a lot of problems! (Sorry, I do not mean to "rub it in".) 

The fact that there are some issues such as "Bakik not found in dropins" And some things not installed "because a more recent version is already installed", makes me think that you may not be able to get a "clean upgrade". 

If I had to guess, I suspect near the end of the update process, there was a message that Eclipse or p2 said it could not satisfy the request, and so the request was modified". Still guessing, it probably gave you 3 choices and you may have just "clicked" not paying attention to what the messages said? And thus, you have ended up with a "mixed install" where some things were omitted and some down-leveled. I am just guessing. Do you recall anything like that? 

You might try running eclipse once (and only once) with the -clean option. (Some "package dependency relationships" are cached, and normally equinox knows very well when that cache needs to be re-computed. But, in the case of a "mixed install", it might not.

If that does not work all I know to suggest it to start with a fresh download of Mars.2 (whichever package you are using) and re-install those things that do not come with the package. 

Hope that helps, at least, a little.
Comment 5 David Williams CLA 2016-02-29 09:17:34 EST
(In reply to can lekili from comment #3)
> (In reply to David Williams from comment #1)
> > Comment on attachment 259986 [details]
> > log
> > 
> > appears to be a "text" document
> 
> i'm sorry about that, i re-uploaded the file.

The second one also appears to be a text file, not "application/octet-stream". 
Are you setting that mime-type, or is bugzilla guessing wrong?
Comment 6 can lekili CLA 2016-02-29 09:33:53 EST
bugzilla is guessing it. but it is curious because the second one i see as "application/octet-stream". 

I'm afraid i have already tried running eclipse with the -clean option. It yielded the same. I think you might be right about the not being able to get a clean update because my network administrator shuts down many network connections eclipse is trying to establish.

Thank you,
Comment 7 Patrik Suzzi CLA 2016-03-31 09:09:24 EDT
I also noticed that one of the URLs in the log is not a reachable p2 repo: http://download.eclipse.org/stats/releases/mars/org.eclipse.modisco.infra.omg.feature_feature-0.13.2.201601200708

However, I would like to know: 

1. Before the restart, did Eclipse notified that he could not update correctly?
2. Do you think your system could have shut down some network connections while Eclipse was downloading?
3. Are you suggesting that Eclipse needs a mechanism to recover from this kind of errors?

A response to any of the above will help in defining a fix for this "blocker"  

here is my thought: 

If 1=Yes or 2=Yes -> We could add a patch to prevent Eclipse from completing the update in case of warnings or download errors. 

If 3=Yes -> we could make a "hidden backup" of all the changing files in a "temp folder", and restore them in the case of an unsuccesseful restart.
Comment 8 Patrik Suzzi CLA 2016-03-31 09:38:58 EDT
As last resort, maybe you could revert the update using p2 director via Command Line:

https://wiki.eclipse.org/FAQ_Revert_an_Update_or_Installation_with_p2
Comment 9 can lekili CLA 2016-04-03 16:48:07 EDT
(In reply to Patrik Suzzi from comment #8)
> As last resort, maybe you could revert the update using p2 director via
> Command Line:
> 
> https://wiki.eclipse.org/FAQ_Revert_an_Update_or_Installation_with_p2

Thank you for replying, i've already re installed eclipse and i don't have the old installation anymore.