Foren

Liferay attempts creating directories under /usr/local

Kyriacos Neocleous, geändert vor 12 Jahren.

Liferay attempts creating directories under /usr/local

New Member Beiträge: 8 Beitrittsdatum: 26.09.11 Neueste Beiträge
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, geändert vor 12 Jahren.

RE: Liferay attempts creating directories under /usr/local

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
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, geändert vor 12 Jahren.

RE: Liferay attempts creating directories under /usr/local

New Member Beiträge: 8 Beitrittsdatum: 26.09.11 Neueste Beiträge
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, geändert vor 12 Jahren.

RE: Liferay attempts creating directories under /usr/local

New Member Beiträge: 8 Beitrittsdatum: 26.09.11 Neueste Beiträge
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, geändert vor 12 Jahren.

RE: Liferay attempts creating directories under /usr/local

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
Yes. You can change this in the portal-ext.properties file. auto.deploy.deploy.dir.
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: Liferay attempts creating directories under /usr/local

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
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