cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS connection problem after an unknown amount of time

seraphon
Champ in-the-making
Champ in-the-making
Hi

I ve got this habit to open an CIFS connection at the morning to open some files in Alfresco's repository, with dev+ to edit them. It works just fine. When I edit such a file with notepad++ I can directly see in Alfresco web UI that the changes have indeed occured in Alfresco's repository.

Now the problem is that at some time of the day, when I want to navigate in my Alfresco's repository using windows explorer and a CIFS connection I get the following error

Z:\is not accessible.

No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept

Is this a problem coming from tomcat? The message says there are too many connections but I m the only user of Alfresco right now!

I tried deconnecting the CIFS drive and then reconnect it but the problem persist. And Restarting the tomcat server and Alfresco is not really a solution… But The files that I opened in notepad++ are still editable and when I do some changes to those files and saves I can see in the web navigator the the change have been taken in account.

Can someone please help me resolve this problem?

Regards
Seraphon
18 REPLIES 18

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

This problem has been reported before but I've not been able to reproduce it here so far.

What's the client OS you're using and what OS is Alfresco running under ?. Are you mapping a drive or using UNC paths/browsing to save/load files ?.

Cheers

Gary

fschnell
Champ in-the-making
Champ in-the-making
We had experienced exactly the same. Certain amount of time, same message. Just having a Windows Explorer window open with path into Alfresco. I thought it was  a network glitch. Saw it three times when using Community version 2.0 on Suse OpenLinux 10.1 with MySQL. Client WinXP-SP2 using UNC notation. Unable to deliberately reproduce. It either happens, or not.

I am in the process of upgrading to latest version.

Frank

callermd
Champ in-the-making
Champ in-the-making
AR-1343

seraphon
Champ in-the-making
Champ in-the-making
Hi
I m currently on windows XP v2.07 and I m on the machine where Alfresco is installed.
And I am mapping a drive to load/save files

Regards
Seraphon

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

When the problem occurs can you email me the output from the following commands (from the client) :-

net use \\share\name

nbtstat -S

netstat -n

Thanks

Gary

douglasheld
Champ in-the-making
Champ in-the-making
I'll just note, it would also be helpful to know if there's a firewall between the windows workstation and the Alfresco server.

seraphon
Champ in-the-making
Champ in-the-making
hi

garry could you detail me more what you want me to do?
I m not knowledgeable at all when it comes to connections and stuff.

Sorry but I think I cant email. So I ll detail a bit
I tried the command you told me in the command prompt and I get an error message for the net user part "system error67".

nbtstat -S give me 2 server, one with the name of my computer, the other the Alfresco's server name. Nothing unusual here except maybe the 31 MB /6MB input output.

netstat -n
gives me about 35 lines withn proto being TCP.
one of these 35 lines have a state of Time Wait

And I have no idea if there is a firewall or not….
There shouldnt be, if I can connect once no? My problem is that after a few hours I cant connect anymore. Looks like there is a limit to the number of time I can open a file and edit it with CIFS or something?

Regards
Seraphon

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

The commands should just run from a command prompt under WinXP.
The netstat command will dump out the list of connected sockets, the nbtstat command should dump the NetBIOS sessions (this might fail if NetBIOS is not enabled), the net use command should dump the connection stats for that share connection.

The net use command line should be :

net use \\<alfresco CIFS sever name>\alfresco

or do a 'net use' to see the active connections and look for the Alfresco server connection, then use those details in the net use command.

It looks like sessions or virtual circuits on a session are being closed, so as you open each file a new virtual circuit may be created. For some reason these aren't being cleared down, maybe due to something the client or server isn't doing.

I've tried a few things here to try and reproduce the problem but the virtual circuits are always cleaned up as expected.

Cheers

Gary

seraphon
Champ in-the-making
Champ in-the-making
Hi

Here is maybe what makes all those unclosed connections.
When I open an CIFS driver I then go into the Alfresco's repository and open several documents inside the Alfresco's repository. About 7,8 file are open from the CIFS drive in my notepad++.
The other that might be bothersome is that I often do changes to those files and thus make a lot of saves. There is also my webscripts that do a call to Alfresco's web service when I test them.

Maybe thats the problem
Hope someone will find the answers because it is very troublesome and not very appealing for Alfresco.

Regards
Seraphon