config CIFS avec 3.3

cancel
Showing results for 
Search instead for 
Did you mean: 
anne_2465
Member II

config CIFS avec 3.3

Bonjour,

Quelqu'un a-t-il configuré CIFS avec la version 3.3 ?
Car je n'y arrive pas.
Voici mon file-servers.propeties :
filesystem.name=Alfresco

cifs.enabled=true
cifs.localname=${localname}
cifs.domain=WORKGROUP
cifs.broadcast=255.255.255.255
cifs.bindto=IP_monserveur
cifs.ipv6=disabled
cifs.hostannounce=true

ftp.enabled=true
ftp.ipv6=disabled

nfs.enabled=false

et 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">
           <host name="nomduserveur" domain="workgroup"/>
  

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>255.255.255.255</broadcast>
     <bindto>IP_monserveur</bindto>
       <WINS><primary>IP_serveur_WINS1</primary></WINS>
    <WINS><secondary>IP_serveur_WINS2</secondary></WINS>

   </config>

<config evaluator="string-compare" condition="FTP Server" replace="true">
      <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>

           
            <!– Mark locked files as offline –>
            <offlineFiles/>

            <!– Desktop actions –>

         </filesystem>
         
        
         
      </filesystems>
   </config>
   
</alfresco-config>

La config du file-servers-custom.xml fonctionnait avec Alfresco 2.1

Anne
6 Replies
rguinot
Customer

Re: config CIFS avec 3.3

La config CIFS en 3.3 ne se passe plus ici.
C'est soit dans alfresco-global.properties, soit en redéfinissant la config du fileservers subsystem (voir tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default/ pour les propriétés disponibles). généralement, il est suffisant de redéfinir les propriétés souhaitéee (comme les ports) dans alfresco-global.properties.
anne_2465
Member II

Re: config CIFS avec 3.3

Bonjour,

J'ai modifié les paramètres du file-servers properties qui se trouve dans le dossier "default" :
filesystem.name=Alfresco
filesystem.acl.global.defaultAccessLevel=

### CIFS Server Configuration ###
cifs.enabled=true
cifs.serverName=${localname}A
cifs.domain=
cifs.broadcast=255.255.255.255
# An empty value indicates bind to all available network adapters
cifs.bindto=IP_monserveur
cifs.ipv6.enabled=false
cifs.hostannounce=true
# Enable the use of asynchronous sockets/NIO code
cifs.disableNIO=false
# Disable the use of JNI code. Only currently affects Windows
cifs.disableNativeCode=false
# 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
cifs.sessionTimeout=900

# Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports
cifs.tcpipSMB.port=445
cifs.netBIOSSMB.sessionPort=139
cifs.netBIOSSMB.namePort=137
cifs.netBIOSSMB.datagramPort=138

# Optional WINS server primary and secondary IP addresses. Ignored if autoDetectEnabled=true
cifs.WINS.autoDetectEnabled=false
cifs.WINS.primary=IP_ServeurWINS1
cifs.WINS.secondary=IP_ServeurWINS1

# CIFS session debug flags (also enable org.alfresco.fileserver=debug logging level)
# Comma delimeted list of levels :-
#    NETBIOS, STATE, RXDATA, TXDATA, DUMPDATA, NEGOTIATE, TREE, SEARCH, INFO, FILE, FILEIO, TRANSACT
#    ECHO, ERROR, IPC, LOCK, PKTTYPE, DCERPC, STATECACHE, TIMING, NOTIFY, STREAMS, SOCKET, PKTPOOL
#    PKTSTATS, THREADPOOL, BENCHMARK
cifs.sessionDebug=
et les CIFS ne fonctionnent pas .

J'ai le message : file://serveura/Alfresco est introuvable. Vérifiez que le chemin d'accès ou l'adresse internet sont corrects.

Qu'y-a-t-il d'autres à configurer ?
J'utilise des adresses WINS car Alfresco se trouve sur un extranet sur un autre site.

Anne
michaelh
Active Member

Re: config CIFS avec 3.3

Bonjour,

Et que dit le log de démarrage ? Il ne se plaint pas ? Ce serait étonnant …
anne_2465
Member II

Re: config CIFS avec 3.3

Bonjour,

Voici mon log :

