Fórum

Liferay attempts creating directories under /usr/local

Kyriacos Neocleous, modificado 12 Anos atrás.

Liferay attempts creating directories under /usr/local

New Member Postagens: 8 Data de Entrada: 26/09/11 Postagens Recentes
Hi
I installed tomcat 6.0.35 under /usr/local and deployed liferay 6.0.5 (copied war file in /usr/local/apache-tomcat-6.0.35/webapps/). I see some exceptions in catalina.out indicating liferay is trying to create directories under /usr/local for some reason:

java.lang.RuntimeException: Cannot create directory: /usr/local/data/lucene/0

11:38:00,524 INFO  [AutoDeployDir:84] Creating missing directory /usr/local/deploy
11:38:00,525 ERROR [AutoDeployDir:90] Directory /usr/local/deploy could not be created

… /usr/local/share/GeoIP/… 


Do you know what might be causing this?

Best Regards
Kyriacos
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Liferay attempts creating directories under /usr/local

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Do you know what might be causing this?


Yes, you didn't read Liferay's documentation on how to install Liferay war file on Tomcat.

Read and do steps listed in Tomcat 6.0.x section in the following page:
http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/installing-liferay-for-an-enterpri-4
Kyriacos Neocleous, modificado 12 Anos atrás.

RE: Liferay attempts creating directories under /usr/local

New Member Postagens: 8 Data de Entrada: 26/09/11 Postagens Recentes
Hi
Thanks for your reply. Can you please be more specific? Are you referring to the fact that "the liferay home has to be one directory level higher than the application server" ? I thought this was a mistake in the guide and it was referring to the liferay-tomcat bundle specific instructions.

Best Regards
Kyriacos
Kyriacos Neocleous, modificado 12 Anos atrás.

RE: Liferay attempts creating directories under /usr/local

New Member Postagens: 8 Data de Entrada: 26/09/11 Postagens Recentes
I moved /usr/local/tomcat under new directory /usr/local/liferay/ which has the same user permissions. The errors disappeared now of course because the user can write in /usr/local/liferay. This does not make sense in the case of an existing application server with other applications running in it. Is there a way to specify a different liferay home for liferay to create these directories (data, deploy etc) in?
thumbnail
David H Nebinger, modificado 12 Anos atrás.

RE: Liferay attempts creating directories under /usr/local

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Yes. You can change this in the portal-ext.properties file. auto.deploy.deploy.dir.
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Liferay attempts creating directories under /usr/local

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
You'll be able to set following properties in portal-ext.properties.
If you're not going to auto deploy, you can just set auto.deploy.enabled=false.

#
# Set this to true to enable auto deploy of layout templates, portlets, and
# themes.
#
auto.deploy.enabled=true

#
# Set the directory to scan for layout templates, portlets, and themes to
# auto deploy.
#
auto.deploy.deploy.dir=${liferay.home}/deploy