Home

CIFS troubleshooting

You are here

74 posts / 0 new
Last post
CIFS troubleshooting

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 \\.

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
nbtstat -A
nbtstat -a

Dr Paul Holmes-Higgin
Chief Product Officer

Linux configuration

When running the Alfresco CIFS server under linux make sure that the firewall is open for CIFS access. In Suse linux using Yast, go to Security and Users, Firewall, then either disable the firewall or in the Allowed Services add Samba Server via the Service To Allow drop down menu.

In the file-servers.xml file change the setting to match the broadcast mask of your network. Use ifconfig and look for the BCast: setting for the main network adapter.

You could try changing the setting to use a fixed name, such as .

Dr Paul Holmes-Higgin
Chief Product Officer

CIFS on a standalone PC

If installing Alfresco on a stand-alone system, not connected to any network,
we try to map the CIFS server, (pure standard installation), and get
"The mapped network drive could not be created because the following error has occurred: The network location cannot be reached. ..."

Once you connect that PC to a network, any network basically,
the CIFS server can be mapped to a network drive.

The system is installed in a standard way.
Any settings we could change to solve this problem and Demo Alfresco completely stand-alone?
We could add an entry in the lmhosts file?

Partner at XeniT

How do i access CIFS on alternate port number?

In the config file : file-servers.xml is code setting alfresco's SMB port to 1139 and a comment about using firewall redirects to these alternate port numbers.

Does this mean that it is possible to run samba and have Alfresco CIFS up on the same network?

It is not clear to me how a user would be able to connect to the alfresco CIFS when samba is running elsewhere.

Is this just URL based? I see in the Packt book that one uses the URL http://theservername/alfresco/intranet/somefolder
as the XP "my network places" path. Does this imply some sort of tomcat conf change to map the "intranet" directory to the correct port?
or should I be doing:
http://theservername:1139/alfresco/intranet/somefolder

A related question:
We have a large directory structure that we have used for years to put documents on. While it seems quite possible to simply drag the root of that directory structure across to a webdav / cifs alfresco'ised space, this will create a large duplication of the documents on the native systems.
My question: is there a way of pointing alfresco at an existing directory tree and having it in a batch manner build it's indexes and not relocate the documents?

At this point my interest is simply in getting the indexed searching in place. Creating workflow etc would happen case by case after it was "known" by alfresco. Then at some point we could turn off samba on these folders and use only alfresco/CIFS.

Maybe I'm approaching this all wrong? opinions? suggestions? anyone?
..rrb

Quote:
My question: is there a way of pointing alfresco at an existing directory tree and having it in a batch manner build it's indexes and not relocate the documents?

Answering my own second question:

Well after looking at the details of how things seem to persist under alf_data I'd say the answer is a loud "no". The rather long key info embedded in the pathnames to where the docs persist under alf_data is
a) not likely to be compatible with some arbitrary directory hierarchy that already exists.
b) probably vital to making alfresco work.

On the first question:

Quote:
Does this mean that it is possible to run samba and have Alfresco CIFS up on the same network?

it turned out to be a case of making sure the Alfresco CIFS and our Samba appear as different IP addresses on the network, then they cohabit just fine.

Related: the "tomcat/alfresco runs as root" aspect of things does make people nervous about using webdav outside our firewall though...

CIFS not work!

I have Windows 2003 with Alfresco 2.1 connected to Mysql5 in another server. After started, all work fine except CIFS, I got error message:

Error accessing Win32 NetBIOS, check DLL is on the path

Please advise me which DLL file and path do I need to check? Thank you very much!

Simon

After add domain name!

After I added domain to the file_server.xml, I got:
11:19:21,455 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (482) schema 64 - Installed version 2.1.0 (482) schema 64
11:19:27,568 ERROR [org.alfresco.smb.protocol.mailslot] HostAnnouncer error
java.lang.ArrayIndexOutOfBoundsException: 16
at org.alfresco.filesys.netbios.NetBIOSName.getNetBIOSName(NetBIOSName.java:374)
at org.alfresco.filesys.netbios.win32.NetBIOSSocket.sendDatagram(NetBIOSSocket.java:307)
at org.alfresco.filesys.smb.mailslot.WinsockNetBIOSHostAnnouncer.sendAnnouncement(WinsockNetBIOSHostAnnouncer.java:137)
at org.alfresco.filesys.smb.mailslot.HostAnnouncer.run(HostAnnouncer.java:313)
11:19:33,540 ERROR [org.alfresco.smb.protocol.mailslot] HostAnnouncer error
java.lang.ArrayIndexOutOfBoundsException: 16
at org.alfresco.filesys.netbios.NetBIOSName.getNetBIOSName(NetBIOSName.java:374)
at org.alfresco.filesys.netbios.win32.NetBIOSSocket.sendDatagram(NetBIOSSocket.java:307)
at org.alfresco.filesys.smb.mailslot.WinsockNetBIOSHostAnnouncer.sendAnnouncement(WinsockNetBIOSHostAnnouncer.java:137)
at org.alfresco.filesys.smb.mailslot.HostAnnouncer.run(HostAnnouncer.java:313)
11:19:39,543 ERROR [org.alfresco.smb.protocol.mailslot] HostAnnouncer error
java.lang.ArrayIndexOutOfBoundsException: 16
at org.alfresco.filesys.netbios.NetBIOSName.getNetBIOSName(NetBIOSName.java:374)
at org.alfresco.filesys.netbios.win32.NetBIOSSocket.sendDatagram(NetBIOSSocket.java:307)
at org.alfresco.filesys.smb.mailslot.WinsockNetBIOSHostAnnouncer.sendAnnouncement(WinsockNetBIOSHostAnnouncer.java:137)
at org.alfresco.filesys.smb.mailslot.HostAnnouncer.run(HostAnnouncer.java:313)

But the mapping is working. Why?

thanks!

Simon

I got it!

Actually, only really needed was to add two DLL files to the path, and remove the domain that I mentioned before, It works fine now no errors.
thanks!

Simon

Cannot connect CIFS on cllient computer

Hi, My case is:

on Windows 2003, install Alfresco 2.1 with all default setting.
Then create a Alfresco user kzhou by webclient and a space Kent Blogs.

On Windows 2003, I can access CIFS by \\myservera\Alfresco\Kent Blogs with user kzhou.

Then I try to map Y: to \\myservera\Alfresco\Kent Blogs on another XP machine. When connecting to the server, it ask for username/password,
after try 3 user: kzhou, admin, administraror, I can't connect to CIFS server. The message is:
The network folder specified is currenctly mapped using a different name and password. To connect using a different user name and password, first dissconnect any existing mappings to this network shares.

Even if I disconnect all existing mapping, still can not connect CIFS with same error message.

On XP when using nbtstat , get info as:

C:\Documents and Settings\kzhou>nbtstat -a myservera

....
NetBIOS Remote Machine Name Table

Name Type Status
---------------------------------------------
MYSERVER <00> UNIQUE Registered
WORKGROUP <00> GROUP Registered
MYSERVER <20> UNIQUE Registered
WORKGROUP <1E> GROUP Registered
WORKGROUP <1D> UNIQUE Registered
..__MSBROWSE__.<01> GROUP Registered
MYSERVERA <20> UNIQUE Registered
MYSERVERA <00> UNIQUE Registered

I have Alfresco 2.1 running in Ubuntu 7.1. I am able to connect to Alfresco locally, but when I try to do so on a Windows machine on the LAN it will not authenticate me. I know that a standalone samba server typically requires you to shadow a Windows NT-friendly version of a password in order to authenticate from a Windows client. Is it possible that I need to do something similar for Alfresco?

Edit: I should add I am using the Enterprise edition of Alfresco.

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?

Re: CIFS troubleshooting

What about this: http://forums.alfresco.com/viewtopic.php?f=9&t=11437

No way to troubleshoot this one?

Thanks,

Re: CIFS troubleshooting

@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 :)

127.0.0.1 localhost
192.168.123.1 alfresco alfresco_a

Thanks for the research.

Regards, Norgan

"Reading alone is not enough, sometimes, understanding is helpful as well"(roughly after Kurt Tucholsky ;-) )

Did I shorten your search, gimme a point, I want one too :-D ... oh ... and update the Wiki PLEASE.
---
Developer Tutorials: http://www.ecmarchitect.com
Share Login vs Alfresco Login: Forum Thread

Re: CIFS troubleshooting

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

Re: CIFS troubleshooting

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

winsock error "10055:ReceiveSocket - No buffer space availab

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

Re: CIFS troubleshooting

Hi Giorgo

prgiorgio wrote:
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

"Reading alone is not enough, sometimes, understanding is helpful as well"(roughly after Kurt Tucholsky ;-) )

Did I shorten your search, gimme a point, I want one too :-D ... oh ... and update the Wiki PLEASE.
---
Developer Tutorials: http://www.ecmarchitect.com
Share Login vs Alfresco Login: Forum Thread

Re: CIFS troubleshooting

Norgan wrote:
Hi Giorgo
prgiorgio wrote:
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

Re: CIFS troubleshooting

Hi Giogio,
regarding 1) Dont know - try it out :) 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.

"Reading alone is not enough, sometimes, understanding is helpful as well"(roughly after Kurt Tucholsky ;-) )