07:00:09,694 WARN  [org.alfresco.repo.management.subsystems.LegacyConfigPostProcessor] Legacy configuration detected: adding classpath:alfresco/extension/custom-repository.properties to global-properties definition
07:00:09,694 WARN  [org.alfresco.repo.management.subsystems.LegacyConfigPostProcessor] Legacy configuration detected: adding classpath:alfresco/extension/custom-hibernate-dialect.properties to global-properties definition
07:00:09,710 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
07:00:09,726 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
07:00:09,726 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/D:/alfresco/tomcat/shared/classes/alfresco-global.properties]
07:00:09,726 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/extension/custom-repository.properties]
07:00:09,726 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/extension/custom-hibernate-dialect.properties]
07:00:09,819 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:26,554 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
07:00:26,554 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
07:00:32,944 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
07:00:41,429 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
07:00:44,647 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
07:00:44,679 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:44,694 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
07:00:46,819 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
07:00:46,866 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:47,397 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
07:00:47,397 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
07:00:47,429 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:48,710 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
07:00:48,710 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
07:00:50,179 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: D:\Alfresco\alf_data
07:00:50,929 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
07:00:51,179 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
07:00:51,226 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
07:00:51,257 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
07:00:51,288 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:51,663 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
07:00:51,694 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:51,819 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
07:00:51,866 DEBUG [org.alfresco.fileserver] Local domain name is WORKGROUP (via JNI)
07:00:51,897 INFO  [org.alfresco.fileserver] CIFS server started
07:00:51,897 INFO  [org.alfresco.fileserver] FTP server started
07:00:51,897 INFO  [org.alfresco.fileserver] NFS server NOT started
07:00:51,944 ERROR [org.alfresco.fileserver] [FTP] FTP Socket error : java.net.BindException: Address already in use: JVM_Bind
07:00:51,960 ERROR [org.alfresco.fileserver] java.net.BindException: Address already in use: JVM_Bind
07:00:51,960 ERROR [org.alfresco.fileserver]     at java.net.PlainSocketImpl.socketBind(Native Method)
07:00:51,960 ERROR [org.alfresco.fileserver]     at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
07:00:51,960 ERROR [org.alfresco.fileserver]     at java.net.ServerSocket.bind(ServerSocket.java:319)
07:00:51,960 ERROR [org.alfresco.fileserver]     at java.net.ServerSocket.<init>(ServerSocket.java:185)
07:00:51,960 ERROR [org.alfresco.fileserver]     at java.net.ServerSocket.<init>(ServerSocket.java:141)
07:00:51,960 ERROR [org.alfresco.fileserver]     at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:555)
07:00:51,960 ERROR [org.alfresco.fileserver]     at java.lang.Thread.run(Thread.java:619)
07:00:51,960 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
07:00:51,960 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
07:00:51,976 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:52,038 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
07:00:52,038 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound]
07:00:52,069 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:52,101 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete
07:00:52,101 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound]
07:00:52,132 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:52,179 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'blockedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.util.List)]
07:00:52,179 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'allowedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.lang.String)]
07:00:52,272 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
07:00:52,288 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
07:00:53,241 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
07:00:53,241 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
07:00:53,241 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
07:00:53,257 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
07:00:53,304 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
07:00:53,444 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_03-b05; maximum heap size 938,688MB
07:00:53,444 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.3.0 (2765) schema 4009 - Originally installed version 2.1.0 (482) schema 64
07:01:00,257 INFO  [org.alfresco.util.OpenOfficeConnectionTester] The OpenOffice connection was re-established.
07:01:18,788 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 342 Web Scripts (+0 failed), 577 URLs
07:01:18,788 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
07:01:18,788 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
07:01:18,788 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 17141.188ms)
07:01:18,788 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
07:01:18,788 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
07:01:24,585 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
08:42:10,913 INFO  [org.alfresco.web.app.servlet.DownloadContentServlet] Failed stream read:
    node: workspace://SpacesStore/219ca15c-3bf6-4543-9f56-28caf9fddb02 due to: 09190002 Failed to copy content to output stream:
   accessor: ContentAccessor[ contentUrl=store://2010/10/15/10/2/ab9a8027-62f5-4535-8f68-d5928c05b5a1.bin, mimetype=application/pdf, size=368014, encoding=utf-8, locale=fr_FR]

Anne
anne_2465
Member II

Re: config CIFS avec 3.3

Bonjour,

Maintenant j'arrive à accéder en CIFS à Alfresco sur mon serveur (Windows serveur 2003).
Par contre depuis mon PC (windows 7) je n'y arrive pas.
Voici la config du alfresco-global.properties :
### CIFS Server Configuration ###
cifs.enabled=true
cifs.serverName=${localname}A
cifs.domain=workgroup
cifs.broadcast=255.255.255.255
# An empty value indicates bind to all available network adapters
cifs.bindto=192.168.20.1
cifs.ipv6.enabled=false
cifs.hostannounce=true
# Enable the use of asynchronous sockets/NIO code
cifs.disableNIO=true
# Disable the use of JNI code. Only currently affects Windows
cifs.disableNativeCode=false
# 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
cifs.sessionTimeout=900

# Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports
cifs.tcpipSMB.port=445
cifs.netBIOSSMB.sessionPort=139
cifs.netBIOSSMB.namePort=137
cifs.netBIOSSMB.datagramPort=138

# Optional WINS server primary and secondary IP addresses. Ignored if autoDetectEnabled=true
cifs.WINS.autoDetectEnabled=false
cifs.WINS.primary=172.16.15.20
cifs.WINS.secondary=192.168.1.13

# CIFS session debug flags (also enable org.alfresco.fileserver=debug logging level)
# Comma delimeted list of levels :-
#    NETBIOS, STATE, RXDATA, TXDATA, DUMPDATA, NEGOTIATE, TREE, SEARCH, INFO, FILE, FILEIO, TRANSACT
#    ECHO, ERROR, IPC, LOCK, PKTTYPE, DCERPC, STATECACHE, TIMING, NOTIFY, STREAMS, SOCKET, PKTPOOL
#    PKTSTATS, THREADPOOL, BENCHMARK
cifs.sessionDebug=INFO

Avant avec Alfresco 2.1 cela fonctionnait avec cette config :
<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">
          <host name="monserveur_A" domain="workgroup"/>
  

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>255.255.255.255</broadcast>
     <bindto>192.168.20.1</bindto>
      <WINS><primary>172.16.15.20</primary></WINS>
   <WINS><secondary>192.168.1.13</secondary></WINS>

   </config>

<config evaluator="string-compare" condition="FTP Server" replace="true">
     <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>

           
            <!– Mark locked files as offline –>
            <offlineFiles/>

            <!– Desktop actions –>

         </filesystem>
       
      
       
      </filesystems>
   </config>

</alfresco-config>

Anne
anne_2465
Member II

Re: config CIFS avec 3.3

Bonjour,
le nom du serveur peu-il comporter un chiffre ?

Anne