cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS troubleshooting

paulhh
Champ in-the-making
Champ in-the-making
If you cannot map a drive to the Alfresco CIFS server then it's likely a name lookup problem. Check whether you are using WINS or broadcast lookups on your LAN. If you're using broadcasts, is your network split into more than one subnet?  Did you change the broadcast mask setting in the file-servers.xml configuration file?  Do you use NetBIOS name scopes on your LAN? (nbtstat -n should show if a scope id is set).

If a PC cannot access the Alfresco CIFS server you could try adding an entry to the lmhosts file (in windows\system32\drivers\etc), there's usually a sample file in that folder, you may need to create the file. Then try and access the CIFS server using Start->Run and enter \\<Alfresco servername>.

You could also try doing some name lookups using nbtstat, again from any of the PCs that are having trouble accessing the server. If you try the following commands to see which are successful :-

  nbtstat -a <Alfresco server name>
  nbtstat -A <server ip address>
  nbtstat -a <Windows server name>
73 REPLIES 73

marctsg
Champ in-the-making
Champ in-the-making
After further testing, it seems I can connect to the CIFS server if I use the server's IP address.  The CIFS server is reporting its IP address to the CIFS server as 127.0.1.1 which caused a machine attempting to connect by hostname to try to conenct to itself.

This workstation is not part of a domain and acquires its IP address through DHCP.  Not being an expert in Linux, I don't know if any other way exists for the OS to map the hostname other than using the hosts file, which is what I have done.

I'm guessing that the CIFS server is reporting the address that I've mapped to the hostname in the hosts file, but I don't understand why that would be.  The stand-alone samba daemon did not do this.  Is there a configuration option that I am missing?

joao_pereira
Champ in-the-making
Champ in-the-making
What about this: http://forums.alfresco.com/viewtopic.php?f=9&t=11437

No way to troubleshoot this one?

Thanks,

norgan
Champ in-the-making
Champ in-the-making
@MarcTSG -
I have a similar setup (VM without DNS Server) and I took you comment to the /etc/hosts file with the entries below and it worked at once Smiley Happy

127.0.0.1 localhost
192.168.123.1 alfresco alfresco_a

Thanks for the research.

Regards, Norgan

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

this probably goes without saying, but if you use iptables to redirect the ports make sure,
that the iptables also accept incoming connections. In my case I had  to specifically open up
the ports. Turns out that in some distros lower ports are blocked. Meaning you can access
the machine with the webclient on Port 8080 and you can also ping the machine but you
cannot connect to it via smb. 

It is even funnier since you can connect locally with an smbclient using 127.0.0.1 but
but not with the  external IP address. Like 192.168.129.179 does not work …


iptables -A OUTPUT -p tcp –dport 445  -mstate –state NEW,RELATED,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p udp –dport 139  -mstate –state NEW,RELATED,ESTABLISHED -j ACCEPT

Enjoy -

Oli

prgiorgio
Champ in-the-making
Champ in-the-making
After my first fresh installation,
i create with web interface an alfresco user 'test'with password test.

After that i tried the cif samba login, and i can't login with user test/test to see only test home directory.
How to do this?

Is it possible to log in only with the admin/admin user ?

