2016-09-16 36 views
0

我最近爲Artifactory OSS 4.12.2設置了Red Hat和Oracle環境。問題是,元數據仍然使用Derby進行存儲。帶Oracle的Artifactory OSS默認爲Derby

我按照說明在..

https://www.jfrog.com/confluence/display/RTF/Configuring+the+Database https://www.jfrog.com/confluence/display/RTF/Oracle

我想將其設置使用「DB-文件系統 - 此配置存儲在Oracle數據庫中的元數據和工件的二進制數據存儲上的文件系統」然而,Oracle數據庫是空的,當我看Artifactory的系統信息頁面,我看到了

存儲信息: 數據庫類型:德比 存儲類型:文件系統 Connection Url:jdbc:derby:var/opt/jfrog/artifactory/data/derby; create = true

任何幫助將不勝感激,因爲我真的認爲我遵循所有的指示(tomcat/lib/obdbc7的.jar,oracle.properties與

我也注意到了artifactory.log文件拉開序幕德比在啓動時,而不是Oracle數據庫連接的詳細信息,然後複製到等/ storage.properties)更新中...

2016- 09-15 14:25:46,835 [art-init] [INFO](oasdDbServiceImpl:186) - 數據庫:Apache Derby 10.11.1.1 - (1616546)。驅動程序:Apache Derby嵌入式JDBC驅動程序10.11.1.1 - (1616546) 2016-09-15 14:25:46,836 [art-init] [INFO](oasdDbServiceImpl:188) - 連接URL:jdbc:derby:/ var /選擇/ jfrog/artifactory的/數據/德比

由於

強尼

#UPDATE 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 

#UPDATE 3

這是在Red Hat

storage.properties RPM安裝位於$ ARTIFACTORY_HOME的/ etc(/選擇/ jfrog/artifactory的/等)

在etc文件夾中唯一的文件是當前存儲的.properties

我在storage.properties verifiting設置後重新啓動在Red Hat的Artifactory的服務(設置上面可以找到)

回答

0

@JonathanGraham,能否請您檢查以下路徑: '的/ etc /選擇/ jfrog/artifactory的/' ,看看storage.properties文件具有正確的配置?

+0

嗨@Ariel工作很好。謝謝!/etc/opt/jfrog/artifactory下的副本仍在使用Derby。我在那裏更新了文件並重新啓動了服務。我可以確認系統現在正在使用Oracle。服務應該在原始服務重新啓動後自動將文件從$ ARTIFACTORY_HOME/etc(/ opt/jfrog/artifactory/etc)複製到/ etc/opt/jfrog/artifactory中? –

+0

很高興聽到它現在正在工作。 etc/opt/jfrog/artifactory是RPM安裝的$ ARTIFACTORY_HOME。因此該文件應該只放在那裏。 – Ariel

0

如果您Artifactory的日誌顯示Artifactory的連接到Derby數據庫,那麼這意味着th因爲你錯誤地配置了$ ARTIFACTORY_HOME/etc/storage.properties文件。 你能分享它進行進一步分析嗎? (你當然應該清除/省略任何敏感信息)。

問候, 伊塔馬爾

+0

謝謝你的迴應Itamar。我已經使用$ ARTIFACTORY_HOME/etc中包含的storage.properties文件的副本更新了原始文章。 –

+0

任何想法@Itamarb? –

+0

@JonathanGraham似乎配置文件並沒有被Artifactory讀取。其他信息是必需的: 1.此RPM或ZIP安裝? 2.您能否確保更新後的storage.properties文件位於$ ARTIFACTORY_HOME/etc/storage.properties中? 3.你能分享$ ARTIFACTORY_HOME/etc /文件夾的截圖嗎? 4.你做出這些改變後是否重新啓動了Artifactory? 我知道一些/所有的問題看起來都非常基本,但這是一個基本的過程,應該可以工作(現在做一個快速測試來確保:)) – Ariel