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.
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.
Log, please (--verbose --output out.txt).
Created attachment 71111 [details] Te log
Looks like installer show some dialog to ask user and this does not work in silent mode.
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.
To ignore lock existance in the silent mode you can pass --ignore-lock argument. Or just remove ~/.nbilock.
Thanks! It would be nice to have this info in the log. I downgraded it to P4.
I don`t understand what is the issue then... what are the steps to reproduce? what do you expect be the correct behaviour? :)
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> -->
> 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)?
Leonid, could you please update the issue with the information requested in my last comment? thanks.
*** Issue 153732 has been marked as a duplicate of this issue. ***
fixed in http://hg.netbeans.org/main/rev/bb9fb4fa1e48
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