cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS not accessible anymore ?!?

philippelr
Champ in-the-making
Champ in-the-making
Hello all,

I've configured CIFS to give me the possibility to use the Word Add-in to upload files.
It worked for a while, and for a reason I ignore, now it doesn't work anymore.

The error is something like "The name of the file is invalid"

But when I try the path, in Windows Explorer (so something like \\pc-de-philippea\alfresco\)

It asks me a password and a login.
I type admin/admin (like for my Alfresco configuration), and it tells me that it is incorrect.

But that worked before !

I am really lost with that.

Any solution??

Thanks !!

Philippe
8 REPLIES 8

wgonzalez
Champ on-the-rise
Champ on-the-rise
What OS are you using?
What is your network setup? (i.e. stand-alone, workgroup, domain, how many computers?)

philippelr
Champ in-the-making
Champ in-the-making
I am working with Microsoft Vista SP2.

For the moment, it is stand alone. I am trying it locally.

wgonzalez
Champ on-the-rise
Champ on-the-rise
There are a lot of settings that need to be in place working for the CIFS to work on Vista.
First of all are you running Win 32 or 63 bit?

Need to check the following:

1 - Is NetBIOS working? - you should see an entry in the NetBIOS table when you do a nbtstat -n – as in:  <hostname>A
2 - What are the tomcat logs telling you about CIFS & SMB Servers? - Check the logs. If needed enable CIFS logging in both file-Server.properties and logj4.properties. Here're the lines that need to be added to both files:

Log4j:
# CIFS server debugging
log4j.logger.org.alfresco.smb.protocol=error
log4j.logger.org.alfresco.smb.protocol.auth=debug
log4j.logger.org.alfresco.acegi=debug

file-Server.properties:
cifs.sessionDebug=NETBIOS, STATE, RXDATA, TXDATA, DUMPDATA, NEGOTIATE, TREE, SEARCH, INFO, FILE, FILEIO, TRANSACT,ECHO, ERROR, IPC, LOCK, PKTTYPE, DCERPC, STATECACHE, TIMING, NOTIFY, STREAMS, SOCKET, PKTPOOL, PKTSTATS, THREADPOOL, BENCHMARK

3 - Additionally, in file-servers.properties you should have the following:

cifs.disableNativeCode=false
cifs.broadcast=<your-network-or-router-broadcast-mask>
cifs.bindto=
cifs.tcpipSMB.port=445
cifs.netBIOSSMB.sessionPort=139
cifs.netBIOSSMB.namePort=137
cifs.netBIOSSMB.datagramPort=138
cifs.ipv6.enabled=false
cifs.WINS.autoDetectEnabled=true

4 - In Local Security Policy: Network Security: LAN Manager Authentication Level need to be setup as "Send LM & NTLM - use NTLMv2 session security if negotiated"
5 - In your registry, make sure that \\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetBT\Parameters\SMBDeviceEnabled=0



these are just a few of the things that need to be setup before CIFS can work.

philippelr
Champ in-the-making
Champ in-the-making
Thank you so much for your help, I now can connect to alfresco file folder, that's so great !!

Thank you !!! I've clicked on "Yes" for "What this post useful", so you have a point now. 🙂

Philippe

jaaav
Champ in-the-making
Champ in-the-making
Are this settings working for a W2003 Server 64 bit platform?

I have tried and I can't make it work.

Please can you put the full config file?

Thanks

jaaav
Champ in-the-making
Champ in-the-making
Hello, all my problems where solved when I installed using the tomcat bundle instead of the full 3.2r enterprise package.

wgonzalez
Champ on-the-rise
Champ on-the-rise
Yes. Installing the Tomcat ZIP bundle does seem to solve the problem. Also a couple more things to do:

1) make sure the JLAN DLLs are on your Path. The easiest way to do this is to copy them to your System Folder:
In your C:\ALFRESCO-HOME\bin folder there are 4 files that need to be somewhere in your path. Copy these files to C:\Windows\System32\ folder. That folder is in your PATH in Windows, so that’s a good place to put them. These files are:
Win32NetBIOS.dll
Win32NetBIOSx64.dll
Win32Utils.dll
Win32Utilsx64.dll

2) Add an entry to the hosts file located in C:\Windows\System32\drivers\etc (there may be a hosts.sam there but not a hosts, so just make a copy hosts.sam=>hosts), add an entry to a dummy non-existing IP address that points to your CIFS Server Name for example:
2.1.1.1 <your-hostname>A

I would have initially used 1.1.1.1, but I found that some packages use that as a dummy IP as well, and may be already assigned as a process in your system. If unsure, do a "netstat -a" from the command-line and that will list all the ipv4/ipv6/ports currently taken in your system. Just use a dummy-one that is not in that list. 2.1.1.1 or 3.1.1.1 will be most likely unsused.

Let me know if this helps.

wgonzalez
Champ on-the-rise
Champ on-the-rise
Another strange behavior with CIFS and Windows. After having my system working OK for a while by following the above described steps, today CIFS stopped working. I was getting the following error:

00:37:13,838 ERROR [org.alfresco.fileserver] [SMB] Server error : java.lang.ArrayIndexOutOfBoundsException: 16
00:37:13,838 ERROR [org.alfresco.fileserver] java.lang.ArrayIndexOutOfBoundsException: 16
00:37:13,838 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.win32.Win32NetBIOSLanaMonitor.addLanaListener(Win32NetBIOSLanaMonitor.java:176)
00:37:13,838 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.ThreadedCifsConnectionsHandler.initializeHandler(ThreadedCifsConnectionsHandler.java:375)
00:37:13,838 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:478)
00:37:13,838 ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:619)

The only thing that had changed is I installed VMWare on my machine. After uninstalling VMWare (and restarting) CIFS starting working again. There's something on VMWare that clobbers NetBIOS and/or SMB ports. I'm not sure what it is, but uninstalling VMWare seems to take care of the problem.