Try a "lsof" on the file to know the owners.
raphael@server:~$ sudo lsof /.../WEB-INF/data/repository/.lock
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 22208 tomcat6 1842uw REG 252,2 0 2886551 /.../WEB-INF/data/repository/.lock
No that is not an issue ; except that WEB-INF/config/data/administrator/admin.xml does not exits => this is WEB-INF/data/administrator/admin.xml
Apologies for the invalid path.
What you can try
Tried everything. Even rebooted the whole machine.
No luck
What you can try
* Cut the tomcat and manualy remove the lock file. Start again.
* Was the repository already in place ? or auto-created by ametys ?Tomcat cut, try to rename it to "WEB-INF/data/repository.bak"
* Finally, you should restart the whole computer since there is obviously a process having a hook on the repository directory
Is there a problem is I add the WEB-INF/config/config.xml and WEB-INF/config/data/administrator/admin.xml to the directory structure before deploying it to the tomcat container.
Could this be the issue ? If yes, why ?
Appreciate your assistance so far.
[root@localhost ~]# ps waux | grep tomcat
rafael 1901 93.1 29.7 1456616 190004 ? Sl 02:19 0:32 /usr/bin/java -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -server -Xmx1024M -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.endorsed.dirs=/usr/share/tomcat/endorsed -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.io.tmpdir=/usr/share/tomcat/temp org.apache.catalina.startup.Bootstrap start
--------------------------------------------------
[root@localhost ~]# ls -la /usr/share/tomcat/webapps/amet514/WEB-INF/data/
total 24
drwxr-xr-x 6 rafael rafael 4096 Sep 19 02:20 .
drwxr-xr-x 9 rafael rafael 4096 Sep 19 02:20 ..
drwxr-xr-x 2 rafael rafael 4096 Sep 19 02:19 administrator
drwxrwxr-x 2 rafael rafael 4096 Sep 19 02:20 monitoring
drwxrwxr-x 6 rafael rafael 4096 Sep 19 02:20 repository
drwxrwxr-x 2 rafael rafael 4096 Sep 19 02:20 uploads
and can you also do "ls -la /usr/share/tomcat/webapps/amet514/WEB-INF/data" and copy the result here
]]>Still the same. Tried it all
]]>First stop all tomcat instances and check this with a "ps waux | grep tomcat"
Go to "/usr/share/tomcat/webapps/amet514/WEB-INF/data/" and check that repository can be written by the user launching tomcat (can be tomcat6 or tomcat7 in a package installation)
Then start tomcat and check it is launched once only (with a ps again).
If you still have the error, check in the tomcat manager console that Ametys is launched once only
This is the cause - Any suggestions to fix it up ?
]]>Any idea what this could be ?
]]>