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

golden_eye
Champ in-the-making
Champ in-the-making
Hi dward

is there enough to copy new alfresco.war for 3.3.

Please let me know.
Tnx.

dward
Champ on-the-rise
Champ on-the-rise
Yes, it should be enough. Please back up your dir.root and database first, just in case.

golden_eye
Champ in-the-making
Champ in-the-making
Ok excellent,
i will try that.
Tnx for now.

ccsfdave
Champ in-the-making
Champ in-the-making
Hey all - I think I know the problem:

[size=150]CIFS/SMB DOES NOT WORK with 64bit Windows[/size] (as of version 3.2)

I had most or all of the problems reported by others here, nothing helped until I found this bug report:

https://issues.alfresco.com/jira/browse/ETHREEOH-2430

Please log in or sign up in Jira, then VOTE UP the issue.

Also, dward was completely correct.  In Windows Server 2003, you have to set the SMBDeviceEnabled registry key then reboot the box to release Windows hold on TCP port 445.

Hope this helps!


OH, BOOOOOOO!

I only have 64bit available to me! 

So the next question is how is the Linux installer of Alfresco 3.2?  Does everything work after running the installer?  I have never been able to get OOo to work correctly nor the document preview.  Oh one more caveat is that I only have RHEL 5 running on 64bit.  Thoughts?

golden_eye
Champ in-the-making
Champ in-the-making
Hi all and dward
to be clear i am working on linux machine.
I delete alfresco folder,copy new war and replace it with old,delete lucene-indexes and restart server.
It didn't help.
i still can't see alfresco cifs server in windows domain.with v2.1 i manage to enable cifs server to be seen in my domain.But with 3.2 i can't set this?
What changes are made between v2.1 and v3.2 on this configuration?
And one other question.I am using ldap authentication and for some reason i can't log on cifs with users from ldap.
Works only access made for local users made in Alfresco,but i want to be able to log with ldap users.
How to enable also this functionality?
Some other ideas?

dward
Champ on-the-rise
Champ on-the-rise
If you are upgrading all the way from 2.1, then you will also need to

- remove your custom-repository-context.xml (or at least remove the repository-properties bean override)
- rename custom-repository-properties to $TOMCAT_HOME/shared/classes/alfresco-global.properties

Everything has changed about the way the file servers are configured in v3.2. To repeat myself

WEB-INF/alfresco/file-servers.xml and WEB-INF/alfresco/file-servers.properties are no longer in use in Alfresco v3.2.

Most of the settings can be controlled in alfresco-global.properties.
See

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

for the properties you can set.

golden_eye
Champ in-the-making
Champ in-the-making
Hi
/opt/Alfresco/Alfresco-3.2/tomcat/shared/classes/alfresco/extension/subsystems/fileServers/default/default
here is my configuration for cifs to be seen in domain
cifs.enabled=true
cifs.serverName=${localname}A
cifs.domain=AG
cifs.broadcast=IP for my company network
On wiki written -> enables announcement of the CIFS server to the local domain/workgroup so that it shows up in Network Places/Network Neighborhood
cifs.hostannounce=true 
cifs.WINS.autoDetectEnabled=false
cifs.WINS.primary=IP for my company network
cifs.WINS.secondary=IP for my company network

but in alfresco-global.properties
i have just set to recognize ldap
authentication.chain=alfrescoNtlm1:alfrescoNtlm,ag:ldap

Could u from these help me to figure something more?
I must miss something obviously. Smiley Sad
Please.

dward
Champ on-the-rise
Champ on-the-rise
This should all be in alfresco-global.properties:

cifs.enabled=true
cifs.serverName=${localname}A
cifs.domain=AG
cifs.broadcast=IP for my company network
cifs.hostannounce=true
cifs.WINS.autoDetectEnabled=false
cifs.WINS.primary=IP for my company network
cifs.WINS.secondary=IP for my company network

But these are all the default values anyway (except for the primary and secondary, which would be auto-detected) so you have no need to change them! Out of the box, you should find that the CIFS server 'just works' - especially on Linux.

The only reason you would have to put something in

opt/Alfresco/Alfresco-3.2/tomcat/shared/classes/alfresco/extension/subsystems/fileServers/default/default

