[Résolu] Problème avec CIFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 03:28 AM
J'au un souci pour accéder à Alfresco via CIFS sur mon serveur Linux (Fedora 9) avec Alfresco Labs 3B.
Voici le fichier de log catalina.out :
CompilerOracle: exclude org/apache/lucene/index/IndexReader$1 doBodyCompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger mergeIndexesCompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger mergeDeletionsNov 28, 2008 8:41:06 AM org.apache.coyote.http11.Http11BaseProtocol initINFO: Initializing Coyote HTTP/1.1 on http-8080Nov 28, 2008 8:41:06 AM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 3686 msNov 28, 2008 8:41:07 AM org.apache.catalina.core.StandardService startINFO: Starting service CatalinaNov 28, 2008 8:41:07 AM org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/5.5.23Nov 28, 2008 8:41:07 AM org.apache.catalina.core.StandardHost startINFO: XML validation disabledNov 28, 2008 8:41:11 AM org.apache.catalina.startup.HostConfig deployWARINFO: Deploying web application archive alfresco.war08:42:58,902 INFO [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]08:43:06,208 DEBUG [smb.protocol.auth] preRegister called. Server=com.sun.jmx.mbeanserver.JmxMBeanServer@b91881, name=log4j:logger=org.alfresco.smb.protocol.auth08:43:06,210 DEBUG [alfresco.smb.protocol] preRegister called. Server=com.sun.jmx.mbeanserver.JmxMBeanServer@b91881, name=log4j:logger=org.alfresco.smb.protocol08:43:06,263 DEBUG [alfresco.ftp.protocol] preRegister called. Server=com.sun.jmx.mbeanserver.JmxMBeanServer@b91881, name=log4j:logger=org.alfresco.ftp.protocol08:43:35,597 INFO [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.08:43:39,066 INFO [domain.schema.SchemaBootstrap] No changes were made to the schema.08:43:43,791 ERROR [util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:Execution result: os: Linux command: "soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file://oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore succeeded: false exit code: 2 out: err: java.io.IOException: "soffice": not found08:43:49,724 User:System INFO [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /mfgpro/alfresco/alf_data08:43:49,983 User:System INFO [admin.patch.PatchExecuter] Checking for patches to apply …08:43:51,770 User:System INFO [admin.patch.PatchExecuter] No patches were required.08:43:51,779 User:System INFO [repo.module.ModuleServiceImpl] Found 0 module(s).08:43:52,732 User:System DEBUG [alfresco.smb.protocol] Added desktop action CheckInOut08:43:52,739 User:System DEBUG [alfresco.smb.protocol] Added desktop action JavaScriptURL08:43:53,016 User:System INFO [alfresco.smb.protocol] CIFS server started08:43:53,056 User:System INFO [alfresco.smb.protocol] FTP server started08:43:53,057 User:System INFO [alfresco.smb.protocol] NFS server NOT started08:43:53,963 User:System WARN [alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.08:43:53,997 User:System INFO [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_11-b03; maximum heap size 506.313MB08:43:53,998 User:System INFO [service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (b 1164) schema 131 - Installed version 3.0.0 (b 1164) schema 131Nov 28, 2008 8:44:31 AM org.apache.catalina.startup.HostConfig deployWARINFO: Deploying web application archive share.war08:44:44,518 INFO [web.site.FrameworkHelper] Successfully Initialized Web FrameworkNov 28, 2008 8:44:44 AM org.apache.coyote.http11.Http11BaseProtocol startINFO: Starting Coyote HTTP/1.1 on http-8080Nov 28, 2008 8:44:45 AM org.apache.catalina.storeconfig.StoreLoader loadINFO: Find registry server-registry.xml at classpath resourceNov 28, 2008 8:44:45 AM org.apache.catalina.startup.Catalina startINFO: Server startup in 219459 ms
Voici mon fichier 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="${cifs.localname}A" domain="${cifs.domain}"/> <comment>Alfresco CIFS Server</comment> <!– Set to the broadcast mask for the subnet–> <broadcast>${cifs.broadcast}</broadcast> <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux–> <tcpipSMB platforms="linux,solaris,macosx"/> <netBIOSSMB platforms="linux,solaris,macosx"/> <!– Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports–> <tcpipSMB port="1445" platforms="linux,solaris,macosx"/> <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/> <hostAnnounce interval="5"/> <!– Use Win32 NetBIOS interface on Windows –> <Win32NetBIOS/> <Win32Announce interval="5"/> <!– CIFS authentication –> <authenticator type="alfresco"> </authenticator><!– <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"/> <!– Run on a non-privileged port –> <port>1121</port> <!– FTP authentication –> <authenticator type="alfresco"/><!– <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" 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.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> </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>
Mon fichier file-servers.properties :
cifs.localname=${localname}cifs.domain=2miscifs.broadcast=172.31.183.255
Et enfin mon fichier file-servers.xml :
<alfresco-config area="file-servers"> <config evaluator="string-compare" condition="CIFS Server"> <serverEnable enabled="true"/> <host name="${cifs.localname}A" domain="${cifs.domain}"/> <comment>Alfresco CIFS Server</comment> <!– Set to the broadcast mask for the subnet–> <broadcast>${cifs.broadcast}</broadcast> <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –> <tcpipSMB platforms="linux,solaris,macosx"/> <netBIOSSMB platforms="linux,solaris,macosx"/> <!– Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports –> <tcpipSMB port="1445" platforms="linux,solaris,macosx"/> <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/> <hostAnnounce interval="5"/> <!– Use Win32 NetBIOS interface on Windows –> <Win32NetBIOS/> <Win32Announce interval="5"/> <!– CIFS authentication –> <authenticator type="alfresco"> </authenticator><!– <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"/> <!– Run on a non-privileged port –> <port>1121</port> <!– FTP authentication –> <authenticator type="alfresco"/><!– <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.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.CheckInOutDesktopAction</class> <name>CheckInOut</name> <filename>__AlfrescoCheckInOut.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> <action> <class>org.alfresco.filesys.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 –> <!– virtual view 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 passthri authentication routing –> <!– <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> –><!– <globalAccessControl default="None"> <user name="admin" access="Write"/> <address ip="90.1.0.90" access="Write"/> </globalAccessControl>–> </config></alfresco-config>
Quand j'essaie de me connecter, il me dit qu'il ne trouve pas le fichier ou l'élément \\swinmovex1A\Alfresco
Merci pour votre aide.
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 04:02 AM
mais ce n'est pas lié à CIFS
D'autre part, votre CIFS écoute sur le port 1445, ce qui est une bonne chose car cela vous permet de ne pas lancer tomcat en root.
Pour s'en convaincre,
sudo netstat -an –inet –program | grep 1445sudo nestat -an –inet –program | grep 445
le premier doit retourner une socket en LISTEN. Vérifier qu'il est bindé sur une interface réseau acceptant du trafic externe ( pas 127.0.0.1)
Par contre, vos clients doivent pouvoir spécifier le port de connexion non standard (ss Linux, c facile, ss Windows je ne sais pas), ou bien vous pouvez définir une règle iptables qui redirigerait le trafic du port standard (445) vers le port déclaré dans Alfresco (1445), et ainsi vos clients n'auraient pas besoin de spécifier le port.
Tout ceci est expliqué sur le wiki, cela dit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 04:10 AM
Voici le résultat de la commande netstat -anp | grep 1445:
tcp 0 0 :::1445 :::* LISTEN 25892/java
Le process 25892 correspond bien à mon process java lié à Alfresco.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 05:35 AM
Par contre, vos clients doivent pouvoir spécifier le port de connexion non standard (ss Linux, c facile, ss Windows je ne sais pas), ou bien vous pouvez définir une règle iptables qui redirigerait le trafic du port standard (445) vers le port déclaré dans Alfresco (1445), et ainsi vos clients n'auraient pas besoin de spécifier le port.
Tout ceci est expliqué sur le wiki, cela dit.
Niveau client, vous devez soit spécifier que vous vous connectez en Samba sur le port 1445
- OU -
Niveau serveur, vous devez mettre en oeuvre le règle iptables mentionnée ci-dessus et expliquée ici : http://wiki.alfresco.com/wiki/File_Server_Configuration#Running_SMB.2FCIFS_from_a_normal_user_accoun...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 09:10 AM
Et je ne peux pas non plus router le port utilisé par CIFS car Samba tourne (sur son port par défaut) pour une autre application…
Je ne sais plus trop quoi faire, à part démarrer Alfresco en tant que root et en utilisant les ports par défaut (privilégiés)…
:?: :?: :?:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 09:17 AM
Vous pouvez en revanche installer Alfresco sur une autre machine, sur la même machine mais dans une machine virtuelle, ou bien sur la même machine en déclarant une interface virtuelle et en lui associant une addresse IP différente.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 09:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 09:33 AM

Vous avez 2 serveurs samba (le votre, et Alfresco), ils ne vont pas magiquement partager leurs contenus.
Peut être que vous pouvez monter le repository en CIFS, et ensuite partager ce point de montage par le biais de votre samba actuel, mais je ne suis pas sur que le chaining de serveurs samba soit une bonne idée !
Et de toute façon, ça ne résoud pas votre problème de ports.
Vous ne pouvez pas mutualiser ces 2 serveurs Samba en un ? Quel est le type de documents stockés sur serveur actuel ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 09:50 AM
Mais comment le paramétrer pour désigner les répertoires à partager ? Il n'y a pas d'équivalent du fichier smb.conf dans CIFS ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2008 10:00 AM
Vous n'avez à faire de configuration supplémentaire.
Ce que vous avez le droit de voir, d'ajouter , de supprimer etc dans l'interface Web en tant que "Mael", vous aurez le droit de le faire depuis votre client Samba, et il en va de me pour FTP,NFS,WebDAV ….
Vous pourrez d'autres options de configuration en (re)lisant la page : http://wiki.alfresco.com/wiki/File_Server_Configuration
