cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS in Community 5.0.a (under FreeBSD)

1aurent
Champ in-the-making
Champ in-the-making
Hello,

I've just managed to manually install Alfresco Community 5.0.a in a fresh Tomcat 7 server running under FreeBSD 10. Globally, all is working. /alfresco, /share, IMAP, FTP.

All is working, except the CIFS server.

I will document this installation when this problem will be solved.

I have not found the file file-servers-context.xml mentionned in the doc at http://docs.alfresco.com/community/concepts/fileserv-subsystem-CIFS.html
Tere is no fileServers subsystem in the classes.

if I put cifs.enabled=true in alfresco-global.properties, I get the following error:

2014-07-24 17:48:03,453  ERROR [org.alfresco.fileserver] [localhost-startStop-1] CIFS server configuration error, 06240000 NetBIOS SMB, TCP/IP SMB or Win32 NetBIOS must be enabled
org.alfresco.error.AlfrescoRuntimeException: 06240000 NetBIOS SMB, TCP/IP SMB or Win32 NetBIOS must be enabled

With cifs.enabled=false, no errors in the catalina.out log.

I have found some ideas in the forum, but it seems that the cifs module was different on older releases.

Found this: http://tech.barwick.de/java/alfresco-enabling-cifs-in-freebsd.html

Is there a platform dependant section in 5.0.a?

Any ideas to debug this?

Thank you.

Laurent

4 REPLIES 4

mrogers
Star Contributor
Star Contributor
Freebsd is not a supported platform.

The suggested solution is in that link.   However to get the work-around to work you will have to extract the file-servers-context.xml from the repository.jar and put it in the correct folder under shared/classes to over-ride the subsystem.

Also please make sure the issue is raised in JIRA so it can be looked at.

1aurent
Champ in-the-making
Champ in-the-making
Thank you for your prompt help!

It works with the modification. But only when I modify the file inside the alfresco-repository-5.0.a.jar.

I have tryed to put the modified file-servers-context.xml in shared/classes/alfresco/subsystems/fileServers/default but it seems that the override is not hapening.

I have tryed to use shared/classes/alfresco /subsystems/fileServers   /shared/class/alfresco/subsystems   etc.  but none works.

To override a file, is there another configuration I have to add? Or modify the name of the file?

Thanks

mrogers
Star Contributor
Star Contributor
the path is (I think)

shared/classes/alfresco/extension/subsystems/fileServers/default

However http://wiki.alfresco.com/wiki/Subsystems#Extension_classpath
says alfresco/extension/subsystems/fileServers/default/default/custom-file-servers-context.xml.

1aurent
Champ in-the-making
Champ in-the-making

Thank you for this pointer to the doc and for your extremely fast answer. It works with the file placed in the mentionned path.

Alfresco up and running on FreeBSD. Next steps: AD integration, etc… And installation documentation.

Is it possible to ask to add a "freebsd" platform on the sources? I will be glad to debug this on FreeBSD if needed.

Thank you Mark!