Did I shorten your search, gimme a point, I want one too :-D ... oh ... and update the Wiki PLEASE.
---
Developer Tutorials: http://www.ecmarchitect.com
Share Login vs Alfresco Login: Forum Thread

Re: CIFS troubleshooting

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:

Quote:




Alfresco CIFS Server


${cifs.broadcast}






-->






com.starla.server.auth.EnterpriseCifsAuthenticator

CIFS conflict?

Hi all,
I'm trying to make CIFS server work on Linux Ubuntu 7.1 but have some troubles.
I'm making it work on reserved ports and using iptables to open them to make it live together with SAMBA.

If I connect with smbclient locally I have what espected:

root@srv-alea:/home/ccappelletti# smbclient -U admin \\\\127.0.0.1\\alfresco admin
Domain=[SRV-ALEA_A] OS=[Java] Server=[Alfresco CIFS Server 3.5.1]
smb: \> ls
. D 0 Wed Dec 31 21:00:00 1969
.. D 0 Wed Dec 31 21:00:00 1969
__Alfresco.url R 130 Wed Apr 30 10:39:18 2008
Data Dictionary D 0 Mon Apr 28 12:39:08 2008
Guest Home D 0 Mon Apr 28 12:39:09 2008
User Homes D 0 Mon Apr 28 12:39:09 2008
Proyectos D 0 Mon Apr 28 12:46:43 2008
 
40000 blocks of size 2097152. 36000 blocks available
smb: \>

The strange thing here is that it is taking the Alfresco server name as a domain!

Other stange staff:

root@srv-alea:/home/ccappelletti# smbclient -L 192.0.2.64 -U admin%admin
Domain=[SCHEMA] OS=[Unix] Server=[Samba 3.0.26a]
 
        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        Public          Disk
        IPC$            IPC       IPC Service (srv-alea server (Samba, Ubuntu))
Domain=[SCHEMA] OS=[Unix] Server=[Samba 3.0.26a]
 
        Server               Comment
        ---------            -------
        SRV-ALEA             srv-alea server (Samba, Ubuntu)
        SRV-SCIENTIA         Servidor Linux
 
        Workgroup            Master
        ---------            -------
        SCHEMA               SRV-SCIENTIA
 
root@srv-alea:/home/ccappelletti# smbclient -L srv-alea -U admin%admin
Domain=[SRV-ALEA_A] OS=[Java] Server=[Alfresco CIFS Server 3.5.1]
 
        Sharename       Type      Comment
        ---------       ----      -------
cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \srvsvc failed with error NT_STATUS_BUFFER_TOO_SMALL
        Alfresco        Disk
        IPC$            IPC
        AVM             Disk
Receiving SMB: Server stopped responding
session request to SRV-ALEA failed (Call returned zero bytes (EOF))
Domain=[SRV-ALEA_A] OS=[Java] Server=[Alfresco CIFS Server 3.5.1]
 
        Server               Comment
        ---------            -------
 
        Workgroup            Master
        ---------            -------

If I connect with DNS name, I see the Alfresco stuff but not my samba stuff. If I connect by IP I see the Alfresco stuff.

My Alfresco version is community 2.1.
my file-servers-custom.xml:

<alfresco-config area="file-servers">
 
   <!-- To override the default Alfresco filesystem use replace="true", to -->
   <!-- add additional filesystems remove the replace="true" attribute     -->
 
	<config evaluator="string-compare" condition="CIFS Server">
      <serverEnable enabled="true"/>
      <host name="${localname}_A" domain="SCHEMA"/>
      <comment>Alfresco CIFS Server</comment>
      <broadcast>192.0.2.255</broadcast>
      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB platforms="linux,solaris,macosx"/>
      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
      <hostAnnounce interval="5"/>
      <sessionDebug flags="Negotiate,Socket"/>
   </config>
 
 
   <config evaluator="string-compare" condition="Filesystems" replace="true">
      <filesystems>
 
         <filesystem name="Alfresco">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>
 
            <!-- Add a URL file to each folder that links back to the web client -->
            <urlFile>
               <filename>__Alfresco.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>
 
            <!-- Mark locked files as offline -->
            <offlineFiles/>
 
            <!-- Desktop actions -->
 
            <desktopActions>
               <global>
                  <path>alfresco/desktop/Alfresco.exe</path>
                  <webpath>http://${localname}:8080/alfresco/</webpath>
               </global>
               <action>
                  <class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
                  <name>CheckInOut</name>
                  <filename>__CheckInOut.exe</filename>
               </action>
               <action>
                  <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
                  <name>JavaScriptURL</name>
                  <filename>__ShowDetails.exe</filename>
                  <script>alfresco/desktop/showDetails.js</script>
                  <attributes>anyFiles</attributes>
                  <preprocess>copyToTarget</preprocess>
               </action>
 
            </desktopActions>
 
<!--
            <accessControl default="Write">
               <user name="admin" access="Write"/>
               <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
            </accessControl>
-->
         </filesystem>
 
		 <!-- AVM virtualization view of all stores/versions for WCM -->
         <avmfilesystem name="AVM">
            <virtualView/>
         </avmfilesystem>
 
      </filesystems>
   </config>
 
</alfresco-config>

I think it is a problem with Linux configuration (obviously I'm not an expert) but I can't solve this (tried during a week). The problem is the same with or without DHCP.

In the net win machines only see the name srv-alea not (srv-alea_a). And only can connect to the samba stuff (not CIFS).

Any help ideas will be welcome!

Thanyou, Carlo.

Re: CIFS troubleshooting

I couldn't connect on the Alfresco server to the CIFS server once it was installed and running.

daniel@alf2:alfresco$ smbclient -U admin \\\\alf2A\\alfresco admin
Error connecting to XXX.XXX.XXX.106 (Connection refused)
Connection to alf2A failed (Error NT_STATUS_CONNECTION_REFUSED)

alfresco.log:
--snip--
 
16:15:15,645 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (484) schema 64 - Installed version 2.1.0 (484) schema 64
16:15:15,644 ERROR [org.alfresco.smb.protocol] Server error :
java.net.BindException: Permission denied
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.alfresco.filesys.smb.server.SessionSocketHandler.initialize(SessionSocketHandler.java:257)
at org.alfresco.filesys.smb.server.NetBIOSSessionSocketHandler.createSessionHandlers(NetBIOSSessionSocketHandler.java:165)
at org.alfresco.filesys.smb.server.SMBServer.run(SMBServer.java:495)
at java.lang.Thread.run(Thread.java:619)
--end--

Solution:
I added export JAVA_HOME='/usr/lib/jvm/java-6-sun-1.6.06' to /opt/alfresco/alfresco.sh and ran it. This worked. Maybe I missed something in the README.txt file. Thanks for the help.

-Daniel

Re: CIFS troubleshooting

ccappelletti,

This link may help. It discusses having samba and alfresco on the same box:
http://wiki.alfresco.com/wiki/Changing_Bind_Addresses_and_Ports_for_Samba_and_FTP

-Daniel

Re: CIFS troubleshooting

Daniel,
thankyou very much, both your posts were a solution to me.

I was using the script at this http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10 (without redirecting ports because I created a new IP address to have samba and CIFS on the same box) to start alfresco.
There you can see lines like this:
sudo -H -u alfresco
starting processes as alfresco user. That is... no access to priviledges ports.
So I modified it like this:

#
# Alfresco init script for Ubuntu
# 2 nov 2007 Joost Horward
# 05 may 2008 modified by Carlo Cappelletti to run as root and get access to priviledges ports.
#
 
export ALFRESCO_HOME=/opt/alfresco
export CATALINA_BASE=/opt/alfresco/tomcat
export CATALINA_HOME=/opt/alfresco/tomcat
export PIDFILE=/var/run/alfresco
export LOGFILE=/var/log/alfresco/alfresco.log
 
# Set any default JVM values
export JAVA_OPTS='-Xms128m -Xmx512m -server -Djava.io.tmpdir=/var/lib/alfresco/tmp'
 
 
cd "$ALFRESCO_HOME"
 
#
# redirect FROM TO PROTOCOL
# setup port redirect using iptables
redirect() {
echo "Redirecting port $1 to $2 ($3)"
iptables -t nat -A OUTPUT -d localhost -p $3 --dport $1 -j REDIRECT --to-ports $2
iptables -t nat -A PREROUTING -d $HOSTNAME -p $3 --dport $1 -j REDIRECT --to-ports $2
iptables -t nat -A OUTPUT -d $HOSTNAME -p $3 --dport $1 -j REDIRECT --to-ports $2
}
 
#
# setup_iptables
# setup iptables for redirection of CIFS and FTP
setup_iptables () {
echo "Not redirecting..."
# echo "1" >/proc/sys/net/ipv4/ip_forward
# Clear NATing tables
# iptables -t nat -F
# FTP NATing
# redirect 21 2021 tcp
 
# CIFS NATing
# redirect 445 1445 tcp
# redirect 139 1139 tcp
# redirect 137 1137 udp
# redirect 138 1138 udp
}
 
#
# start_openoffice
#
start_openoffice(){
sudo -H -u alfresco xvfb-run /usr/lib/openoffice/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &
}
 
case $1 in
start)
if [ -f $PIDFILE ] ; then
echo "Alfresco is already running!"
exit 1
fi
touch $PIDFILE
echo "Starting OpenOffice service ..."
start_openoffice
 
echo "Setting up iptables ..."
setup_iptables
 
