This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | GlassFish v3 update tooling issue with root install | ||
---|---|---|---|
Product: | installer | Reporter: | ckamps <ckamps> |
Component: | Mac Native | Assignee: | Yulia Novozhilova <ynov> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexismp, pjiricka |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Incorrect permissions error from Update Tool GUI |
Description
ckamps
2009-11-30 12:12:41 UTC
The user experience of this issue is as follows: 1) Under Services, right-click GlassFish v3 Domain and select View Update Center. 2) The first time this selection is made, a dialog prompts whether the user wants to install the update tool. Clicking Yes will kick off the Java Boostrap. After a few minutes, the bootstrap installer will complete and the Update Tool GUI will be started. 3) As soon as the user clicks on Available Updates, Available Add-ons and Installed Components, an error similar to the attached file appears. In the background, the desktop notifier that was registered by the Java bootstrap and is running under the user's ID will be unable to monitor the image for updates due to the mixed owner and user ID issue. At this stage, the user will need to apply the "chown" workaround as described earlier in this report. Created attachment 92236 [details]
Incorrect permissions error from Update Tool GUI
Another workaround for this issue is to use the Update Tool from the Admin GUI Console. Using the web admin console does not provide a complete workaround because users cannot apply updates from the web admin console. The ability to update from the web admin console was disabled because of issues and/or concerns about attempting to update the running GlassFish environment. Additionally, using the web admin console does not address the fact that the desktop notifier will not be able to poll and notify the users of available updates. Given the inability to apply updates through the web admin console and our interest in ensuring that the desktop notifier is running properly, the recommended workaround should continue to be the use of the chown approach. There is a workaround for end user to update GF using "sudo ..." commands which will be documented in Release notes of 6.8. The bug will be fixed in a next release of NetBeans. Likely in patch release of 6.8. Note that the only viable workaround is to perform the sudo chown as documented earlier. For various reasons, using sudo to execute the Update Tool GUI in bin/updatetool, will not provide the desired results. Integrated into 'main-golden', will be available in build *200912161400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/18e500ead5f4 User: Yulia Novozhilova <ynov@netbeans.org> Log: #177872: GlassFish v3 update tooling issue with root install Overall, the results of the code-based workaround look good. Read further for more information and several additional observations with may or may not be issues. Here are the results of running several informal tests of the development bundle: 1) I was able to successfully launch the Update Tool GUI from within NetBeans, browse Available Add-ons and install a selected Add-on. 2) In a second new install, I went straight to the CLI and was able to successfully execute: $ pwd /Applications/NetBeans/glassfish-v3-b74b $ bin/pkg list (which triggered the installation of pkg) $ bin/pkg list $ bin/pkg list -a $ bin/pkg install ant $ bin/pkg install updatetool $ bin/updatetool Several additional observations and comments: 1) It appears that most of the NetBeans IDE install is now owned by the user running the installer. I believe this is a useful change in the Mac OS X case. However, it's not clear to me why the installer still prompts for Administrative username/password. Perhaps the prompt is related to the next observation. 2) An attempt to rm -rf of the NetBeans .app directory failed due to the following files being owned by root: $ pwd /Applications/NetBeans/NetBeans Dev 200912161400.app/Contents/Resources/NetBeans/nb6.8 vpn-129-150-33-71:nb6.8 ckamps$ ls -al total 0 drwxrwxr-x 3 ckamps admin 102 Dec 16 18:08 . drwxrwxr-x 3 ckamps admin 102 Dec 16 18:08 .. drwxr-xr-x 3 root admin 102 Dec 16 17:54 servicetag Interestingly, I was still able to use Finder to move the .app area to the Trash. 2) > However, it's not clear to me why the installer still prompts for > Administrative username/password. - The problem is in previous installations. They were under root:admin, so to be able to rewrite files, installer needs Administrative username/password. > An attempt to rm -rf of the NetBeans .app directory failed due to the > following files being owned by root: > > $ pwd > /Applications/NetBeans/NetBeans Dev > 200912161400.app/Contents/Resources/NetBeans/nb6.8 > vpn-129-150-33-71:nb6.8 ckamps$ ls -al > total 0 > drwxrwxr-x 3 ckamps admin 102 Dec 16 18:08 . > drwxrwxr-x 3 ckamps admin 102 Dec 16 18:08 .. > drwxr-xr-x 3 root admin 102 Dec 16 17:54 servicetag - Will be fixed soon. Thanks for catching. Integrated into 'main-golden', will be available in build *200912230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5818c12ca7b5 User: Yulia Novozhilova <ynov@netbeans.org> Log: #177872 GlassFish v3 update tooling issue with root install (second part) |