cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS configuration

damien77
Champ in-the-making
Champ in-the-making
Hi all,

I'm currently developing web content on Alfresco 2.2E on Ubuntu HH with smbfs installed.

From what I understand about virtualisation, I have to manually mount the AVM repository to get file virtualisation in virtual-tomcat. However, I can't find any documentation that describes the 'correct' way to do this.

I'm currently mounting the AVM (after starting alfresco, but before start virtual_alf) using
sudo mount -t cifs //localhost/avm /media/alfresco/cifs/v -o username=admin,password=admin,rw,port=1445
(Note, I've specified a non-privelleged port, and I'm not running Alfresco as root)

If I look in the mounted directory, there are no versioned directories for my existing web projects (which I had created before I realised the AVM needed to be mounted). However, when I create a new web project, it will appear in the directory. Is this the expected behaviour? It doesn't make sense to me, as wouldn't the virtualisation just 'work' for all projects?

Once I have started virtual_alf, Alfresco will generally stop responding after a bit of usage and I see 'CIFS VFS: server not responding' in the console messages, and various 'CIFS VFS: No response to cmd 115 mid 141', etc. Now, I'm unsure as to whether this is an Alfresco problem or an Ubuntu problem, but have I done anything bone-headed in the mount configuration? I've also got a Mac box here, so I'll see how that behaves.

Cheers,
Damien.
1 REPLY 1

damien77
Champ in-the-making
Champ in-the-making
I've now tested Alfresco 2.2E on Mac OS X, and I get exactly the same problem of the server locking and CIFS disconnecting. Am I completely missing the point here?

My understanding is that CIFS is not auto mounted by virtual-tomcat, and therefore you need to manually mount the CIFS AVM. (The alfresco-virtserver.properties file notes that the automount functionality is not implemented). Without the AVM mounted, any JSPs using getRealPath() won't work (I'm using velocity, which relies on that).

Has anyone actually managed to get virtualisation to work with something more complicated than the examples in the Alfresco sample app?