cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS troubles

robr
Champ in-the-making
Champ in-the-making
I'm really at a loss here, I spent this weekend playing with Alfresco and I can't even get the simplest of things to work… namely CIFS.  I installed this on a Windows machine.  I created a browse space via the web client, now I want that browse space to appear as a CIFS share… I've read lots of docs, I've searched this forum, I've watched webinars, I've poked around with the two file-server.xxxx files.  It looks like it should be enabled by default….  I'm just not getting what I need to do to turn it on and be able to share that browse space out.

It's like I'm getting TOO MUCH info, some of it depricated, and it's all confusing me.  Being a windows guy, all these config files are pretty overwhelming, but I've played with JBoss applications before and do have some experience with them, so it's not rocket science.  Is there a nice simple UP TO DATE doc that basically says 'DO THIS' to turn it on without trying to document every option available?  Thanks!
59 REPLIES 59

robr
Champ in-the-making
Champ in-the-making
Is this the key here maybe?

To enable native SMB support under Windows requires that the Windows native SMB support is disabled by editing, or creating, the following registry key :-

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
"SMBDeviceEnabled"=dword:00000000


Think about that for a second though, that makes no sense
"To enable native SMB support under Windows"
"Disable Windows native SMB support"

Is essentially what that says.  I think it's saying to enable SMB support within Alfresco, disable native windows SMB support, but it doesn't say that Smiley Happy.

What is this going to effect if I do that?  This isn't the only application on this server (windows 2008 server x64) and don't want to hose anything else.

dward
Champ on-the-rise
Champ on-the-rise
First, to answer your most recent question. "No".

By default the Alfresco SMB over TCP and SMB over NetBIOS settings are not applicable to Windows installations, as instead a Windows-native stack is used on Windows servers that picks up the operating system settings.

You are best to use the default configuration, rather than trying to disable SMB on your Windows server and enable it on Alfresco. Now just give me a minute and I'll try to help further…

dward
Champ on-the-rise
Champ on-the-rise
Now you should find that with the v3.2 Community release out of the box, without any custom configuration, the CIFS server 'just works' with default settings on Windows.

So if you start up Tomcat and there are no errors in your logs, you should find that you can go to

\\yourservernameA

(that is the name of your server with a capital A appended)

… and (after logging in as admin/admin)

you should see that two shares, "Alfresco" and "AVM" are available.

Have you got this far? Don't try doing any of the advanced stuff until you've tried the default configuration.

robr
Champ in-the-making
Champ in-the-making
Let me first say thank you for helping, I really appreciate it.  I figured I'd have this up and going in less than an hour.  Your latest post is a bit more informational (the A appended to machine name).  I had been browsing the network expecting to see new shares on my local server.  In any case, I have attempted to follow your instructions on two machines (one the Win2K8 install I mentioned) and also on Vista Ultimate x32 (where I installed this over this past weekend to play/test).

I've started Tomcat (Start Alfresco Server off the Start button) with no errors that I can see other than a memory warning.


