Skip to main content



      Home
Home » Newcomers » Newcomers » Ecplipse 3.2.1 wokspace on NFS mounted drive
Ecplipse 3.2.1 wokspace on NFS mounted drive [message #175010] Tue, 17 October 2006 02:05 Go to next message
Eclipse UserFriend
Hello,

we have the follwing problem with Eclipse 3.2.1
Eclipse is running on fedora core 5. We tried to create the workspace on
a NFS mounted drive (located on a windows server 2003 with services for
unix
3.5). While creating the workspace the following error occures:
Workspace in use or cannot be created, please choose a different one.

In the log file we can see the following:

!ENTRY org.eclipse.osgi 4 0 2006-10-11 15:21:00.259
!MESSAGE Error reading configuration: An error occurred while locking file
" /zfznv/users_nas2/install/.eclipse/org.eclipse.platform_3.2. 0/configuration/org.eclipse.osgi/.manager/.fileTableLock ":
"No locks available". 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.
!STACK 0
java.io.IOException: An error occurred while locking file
" /zfznv/users_nas2/install/.eclipse/org.eclipse.platform_3.2. 0/configuration/org.eclipse.osgi/.manager/.fileTableLock ":
"No locks available". 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.

Does anybody has a idea what could be the problem? Creating the workspace
on
the local drive works fine.

Thanks for your help.

Kind regards,

Andreas Schuler
Re: Ecplipse 3.2.1 wokspace on NFS mounted drive [message #175023 is a reply to message #175010] Tue, 17 October 2006 02:24 Go to previous message
Eclipse UserFriend
Hi Andreas,

Andreas Schuler schrieb:
> Hello,
>
> we have the follwing problem with Eclipse 3.2.1 Eclipse is running on
> fedora core 5. We tried to create the workspace on a NFS mounted
> drive (located on a windows server 2003 with services for unix 3.5).
> While creating the workspace the following error occures: Workspace
> in use or cannot be created, please choose a different one.

quite a strange set-up. Why do you want to create your workspace on the
net? You are going to have a (performance) penalty for doing so.

> In the log file we can see the following:
> ...
> "No locks available". 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. !STACK 0 java.io.IOException:
> An error occurred while locking file
> " /zfznv/users_nas2/install/.eclipse/org.eclipse.platform_3.2. 0/configuration/org.eclipse.osgi/.manager/.fileTableLock ":

The error message is clear about where the problem lies... Eclipse tries
to lock a file for exclusive use, so nobody else works with the same
workspace at the same time.

> "No locks available". 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.

The diagnose "does not support file locking" tells you that it cannot
lock the file because the (remote) file system does not support this action.

> Does anybody has a idea what could be the problem? Creating the
> workspace on the local drive works fine. Thanks for your help.

You are using the wrong tool. You need a file system that supports file
locking. Typically local file system support this. For remote file
systems like NFS it's not so common. From a previous life in the Unix
world I think I remember that you need a "lock daemon" running on the
server to get the service for locking files.

Your options:
* use a local file system
* use a NFS file system on a real Unix system
* try to configure a lock daemon on the server

Bye,

Günther
Previous Topic:Eclipse on AIX
Next Topic:Using plug-ins in my j2se application
Goto Forum:
  


Current Time: Fri Jul 18 10:14:33 EDT 2025

Powered by FUDForum. Page generated in 0.17994 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top