带有 Oracle 的 Artifactory OSS 默认为 Derby
Artifactory OSS with Oracle defaults to Derby
我最近为Artifactory OSS 4.12.2搭建了Red Hat和Oracle环境。问题是,元数据仍在使用 Derby 存储。
我遵循了...
中的说明
https://www.jfrog.com/confluence/display/RTF/Configuring+the+Database
https://www.jfrog.com/confluence/display/RTF/Oracle
我想使用 "DB-Filesystem - This configuration stores metadata in Oracle Database and artifact binary data is stored on the file system" 进行设置,但 Oracle 数据库是空的,当我查看 Artifactory 系统信息页面时,我看到...
存储信息:
数据库类型:德比
存储类型:文件系统
连接 Url: jdbc:derby:/var/opt/jfrog/artifactory/data/derby;create=true
任何帮助将不胜感激,因为我真的认为我遵循了所有说明(tomcat/lib/obdbc7.jar,oracle.properties 更新了数据库连接详细信息,然后复制到 etc/storage.properties )
我确实注意到 artifactory.log 文件在启动时启动了 Derby 而不是 Oracle...
2016-09-15 14:25:46,835 [art-init] [INFO] (o.a.s.d.DbServiceImpl:186) - 数据库:Apache Derby 10.11.1.1 - (1616546)。驱动程序:Apache Derby Embedded JDBC 驱动程序 10.11.1.1 - (1616546)
2016-09-15 14:25:46,836 [art-init] [INFO] (o.a.s.d.DbServiceImpl:188) - 连接 URL: jdbc:derby:/var/opt/jfrog/artifactory/data/derby
谢谢
强尼
#更新2
#
#
# Artifactory is a binaries repository manager.
# Copyright (C) 2016 JFrog Ltd.
#
# Artifactory is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Artifactory is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Artifactory. If not, see <http://www.gnu.org/licenses/>.
#
#
type=oracle
driver=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@ourserver:ourport:ourdatabase
username=ourschema
password=ourschemapassword
## Determines where the actual artifacts binaries are stored. Available options:
## filesystem - binaries are stored in the filesystem (recommended, default)
## fullDb - binaries are stored as blobs in the db, filesystem is used for caching
## cachedFS - binaries are stored in the filesystem, but a front cache (with faster access) is added
## IMPORTANT NOTE: This property should not be change after the initial setup. To change binaries storage you have to export and import
#binary.provider.type=filesystem
## Determines the maximum filesystem cache size in bytes when using binary provider type fullDb or cachedFS. Default is 5GB
## Supported units are TB (terabytes), GB (gigabytes), MB (megabytes) and KB (kilobytes)
#binary.provider.cache.maxSize=5GB
#更新3
这是 Red Hat 上的 RPM 安装
storage.properties 位于 $ARTIFACTORY_HOME/etc (/opt/jfrog/artifactory/etc)
目前etc文件夹中唯一的文件是storage.properties
我在验证 storage.properties 中的设置后在 Red Hat 上重新启动了 Artifactory 服务(设置可以在上面找到)
如果您的 Artifactory 日志显示 Artifactory 已连接到 Derby DB,那么这意味着您错误配置了 $ARTIFACTORY_HOME/etc/storage.properties 文件。
您能否分享它以供进一步分析? (当然,您应该 scrub/omit 从中获取任何敏感信息)。
此致,
伊塔马尔
@JonathanGraham,请检查以下路径:
'/etc/opt/jfrog/artifactory/'
并查看 storage.properties 文件是否具有正确的配置?
我最近为Artifactory OSS 4.12.2搭建了Red Hat和Oracle环境。问题是,元数据仍在使用 Derby 存储。
我遵循了...
中的说明https://www.jfrog.com/confluence/display/RTF/Configuring+the+Database https://www.jfrog.com/confluence/display/RTF/Oracle
我想使用 "DB-Filesystem - This configuration stores metadata in Oracle Database and artifact binary data is stored on the file system" 进行设置,但 Oracle 数据库是空的,当我查看 Artifactory 系统信息页面时,我看到...
存储信息: 数据库类型:德比 存储类型:文件系统 连接 Url: jdbc:derby:/var/opt/jfrog/artifactory/data/derby;create=true
任何帮助将不胜感激,因为我真的认为我遵循了所有说明(tomcat/lib/obdbc7.jar,oracle.properties 更新了数据库连接详细信息,然后复制到 etc/storage.properties )
我确实注意到 artifactory.log 文件在启动时启动了 Derby 而不是 Oracle...
2016-09-15 14:25:46,835 [art-init] [INFO] (o.a.s.d.DbServiceImpl:186) - 数据库:Apache Derby 10.11.1.1 - (1616546)。驱动程序:Apache Derby Embedded JDBC 驱动程序 10.11.1.1 - (1616546) 2016-09-15 14:25:46,836 [art-init] [INFO] (o.a.s.d.DbServiceImpl:188) - 连接 URL: jdbc:derby:/var/opt/jfrog/artifactory/data/derby
谢谢
强尼
#更新2
#
#
# Artifactory is a binaries repository manager.
# Copyright (C) 2016 JFrog Ltd.
#
# Artifactory is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Artifactory is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Artifactory. If not, see <http://www.gnu.org/licenses/>.
#
#
type=oracle
driver=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@ourserver:ourport:ourdatabase
username=ourschema
password=ourschemapassword
## Determines where the actual artifacts binaries are stored. Available options:
## filesystem - binaries are stored in the filesystem (recommended, default)
## fullDb - binaries are stored as blobs in the db, filesystem is used for caching
## cachedFS - binaries are stored in the filesystem, but a front cache (with faster access) is added
## IMPORTANT NOTE: This property should not be change after the initial setup. To change binaries storage you have to export and import
#binary.provider.type=filesystem
## Determines the maximum filesystem cache size in bytes when using binary provider type fullDb or cachedFS. Default is 5GB
## Supported units are TB (terabytes), GB (gigabytes), MB (megabytes) and KB (kilobytes)
#binary.provider.cache.maxSize=5GB
#更新3
这是 Red Hat 上的 RPM 安装
storage.properties 位于 $ARTIFACTORY_HOME/etc (/opt/jfrog/artifactory/etc)
目前etc文件夹中唯一的文件是storage.properties
我在验证 storage.properties 中的设置后在 Red Hat 上重新启动了 Artifactory 服务(设置可以在上面找到)
如果您的 Artifactory 日志显示 Artifactory 已连接到 Derby DB,那么这意味着您错误配置了 $ARTIFACTORY_HOME/etc/storage.properties 文件。 您能否分享它以供进一步分析? (当然,您应该 scrub/omit 从中获取任何敏感信息)。
此致, 伊塔马尔
@JonathanGraham,请检查以下路径: '/etc/opt/jfrog/artifactory/' 并查看 storage.properties 文件是否具有正确的配置?