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 149063 - Log info about --ignore-lock argument in case log file exists
Summary: Log info about --ignore-lock argument in case log file exists
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: dlipin
URL:
Keywords:
: 153732 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-03 13:44 UTC by mesnik
Modified: 2009-06-24 20:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Te log (12.78 KB, text/plain)
2008-10-03 13:56 UTC, mesnik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mesnik 2008-10-03 13:44:59 UTC
To reproduce this bug it is needed to start installer on Unix where DISPLAY is not set correctly. The installer reports
about error and finish. If after this I restart installer (in silent mode for example) it reports that lock file is not
removed and installer is always run.
Comment 1 dlipin 2008-10-03 13:47:46 UTC
Log, please (--verbose --output out.txt).
Comment 2 mesnik 2008-10-03 13:56:46 UTC
Created attachment 71111 [details]
Te log
Comment 3 mesnik 2008-10-03 13:58:06 UTC
Looks like installer show some dialog to ask user and this does not work in silent mode.
Comment 4 dlipin 2008-10-03 13:58:35 UTC
I can`t reproduce it in the following way:
1) rm -rf ~/.nbi
2) unset DISPLAY
3) ./netbeans-trunk-nightly-whatever-linux.sh
Result: Error about no DISPLAY variable set is show in the output.
4) export DISPLAY=<correct value>
5) ./netbeans-trunk-nightly-whatever-linux.sh
Installer is shown and started correctly. No warning about the lock file.
Comment 5 dlipin 2008-10-03 13:59:56 UTC
To ignore lock existance in the silent mode you can pass --ignore-lock argument. Or just remove ~/.nbilock.
Comment 6 mesnik 2008-10-03 14:02:40 UTC
Thanks!
It would be nice to have this info in the log. I downgraded it to P4.
Comment 7 dlipin 2008-10-03 14:06:52 UTC
I don`t understand what is the issue then... 
what are the steps to reproduce?
what do you expect be the correct behaviour? :)
Comment 8 mesnik 2008-10-03 14:16:39 UTC
The DISPLAY should be set and could not be used.
It is usual situation for solaris, when you log via ssh -X and after this trying to work as root.

The correct behavior is to remove lock file when installer shutdown unexpectedly or add message
to the log how to remove locks. (I think the second should be enough)


Here is the output. 
-->sh sunstudio-Express-bundled-sparc-S2.sh 
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).
root@ssi-test-sparc:/export/tmp>
-->sh sunstudio-Express-bundled-sparc-S2.sh 
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).
root@ssi-test-sparc:/export/tmp>
-->

Comment 9 dlipin 2008-10-03 14:24:00 UTC
> The correct behavior is to remove lock file when installer shutdown unexpectedly 
Is there any reproducible test case when lock file is left after installer shutdown (certainly, it should not exist 
before running the installer)?
Comment 10 dlipin 2008-10-30 09:16:00 UTC
Leonid, could you please update the issue with the information requested in my last comment? thanks.
Comment 11 dlipin 2008-11-24 07:11:50 UTC
*** Issue 153732 has been marked as a duplicate of this issue. ***
Comment 12 dlipin 2009-06-24 10:39:26 UTC
fixed in
http://hg.netbeans.org/main/rev/bb9fb4fa1e48
Comment 13 Quality Engineering 2009-06-24 20:35:03 UTC
Integrated into 'main-golden', will be available in build *200906241401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bb9fb4fa1e48
User: Dmitry Lipin <dlipin@netbeans.org>
Log: Issue #149063 Log info about --ignore-lock argument in case log file exists