Fórum

Liferay Cluster Setup - Error while accessing the Shared drive for DL

Suman Giri Hanmandla, modificado 7 Anos atrás.

Liferay Cluster Setup - Error while accessing the Shared drive for DL

New Member Postagens: 2 Data de Entrada: 29/12/15 Postagens Recentes
Environment details:
Windows Server 2012R2
Liferay - liferay-portal-6.2-ee-sp14
Liferay runs as Windows Service using Liferay Service account we created
Tomcat - tomcat-7.0.62

We have configured Liferay in cluster mode. And as part of this the Document Library is mapped to a shared drive using the portal-ext property:
dl.store.file.system.root.dir=Z:/caching

Z drive has the read/write access to Liferay Service Account

when we start the server, we get the below expcetion:
16:20:32,741 ERROR [http-bio-443-exec-3][StoreFactory:108] java.io.IOException: Unable to create directory Z:\caching
java.io.IOException: Unable to create directory Z:\caching
at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:2024)
at com.liferay.portal.util.FileImpl.mkdirs(FileImpl.java:730)
at com.liferay.portal.kernel.util.FileUtil.mkdirs(FileUtil.java:318)
at com.liferay.portlet.documentlibrary.store.FileSystemStore.<init>(FileSystemStore.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:63)
at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27)
at com.liferay.portlet.documentlibrary.store.StoreFactory._getInstance(StoreFactory.java:132)
at com.liferay.portlet.documentlibrary.store.StoreFactory.getInstance(StoreFactory.java:105)
at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.getFileAsStream(StoreProxyImpl.java:176)
at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.getFileAsStream(SafeFileNameStoreWrapper.java:264)
at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFileAsStream(DLStoreImpl.java:300)
at com.liferay.portlet.documentlibrary.store.DLStoreUtil.getFileAsStream(DLStoreUtil.java:452)
at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.getFileAsStream(DLFileEntryLocalServiceImpl.java:1101)
at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.getFileAsStream(DLFileEntryLocalServiceImpl.java:1084)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)


Did anyone faced a similar issue and any insight is appreciated.

Thanks,
Suman.H
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Liferay Cluster Setup - Error while accessing the Shared drive for DL

Liferay Legend Postagens: 14914 Data de Entrada: 02/09/06 Postagens Recentes
Silly question, but did you try creating the folder using the service account? An error like this isn't going to manufacture itself, it's probably reporting a true and valid error.








Come meet me at the LSNA!
Suman Giri Hanmandla, modificado 7 Anos atrás.

RE: Liferay Cluster Setup - Error while accessing the Shared drive for DL

New Member Postagens: 2 Data de Entrada: 29/12/15 Postagens Recentes
Yes, we are able to create the folder manually using the service account we created. Under windows service Logon details we provided settings for Tomcat to run with service account - I doubt if the process really runs under this account.

Another aspect we tried - we have created Read/write access to "Everyone" for the shared drive, still get the same error.

Regards,
Suman.H