question

bgessaro avatar image
bgessaro asked bgessaro posted

itestrt 4.1.3 Locking is not possible in the directory Java Error

In trying to validate iTest 4.1.3 in our environment, I need to execute itestrt from a NFS common-installation directory.  As a security measure, users do not have permission to this directory.  Upon initial installation and launch of itestrt, Java complains:

 

<title>Invalid Configuration Location</title>Locking is not possible in the directory "/pnb/software/attools/bin/iTest_4.1/iTestRT/configuration/org.eclipse.osgi". A common reason is that the file system or Runtime Environment does not support file locking for that location. Please choose a different location, or disable file locking passing "-Dosgi.locking=none" as a VM argument.
Permission denied

 

I cannot change the permissions of the directories or file in the iTest_4.1 installation directory.  What is the suggestion to allow itestrt to execute?  In what file/command line argument can I place -Dosgi.locking=none as Java suggests?

iTestinstallation - licensing
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bgessaro avatar image
bgessaro answered bgessaro posted

Lakshmi-

 

Yes, the links were helpful.  As the Linux user that performed the original common-location install, we had to chmod -R g-w the configuration directory to get itestrt to understand the installation was intended for multiple users.  I don't recall having to do this on any previous installations of iTest and am wondering why this was changed for iTest 4.1.  But it works now- thanks!

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lakshminarayana avatar image
lakshminarayana answered lakshminarayana posted

Please refer the below links if these can resolve your issue!

https://www-304.ibm.com/support/docview.wss?uid=swg21455334

 

http://www.eclipse.org/forums/index.php/m/665454/

 

Thanks,

Lakshmi

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bgessaro avatar image
bgessaro answered bgessaro posted

The file iTest_4.1/iTest.ini was modified to:

 

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.1.R36x_v20100810
-vmargs
-Dosgi.locking=none
-Xmx384M
-Dfile.encoding=UTF-8
-XX:PermSize=64M
-XX:MaxPermSize=128M
 -iTestBasic

 

and the issue still persists.  It should also be noted that we have confirmed the NFS supports file locking, and an existing iTest_3.4 installation on the exact same NFS location does not suffer from this issue- this is new to iTest_4.1.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sandeepreddynv avatar image
sandeepreddynv answered sandeepreddynv posted

Hi,

 

Could you please try the command by placing it in iTest.ini file after -VMargs and see if it overcomes the issue.

 

Thanks

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.