Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353410 - Update needs root privileges
Summary: Update needs root privileges
Status: CLOSED WORKSFORME
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 09:29 EDT by Missing name CLA
Modified: 2011-09-02 22:28 EDT (History)
4 users (show)

See Also:


Attachments
Error when checking for updates (34.39 KB, image/png)
2011-08-25 06:07 EDT, Missing name CLA
no flags Details
Error when trying to install new software (80.49 KB, image/png)
2011-08-25 06:08 EDT, Missing name CLA
no flags Details
Error on Startup (when plugin tries to check for updates, i guess) (19.92 KB, image/png)
2011-08-25 06:11 EDT, Missing name CLA
no flags Details
Error Log dumped after closing eclipse (101.58 KB, application/octet-stream)
2011-08-25 06:19 EDT, Missing name CLA
no flags Details
Log from error on update (91.09 KB, text/plain)
2011-08-30 12:57 EDT, Missing name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2011-07-29 09:29:24 EDT
-- Configuration Details --
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.platform 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f
Comment 1 Matthew Piggott CLA 2011-07-29 10:19:31 EDT
We need more information about what you're doing, your setup and what error you see.

Obviously if your user doesn't have permission to write to the directory then Eclipse will need to be a user that does.
Comment 2 Missing name CLA 2011-07-29 11:16:47 EDT
(In reply to comment #1)
> We need more information about what you're doing, your setup and what error you
> see.
> 
> Obviously if your user doesn't have permission to write to the directory then
> Eclipse will need to be a user that does.

I'm sorry for having given almost no details.
The eclipse version I have was downloaded from the indigo downloads webpage, I extracted the file into my home directory and created a link to the executable in my menu in order to run it. Executed eclipse and tried to update by clicking the "Check for Updates" in the "Help" menu and the error was the typical -> unable to.../context.xml...
After trying some workarounds that I found on the web and other bug reports like this one https://bugs.eclipse.org/bugs/show_bug.cgi?id=298515 I tried to sudo eclipse and it worked but I don't cherish the idea of running as root.
I'm available to give any information and run any tests you need.

Thanks for the fast reply.
Comment 3 Missing name CLA 2011-08-02 06:42:10 EDT
Hello.
I forgot to mention that without root privileges anything that requires network access fails.
My machine is not behind a firewall or proxy and all my web based apps work fine, 
Eclipse 3.5.2 Galileo also works fine, but Helios does not.
Thanks.
Comment 4 Missing name CLA 2011-08-04 08:03:22 EDT
(In reply to comment #3)
> Hello.
> I forgot to mention that without root privileges anything that requires network
> access fails.
> My machine is not behind a firewall or proxy and all my web based apps work
> fine, 
> Eclipse 3.5.2 Galileo also works fine, but Helios does not.
> Thanks.

Tried both:
    java-1.6.0-openjdk(latest from PPA);
    java-6-sun-1.6.0.26(natty repositories).
Comment 5 Missing name CLA 2011-08-25 06:07:01 EDT
Created attachment 202132 [details]
Error when checking for updates
Comment 6 Missing name CLA 2011-08-25 06:08:11 EDT
Created attachment 202133 [details]
Error when trying to install new software
Comment 7 Missing name CLA 2011-08-25 06:11:36 EDT
Created attachment 202134 [details]
Error on Startup (when plugin tries to check for updates, i guess)
Comment 8 Missing name CLA 2011-08-25 06:19:47 EDT
Created attachment 202137 [details]
Error Log dumped after closing eclipse
Comment 9 Missing name CLA 2011-08-30 09:12:44 EDT
Hello.
Just installed openjdk-6-jdk and problem persists.
Thanks
Comment 10 Missing name CLA 2011-08-30 09:13:37 EDT
(In reply to comment #9)
> Hello.
> Just installed openjdk-6-jdk and problem persists.
> Thanks

Correction:
openjdk-7-jdk

Sorry.
Comment 11 Missing name CLA 2011-08-30 09:51:22 EDT
(In reply to comment #10)
> (In reply to comment #9)
> > Hello.
> > Just installed openjdk-6-jdk and problem persists.
> > Thanks
> 
> Correction:
> openjdk-7-jdk
> 
> Sorry.

Same thing with sun-java7-sdk.
My linux distro os ubuntu 11.04, by the way.
I gess the last thing i have to try is another distro, lol.
Comment 12 Matthew Piggott CLA 2011-08-30 09:59:43 EDT
I can't speak for OpenJDK7, but update/install doesn't work on Oracle's Java7 and won't until 3.7.1  Otherwise all I can suggest is check the Eclipse error log (CTRL+3 and search for Error Log)

The error on startup appears to be from a Google plugin.
Comment 13 Missing name CLA 2011-08-30 10:28:35 EDT
(In reply to comment #12)
> I can't speak for OpenJDK7, but update/install doesn't work on Oracle's Java7
> and won't until 3.7.1  Otherwise all I can suggest is check the Eclipse error
> log (CTRL+3 and search for Error Log)
> 
> The error on start-up appears to be from a Google plug-in.

The google plug-in error was just to show that other access to network is not working in my pc. Before I installed any plug-in the errors where the ones shown on the first and second attachment.
Comment 14 Missing name CLA 2011-08-30 12:57:51 EDT
Created attachment 202441 [details]
Log from error on update
Comment 15 Missing name CLA 2011-09-01 09:04:19 EDT
Just installed Eclipse Indigo in a virtual machine with Ubuntu 11.04 and it worked out of the box. Probably the upgrade process in my machine messed up something that broke Eclipse 3.6 and 3.7(zip bundle, not package manager one). The strange thing is that Eclipse Galileo works fine :S, anyway, I give up on this bug. Thanks for your help.