echo "Starting Alfresco ..."
echo -e "\n\n\n\n\n\n\n\n\n\n`date` Starting Alfresco ..." >>$LOGFILE
sudo chown alfresco:alfresco $LOGFILE
 
sh $CATALINA_HOME/bin/startup.sh
;;
stop)
sh $CATALINA_HOME/bin/shutdown.sh
killall -w -u alfresco
echo -e "`date` Stopping Alfresco ..." >>$LOGFILE
rm $PIDFILE
;;
restart)
rm $PIDFILE
sh $CATALINA_HOME/bin/shutdown.sh
killall -w -u alfresco
echo -e "\n\n\n\n\n\n\n\n\n`date` Restarting Alfresco ..." >>$LOGFILE
sh $CATALINA_HOME/bin/startup.sh
touch $PIDFILE
;;
zap)
echo "Zapping $PIDFILE ..."
rm $PIDFILE
;;
*)
echo "Usage: alfresco [start|stop|restart|zap] [tail]"
exit 1
;;
 
esac
 
case $2 in
tail)
tail -f $LOGFILE
;;
esac
 
 
exit 0

And everithing is working.

Bye

Carlo.

Re: CIFS troubleshooting

I keep getting the same error over and over: Error accessing Win32 NetBIOS, check DLL is on the path, even though I copied the neccessary dll files on the path, 'C:\windos\system32' directory to be exact. I'm using the SVN version of Alfresco, cuz I wanted to make some slight modifications. Anybody got an idea for a solution?

Re: CIFS troubleshooting

any one pls help me,
my CIFS server is not working on LAN with win 2003 server

Sudhir Korde

Re: CIFS troubleshooting

Hi
I have tried it on my environment and now CIFS work fine (some times) on windows 2003 VPN
I did DNS entry and now I am facing a problem like some time remote machine can access the CIFS server and some time not, it giving the error like "no network path found" or "permission denied"
Would you please help me to get out of this problem?

System info:
Alfresco Community 2.1/Tomcat/Oracle/Windows Server 2003

Thanks in advance,
Sudhir korde

Sudhir Korde

Re: CIFS troubleshooting

Addition (and possible answer) to the last posts in here: somewhere between 2.1 and 3.0.0-dev the dll's used/needed for cifs on windows machines changed.
If you download latest nightly build or download from svn you find the proper dll's in there. (in bin-dir of nightly-build and in /head/root/projects/alfresco-jlan/jni pf svn-download)

Hope this helps someone (took me quite some time to figure this out..:0)
Regards,
Peter

Re: CIFS troubleshooting

Hi...

I'm having a problem with mapping CIFS in Windows XP
\\servernameA\alfresco gives me network address not found
\\servernameA gives me duplicate name exists

the server(test server) is running on windows Vista, I've already ran all nbtstats from the first post, and all of them display:

       Nome               Tipo         Estado
    ---------------------------------------------
    UTILIZADOR-PC  <00>  Único       Registado
    WORKGROUP      <00>  Grupo       Registado
    WORKGROUP      <1E>  Grupo       Registado
    UTILIZADOR-PC  <20>  Único       Registado
    WORKGROUP      <1D>  Único       Registado
    ..__MSBROWSE__.<01>  Grupo       Registado
    UTILIZADOR-PCA <20>  Único       Registado
    UTILIZADOR-PCA <00>  Único       Registado

...-PCA is the alfresco server

file-servers.xml:

<alfresco-config area="file-servers">
 
<config evaluator="string-compare" condition="CIFS Server">
<serverEnable enabled="true"/>
<host name="${localname}A" />
<comment>Alfresco CIFS Server</comment>
 
<!-- Set to the broadcast mask for the subnet -->
<broadcast>10.0.0.255</broadcast>

my network has no domain

I successfuly connected from other Vista machines...
while writing this post, i've checked that i'm still not using SP1 for Vista
didn't try lmhosts, because i that that wouldn't be a viable solution

hope any-one can help...
thanks in advance for any reply

Re: CIFS troubleshooting

Hi,

I have the same problem. I have Alfresco installed in a Windows Server 2003 and I am able to map the Alfresco Network drive in teh server local machine, but when I try to map the network drive from a PC of the LAN I am asked to provide user /password but then I enter a valid user/password of Alfresco I get an error of "The Network path was not found".

This is my file-servers.xml

<alfresco-config area="file-servers">
 
   <config evaluator="string-compare" condition="CIFS Server">
	  <serverEnable enabled="true"/>
      <host name="${localname}_a"/>
      <comment>Alfresco CIFS Server</comment>
 
      <!-- Set to the broadcast mask for the subnet -->
      <broadcast>255.255.255.255</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"/>
 
<!--
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
-->
      <sessionDebug flags="Negotiate,Socket"/>
   </config>

Anyone has any solution???

Re: CIFS troubleshooting

Hi everybody,

I found the solution. The problem is tha I have a Windows domain configured and that is why I can't map the Alfresco Network drive. I have edit my code adding domain="THEINIT" to the parameter host:

file-servers.xml

<alfresco-config area="file-servers">
 
   <config evaluator="string-compare" condition="CIFS Server">
     <serverEnable enabled="true"/>
      <host name="${localname}_a" domain="THEINIT"/>
      <comment>Alfresco CIFS Server</comment>
 
      <!-- Set to the broadcast mask for the subnet -->
      <broadcast>255.255.255.255</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"/>
 
<!--
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
-->
      <sessionDebug flags="Negotiate,Socket"/>
   </config>

Thanks!!!, Bye.

Re: CIFS troubleshooting

Hello,

This is a great thread! I have another interesting issue for you guys.

I am running Alfresco 3Stable on a SuSe 11 server with Windows XP clients. It's configured to use Kerberos for everything, and has a custom AD integration where users are synchronized as they login (rather then importing the entire AD every night). It's setup as per the Wiki, including the firewall spec.

Basically, CIFS is functioning at 95%. There are 2 aspects that are broken:
1. The Server load on any action on CIFS is huge. It spikes for several seconds, even for small files ... and it is a big server.
2. Even though the SMB Share is always available (I.E., \\myShare\), the Alfresco folder in there (I.E., \\myShare\Alfresco) fails roughly 5% of the time. This 5% comes in chunks of about 5 minutes, seemingly randomly distributed over the day. When it fails, it produces a windows login box. However, it gets better. The server logs tell me that there was a succesfull Kerberos login ....

Has anyone ever seen anything like this?

Regards,

Rogier

Senior ECM Consultant, Capgemini NL

Re: CIFS troubleshooting

I'm too having serious CIFS stability and performance problems (Ubuntu 8.04, 8GB RAM, tomcat and versions 3b and 3c Community Ed.).
We can't reliably create directories and copy files (a lot of attempts fail, yielding various error-messages: permission denied, directory does not exist).

Sometimes deletion of the just created directories fails with:
>>net.sf.acegisecurity.AccessDeniedException: Access is denied
>> org.alfresco.repo.security.permissions.AccessDeniedException: Access Denied. You do not have the appropriate permissions to perform this operation
>> at $Proxy3.deleteNode(Unknown Source)
>> at org.alfresco.filesys.repo.ContentDiskDriver.deleteDirectory(ContentDiskDriver.java:1738)
>> at org.alfresco.filesys.repo.ContentDiskDriver.deleteDirectory(ContentDiskDriver.java:1738)
>> at org.alfresco.jlan.smb.server.NTProtocolHandler.procDeleteDirectory(NTProtocolHandler.java:3001)
>> at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:281)
>> at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1340)
But also deleting fails, but without an errorlog entry.

If the exact same command is retried, it may work (randomly). They user doing the access has Contributor rights.
We have created a simple testscript (after we have seen, that not all files are copied over and directories are missing from a recursive local copy):
Create a directory, then 10 subdirectories below that. Count directories which aren't created. Delete the whole directory tree (rm -rf) and start over again. If we run the script 100x, it may work the first 10 runs, then fail completely afterwards (90%) or consistently can't create the same one directory.

We acces the alfresco share using a mounted smbfs (or type cifs). Even logons from smbclient don't work (error: cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \srvsvc failed with error NT_STATUS_BUFFER_TOO_SMALL; but showing results of Listing '-L option') as expected or simple directory listings using the mounted directory (repeated 'ls- l' commands work as expected, then take forever or yield errormessages).
We use alfresco authorization scheme and have tried various configuration settings.
The performance is worse: creating 10 directories takes 25+ seconds, deleting it over a minute!
We have checked using ftp (lftp client), getting roughly the same "write-performance" (though thanks to lftp using retry-attempts get better success-rates).

