Unable to add the image into the file repository while upgrading the portal DB
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- Not able to upgrade the portal DB from DXP 7.0 to DXP 7.2 with the below repository error.
ERROR [ForkJoinPool-2-worker-0][UpgradeImageTypeContent:184] Unable to add the journal article image 237723783 into the file repository
com.liferay.portal.kernel.exception.SystemException: java.io.IOException: Unable to create directory /u002/extwebservice/document_library/10154/257694382
at com.liferay.portal.store.file.system.FileSystemStore.getRepositoryDir(FileSystemStore.java:618)
at com.liferay.portal.store.file.system.FileSystemStore.getFileNameDir(FileSystemStore.java:537)
at com.liferay.portal.store.file.system.FileSystemStore.getFileNameVersionFile(FileSystemStore.java:575)
at com.liferay.portal.store.file.system.FileSystemStore.addFile(FileSystemStore.java:98)
at com.liferay.document.library.kernel.store.BaseStore.addFile(BaseStore.java:96)
at com.liferay.portal.store.ignore.duplicates.wrapper.internal.IgnoreDuplicatesStore.lambda$addFile$1(IgnoreDuplicatesStore.java:61)
.........................
at com.liferay.document.library.kernel.store.DLStoreUtil.addFile(DLStoreUtil.java:112)
at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.addFileEntry(DLFileEntryLocalServiceImpl.java:271)
at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
......................
at com.sun.proxy.$Proxy132.addFileEntry(Unknown Source)
Environment
- Liferay DXP 7.0
- Liferay DXP 7.2
Resolution
-
The above error shows that the issue may occur while adding the file or image as the file or the directory is not able to create it into the file repository. And the source seems to be unknown while the file entry is made using the proxy.
- Double-check the repository privileges and connectivity to ensure the repository connection.
Did this article resolve your issue ?