cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring CIFS

thk
Champ on-the-rise
Champ on-the-rise
Hi,

I have alfresco-5.0.d Community Version installed on a virtual machine (Ubuntu 14.04.2 LTS (64 bit)) of our server. Now I want to configure CIFS to access the Alfresco content like an Explorer Drive from my Window 8.1 PC.
I added in alfresco-5.0.d/tomcat/shared/classes/alfresco-global.properties the lines:
cifs.enabled=true
cifs.serverName=Alfresco
cifs.hostannounce=true

restarted the alfresco server and tried to a map network drive in my windows explorer.
Alfresco Installation directory on the ubuntu-VM is: \home\ota\alfresco-5.0.d
So can I just connect Alfresco as follows:
e.g. network drive: Z:
Folder:
\\<IP-Adress Ubuntu-VM>\\home\ota\alfresco-5.0.d


But it doesn`t work (message: Windows cannot access
\\<IP-Adress Ubuntu-VM>\\home\ota\alfresco-5.0.d
)
Is there anything wrong or missing in my configuration?
Has out Firewall to open some port and which ones?

Thanks for any help!
11 REPLIES 11

mrogers
Star Contributor
Star Contributor
Your server name is alfresco!   Please connect to the name you have configured.   Not IP-address Ubuntu vm.   And the rest of the path is probably wrong too.  Your content store gets mounted at the protocol root.  So your path should be of a path in alfresco below that.   (That's nothing to do with the o.s. paths where alfresco itself is installed.)

thk
Champ on-the-rise
Champ on-the-rise
Thanks for replying.
Ok I configured cifs.serverName=Alfresco
But when I try to map a network drive in my windows explorer with
Network drive: Z:
Folder:  \\Alfresco\ I get the message "Windows cannot access \\Alfresco"

mrogers
Star Contributor
Star Contributor
Have you got a firewall in the way?  Are there any errors in your log file?
Are you also running SAMBA

thk
Champ on-the-rise
Champ on-the-rise
I checked alfresco.log and catalina.out. I found only another problem in these logs about problems sending invitation email to a user to join a site. But nothing about CIFS.
We are not using Samba. Which ports have to be open in the firewall? Ports 445 and also 137–139?

2015-09-12 00:00:00,522  ERROR [action.executer.MailActionExecuter] [FeedNotifier1] Failed to send email to  : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1;
  nested exception is:
        java.net.UnknownHostException: smtp.example.com. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1;
  nested exception is:
        java.net.UnknownHostException: smtp.example.com; message exceptions (1) are:
Failed message 1: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1;

thk
Champ on-the-rise
Champ on-the-rise
Now I got some error messages in the alfresco.log regarding CIFS:

<code>2015-09-21 14:02:21,934 WARN  [org.alfresco.fileserver] [localhost-startStop-1] CIFS, Unable to get local domain/workgroup name, using default of WORKGROUP. This may be due to firewall settings or incorrect <broadcast> setting)
2015-09-21 14:02:22,034 ERROR [org.alfresco.fileserver] [CIFS Server] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
2015-09-21 14:02:22,071 ERROR [org.alfresco.fileserver] [CIFS Server] Error from JLAN
org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
        at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:259)
        at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:479)
        at java.lang.Thread.run(Thread.java:745)

mrogers
Star Contributor
Star Contributor
If you are using linux then only root can bind to IP ports below 1000.  

Due to security concerns, it's not recommended to run alfresco as root therefore configure alfresco to use unrestricted ports and then use the portmapper to map those unrestricted ports to the expected numbers.   Users will typically use 1445, 1137 and 1139

http://docs.alfresco.com/5.0/tasks/fileserv-CIFS-useracc.html

thk
Champ on-the-rise
Champ on-the-rise
Our Administrator created rules in the firewall that all requests to 445, 137, 138, and 139 are forwarded to 1445, 1137, 1138, and 1139, but still:
When I try to map a network drive in my windows explorer with
Network drive: Z:
Folder: \\Alfresco\ I get the message "Windows cannot access \\Alfresco"

tearalong
Champ in-the-making
Champ in-the-making
We use a variety of windows versions. To connect using CIFS I run this 2 line batch file on each of them. I have the server on 192.168.0.12 and have configured the alfresco cifs server to be named alfrescox - I think the default is ALfrescoA. The 1st line is just informational.


nbtstat -an 192.168.0.12
net use Y: \\alfrescox\alfresco /user:admin PASSWORD /persistent:yes

thk
Champ on-the-rise
Champ on-the-rise
Can the nbtstat command used on my Windows PC to detect the Ubuntu Server of Alfresco?
The command
nbtstat -an <IP of my Ubuntu-server with Alfresco on it> set up on my Windows PC just results in "Host not found"
net use Z: \\Alfresco\alfresco /user:admin MyPassword /persistent:yes also just results in "Network-Path not found"
(Name of my Alfresco-CIFS-Server in alfresco-global.properties: Alfresco)

Thanks for help