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.

Bug 124837 - Uninstall not allowed because lock file exists!
Summary: Uninstall not allowed because lock file exists!
Status: RESOLVED WORKSFORME
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8
: P1 blocker (vote)
Assignee: issues@installer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-07 20:55 UTC by frankioski
Modified: 2019-06-25 05:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Attaching log file under nbi (15.26 KB, text/plain)
2008-01-07 20:57 UTC, frankioski
Details
Attaching screen cap of error (19.96 KB, image/jpeg)
2008-01-07 20:58 UTC, frankioski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description frankioski 2008-01-07 20:55:56 UTC
Having encountered the huge problem reported in issue 124831, I decided to try installing a separate instance of NB6
while you guys figure it out.  The installer would freeze.  Here's the chronology of events:
1. Downloaded and ran netbeans-6.0-javaee-windows.exe
2. "Next" button froze at the agreement screen
3. Shut down installer via task manager
4. Ran netbeans-6.0-javaee-windows.exe again
5. Received error saying another instance of the installer is running.
6. Rebooted PC
7. Ran netbeans-6.0-javaee-windows.exe again
8. Received error saying another instance of the installer is running.
9. Rebooted PC
10. Opened Control Panel to Add/Remove Programs
11. Selected NetBeans 6.0 and clicked "Remove" button
12. Received error regarding the lock file
Comment 1 frankioski 2008-01-07 20:57:48 UTC
Created attachment 54769 [details]
Attaching log file under nbi
Comment 2 frankioski 2008-01-07 20:58:44 UTC
Created attachment 54770 [details]
Attaching screen cap of error
Comment 3 Peter Pis 2008-01-09 08:30:05 UTC
Reassigning to "nbi".
Comment 4 dlipin 2008-01-09 09:52:53 UTC
The only strange thing is the installer freeze after clicking Next at the license agreement panel.

The warning that says about another instance of installer is running is the expected behaviour: installer creates 
marker (lock) file at ~/.nbi/.nbilock. On normal exit it is deleted but when installer is killed (e.g. via tasl manager 
in your case) this file is left on the disk (see also Issue 113452). Rebooting PC has no effect on this file - it 
should be removed manually, or the user should just ignore the warning message and proceed with installation/
uninstallation - in that case this file would be deleted after the installer finishes its work.

The NetBeans IDE lock file (~/.netbeans/6.0/lock) is also usually deleted when on IDE exit - but sometimes it is left 
(again, if IDE was terminated e.g. via task manager). If you are sure that IDE is not running at the moment it is OK 
just to ignore the message, click OK and continue with uninstallation.


So please proceed with uninstallation, then remove ~/.nbi directory and try installer again.
If the issue still occur (installer freeze after clicking Next at license agreement panel), then please do the 
following:
1) Remove ~/.nbi and run installer in verbose mode : "netbeans-6.0-javaee-windows.exe --verbose --output out.txt"
Wait while installer freeze and kill it via task manager, attach out.txt here
2) Remove ~/.nbi and run installer in verbose mode and with verbose java: "netbeans-6.0-javaee-windows.exe --verbose --
output out2.txt -J-verbose"
Wait while installer freeze and kill it via task manager, attach out.txt here
3) Remove ~/.nbi, extract bundled data from installer by executing "netbeans-6.0-javaee-windows.exe --extract",
run (from command line) "java -jar bundle.jar > out3.txt", proceed till the installer freeze and send ctrl-break in the 
command line. After that kill installer again and attach out3.txt here.

Please also make the screenshot of the installer freeze and attach it here.

If the issue is no more occur then please close the issue as worksforme.

Thanks in advance,
Dmitry
Comment 5 dlipin 2008-01-14 11:11:40 UTC
frankioski, any update?
Comment 6 frankioski 2008-01-16 19:29:08 UTC
I couldn't wait any longer for a resolution.  Finding myself unable to uninstall and reinstall NetBeans 6, I had my PC
hard drive reformatted and re-imaged with fresh new Windows XP installation.  What hell to go through.
Comment 7 dlipin 2008-01-16 19:38:36 UTC
sorry we can`t provide you with the resolution because we don`t have enought information to find out the reason.
That`s why we were asking for your help to do some specific steps to help us with that...
Comment 8 dlipin 2008-01-30 12:42:37 UTC
Closing as worksforme at this point.
frankioski, if you still experience this issue feel free to reopen and provide requested info.

thanks,
Dmitry