软件包安装过程中的下一个错误:
25.09.2018 14:19:29.154 *ERROR* [qtp2146607925-109] org.apache.jackrabbit.vault.packaging.impl.ZipVaultPackage Error during install.
javax.jcr.RepositoryException: Inaccessible value
at org.apache.jackrabbit.oak.plugins.value.ErrorValue.createException(ErrorValue.java:94)
...
at org.apache.jackrabbit.vault.fs.impl.io.FileArtifactHandler.importNtResource(FileArtifactHandler.java:359)
... 58 common frames omitted
Caused by: org.apache.jackrabbit.core.data.DataStoreException: Could not add record
at org.apache.jackrabbit.core.data.FileDataStore.addRecord(FileDataStore.java:230)
at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.addRecord(DataStoreBlobStore.java:538)
at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.writeStream(DataStoreBlobStore.java:637)
at org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore.writeBlob(DataStoreBlobStore.java:224)
... 70 common frames omitted
Caused by: java.io.IOException: Can not rename /opt/aem/data-store/tmp3776489360147109357.tmp to /opt/aem/data-store/b6/ea/7d/b6ea7d9744c3fe943e9166246f559558278b287cc532cef6d97a9ad4036bdb5c (media read only?)
at org.apache.jackrabbit.core.data.FileDataStore.addRecord(FileDataStore.java:205)
... 73 common frames omitted
由于异常,无法安装软件包。 Adobe AEM 6.3
答案 0 :(得分:3)
Caused by: java.io.IOException: Can not rename /opt/aem/data-store/tmp3776489360147109357.tmp to /opt/aem/data-store/b6/ea/7d/b6ea7d9744c3fe943e9166246f559558278b287cc532cef6d97a9ad4036bdb5c (media read only?)
at org.apache.jackrabbit.core.data.FileDataStore.addRecord(FileDataStore.java:205)
... 73 common frames omitted
此问题的根本原因是,用于运行AEM的Linux用户缺少权限。不知何故,只有root用户才具有“ / opt / aem / data-store / b6 / ea”文件夹的权限。
$ ls -ld ea
drwxr-xr-x. 3 root root 16 Sep 25 14:05 ea
在我使用以下命令向“ aem” Linux用户授予该文件夹的权限后,此问题已修复:
sudo chown -R aem:users /opt/aem/data-store