is a *-context.xml file, if (for some reason) you want to override Spring beans. But that is for advanced purposes, and hopefully for your case you won't need to.

So anyway, what isn't working? What does it say in alfresco.log when you start up?

As this is a linux installation, make sure you follow the port-mapping advice here

http://wiki.alfresco.com/wiki/File_Server_Subsystem#Running_SMB.2FCIFS_from_a_normal_user_account

golden_eye
Champ in-the-making
Champ in-the-making
Hi
from alfresco.log
12:48:59,281 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/opt/Alfresco/Alfresco-3.2/tomcat/shared/classes/alfresco-global.properties]
12:49:31,945 INFO  [org.alfresco.fileserver] CIFS server started
I can see 2 folders Alfresco and AVM but the problem is they are not mapped into my domain.
If i run cmd and enter \\ip\Alfresco i can access to CIFS otherwise no.

The server isn't seen in windows network?The only question here is how to enable this.

What could be the problem not recognizing Cifs server in domain?

marcobusetto
Champ in-the-making
Champ in-the-making
I'm trying using Alfresco 3.3. CE CIFS service and I'm observing a very strange behaviour. I can mount the Alfresco filesystem without any problem:


C:\>net use Y: \\alfrescolnxa\alfresco adminpassword /user:admin
The command completed successfully.

C:\>dir Y:
Volume in drive Y has no label.
Volume Serial Number is 0000-0000

Directory of Y:\

25/05/2010  12.13    <DIR>          .
25/05/2010  12.13    <DIR>          .
18/06/2010  10.32               143 __Alfresco.url
25/05/2010  12.13    <DIR>          Data Dictionary
27/05/2010  17.45    <DIR>          Guest Home
25/05/2010  12.13    <DIR>          User Homes
25/05/2010  12.13    <DIR>          Sites
25/05/2010  12.13    <DIR>          Web Projects
25/05/2010  12.13    <DIR>          Web Deployed
21/06/2010  14.08    <DIR>          Rassegna stampa tecnica
21/06/2010  14.09    <DIR>          Rassegna stampa commerciale
15/06/2010  17.05    <DIR>          Area forum aziendale
16/06/2010  17.03    <DIR>          TEST
21/06/2010  15.53    <DIR>          Breaking News
               1 File(s)            143 bytes
              13 Dir(s)  75.497.472.000 bytes free

But after awhile if I try to list the mounted directory I get a "network path was not found" error:


C:\>dir Y:
The network path was not found.

The error persist until I perform an nbtstat command:


C:\>nbtstat -a 10.2.8.101

Local Area Connection:
Node IpAddress: [10.1.1.86] Scope Id: []

           NetBIOS Remote Machine Name Table

       Name               Type         Status
    ———————————————
    ALFRESCOLNXA   <20>  UNIQUE      Registered
    ALFRESCOLNXA   <00>  UNIQUE      Registered
    WORKGROUP      <00>  GROUP       Registered
[…]

After performing the nbtstat command I'm able to list the mounted directory again:


C:\>dir Y:
Volume in drive Y has no label.
Volume Serial Number is 0000-0000

Directory of Y:\

25/05/2010  12.13    <DIR>          .
25/05/2010  12.13    <DIR>          .
18/06/2010  10.32               143 __Alfresco.url
25/05/2010  12.13    <DIR>          Data Dictionary
27/05/2010  17.45    <DIR>          Guest Home
25/05/2010  12.13    <DIR>          User Homes
25/05/2010  12.13    <DIR>          Sites
25/05/2010  12.13    <DIR>          Web Projects
25/05/2010  12.13    <DIR>          Web Deployed
21/06/2010  14.08    <DIR>          Rassegna stampa tecnica
21/06/2010  14.09    <DIR>          Rassegna stampa commerciale
15/06/2010  17.05    <DIR>          Area forum aziendale
16/06/2010  17.03    <DIR>          TEST
21/06/2010  15.53    <DIR>          Breaking News
               1 File(s)            143 bytes
              13 Dir(s)  75.497.472.000 bytes free

Has anybody ever found a similar behaviour?…

_