【问题标题】:Unable to access Alfresco's CIFS under WindowsWindows下无法访问Alfresco的CIFS
【发布时间】:2014-01-13 09:42:46
【问题描述】:

我使用 IP:192.168.0.200 (mbnoimi-virtual) 在 Ubuntu 13.10 下成功安装了 Alfresco 4.2.d,我可以通过网络毫无问题地使用 Web 界面。但我无法使用 Windows 共享访问 CIFS。

我尝试通过这些方式访问CIFS,但都失败了!

\\mbnoimi-virtuala

\\mbnoimi-virtuala\Alfresco

\\192.168.0.200\Alfresco

错误信息

检查名称的拼写。否则可能有问题 与您的网络。要尝试识别和解决网络问题,请单击 诊断

其中一台连接的 PC 可以访问 Alfresco 的 Web 界面但无法访问 CIFS 的日志

C:\Users\user>ping mbnoimi-virtual



Pinging mbnoimi-virtual [192.168.0.200] with 32 bytes of data:

Reply from 192.168.0.200: bytes=32 time<1ms TTL=64

Reply from 192.168.0.200: bytes=32 time<1ms TTL=64

Reply from 192.168.0.200: bytes=32 time<1ms TTL=64

Reply from 192.168.0.200: bytes=32 time<1ms TTL=64



Ping statistics for 192.168.0.200:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 0ms, Maximum = 0ms, Average = 0ms



C:\Users\user>ping mbnoimi-virtuala

Ping request could not find host mbnoimi-virtuala. Please check the name and try

 again.



C:\Users\user>nbtstat -a mbnoimi-virtual



Local Area Connection:

Node IpAddress: [192.168.0.8] Scope Id: []



           NetBIOS Remote Machine Name Table



       Name               Type         Status

    ---------------------------------------------

    MBNOIMI-VIRTUAL<00>  UNIQUE      Registered

    MBNOIMI-VIRTUAL<03>  UNIQUE      Registered

    MBNOIMI-VIRTUAL<20>  UNIQUE      Registered

    WORKGROUP      <1E>  GROUP       Registered

    WORKGROUP      <00>  GROUP       Registered



    MAC Address = 00-00-00-00-00-00





C:\Users\user>ping MBNOIMI-VIRTUALA

Ping request could not find host MBNOIMI-VIRTUALA. Please check the name and try

 again.



C:\Users\user>

CIFS 配置:/opt/alfresco-4.2.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default/file-servers.properties

filesystem.name=Alfresco

filesystem.acl.global.defaultAccessLevel=

filesystem.avm.name=AVM

filesystem.avm.enabled=true

filesystem.avm.stores=site,staging,author

filesystem.storeName=${spaces.store}

filesystem.rootPath=${protocols.rootPath}

filesystem.renameShufflePattern=(.*[a-f0-9]{8}+$)|(.*\\.tmp$)|(.*\\.wbk$)|(.*\\.bak$)|(.*\\~$)

filesystem.renameCSVShufflePattern=.*[a-f0-9]{8}+$

filesystem.setReadOnlyFlagOnFolders=false 

cifs.enabled=true

cifs.serverName=${localname}A

cifs.domain=

cifs.broadcast=255.255.255.255

cifs.bindto=

cifs.ipv6.enabled=false

cifs.hostannounce=true

cifs.disableNIO=false

cifs.disableNativeCode=false

cifs.sessionTimeout=900

cifs.maximumVirtualCircuitsPerSession=16

cifs.tcpipSMB.port=445

cifs.netBIOSSMB.sessionPort=139

cifs.netBIOSSMB.namePort=137

cifs.netBIOSSMB.datagramPort=138

cifs.WINS.autoDetectEnabled=true

cifs.WINS.primary=192.168.0.200

cifs.WINS.secondary=192.168.0.200

cifs.sessionDebug=

cifs.pseudoFiles.enabled=true

cifs.pseudoFiles.explorerURL.enabled=true

cifs.pseudoFiles.explorerURL.fileName=__Alfresco.url

cifs.pseudoFiles.shareURL.enabled=false

cifs.pseudoFiles.shareURL.fileName=__Share.url

ftp.enabled=true

ftp.port=21

ftp.bindto=

ftp.dataPortFrom=0

ftp.dataPortTo=0

ftp.keyStore=

ftp.keyStoreType=JKS

ftp.keyStorePassphrase=

ftp.trustStore=

ftp.trustStoreType=JKS

ftp.trustStorePassphrase=

ftp.requireSecureSession=true

ftp.sslEngineDebug=false

ftp.sessionDebug=

nfs.enabled=false

nfs.nodeMonitor.enabled=${nfs.enabled}

nfs.mountServerPort=0

nfs.nfsServerPort=2049

nfs.rpcRegisterPort=0

nfs.portMapperPort=111

nfs.portMapperEnabled=false

nfs.sessionDebug=

nfs.mountServerDebug=false

filesystem.cluster.debugFlags=

filesystem.lockKeeperEnabled=true

filesystem.lockKeeperTimeout=7200

filesystem.lockKeeperRefreshCronExpression=0 * */1 * * ?

附言

  • Windows 防火墙已关闭
  • 我正在尝试通过 Windows 7 32bit 访问 Alfresco 的 CIFS

【问题讨论】:

    标签: linux windows networking alfresco cifs


    【解决方案1】:

    Alfresco 为 CIFS/SMB 使用特权端口。如果您的 Alfresco 没有以 root 身份执行,那么您应该阅读此http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/tasks/fileserv-CIFS-useracc.html

    您还可以设置以下记录器以获取更详细的日志:

    log4j.logger.org.alfresco.smb.protocol=debug
    log4j.logger.org.alfresco.fileserver=debug 
    

    【讨论】:

    • 我已经从 ROOT 安装了 Alfresco,所以特权端口没有任何问题
    • 为了确保在 Alfresco 服务器端 (Ubuntu) 一切正常,我调用了 'iptables' `mbnoimi-VirtualBox ~ # iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD ( policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination mbnoimi-VirtualBox ~ # `
    • 将调试级别添加到记录器后的 alfresco 日志的 sn-p:pastebin.com/h1b3fysj
    • 您可以在日志的第 40 行中看到您的服务器不正常 '初始化 TCP-IP SMB 会话处理程序时出错,地址已在使用中' SMB 服务器正在关闭...
    • 但我想知道,当 HTTP 服务器正常工作时,这个地址是如何被使用的?!我可以毫无问题地访问192.168.0.200:8080!
    【解决方案2】:

    我找到了解决方案;这个问题是因为 samba 冲突而发生的,所以我所做的所有修复它都是从我的 Ubuntu 中卸载整个 samba,然后重新启动 Alfresco。

    sudo apt-get purge libsmbclient samba samba-common winbind
    

    【讨论】:

      猜你喜欢
      • 2012-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-15
      相关资源
      最近更新 更多