As SMB/CIFS is vital (and WebDAV doesn't allow file uploads - only showing readonly content?) we probably have to using Samba and Apache WebDAV to get the desired performance and stability (without a dms).

Using the webclient, using the same operations as the same user, we don't have any problems.

UPDATE: the reliability problems stem from using 'mount -t smbfs' on the Ubuntu client system, if we use 'mount -t cifs' there seems to be no more errors regarding creating and removing directories.
But the performance issues still exist (there is no difference).

Re: CIFS troubleshooting

Hi all

I have recently updated from alfresco 2.9 to 3.0 labs. While running 2.9 i had no problem with cifs, however after upgrading, i cannot map to the server at all, when i try then all that happens is a pop up screen with the error 'the network path was not found' appears. No other error message is generated at any point and all other functionality works perfectly. I worked through all the above posts and still no luck. This is however a vital point in my system so need it working desperately.

Any advice would be greatly appreciated

Regards
Gerrit

Re: CIFS troubleshooting

Hello.
I need help for setup CIFS server.
OS: Open Suse Linux 11, Alfresco Labs 3C.

file-server-custom.xml

 
<config evaluator="string-compare" condition="CIFS Server">
<serverEnable enabled="true"/>
<host name="${localname}A" domain="ASU"/>
<comment>Alfresco Server</comment>
<broadcast>10.16.13.255</broadcast>
<tcpipSMB platforms="linux,solaris,macosx"/>
<netBIOSSMB platforms="linux,solaris,macosx"/>
<tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
<netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
<hostAnnounce interval="5"/>
<sessionDebug flags="Negotiate,Socket"/>
<WINS>
<primary>10.1.32.1</primary>
</WINS>
</config>

Suse Firewall Config
FW_FORWARD_MASQ="0/0,10.16.13.51,udp,138,1138 0/0,10.16.13.51,udp,137,1137 0/0,10.16.13.51,tcp,139,1139 0/0,10.16.13.15,tcp,445,1445"
When i'm trying to connect to Alfresco server i see error.
smbclient -L 10.16.13.51
Connection to 10.16.13.51 failed (Error NT_STATUS_CONNECTION_REFUSED)

But if i change port on 1139, i'll connect to server.
smbclient -L 10.16.13.51 -p 1139
Enter alfresco's password:
Anonymous login successful
Domain=[ASU] OS=[Java] Server=[Alfresco CIFS Server 5.0.0 [beta]]
 
Sharename Type Comment
--------- ---- -------
cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \srvsvc failed with error NT_STATUS_BUFFER_TOO_SMALL
Alfresco Disk
IPC$ IPC
AVM Disk
Connection to 10.16.13.51 failed (Error NT_STATUS_CONNECTION_REFUSED)
NetBIOS over TCP disabled -- no workgroup available

What am i doing wrong?

Thank you.

Sorry for my probable grammar and lexical errors, English isn't my native language.

Re: CIFS troubleshooting

Hi,
I have the same problem as witho. and I have done what he said!
but doesn't work, plz help me in this matter!

FSB

Re: CIFS troubleshooting

Hi,

Could you post your configuration file? Myabe I can help you.

Re: CIFS troubleshooting

Hi witho,
here is my configuration files,

file-servers.xml

<alfresco-config area="file-servers">
 
<config evaluator="string-compare" condition="CIFS Server">
<serverEnable enabled="true"/>
<host name="${localname}A" domain="THEINIT"/>
<comment>Alfresco CIFS Server</comment>
 
<!-- Set to the broadcast mask for the subnet -->
<broadcast>255.255.255.255</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"/>
 
<!--
<WINS>
<primary>1.2.3.4</primary>
<secondary>5.6.7.8</secondary>
</WINS>
-->
<sessionDebug flags="Negotiate,Socket"/>
</config>
 
<config evaluator="string-compare" condition="FTP Server">
<serverEnable enabled="true"/>
<!-- <debug flags="File,Search,Error,Directory,Info,DataPort"/> -->
</config>
 
<config evaluator="string-compare" condition="NFS Server">
<serverEnable enabled="false"/>
</config>
 
<config evaluator="string-compare" condition="Filesystems">
<filesystems>
 
<!-- Alfresco repository access shared filesystem -->
<filesystem name="Alfresco">
<store>workspace://SpacesStore</store>
<rootPath>/app:company_home</rootPath>
 
<!-- Add a URL file to each folder that links back to the web client -->
<urlFile>
<filename>__AlfrescoClient.url</filename>
<webpath>http://${localname}:8080/alfresco/</webpath>
</urlFile>
 
<!-- Mark locked files as offline -->
<offlineFiles/>
 
<!-- Desktop actions -->
<!-- Uses a client-side application to trigger a server-side action -->
<!-- Echo - displays a message echoed from the server -->
<!-- URL - launches a URL via the Windows shell -->
<!-- CmdLine - launches the Notepad application -->
<!-- CheckInOut - checks files in/out, drag and drop files onto the application -->
<!-- JavaScript - run a server-side script -->
<!-- JavaScriptURL - server-side script that generates a URL to the folder using a ticket -->
<!-- to avoid having to logon -->
 
<desktopActions>
<global>
<path>alfresco/desktop/Alfresco.exe</path>
<webpath>http://${localname}:8080/alfresco/</webpath>
</global>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.EchoDesktopAction</class>
<name>Echo</name>
<filename>__AlfrescoEcho.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.URLDesktopAction</class>
<name>URL</name>
<filename>__AlfrescoURL.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.CmdLineDesktopAction</class>
<name>CmdLine</name>
<filename>__AlfrescoCmd.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
<name>CheckInOut</name>
<filename>__AlfrescoCheckInOut.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
<name>JavaScript</name>
<filename>__AlfrescoScript.exe</filename>
<script>alfresco/desktop/dumpRequest.js</script>
<attributes>anyFiles, multiplePaths , allowNoParams</attributes>
<preprocess>confirm, copyToTarget</preprocess>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
<name>JavaScriptURL</name>
<filename>__AlfrescoDetails.exe</filename>
<script>alfresco/desktop/showDetails.js</script>
<attributes>anyFiles</attributes>
<preprocess>copyToTarget</preprocess>
</action>
 
</desktopActions>
 
 
<!--
<accessControl default="Write">
<user name="admin" access="Write"/>
<address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
</accessControl>
-->
</filesystem>
 
<!-- AVM virtualization view of all stores/versions for WCM -->
<avmfilesystem name="AVM">
<virtualView/>
</avmfilesystem>
 
</filesystems>
</config>
 
<config evaluator="string-compare" condition="Filesystem Security">
<authenticator type="enterprise">
</authenticator>
 
<!--
<globalAccessControl default="None">
<user name="admin" access="Write"/>
<address ip="90.1.0.90" access="Write"/>
</globalAccessControl>
 
<users>
<localuser name="user">
<password>user</password>
<comment>Normal user account</comment>
</localuser>
 
<localuser name="administrator">
<password>admin</password>
<administrator/>
<comment>Administrator account</comment>
</localuser>
</users>
-->
</config>
 
 
</alfresco-config>

file-servers-custom.xml

<alfresco-config area="file-servers">
 
<!-- To override the default Alfresco filesystem use replace="true", to -->
<!-- add additional filesystems remove the replace="true" attribute -->
 
<config evaluator="string-compare" condition="Filesystems" replace="true">
<filesystems>
 
<filesystem name="Alfresco">
<store>workspace://SpacesStore</store>
<rootPath>/app:company_home</rootPath>
 
<!-- Add a URL file to each folder that links back to the web client -->
<urlFile>
<filename>__Alfresco.url</filename>
<webpath>http://${localname}:8080/alfresco/</webpath>
</urlFile>
 
<!-- Mark locked files as offline -->
<offlineFiles/>
 
<!-- Desktop actions -->
 
<desktopActions>
<global>
<path>alfresco/desktop/Alfresco.exe</path>
<webpath>http://${localname}:8080/alfresco/</webpath>
</global>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
<name>CheckInOut</name>
<filename>__CheckInOut.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
<name>JavaScriptURL</name>
<filename>__ShowDetails.exe</filename>
<script>alfresco/desktop/showDetails.js</script>
<attributes>anyFiles</attributes>
<preprocess>copyToTarget</preprocess>
</action>
 
</desktopActions>
 
<!--
<accessControl default="Write">
<user name="admin" access="Write"/>
<address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
</accessControl>
-->
</filesystem>
 
<!-- AVM virtualization view of all stores/versions for WCM -->
<avmfilesystem name="AVM">
<virtualView/>
</avmfilesystem>
 
</filesystems>
</config>
 
</alfresco-config>

I have done all the steps in forums, I have uncommented in file-server.xml, I have added domain="THEINIT" properties for in file-server.xml. I have changes the .dll file as mentioned in http://forums.alfresco.com/en/viewtopic.php?f=8&t=10523&p=61710#p61710. I have tried with both and . I have also created

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
"SMBDeviceEnabled"=dword:00000000
as said in http://wiki.alfresco.com/wiki/File_Server_Configuration#SMB.2FCIFS_Server_Configuration.
my system info is:
AlfrescoCommunity-2.9.0B/jdk-1_5_0_01-windows-i586/mysql-essential-5.0.16-win32/windows server2003/ and the clients are all xp!

please help me out :(
thanks
FSB

Re: CIFS troubleshooting

Hi fbehfar,

In the parameter domain of your file-servers.xml you have to add your domain name. In my project I added domain="THEINIT" because this is my domain name. If you have a domain or workgroup configured in your LAN you'll have to put it in the configuration file.

I hope this helps you.

Re: CIFS troubleshooting

Hi witho,
thanks for your quick reply!
I have change it to my domain name, but it doesn't still work :(

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

that's making me crazy!
I guess there should be something wrong with windows xp, and I have to config something in XP! because I have none of the above problem with a client, which has a windows server 2003 on it! what is it?

FSB

Re: CIFS troubleshooting

Hi fbehfar,

¿Does your Tomcat display some error? Look the catalñina.log and the alfresco.log. Maybe there ir some error trace that would help us to solve your problem.

I only configured my file-servers.xml as follows and put the Win32NetBIOS.dll library into server WINDOWS folder.

file-servers.xml

<alfresco-config area="file-servers">
 
<config evaluator="string-compare" condition="CIFS Server">
<serverEnable enabled="true"/>
<host name="${localname}_A" domain="THEINIT"/>
<comment>Alfresco CIFS Server</comment>
 
<!-- Set to the broadcast mask for the subnet -->
<broadcast>255.255.255.255</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"/>
 
<!--
<WINS>
<primary>1.2.3.4</primary>
<secondary>5.6.7.8</secondary>
</WINS>
-->
<sessionDebug flags="Negotiate,Socket"/>
</config>
 
<config evaluator="string-compare" condition="FTP Server">
<serverEnable enabled="false"/>
<!-- <debug flags="File,Search,Error,Directory,Info,DataPort"/> -->
</config>
 
<config evaluator="string-compare" condition="NFS Server">
<serverEnable enabled="false"/>
</config>
 
<config evaluator="string-compare" condition="Filesystems">
<filesystems>
 
<!-- Alfresco repository access shared filesystem -->
<filesystem name="Alfresco">
<store>workspace://SpacesStore</store>
<rootPath>/app:company_home</rootPath>
 
<!-- Add a URL file to each folder that links back to the web client -->
<urlFile>
<filename>__AlfrescoClient.url</filename>
<webpath>http://${localname}/alfresco/</webpath>
</urlFile>
 
<!-- Mark locked files as offline -->
<offlineFiles/>
 
<!-- Desktop actions -->
<!-- Uses a client-side application to trigger a server-side action -->
<!-- Echo - displays a message echoed from the server -->
<!-- URL - launches a URL via the Windows shell -->
<!-- CmdLine - launches the Notepad application -->
<!-- CheckInOut - checks files in/out, drag and drop files onto the application -->
<!-- JavaScript - run a server-side script -->
<!-- JavaScriptURL - server-side script that generates a URL to the folder using a ticket -->
<!-- to avoid having to logon -->
 
<!--
<desktopActions>
<global>
<path>alfresco/desktop/Alfresco.exe</path>
<webpath>http://${localname}/alfresco/</webpath>
</global>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.EchoDesktopAction</class>
<name>Echo</name>
<filename>__AlfrescoEcho.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.URLDesktopAction</class>
<name>URL</name>
<filename>__AlfrescoURL.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.CmdLineDesktopAction</class>
<name>CmdLine</name>
<filename>__AlfrescoCmd.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
<name>CheckInOut</name>
<filename>__AlfrescoCheckInOut.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
<name>JavaScript</name>
<filename>__AlfrescoScript.exe</filename>
<script>alfresco/desktop/dumpRequest.js</script>
<attributes>anyFiles, multiplePaths , allowNoParams</attributes>
<preprocess>confirm, copyToTarget</preprocess>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
<name>JavaScriptURL</name>
<filename>__AlfrescoDetails.exe</filename>
<script>alfresco/desktop/showDetails.js</script>
<attributes>anyFiles</attributes>
<preprocess>copyToTarget</preprocess>
</action>
 
</desktopActions>
-->
 
<!--
<accessControl default="Write">
<user name="admin" access="Write"/>
<address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
</accessControl>
-->
</filesystem>
 
<!-- AVM virtualization view of all stores/versions for WCM -->
<avmfilesystem name="AVM">
<virtualView/>
</avmfilesystem>
 
</filesystems>
</config>
 
<config evaluator="string-compare" condition="Filesystem Security">
<authenticator type="enterprise">
</authenticator>
 
<!--
<globalAccessControl default="None">
<user name="admin" access="Write"/>
<address ip="90.1.0.90" access="Write"/>
</globalAccessControl>
 
<users>
<localuser name="user">
<password>user</password>
<comment>Normal user account</comment>
</localuser>
 
<localuser name="administrator">
<password>admin</password>
<administrator/>
<comment>Administrator account</comment>
</localuser>
</users>
-->
</config>
 
 
</alfresco-config>

I only performed this configuration and everithing works well. I go to the Windows explorer and map a network drive with this folder \\AHERNANDEZ_A\Alfresco because my PC name is AHERNANDEZ. Then I enter a valid Alfreso user and password and I get CIFS access.

Look through the logs and post your error if you get some. I'll try to help you with your problem. Good luck!

Re: CIFS troubleshooting

Re: CIFS troubleshooting

Hi,

I would stop the Tomcat and then save a copy of your configuration file file-srvers.xml. You can make some proofs with my configuration file changing only the domain name with yours. Then clean your logs and start the Tomcat again. Look if there is some error during the startup of the server. If there is plese post it here. After this try to log in your Alfresco with the browser (IE, Firefox or whatever). Look again for errors and when you are sure that Alfresco is running correctly then try to map your CIFS network drive. Look then again for new errors and post them here.

Bye.

Re: CIFS troubleshooting

Hi,
this is my alfresco.log after I used your configuration

15:00:14,421 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
15:00:16,062 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
15:00:18,031 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
15:00:18,359 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed: 
Execution result: 
   os:         Windows 2003
   command:    "D:/Alfresco/openoffice/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///D:/Alfresco/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore
   succeeded:  false
   exit code:  2
   out:        
   err:        CreateProcess: "D:\Alfresco\openoffice\program\soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///D:/Alfresco/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore error=3
15:00:19,187 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: D:\Alfresco\alf_data
15:00:19,218 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply ...
15:00:20,250 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
15:00:21,312 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
15:00:21,312 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_01-b08; maximum heap size 493.063MB
15:00:21,312 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less than recommended 512MB
15:00:21,312 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.9.0 (B 683) schema 116 - Installed version 2.9.0 (B 683) schema 116

it didn't have error but it didn't work either! after that I changed name="${localname}_A" to:

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

then I could map it but only in one PC and I got error, and it didn't work out in other client PCs.

15:00:14,421 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
15:00:16,062 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
15:00:18,031 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
15:00:18,359 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed: 
Execution result: 
   os:         Windows 2003
   command:    "D:/Alfresco/openoffice/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///D:/Alfresco/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore
   succeeded:  false
   exit code:  2
   out:        
   err:        CreateProcess: "D:\Alfresco\openoffice\program\soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///D:/Alfresco/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore error=3
15:00:19,187 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: D:\Alfresco\alf_data
15:00:19,218 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply ...
15:00:20,250 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
15:00:21,312 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
15:00:21,312 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_01-b08; maximum heap size 493.063MB
15:00:21,312 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less than recommended 512MB
15:00:21,312 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.9.0 (B 683) schema 116 - Installed version 2.9.0 (B 683) schema 116
15:04:10,015 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
15:04:12,406 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
15:04:14,281 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
15:04:14,859 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed: 
Execution result: 
   os:         Windows 2003
   command:    "D:/Alfresco/openoffice/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///D:/Alfresco/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore
   succeeded:  false
   exit code:  2
   out:        
   err:        CreateProcess: "D:\Alfresco\openoffice\program\soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///D:/Alfresco/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore error=3
15:04:15,796 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: D:\Alfresco\alf_data
15:04:15,828 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply ...
15:04:16,734 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
15:04:18,000 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
15:04:18,000 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_01-b08; maximum heap size 493.063MB
15:04:18,000 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less than recommended 512MB
15:04:18,000 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.9.0 (B 683) schema 116 - Installed version 2.9.0 (B 683) schema 116

after some try i can not map either and these lines added in my alfresco.log file

Quote:
15:21:05,640 WARN [org.springframework.util.FileCopyUtils] Could not close OutputStream
ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:278)
at org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStream.java:104)
at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:132)
at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:352)
at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:263)
at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:347)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:770)
at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:124)
at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:580)
at org.apache.coyote.Response.doWrite(Response.java:560)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)
... 24 more
15:21:05,640 INFO [org.alfresco.web.app.servlet.DownloadContentServlet] Client aborted stream read:
node: workspace://SpacesStore/672b743a-3dfb-11de-9fcf-693ca44f1f9f
content: ContentAccessor[ contentUrl=store://2009/5/11/10/44/673c3d1d-3dfb-11de-9fcf-693ca44f1f9f.bin, mimetype=image/x-dwg, size=2029952, encoding=UTF-8, locale=en_US]

so what's wrong with me???

Thank you again

FSB

Re: CIFS troubleshooting

I am thinking about some problem with your OpenOffice. However the CIFS problem may be caused because of a wrong .dll as you can map CIFS network drive from a Windows 2003 client. I had to use a Win32NetBIOS.dll of a Windows 2003 server in order to solve my problems with CIFS. Be sure you dll is compatible for Windows 2003 and review your OpenOffice-Alfresco configuration.

Re: CIFS troubleshooting

Should you be able to see ServerNameA when you list all the machines in your network?

Re: CIFS troubleshooting

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
"SMBDeviceEnabled"=dword:00000000
When I add this Key my Server it loses connection with active directory and i'm getting a whole lot of entry in my systemlog...am i the only one who got that problem? I mean, having a working cifs or a connected domain server without cifs...what am i doing wrong?

http://wiki.alfresco.com/wiki/Troubleshooting:
BindException: Address already in use
This indicates that an existing SMB/CIFS or FTP server is already running on the system.
If you are running Alfresco on Windows then it is recommended to use the Win32 NetBIOS interface so that the Alfresco file server can run alongside the existing Windows file server.

How should this work alongside when i'm disabling the SMBDevice?

Re: CIFS troubleshooting

I to was having many CIFS problems and crawled through the forums to find solutions. What I have finally figured out are 2 things.

1. if you edit the windows hosts file and add alfrescoa 13.13.13.13 to it where alfresco is the name of your alfresco server remember to add the "a" and 13.13.13.13 is not the ip address of your server. (i found this somewhere not my original idea)

2. I was then getting all kinds of trash collector and java errors. Everything was still working but got lots of errors. Today i discovered it was windows explorer that was causing this issue on vista. I replaced explorer with xplorer2 http://www.zabkat.com/ and no more errors. Plus xplorer2 is really much nicer than the standard explorer. (I have nothing to do with this product.)

Any way just wanted to post to maybe save someone some grief. If you have a better suggestion for me please post.

Thanks to all community members!

Re: CIFS troubleshooting

Ok I am stumped. I can connect to CIFS locally on my server (window server 2003) using \\servernameA\alfresco and it works fine. But when I try remotely from another (Vista) machine I get this error:

"Windows cannot access \\servernameA\alfresco - Check the spelling of the name. Otherwise, there might be a problem with your nework."

Then if I hit the "Diagnose" button the Microsoft offers, I get this message:

"Windows cannot find "servernameA" - Windows sent the request to the DNS server and the server responded that the name was unknown."

If I use the ip address to connect such as \\xxx.xxx.xxx.xxx\alfresco then the diagnostic message says this:

"Windows confirmed that the server "xxx.xxx.xxx.xxx" exists but cannot find "Alfresco" "

I am using Alfresco Community version 3.2. I copied the Win32Netbios.dll file into the WINDOWS folder.

Here is my file-servers.xml file:

<alfresco-config area="file-servers">
 
<config evaluator="string-compare" condition="CIFS Server">
<serverEnable enabled="${cifs.enabled}"/>
 
<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>
 
<!-- Set to the IP for the adapter for Java socket -->
<bindto>${cifs.bindto}</bindto>
 
<!-- Use Java socket based NetBIOS over TCP/IP and native SMB on linux -->
<tcpipSMB ipv6="${cifs.ipv6}" platforms="linux,solaris,macosx"/>
<netBIOSSMB bindto="${cifs.bindto}" platforms="linux,solaris,macosx"/>
 
<!-- Can be mapped to non-privileged ports, then use firewall rules to forward
requests from the standard ports -->

And here is my file-servers.properties file:

filesystem.name=Alfresco
 
cifs.enabled=true
cifs.localname=${localname}
cifs.domain=DS
cifs.broadcast=255.255.255.255
cifs.bindto=0.0.0.0
cifs.ipv6=disabled
cifs.hostannounce=true
 
ftp.enabled=true
ftp.ipv6=disabled
 
nfs.enabled=false
Help please!!!

Re: CIFS troubleshooting

Have you enabled NetBIOS on the Vista client machines? Don't ask me how that's done.

Re: CIFS troubleshooting

dward wrote:
Have you enabled NetBIOS on the Vista client machines? Don't ask me how that's done.

Yes, I just enabled that....and it does the same thing. Just for interest sake...here's how to enable NetBIOS under Vista:

1.Click Start, and then click Network. (Or you can click Start, type ncpa.cpl into the search box, and press ENTER).
2.Click on the Network and Sharing Center, and then click Manage Network Connections.
3.Right click on the Local Area Connection or the connection you are using.
4.Select the Internet Protocol version 4 (TCP/IPv4)
5.Click the Advanced button under the General tab.
6.Click the WINS tab.
7.Click the Enable NetBIOS Over TCP/IP button.
8.Click Ok.

Re: CIFS troubleshooting

This is maddening. Has anyone out there successfully installed CIFS and gotten it working on Windows with version 3.2? The only thing I can think of is that I changed the port number from 8080 to 80. So I hope that I have located all the places in configuration files where those are hard coded and fixed them. Maybe I missed something out there though. This has been 8 hours straight of tinkering trying to get this to work.

Re: CIFS troubleshooting

Hi there,
my system runs perfectly fine both under linux and under windows. Regarding the standard ports - did you change the port from 8080 to 80, then you have to make sure you caught every configline, using ports. Or did you just make a redirect from 80 to 8080 ? would leave the "rest" intact. One test is a standard test for me, though, trying to resolve the name on the commandline - otherwise extending the /etc/hosts file.

Norgan

"Reading alone is not enough, sometimes, understanding is helpful as well"(roughly after Kurt Tucholsky ;-) )