Thank you in advance (i'm a newbie)
Giorgio

vycitalr
Champ in-the-making
Champ in-the-making
Hello,
I am getting winsock error 10055 "No buffer space available" when trying to access CIFS. I know this is rather a windows problem than alfresco's one, but anyway, has someone experienced with this? My system is running on BeaWeblogic on Windows 2003 server with 4GB of physical RAM. The system is quite loaded with other apps and near all of its memory is constantly allocated, also in netstat there seems to be a lot of connections. I understand what the problem is - but is there any workaround - eg. how to set/tweak the winsock buffers?

To be precise, the exception log:

10:39:17,394 ERROR [alfresco.smb.protocol] Closing session due to exception
org.alfresco.filesys.netbios.win32.WinsockNetBIOSException: 10055:ReceiveSocket - No buffer space available
at org.alfresco.filesys.netbios.win32.Win32NetBIOS.ReceiveSocket(Native Method)
at org.alfresco.filesys.netbios.win32.NetBIOSSocket.read(NetBIOSSocket.java:286)
at org.alfresco.filesys.smb.server.win32.WinsockNetBIOSPacketHandler.readPacket(WinsockNetBIOSPacketHandler.java:111)
at org.alfresco.filesys.smb.server.SMBSrvSession.run(SMBSrvSession.java:1309)
at java.lang.Thread.run(Thread.java:595)


My Alfresco is kind of 2.2 dev version.
Thanks for any suggestions.

Regards Robert

norgan
Champ in-the-making
Champ in-the-making
Hi Giorgo
After my first fresh installation,
i create with web interface an alfresco user 'test'with password test.

When you look around, you will notice some strange phenomenon mentioned - sometimes, persistence pays of (trying again and again, min 3 times), sometimes you have to wait a few minutes. The important thing is - can you reach the mashine with its names "servername" and "servername_a" or "servernamea"  (depending on your config) on their ports. Everything else is Alfresco user management.

Oh - the user has to have access rights to the folder in question. 🙂

Regards, Norgan

prgiorgio
Champ in-the-making
Champ in-the-making
Hi Giorgo
After my first fresh installation,
i create with web interface an alfresco user 'test'with password test.

When you look around, you will notice some strange phenomenon mentioned - sometimes, persistence pays of (trying again and again, min 3 times), sometimes you have to wait a few minutes. The important thing is - can you reach the mashine with its names "servername" and "servername_a" or "servernamea"  (depending on your config) on their ports. Everything else is Alfresco user management.

Oh - the user has to have access rights to the folder in question. 🙂

Regards, Norgan

Thank you, Norgan, I succeded in loggin in with the right user,
creating the versioning system.

I have to answer to other to question to cosider this product great,
first: i added versioning; when i delete a file via cif, can i  still find it via alfresco web interface? (standard settings)
second:
And how to activate indexing? every content of the files i put in alfresco (ods, doc and aslo text files) are not
matched by the advanced indexing.

Thank you in advance

norgan
Champ in-the-making
Champ in-the-making
Hi Giogio,
regarding 1) Dont know - try it out Smiley Happy I would guess though, that deleting will remove the complete object (including versions) from the space. That would be the action, I would expect, by the way.

regarding 2) - Check out the documentation regaring "Search Customization". Since the engine is lucene, every format, that is not supported as of yet, can probably added by developing a proper "parser" plugin.I assume, though, that ODF is supported already, I guess you have a bug in your configuration there.

rscheele
Champ in-the-making
Champ in-the-making
Hello, i am running Alfresco locally using Vista, Mysql and default Tomcat/JDK (ships with) Alfresco.
The Alfresco version is a nightly build v2.9.0 (C_dev 816)

Mapping a drive using \\VoyagerA\admin using default password admin/admin doesn't work( Voyager=computer name, loggin in with a regular user doesnt' work also. Vista finds the drive but when i enter username/passwords the system responds with a popup 'Logon insuccesful. Make sure you type user/pass blabla'.

Output of nbtstat -n:

Wireless Network Connection:
Node IpAdress: [145.48.115.210] Scope ID: []

VOYAGER <00> UNIQUE REGISTRED
WORKGROUP <00> GROUP REGISTERED
VOYAGER <20> UNIQUE REGISTRED
VOYAGERA <20> UNIQUE REGISTERED
VOYAGER <00> UNIQUE REGISTERED

file.server.xml:
<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="CIFS Server">
     <serverEnable enabled="true"/>
      <host name="${cifs.localname}A" domain="${cifs.domain}"/>
      <comment>Alfresco CIFS Server</comment>

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>${cifs.broadcast}</broadcast>

      <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB platforms="linux,solaris,macosx"/>

      <!– Can be mapped to non-privileged ports, then use firewall rules to forward
          requests from the standard ports –>
     <!–      
      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
     –>
      
      <hostAnnounce interval="5"/>

      <!– Use Win32 NetBIOS interface on Windows –>
      <Win32NetBIOS/>
      <Win32Announce interval="5"/>

      <!– CIFS authentication –>
      <authenticator>
      <class>
      com.starla.server.auth.EnterpriseCifsAuthenticator
      </class>
      </authenticator>