Jul 13, 2009 11:57:15 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 13, 2009 11:57:15 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 347 ms
Jul 13, 2009 11:57:15 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 13, 2009 11:57:15 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Jul 13, 2009 11:57:16 AM org.apache.catalina.core.StandardContext addApplication
Listener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is
already configured for this context. The duplicate definition has been ignored.
11:57:19,407  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properti
es file from class path resource [alfresco/repository.properties]
11:57:19,407  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properti
es file from class path resource [alfresco/domain/transaction.properties]
11:57:19,407  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properti
es file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco-global.proper
ties]
11:57:19,469  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
11:57:32,558  INFO  [domain.schema.SchemaBootstrap] Schema managed by database d
ialect org.hibernate.dialect.MySQLInnoDBDialect.
11:57:33,899  INFO  [domain.schema.SchemaBootstrap] No changes were made to the
schema.
11:57:35,600 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Starting 'thirdparty' subsystem, ID: [default]
11:57:35,615 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigure
r] Loading properties file from class path resource [alfresco/alfresco-shared.pr
operties]
11:57:37,160 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Startup of 'thirdparty' subsystem, ID: [default] complete
11:57:37,238 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco ro
ot data directory ('dir.root') is: C:\Alfresco\alf_data
11:57:37,269 User:System INFO  [admin.patch.PatchExecuter] Checking for patches
to apply …
11:57:37,487 User:System INFO  [admin.patch.PatchExecuter] No patches were requi
red.
11:57:37,503 User:System INFO  [repo.module.ModuleServiceImpl] Found 1 module(s)
.
11:57:37,534 User:System INFO  [repo.module.ModuleServiceImpl] Starting module '
org.alfresco.module.vti' version 1.2.
11:57:37,581 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Starting 'fileServers' subsystem, ID: [default]
11:57:37,596 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigure
r] Loading properties file from class path resource [alfresco/alfresco-shared.pr
operties]
11:57:37,768 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Starting 'Authentication' subsystem, ID: [managed, alfrescoNtlm1]
11:57:37,768 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigure
r] Loading properties file from class path resource [alfresco/alfresco-shared.pr
operties]
11:57:37,986 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Startup of 'Authentication' subsystem, ID: [managed, alfrescoNtlm1] comple
te
11:57:38,033 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Startup of 'fileServers' subsystem, ID: [default] complete
11:57:38,033 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Starting 'imap' subsystem, ID: [default]
11:57:38,033 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigure
r] Loading properties file from class path resource [alfresco/alfresco-shared.pr
operties]
11:57:38,080 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Startup of 'imap' subsystem, ID: [default] complete
11:57:38,080 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Starting 'Synchronization' subsystem, ID: [default]
11:57:38,080 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigure
r] Loading properties file from class path resource [alfresco/alfresco-shared.pr
operties]
11:57:38,096 User:System INFO  [management.subsystems.ChildApplicationContextFac
tory] Startup of 'Synchronization' subsystem, ID: [default] complete
11:57:38,142 User:System INFO  [service.descriptor.DescriptorService] Alfresco J
VM - v1.6.0_07-b06; maximum heap size 493.063MB
11:57:38,142 User:System WARN  [service.descriptor.DescriptorService] Alfresco J
VM - WARNING - maximum heap size 493.063MB is less than recommended 512MB
11:57:38,142 User:System INFO  [service.descriptor.DescriptorService] Alfresco s
tarted (Community): Current version 3.2.0 (2039) schema 2019 - Installed version
3.2.0 (2039) schema 2019
11:57:38,376 User:System INFO  [module.vti.VtiServer] Vti server started success
fully on port: 7070
11:57:46,847 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'wcm_deployment_receiver' subsystem, ID: [defa
11:57:46,863 User:System INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco
11:57:46,910 User:System INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'wcm_deployment_receiver' subsystem, ID: [de
Jul 13, 2009 11:57:47 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive mobile.war
11:57:48,002  INFO  [alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@1c41
ontext]; startup date [Mon Jul 13 11:57:48 EDT 2009]; root of context hierarchy
11:57:48,204  INFO  [alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnable
ringframework.beans.factory.support.DefaultListableBeanFactory@10acee6
11:57:48,985  INFO  [web.scripts.DeclarativeRegistry] Registered 24 Web Scripts (+0 failed), 26 URLs
11:57:49,000  INFO  [web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 160.21883ms)
11:57:49,078  INFO  [web.scripts.DeclarativeRegistry] Registered 42 Web Scripts (+0 failed), 44 URLs
11:57:49,094  INFO  [web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 90.887115ms)
11:57:49,141  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
Jul 13, 2009 11:57:49 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
11:57:51,013  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
Jul 13, 2009 11:57:51 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive studio.war

I then go to IE or Firefox on that local machine and type in \\servernameA in the address box and am told:
Windows cannot find "\\servernameA".  Check the spelling and try again.

I've also gone into My Alfresco>Sites, gone into the site details, and clicked on the "View in CIFS" link.  I have to wait about 10 seconds, then it comes back with "Cannot file file://servernamea/Alfresco/Sites/Test". Make sure the path or Internet address is correct.

There is no firewall on either of these machines and no anti-virus software on the the Server 2008 machine.  As far as I can tell (and I'm not really sure how to tell with any certainty), there is simply no "simulated server" instance with the netbios name of \\servernameA being created?

dward
Champ on-the-rise
Champ on-the-rise
FYI I can see why the use of the word 'native' in the article you reference is causing some confusion

There are two variants of SMB supported by the Java-based implementation (which is not active by default on Windows servers).

1. SMB over TCP/IP, which was termed 'native SMB' in the article.
2. SMB over NetBIOS, supported by older clients.

The trouble was the word 'native' was also referring to the Windows OS-based server implementation. This just picks up the settings of your Windows OS.

So I have updated the article to say 'direct SMB', when it is referring to SMB over TCP/IP.

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

robr
Champ in-the-making
Champ in-the-making
So,any ideas what I might look at next?  Thanks once again.

dward
Champ on-the-rise
Champ on-the-rise
I've got to say I'm not sure as the above has always worked for me on XP.

Is the stuff that you previously may have switched off by editing registry settings now switched on again? The Windows implementation should work with default registry settings.

Have you tried being explicit about server name and domain in alfresco-global.properties?

Try the following in alfresco-global.properties (without any other cifs.* stuff)

cifs.serverName=madeupname
cifs.domain=

Then try going to

\\madeupname in Windows Explorer.

Log in using a valid Alfresco username and password (e.g. admin/admin).

Use the command "net use" to see if you have any stale connections lying around and "net use /delete" to delete them.

robr
Champ in-the-making
Champ in-the-making
I have not actually made a single config change, I've just read, looked, but haven't touched.  I'll try some of your suggestions now.

robr
Champ in-the-making
Champ in-the-making
I added those two lines (they did not exist in the alfresco-global.properties) file…. still nada.  I'll go find an XP machine to try this on as I've only tried it on Vista x32 and Win2K8 x64 at this point.