This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Inside Alfresco's installation folder: | |
<alfresco>/tomcat/bin | |
Execute | |
alfrescoTomcatw.exe //ES//alfrescoTomcat | |
In the dialog shown, configure memory as needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://muras.eu/2013/04/21/Multi-valued-search-in-Alfresco/ | |
http://smasue.github.io/alf-debug-solr | |
In your log4j.properties: | |
log4j.logger.org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient=debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To ask SOLR how is indexing going try this url: | |
/solr/admin/cores?action=SUMMARY&wt=xml | |
Most interesting values here are: | |
<long name="Approx transactions remaining">0</long> | |
<str name="Approx transaction indexing time remaining">0 Seconds</str> | |
which tell how much work SOLR thinks it has to do. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var context = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); | |
var model = Packages.br.com.dgcloud.model.CustomerXModel; | |
var policyBehaviourFilter = context.getBean('policyBehaviourFilter', Packages.org.alfresco.repo.policy.BehaviourFilter); | |
try { | |
policyBehaviourFilter.disableBehaviour(node.nodeRef, model.TYPE_DOCUMENT_EMPLOYEE_QNAME); | |
// your code here | |
} finally { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install Oracle JDK7 | |
cd /opt | |
wget -O jod-tomcat.zip 'http://sourceforge.net/projects/jodconverter/files/JODConverter/2.2.2/jodconverter-tomcat-2.2.2.zip/download' | |
#unzip jod-tomcat.zip -d /usr/local/src | |
unzip jod-tomcat.zip -d /opt | |
# edit /opt/jodconverter-tomcat-2.2.2/bin/catalina.sh and make sure the JAVA_HOME variable points to the JDK 7 | |
# Example: JAVA_HOME=/usr/lib/jvm/java-7-oracle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can set the system date with this command: | |
sudo date --set="2015-09-30 10:05:59.990" | |
Then when using date, it should be showed correctly. | |
Now you should also the set hardware clock in the BIOS of the system, that the setting persists over a reboot (dureing the startup the system time is set to the value of the hardware clock). Do that with hwclock: | |
sudo hwclock --systohc | |
This gets the system clocks (sys) value and sets the hardware clock (hc). Check it with the hwclock command. Both hwclock and date should now show the same date and time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set dt=%date:~6,2%-%date:~3,2%-%date:~0,2% | |
set bkp_db_log=%dt%_backup_banco.log | |
set bkp_fs_log=%dt%_backup_conteudo.log | |
set bkp_install_log=%dt%_backup_install.log | |
robocopy E:\alfresco\amps "G:\BACKUP GED\install\amps" /MIR /W:20 /R:15 /LOG+:"G:\BACKUP GED\%bkp_install_log%" | |
robocopy E:\alfresco\amps_share "G:\BACKUP GED\install\amps_share" /MIR /W:20 /R:15 /LOG+:"G:\BACKUP GED\%bkp_install_log%" | |
robocopy E:\alfresco\tomcat\shared "G:\BACKUP GED\install\shared" /MIR /W:20 /R:15 /LOG+:"G:\BACKUP GED\%bkp_install_log%" | |
robocopy E:\alfresco\tomcat\webapps "G:\BACKUP GED\install\webapps" alfresco.war share.war /LOG+:"G:\BACKUP GED\%bkp_install_log%" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to get a list errors: | |
========================= | |
cat catalina.out | egrep "(WARN|ERROR|Caused by)" | uniq > output.txt | |
How to count the errors by type: | |
================================ | |
$ grep ERROR solr.log| awk '{print $4}'| sort | uniq -c | |
63 [org.alfresco.solr.tracker.AbstractTracker] | |
135 [org.apache.solr.core.SolrCore] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initctl restart unity-panel-service |