首页 > 解决方案 > Artifactory 配置为错误地将二进制文件存储在两个地方(?)以及如何回到一个

问题描述

同时拥有 storage.properties 和 binarystore.xml,Artifactory 是否有可能同时获取这些文件并将二进制文件存储在 Derby(如 storage.properties 中指定)和文件系统中(如二进制存储.xml)?

当然,根据磁盘使用情况似乎如此。解决方案是否只是删除 storage.properties,重新启动,然后 Artifactory 将只使用文件系统?

版本 6.17.0(专业版)

binarystore.xml 内容:

<config version="v1">
    <chain template="file-system"/>
    <provider type="file-system" id="file-system">
        <binariesDir>/some/path/active/data/filestore</binariesDir>
    </provider>
</config>

storage.properties 内容:

type=derby
url=jdbc:derby:{db.home};create=true
driver=org.apache.derby.jdbc.EmbeddedDriver

标签: artifactory

解决方案


从 Artifactory 4.6 及更高版本开始,Artifactory 不使用 storage.properties 文件来获取 binarystore 配置,而是使用 binarystore.xml 文件,因此您可以备份 storage.properties 文件并将其删除并重新启动。另外,请确保您在 db.properties 文件中有正确的详细信息。因为 Artifactory 将从 db.properties 文件中读取数据库配置。


推荐阅读