[alfresco][upgrade] 更版注意事項

No Comments

當alfresco預備移轉到新版本(或同版本)

通常可能會為了避免通訊埠衝突, 會暫定新版本的通訊埠別於原有的

但會造成一個狀況, 在 alfresco 的 solr.log 裡出現 connection refused.

在查詢了 alfresco-globed.propertis 或  tomcat 的  server.xml 等等相關設定,

如何改都行不通

後來發現其實在另外的檔案裡, 仍有該項設定會影響到

REF: https://github.com/loftuxab/alfresco-ubuntu-install/issues/75

上述網址有提到

/opt/alfresco/solr4/archive-SpacesStore/conf/solrcore.properties
/opt/alfresco/solr4/workspace-SpacesStore/conf/solrcore.properties

這兩個檔案裡的設定, 其實也要確定是正確一致的才行。

 

[VMware][ESXi][crontab] 移除特定日期以前的目錄或映像檔資料

No Comments

#!/usr/bin/expect
spawn ssh "root@ip-or-hostname"
expect "*assword: "
send -- "your-password\n"
expect "\[root@ip-or-hostname:~\] "
#send -- "hostname\n"
#send -- "/bin/sh /vmfs/volumes/datastore1/ghettoVCB/bin/ghettoVCB.sh -g /vmfs/volumes/datastore1/ghettoVCB/backup.conf -m vmguest-name\n"

send -- "echo \"Processing vmguest-name archives\"\n"
send -- "cd /vmfs/volumes/vm-bak/vmguest-name\n"
send -- "ls -t | grep -v `date -D %s +\"%Y-%m-%d\" -d \$((\$( date +%s) - 0 ))`  | grep -v `date -D %s +\"%Y-%m-%d\" -d \$((\$( date +%s) -86400 ))` | grep -v `date -D %s +\"%Y-%m-%d\" -d \$((\$( date +%s) - 172800 ))` > list2del.txt\n"
send -- "cat list2del.txt\n"
send -- "rm -rf `cat list2del.txt`\n"
send -- "rm -f list2del.txt\n"

expect eof

[Alfresco]版本升級程序

No Comments

參考網頁
http://docs.alfresco.com/community/tasks/upgrade-process.html

–官網是這樣說–
為避免升級後的版本無法順利啟用, Alfresco 建議直接安裝新版本在新的路徑
並請管理者預先備分相關資料, 如:

1.設定組態檔 alfresco-global.properties 所指定的
dir.root目錄 (dir.root=/opt/alfresco-community/alf_data)
db.url目錄 (db.url=jdbc:postgresql://localhost:5432/alfresco)

2.索引設定檔 solrcore.properties 所指定的
date.dir.root目錄
(/opt/alfresco-community/solr4/archive-SpacesStore/conf/solrcore.properties)
(/opt/alfresco-community/solr4/workspace-SpacesStore/conf/solrcore.properties)

–以下是正式維運環境這樣做–
如果目錄名稱沒有要改, 資料庫名稱也沒有異動
可依以下步驟
1. service alfresco stop
2. login with root by X window
3. install Alfreso-new-version by wizard (don’t start service)
4. rsync -av alfresco-data-dir to new-alfresco-data-dir
5. edit alfresco-globle.properties
6.1 edit tomcat/bin/setenv.sh (JAVA_OPTS)
6.2 edit tomcat/scripts/ctl.sh

以下待服務啟動後再執行
7. edit tomcat/webapps/ROOT/index.jps (add script to document.location.href to /share/page)
8. use scripts to translate simp-chinese to trad-chinese by cn2tw-bat.sh
9. install AMPS (https://sourceforge.net/projects/aaar/files/v4.4/)
10. 修改 alfresco service (http://www.keensoft.es/en/our-road-from-alfresco-5-1-g-to-alfresco-201701/)
10. service alfresco start

重啟後, 可能要比較久才能重新使用
— end —

利用 rsync 備份資料的相關資訊

No Comments

利用 rsync daemon 方式, 密碼以檔案方式載入
http://tnrc.ncku.edu.tw/course/93/fedora_core2/page15/p15.htm

;rsync -a --password-file=/root/scripts/rsync-sec /opt/alfresco-community/ sopadmin@IP:[port]:Public/alfresco-community/

如果是已經透過 NFS/CIFS 掛載目錄
就直接 rsync -a /source-dir /distination-dir

—- updated —-
http://blog.xuite.net/csiewap/cc/59463116
《使用 rsync 實做重複資料刪除技術 差異備份 版本控制 增量備份》

[Alfresco]Alfresco Analytics

No Comments

http://docs.alfresco.com/analytics/concepts/analytics-using.html

[Alfresco][AAAR] 無法正確輸出PDF, 而在log裡出現400錯誤

No Comments

Alfresco版本為 Community Edition

編輯以下設定檔
/opt/alfresco-community/tomcat/shared/classes/alfresco-global.properties

原因在於AAAR無法讀到正確的資料庫變數, 誤為資料庫名字就叫 ${db.name}
db.url=jdbc:postgresql://localhost:5432/${db.name}

為便於AAAR讀取, 直接改為以下即可
db.url=jdbc:postgresql://localhost:5432/alfresco

Alfresco , AAAR 預設 50000筆資料,

No Comments

預設的50,000若不足夠, 可能會使得PDF產出內容, 侷限在某個日子

變更 500,000筆後, 約15分鐘

Older Entries