- amps-repository directory containing the Desktop Sync repository AMP, alfresco-device-sync-repo-2.1.1.amp.
- licenses directory containing the 3rd-party licenses.
- service-sync directory containing the synchronization service jar (service-sync-2.1.1.jar), config.yml property file, alfresco-sync start/stop script, and sync.jks SSL keys.
- activemq directory containing a bundled ActiveMQ zip file.
- Stop the Alfresco repository.
Extract the AlfrescoSyncServer-2.1.1.zip
file into a system directory; for example, <installLocation>/.
We will refer to this new directory (<installLocation>/sync), as the Alfresco Desktop Sync installation directory. In this directory you will see these folders:
Use the Module Management Tool (MMT) to install the alfresco-device-sync-repo-2.1.1.amp AMP into
the repository WAR. For more information, see instructions in Install the AMP file.
For example, to apply the alfresco-device-sync-repo-2.1.1.amp, use the following command:
java -jar <alfrescoInstallLocation>\bin\alfresco-mmt.jar install <installLocation>\amps-repository\alfresco-device-sync-repo-2.1.1.amp <installLocation>\tomcat\webapps\alfresco.war
Add the following properties to the alfresco-global.properties
dsync.service.uris=https://<ip address>:9090/alfresco messaging.broker.url=failover:(tcp://localhost:61616)?timeout=3000where:
- dsync.service.uris specifies the public IP address of the sync service that desktop sync clients can see, for example, https://172.29.100.12:9090/alfresco.
- messaging.broker.url specifies the location of ActiveMQ.
Configure the synchronization service properties in the
<installLocation>/service-sync/config.yml file. See Configure synchronization service.
For example, edit the following properties:
where repo.hostname is the IP address of the repository host.
broker: host: localhost
where messaging.broker.host is the IP address of the ActiveMQ host.
db: url: jdbc:postgresql:alfresco
where sql.db.url is the URL of the Postgres database.
For more information, see Setting up ActiveMQ.
- Start the repository.
Start the synchronization service.
cd <installLocation>/service-sync java -Xmx2G -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=50800 -Djava.io.tmpdir=/var/tmp/dsync -classpath postgresql.jar:service-sync-2.1.1.jar org.alfresco.service.sync.dropwizard.SyncService server config.ymlNote: By default, for production systems, you need to configure JMX authentication to disable both password authentication and SSL (not recommended) as shown below:
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=falseFor more information, see the JRE documentation.Note: The synchronization service database is used only the synchronization service. It is not shared with the repository.Note: The synchronization service uses the value of java.io.tmpdir to store files relating to its operation. This needs to be set to a directory that is not cleaned up during reboots. Make sure you set java.io.tmpdir to a directory that is durable because the synchronization service writes files used in its operation in to that directory. Do not set it to the /tmp directory on a Linux server because the files are likely to be removed on a reboot of the server.
For example, for Linux, set java.io.tmpdir to /home/sync/tmp, and for Windows, set java.io.tmpdir to /users/<user name>/sync/tmp.Note: The PostgreSQL JDBC driver must be provided and included in the startup command line as shown above. Make sure you download the appropriate driver compatible with JDBC41 from the PostgreSQL JDBC Driver download page.
Access Alfresco Share by browsing to:
- Check the repository and synchronization service log file (by default <installLocation>\service-sync\logs\sync-service.log) to see if the synchronization service started properly. The location of the log file can be configured using the logging properties in the config.yml file.