利用 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分鐘

AAAR export PDF with no data – PKIX path building failed

No Comments

2016/11/08 14:23:45 - HTTP - Start of HTTP job entry.
2016/11/08 14:23:45 - HTTP - Connecting to URL: https://imkm.udngroup.com:443/alfresco/service/api/audit/query/alfresco-access?verbose=true&fromId=0&limit=50000
2016/11/08 14:23:46 - HTTP - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : I was unable to save the HTTP result to file because of a I/O error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2016/11/08 14:23:46 - HTTP - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2016/11/08 14:23:46 - HTTP - at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
2016/11/08 14:23:46 - HTTP - at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
2016/11/08 14:23:46 - HTTP - at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
2016/11/08 14:23:46 - HTTP - at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
2016/11/08 14:23:46 - HTTP - at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
2016/11/08 14:23:46 - HTTP - at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
2016/11/08 14:23:46 - HTTP - at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
2016/11/08 14:23:46 - HTTP - at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
2016/11/08 14:23:46 - HTTP - at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)

 

AAAR設定為 https 連線時, 會無法正確產出報表, 部分網站認為是 tomat 7 不支援SSL 1024bit以上的加密, 只能暫以走 http (port 80)

[Alfresco] 利用bigIP做SSL加密及內部apache2反向代理後, 看不到外部IP的問題

No Comments

https://loadbalancer.org/blog/apache-and-x-forwarded-for-headers

——–
Alvaro R • 3 years ago
This works on all versions

SetEnvIf X-Forwarded-For “^(d{1,3}+.d{1,3}+.d{1,3}+.d{1,3}+).*” XFF1STIP=$1
LogFormat “%{XFF1STIP}e %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”” combined

————-

[Alfresco] 由外部代理做SSL加密通道, 造成與本機內部自簽SSL衝突, 發生各種資料傳遞問題

No Comments

編輯3個檔案
1. alfresco-global.properties
編輯為

solr.secureComms=none

2. solr4/workspace-SpacesStore/conf/solrcore.properties
編輯為

alfresco.secureComms=none

3. solr4/archive-SpacesStore/conf/solrcore.properties
編輯為

alfresco.secureComms=none

Older Entries