Did I shorten your search, gimme a point, I want one too :-D ... oh ... and update the Wiki PLEASE.
---
Developer Tutorials: http://www.ecmarchitect.com
Share Login vs Alfresco Login: Forum Thread

Re: CIFS troubleshooting (slowly going insane!)

I have to volunteer my lacking success with CIFS/SMB as well. CIFS is not working at all for me. I'm getting network path not found. I've checked the Windows Shares, there aren't any. I've checked nbtstat, nothing alfresco related is listed. I've tried browsing to \\cmsserver_a\alfresco , \\cmsserver\alfresco, and \\127.0.0.1\alfresco, and nothing is recognized (all say network provider not found, or no network provider accepted the given path)

Initially I tried following along with this YouTube guide http://www.youtube.com/watch?v=XXR4YqzoC7A only to find that the files he was referring to weren't where they were supposed to be. When that didn't work, I started scouring the forums. I've looked over everything that appears to be possibly relevant, and tried most of it, but with no luck.

I'm running 3.2 Community under Server 2003 Enterprise x64. Here's what I've done so far:

I've copied the two DLLs from c:\alfresco\bin to c:\windows\syswow64 and rebooted.

In catalina(timestamp).log I have no errors.

Under C:\Alfresco\tomcat\shared\classes\alfresco\extension I have file-servers-custom.xml which contains the following:

<alfresco-config area="file-servers">
 
   <!-- To override the default Alfresco filesystem use replace="true", to -->
   <!-- add additional filesystems remove the replace="true" attribute     -->
 
   <config evaluator="string-compare" condition="Filesystems" replace="true">
	  <filesystems>
 
         <!-- Alfresco repository access shared filesystem -->
         <filesystem name="${filesystem.name}">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>
 
			<!-- Add a URL file to each folder that links back to the web client -->
            <urlFile>
               <filename>__Alfresco.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>
 
			<!-- Mark locked files as offline --> 
		    <offlineFiles/>
 
			<!-- Desktop actions -->
			<!-- Uses a client-side application to trigger a server-side action                         -->
			<!--   Echo - displays a message echoed from the server                                     -->
			<!--   URL  - launches a URL via the Windows shell                                          -->
			<!--   CmdLine - launches the Notepad application                                           -->
			<!--   CheckInOut - checks files in/out, drag and drop files onto the application           -->
			<!--   JavaScript - run a server-side script                                                -->
			<!--   JavaScriptURL - server-side script that generates a URL to the folder using a ticket -->
			<!--                   to avoid having to logon                                             -->
 
            <desktopActions>
               <global>
                  <path>alfresco/desktop/Alfresco.exe</path>
                  <webpath>http://${localname}:8080/alfresco/</webpath>
               </global>
               <action>
                  <class>org.alfresco.filesys.repo.desk.CheckInOutDesktopAction</class>
                  <name>CheckInOut</name>
                  <filename>__CheckInOut.exe</filename>
               </action>
               <action>
                  <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
                  <name>JavaScriptURL</name>
                  <filename>__ShowDetails.exe</filename>
                  <script>alfresco/desktop/showDetails.js</script>
                  <attributes>anyFiles</attributes>
                  <preprocess>copyToTarget</preprocess>
               </action>
				<action>
					<class>org.alfresco.filesys.repo.desk.EchoDesktopAction</class>
					<name>Echo</name>
			        <filename>__AlfrescoEcho.exe</filename>
				</action>
				<action>
					<class>org.alfresco.filesys.repo.desk.URLDesktopAction</class>
					<name>URL</name>
			        <filename>__AlfrescoURL.exe</filename>
				</action>
				<action>
					<class>org.alfresco.filesys.repo.desk.CmdLineDesktopAction</class>
					<name>CmdLine</name>
			        <filename>__AlfrescoCmd.exe</filename>
				</action>
				<action>
					<class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
					<name>JavaScript</name>
					<filename>__AlfrescoScript.exe</filename>
					<script>alfresco/desktop/dumpRequest.js</script>
					<attributes>anyFiles, multiplePaths , allowNoParams</attributes>
					<preprocess>confirm, copyToTarget</preprocess>
				</action>
            </desktopActions>
 
			<!-- Additional access control of the filesystem -->
			<!-- Access type of 'none' will stop the filesystem from showing up for that user/address/protocol --> 			 
            <!--
            <accessControl default="Write">
               <user name="admin" access="Write"/>
               <address subnet="192.168.1.0" mask="255.255.255.0" access="Write"/>
            </accessControl>
            -->
         </filesystem>
 
		   <!-- AVM virtualization view of all stores/versions for WCM -->
		   <!-- virtual view can be any of the following: normal, site, staging, author, preview -->
         <avmfilesystem name="AVM">
            <virtualView stores="site,staging,author"/>
         </avmfilesystem>
 
      </filesystems>
   </config>
