I’ve been talking with Toni de la Fuente in the last BeeCon 2016 about the upcoming Alfresco Desktop Sync product for Enterprise version. Since CMISSync is not working properly in some environments, Community version will remain lacking of this so required feature.
Toni also told me his thinking about to use ownCloud desktop (and mobile) sync clients as bridge to access Alfresco stored contents. I’m sharing my local tests just to show that this way is possible.
Installing ownCloud 9 in CentOS 7
Adding ownCloud repositories.
$ rpm --import https://download.owncloud.org/download/repositories/9.0/CentOS_7/repodata/repomd.xml.key $ wget http://download.owncloud.org/download/repositories/9.0/CentOS_7/ce:9.0.repo \ -O /etc/yum.repos.d/ce:9.0.repo $ yum clean expire-cache
Installing and configuring MariaDB database software.
$ yum -y install wget mariadb-server php-mysql $ systemctl start mariadb.service $ systemctl enable mariadb.service $ mysql_secure_installation $ mysql -u root -p # create database owncloud; # grant all on own cloud.* to 'owncloud'@'localhost' identified by 'owncloud';
Installing ownCloud and configuring HTTPd.
$ yum install httpd $ firewall-cmd --permanent --zone=public --add-service=http $ firewall-cmd --reload $ yum install own cloud $ chown -R apache.apache /var/www/html/owncloud/ $ systemctl start httpd.service $ systemctl enable httpd.service
Configuring ownCloud by accessing web console http://localhost/ownCloud
- User : admin
- Password : admin
- Data folder : /var/wwww/html/owncloud/data
- MySQL / MariaDB
- User : owncloud
- Password : owncloud
- Database : owncloud
- Server : localhost
From now, ownCloud is available in the server.
Mounting Alfresco as CIFS server
Once ownCloud is working, we are moving that initial stored contents from local storage to Alfresco CIFS unit for ownCloud user
$ yum install cifs-utils $ cd /var/www/html/owncloud/data $ mv admin admin-old $ mount -t cifs -o uid=apache,gid=apache,user=admin,pass=admin \ //alfresco.keensoft.es/alfresco/Compartido /mnt/alfresco $ ln -s admin /mnt/alfresco
From this point, all documents uploaded from ownCloud will be stored in Alfresco.
And after installing ownCloud desktop client, a one-way synchronisation (from ownCloud to Alfresco) is configured.
Issues to be addressed
- ownCloud uses its own folder convention to store contents, which are stored in Alfresco target mount folder as well
- “cache” : to improve performance
- “files” : for current documents and folders
- “files_trashbin” : for removed documents and folders
- “files_versions” : for document versions
- Once a user modifies a document in his computer and synchronises it to ownCloud, this document remains locked in Alfresco
- Changes in Alfresco are not visible from ownCloud, there is no a two-way mechanism for synchronisation
Obviously this post is an experiment on enhancing Alfresco features by combining external Open Source products, but it can be only used for testing purposes. However, there is a line to go through for Community developers. And even this simple configuration have revealed some issues inherent to synchronisation process that should be addresses by this new Alfresco Enterprise Desktop Sync.
Anyone (apart from Toni) interested in growing this proof of concept?