</alfresco-config>

Under C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco I have file-servers.xml which contains the following:

<alfresco-config area="file-servers">
 
   <config evaluator="string-compare" condition="CIFS Server">
      <serverEnable enabled="${cifs.enabled}"/>
 
      <host name="cmsserver" domain="cmsserver"/>
      <comment>Alfresco CIFS Server</comment>
 
      <!-- Set to the broadcast mask for the subnet -->
      <broadcast>255.255.255.0</broadcast>
 
      <!-- Set to the IP for the adapter for Java socket -->
      <bindto>${cifs.bindto}</bindto>
 
      <!-- Use Java socket based NetBIOS over TCP/IP and native SMB on linux -->
      <tcpipSMB ipv6="${cifs.ipv6}" platforms="linux,solaris,macosx"/>
      <netBIOSSMB bindto="${cifs.bindto}" 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" ipv6="${cifs.ipv6}" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
      -->
 
      <!-- Announce the server to the workgroup/domain -->
      <!-- Use enabled="false" attribute to disable announcements -->      
	  <!-- <hostAnnounce interval="5" enabled="${cifs.hostannounce}"/>	--> 
      <hostAnnounce interval="5" enabled="false"/>
 
      <!-- Use Win32 NetBIOS interface on Windows -->
      <Win32NetBIOS/>
 
      <!-- Announce the server to the workgroup/domain -->
      <!-- Use enabled="false" attribute to disable announcements -->              
      <!-- <Win32Announce interval="5" enabled="${cifs.hostannounce}"/> -->
	  <Win32Announce interval="5" enabled="false"/> 
 
 
      <!-- CIFS authentication -->
      <!-- Available types are 'alfresco', 'passthru' and 'enterprise' -->
      <authenticator type="alfresco"/>
 
      <!-- CIFS Passthru authentication sample -->
      <!-- Also see the <DomainMappings> config in the 'Filesystem Security' section below -->
      <!--
      <authenticator type="passthru">
        <Server>ALFRESCO\adsrv1,ADOMAIN\adsrv2,adsrv1</Server>
        <protocolOrder>TCPIP,NetBIOS</protocolOrder>
        <offlineCheckInterval>60</offlineCheckInterval>
      </authenticator>
      -->
 
      <!-- CIFS Enterprise authentication sample with Kerberos -->
      <!--
      <authenticator type="enterprise"/>
         <KDC>192.168.1.240</KDC>
         <Realm>WIN2003.ALFRESCO.ORG</Realm>
         <Password>password</Password>
 
         <kerberosDebug/>
      </authenticator>      
      -->
 
      <!-- Disable the use of asynchronous sockets/NIO code -->
      <!--
      <disableNIO/>
      -->
 
      <!-- Disable the use of JNI code -->
      <!-- Only currently affects Windows -->
      <!--
      <disableNativeCode/>
      -->
 
      <!-- Session timeout, in seconds -->
      <!-- Defaults to 15 minutes, to match the default Windows client setting        -->
      <!-- If no I/O is received within that time the session is closed by the server -->
      <!--
      <sessionTimeout>300</sessionTimeout>
      -->
 
      <!-- Enable WINS if used for NetBIOS name lookups -->
      <!--
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
      -->
 
      <!-- CIFS server debug settings -->
      <!-- Enable 'log4j.logger.org.alfresco.fileserver=debug' in log4j.properties file -->
      <!--
      <sessionDebug flags="Negotiate,Socket"/>
      -->
   </config>
 
   <config evaluator="string-compare" condition="FTP Server">
      <serverEnable enabled="${ftp.enabled}"/>
 
      <!-- Run on a non-privileged port -->
      <!--
      <port>1121</port>
      -->
 
	  <!-- IPv6 support -->
	  <IPv6 state="${ftp.ipv6}"/>
 
      <!-- FTP authentication -->
      <!-- Available types are 'alfresco' and 'passthru' -->
      <authenticator type="alfresco"/>
 
      <!-- FTP server debug settings -->
      <!-- Enable 'log4j.logger.org.alfresco.fileserver=debug' in log4j.properties file -->
      <!--
      <debug flags="File,Search,Error,Directory,Info,DataPort"/>
      -->
   </config>
 
   <config evaluator="string-compare" condition="NFS Server">
      <serverEnable enabled="${nfs.enabled}"/>
 
      <!-- Map NFS user/group ids to Alfresco users -->      
      <rpcAuthenticator>
         <userMappings>
            <user name="admin" uid="0" gid="0"/>
         </userMappings>
      </rpcAuthenticator>
   </config>
 
   <config evaluator="string-compare" condition="Filesystems">
      <filesystems>
 
         <!-- Alfresco repository access shared filesystem -->
         <filesystem name="${filesystem.name}">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>
 
            <!-- Add a URL file to each folder that links back to the web client -->
            <urlFile>
               <filename>__Alfresco.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>
 
            <!-- Mark locked files as offline --> 
            <offlineFiles/>
 
            <!-- Desktop actions -->
            <!-- Uses a client-side application to trigger a server-side action                         -->
            <!--   Echo - displays a message echoed from the server                                     -->
            <!--   URL  - launches a URL via the Windows shell                                          -->
            <!--   CmdLine - launches the Notepad application                                           -->
            <!--   CheckInOut - checks files in/out, drag and drop files onto the application           -->
            <!--   JavaScript - run a server-side script                                                -->
            <!--   JavaScriptURL - server-side script that generates a URL to the folder using a ticket -->
            <!--                   to avoid having to logon                                             -->
            <desktopActions>
               <global>
                  <path>alfresco/desktop/Alfresco.exe</path>
                  <webpath>http://${localname}:8080/alfresco/</webpath>
               </global>
               <action>
                  <class>org.alfresco.filesys.repo.desk.CheckInOutDesktopAction</class>
                  <name>CheckInOut</name>
                  <filename>__CheckInOut.exe</filename>
               </action>
               <action>
                  <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
                  <name>JavaScriptURL</name>
                  <filename>__ShowDetails.exe</filename>
                  <script>alfresco/desktop/showDetails.js</script>
                  <attributes>anyFiles</attributes>
                  <preprocess>copyToTarget</preprocess>
               </action>
 
               <!-- Other desktop actions which may be enabled -->
               <!--
                <action>
                    <class>org.alfresco.filesys.repo.desk.EchoDesktopAction</class>
                    <name>Echo</name>
                    <filename>__AlfrescoEcho.exe</filename>
                </action>
                <action>
                    <class>org.alfresco.filesys.repo.desk.URLDesktopAction</class>
                    <name>URL</name>
                    <filename>__AlfrescoURL.exe</filename>
                </action>
                <action>
                    <class>org.alfresco.filesys.repo.desk.CmdLineDesktopAction</class>
                    <name>CmdLine</name>
                    <filename>__AlfrescoCmd.exe</filename>
                </action>
                <action>
                    <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>
                    <name>JavaScript</name>
                    <filename>__AlfrescoScript.exe</filename>
                    <script>alfresco/desktop/dumpRequest.js</script>
                    <attributes>anyFiles, multiplePaths , allowNoParams</attributes>
                    <preprocess>confirm, copyToTarget</preprocess>
                </action>
                -->                              
            </desktopActions>
 
            <!-- Additional access control of the filesystem -->
            <!-- Access type of 'none' will stop the filesystem from showing up for that user/address/protocol -->              
            <!--
            <accessControl default="Write">
               <user name="admin" access="Write"/>
               <address subnet="192.168.1.0" mask="255.255.255.0" access="Write"/>
            </accessControl>
            -->
         </filesystem>
 
           <!-- AVM virtualization view of all stores/versions for WCM -->
           <!-- virtual view stores filter can be any of the following: normal, site, staging, author, preview -->
         <avmfilesystem name="AVM">
            <virtualView stores="site,staging,author"/>
         </avmfilesystem>
 
      </filesystems>
   </config>
 
   <config evaluator="string-compare" condition="Filesystem Security">
      <!-- Domain mappings used for passthru authentication routing              -->
      <!-- Used when the client does not provide a domain name in the NTLM logon -->
      <!--
      <DomainMappings>
          <Domain name="ALFRESCO" subnet="192.168.1.0" mask="192.168.1.255"/>
      </DomainMappings>
      -->
 
      <!-- Custom share mapper when multi-tenancy is enabled -->
      <!--
      <shareMapper type="multi-tenant">
        <debug/>
      </shareMapper>
      -->
 
      <!-- Global access control list                                                                    -->
      <!-- Applied to all filesystems that do not have an <accessControl> block                          -->
      <!-- Access type of 'none' will stop the filesystem from showing up for that user/address/protocol -->              
      <!--
      <globalAccessControl default="None">
         <user name="admin" access="Write"/>
         <address ip="192.168.1.2" access="Write"/>
      </globalAccessControl>
      -->
   </config>
 
</alfresco-config>

Under C:\Alfresco\tomcat\shared\classes\alfresco\extension I have custom-vti.properties which contains the following:

vti.server.port=7070
vti.alfresco.deployment.context=/alfresco
vti.alfresco.alfresoHostWithPort=http://cmsserver:8080
vti.share.shareHostWithPort=http://cmsserver:8080
vti.share.shareContext=/share
vti.share.siteInBrowser=/page/site/.../dashboard
vti.share.siteSettings=/page/site/.../customise-site
vti.share.siteGroupMembership=/page/site/.../site-members
vti.share.userInformation=/page/user/.../profile
vti.share.documentLibrary=/page/site/.../documentlibrary
vti.share.documentDetails=/page/site/.../document-details

( Can someone confirm that line 2 is supposed to be vti.alfresco.alfresoHostWithPort withOUT the c in alfresco? This is stock - was not modified. )

Even though I've edited the variables to not use cmsserver_a for the share, I've added the IP entries into the hosts file.

Where have I gone wrong? What am I missing here? Any help or suggestions would be appreciated.

Re: CIFS troubleshooting

file-servers-custom.xml and custom-vti.properties are not used by Alfresco v3.2.

You put all your settings in $TOMCAT_HOME/shared/classes/alfresco-global.properties.

The settings for the file server subsystem are documented here.

http://wiki.alfresco.com/wiki/File_Server_Subsystem

However, you shouldn't have to do much fiddling - it should 'just work' out of the box, provided you have nothing already listening on the ports that the Alfresco SMB server is trying to listen on.

Now that's the tricky part on newer Windows versions. Follow all the advice on the troubleshooting section to disable the native SMB services running on the Windows server. And a recent tip given here suggests that you disable file and print sharing.

http://forums.alfresco.com/en/viewtopic.php?f=9&t=21184&p=70033#p70033

Re: CIFS troubleshooting

Hi ,

I deployed the website from the alfresco community version 3.2,,

it deployed successfully, but no where tells that how i can access the published web site,

please help me .

Thanks

Re: CIFS troubleshooting

Hi all. On Mac OS X with Alfresco 3.2 I was able to get CIFS working by disabling windows file sharing and printer sharing in System Preferences (so that OS X doesn't grab the SMB ports) and running Alfresco as root (sudo ./alf_start.sh)

I can access the server either by IP smb://admin@192.168.90.125/alfresco on OS X \\admin@192.168.90.125\alfresco on windows or by servername \\alfrescoA\alfresco or smb://alfrescoA/alfresco .

However I can't get the machine to show up in the network browser. So obviously I'm doing the broadcast thing wrong. We have no WINS server or anything like that, all the (other) machines just show up because they're broadcasting their presence.

Also I'm obviously not doing the url.prefix correctly, because the __Alfresco.url pseudo-files don't link to anywhere useful, just to a login page that doesn't seem to work.

I didn't mess with any .xml files, apparently in 3.2 you only need to change the alfresco-global.properties file. Here it is

cifs.enabled=true
cifs.serverName=alfrescoA
cifs.hostannounce=true
cifs.domain=
cifs.broadcast=192.168.90.255
cifs.localname=${localname}A
cifs.urlfile.prefix=http://${localname}:8080/alfresco/

I figured out what cifs.serverName=alfrescoA does, it's what allows me to use \\alfrescoA\alfresco instead of \\192.168.90.125\alfresco

I can't figure out what cifs.localname does.

I can see that cifs.urlfile.prefix changes the start part of the __Alfresco.url links, but the remaining part (/navigate/browse/workspace/SpacesStore...) doesn't link to anything useful.

Can anyone help? Please and TIA.

Re: CIFS troubleshooting

I'm completely with johnl2009. I have installed also the 3.1 enterprise edition and I'm slowly going insane. All the mentioned files in the youtube video are not there.

Anyway to keep it short:
there is no alfresco-global.properties in $TOMCAT_HOME/shared/classes/alfresco-global.properties
there is no custom-vti-context.xml in c:\Alfresco\tomcat\webapps\alfrescp\WEB-INF\classes\alfresco\module\org.alfresco.module.vti\context\
there is no custom-vti.properties in c:\Alfresco\tomcat\webapps\alfrescp\WEB-INF\classes\alfresco\module\org.alfresco.module.vti\context\

there is a file called: c:\Alfresco\tomcat\shared\classes\alfresco\extension\file-servers-custom.xml.sample

I have installed Alfresco enterprise edition 3.1 on my local machine (windows XP) using MySQL 5.0. What is next to get to the share using CIFS?

Re: CIFS troubleshooting

I installed CIFS finished yet still have a problem. I installed Alfreesco 3.2 Community on Ubuntu 9.04 and when I try to use Map Network Drive on Windows XP by using machine name. It couldn't found. for example : my server machine name is Alfresco-new. so CIFS is \\ALFRESCO-NEWA\Alfresco
What should I do?

I also configure Alfresco-global.properties same as jabraham said.

Re: CIFS troubleshooting

Hi,
I built the alfresco from 3.2 source, as far as I know, the CIFS should be enabled by default, I am not finding any server logs and when I click view in CIFS, it says check your network address.
Please help me to setup CIFS
I am using Tomcat as server in Windows XP OS

Thanks

Re: CIFS troubleshooting

Norgan wrote:
@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 :)

127.0.0.1 localhost
192.168.123.1 alfresco alfresco_a

Thanks for the research.

Regards, Norgan

Norgan ,

are these changes applied to the hosts file of the pc where alfresco is installed or to the client pc?
is "alfresco" the name of the pc?

Re: CIFS troubleshooting

Can anyone help me to set up alfresco authentication.
in my file-servers.xml i heve:
<authenticator type="alfresco"/>
but i can't login with my account record.

Re: CIFS troubleshooting

Can somebody do something about CIFS configuration?

Issues:

1) No step by step comprehensive guide on installation / configuration
2) No idea where documents uploaded are being stored on windows
3) CIFS folder does not seem to exist (even using v3.3) on windows
4) Have no idea where //workspace:SpaceStore is

Its getting me frustrated simply looking at the CIFS link that points to some un-existing place.

CIFS Folder Troubleshooting

Hi,

I have two issues with my CIFS installation. I am running Alfresco 3.3 on a CentOS Linux server.

1.) When I click on the _Alfresco shortcut from my client computer it takes me to the address http://www.localhost.localdomain:8080/alfresco/navigate/browse/workspace/SpacesStore/e3e55a87-d07c-4da8-83c0-7fa835c512c1. This is a dead link because http://www.localhost.localdomain should actually be the ip address of the server. This is also the problem when I use the _ShowDetails.exe. It takes me again to the wrong web address. I know the variable ${localname} is used to populate the information. How do I change that variable so it is the ip address of my server?

2.) How do I change it so the _Alfresco shortcut and the _ShowDetails.exe use Share instead of the older Alfresco interface?

Thank you for your help in advance.

Jonathan

Re: CIFS troubleshooting

Greetings,

i have a major problem with CIFS. I can't disable port 445 what ever I do, and CIFS isn't working. I have virtual Windows server 2008, i tried with regedit - TransportBindName, tried with firewall advanced settings, I turned off all file sharing on local network. When I run netstat -an i see port 0.0.0.0:445 always open. Please help, I've a deadline and I'm stuck here for 4 days :(

True regards, Ivan Hajdinjak

Re: CIFS troubleshooting

Hi Ivan,

See my post here: http://forums.alfresco.com/en/viewtopic.php?f=9&t=38706

Hope this helps.

Ben

Re: CIFS troubleshooting

Thank you Ben for the reply.
I'm able to map the network drive on Alfresco server - Windows server 2008, but unable to access it from other computer (Win 7) in domain. It crushes at login credentials. Any suggesstion ?

Thanks

Re: CIFS troubleshooting

Assuming it has to do with how Windows 7 is attempting to authenticate with Alfresco. Alfresco can only authenticate pass-thru CIFS connections via NTLM v.1. By default, Windows 7 only uses NTLM v.2.

You'll have to make a change to the LAN Manager authentication level. Here's how: http://forums.alfresco.com/en/viewtopic.php?f=9&t=24610#p80352.

Re: CIFS troubleshooting

I did that but no difference. Still the user/pass box appears and message Access is denied. :(

Re: CIFS troubleshooting

My last suggestion would be to crank up the logging for CIFS and authentication and have a look at whats being reported.

Wish I could be of more assistance.

Re: CIFS troubleshooting

Greetings,

is it possible to map a cifs folder using IP address, so so the NetBIOS isn't mapping with host name (alias) with capital A ? I want in Alfresco explorer, on document details - View in CIFS -> to watch the CIFS mapped drive with ip address in left bottom, not the host name.

Thanks !

Re: CIFS troubleshooting

BenSwitzer wrote:
Assuming it has to do with how Windows 7 is attempting to authenticate with Alfresco. Alfresco can only authenticate pass-thru CIFS connections via NTLM v.1. By default, Windows 7 only uses NTLM v.2.

You'll have to make a change to the LAN Manager authentication level. Here's how: http://forums.alfresco.com/en/viewtopic.php?f=9&t=24610#p80352.

It helped me. Thanks Ben !

Re: CIFS troubleshooting

Problems with Cifs.

Hi everybody i have a problem with some libraries.

I copy this files Win32Utils.dll, Win32NetBIOS.dll in to C:\WINDOWS\system32 and i have this problem.

ERROR [org.alfresco.fileserver] Error accessing Win32 NetBIOS, check DLL is on the path

I need active CIFS but i can`t do this.

Any body can help please sorry mi English.

Re: CIFS troubleshooting

Hello
I've installed alfresco4.0.d and LDAP,Passthru work but CIFS doesn't work.show this error

please HELP
THANKS
sorry my English.