cancel
Showing results for 
Search instead for 
Did you mean: 

couple alfresco/samba/ubuntu 7.10/cifs indisponible

nua76
Champ on-the-rise
Champ on-the-rise
bonjour à tous.

et bien oui encore un post sur cifs .
Aprés installation de samba , je n'ai plus acces au partage cifs depuis des clients windows;

aprés lecture de plusieurs post à ce sujet , je nage de + EN +
http://wiki.alfresco.com/wiki/Changing_Bind_Addresses_and_Ports_for_Samba_and_FTP
http://forums.alfresco.com/viewtopic.php?f=9&t=833&p=3141
http://www.networkontrol.net/index.php?option=com_content&task=view&id=119&Itemid=38
http://forum.alfresco-fr.org/viewtopic.php?f=6&t=1766
http://forum.alfresco-fr.org/viewtopic.php?f=6&t=1619&st=0&sk=t&sd=a&start=30

je démarre depuis ubuntu l'application  alfresco en root

la commande ifconfig
eth0      Lien encap:Ethernet  HWaddr 00:1A:92:00:E1:CA  
          inet adr:192.168.1.25  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: fe80::21a:92ff:fe00:e1ca/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:3322 erreurs:0 :0 overruns:0 frame:0
          TX packets:3745 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          Octets reçus:1815730 (1.7 MB) Octets transmis:2547431 (2.4 MB)
          Interruption:22 Adresse de base:0xd000

eth0:0    Lien encap:Ethernet  HWaddr 00:1A:92:00:E1:CA 
          inet adr:192.168.1.26  Bcast:192.168.1.255  Masque:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interruption:22 Adresse de base:0xd000

eth1      Lien encap:Ethernet  HWaddr 00:08:54:51:F9:17 
          inet adr:192.168.1.29  Bcast:192.168.1.255  Masque:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)
          Interruption:23 Adresse de base:0x2000

lo        Lien encap:Boucle locale 
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          Packets reçus:279440 erreurs:0 :0 overruns:0 frame:0
          TX packets:279440 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          Octets reçus:18688915 (17.8 MB) Octets transmis:18688915 (17.8 MB)

le parametrage du fichier host
127.0.0.1      localhost localhost.localdomain serveur
192.168.1.25   serveur   serveur.workgroup
192.168.1.26   alfresco_A

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

samba tourne sur ip 192.168.1.25 et alfresco ip virtuel 192.168.1.26  pour le nom alfresco_A , je me suis inspiré du lien 1 ""The last task was to add a line to the /etc/hosts file in this and interested client machines, mapping the CIFS server name to its IP address:192.168.129.63 brunel_a
" Sans comprendre le sens de cette explication

parametrage samba
[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = workgroup

# server string is the equivalent of the NT Description field
   server string = serveur_samba

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
;   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
   name resolve order = lmhosts host wins bcast

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
  socket address = 192.168.1.25
  interfaces = 192.168.1.0/255.255.255.0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
   bind interfaces only = yes

Parametrage de WEB-INF/classes/alfresco/file-servers.xml
à ce niveau j'ai tout essayé
avec et sans netbiossmb linux
concernant la portion mapper les ports , je laisse à l'identique , je supprime tous , ,  :x JE SUIS SEUL
mon fichier actuel
<alfresco-config area="file-servers">



   <config evaluator="string-compare" condition="CIFS Server">

     <serverEnable enabled="true"/>

       <host name="${localname}_A" domain="workgroup"/>

      <comment>Alfresco CIFS Server</comment>



      <!– Set to the broadcast mask for the subnet –>

      <broadcast>192.168.1.255</broadcast>
      <bindto>192.168.1.26</bindto>



      <!– 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"/>



<!–

      <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"/>

<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
<bindto>192.168.1.26</bindto>

   </config>

  

résultat du log alfresco

22:34:17,701 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverConnector' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
Caused by:
java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
   at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
   at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
   at org.springframework.jmx.support.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:168)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:448)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
   at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122)
   at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
   at javax.naming.InitialContext.bind(InitialContext.java:400)
   at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
   at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
   … 38 more
Caused by: java.rmi.AlreadyBoundException: alfresco/jmxrmi
   at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:123)
   at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
   at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
   at sun.rmi.transport.Transport$1.run(Transport.java:159)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
   at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
   at java.lang.Thread.run(Thread.java:619)
   at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
   at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
   at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
   at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
   … 42 more
22:34:17,730 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverConnector' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
Caused by:
java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
   at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
   at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
   at org.springframework.jmx.support.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:168)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:448)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
   at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122)
   at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
   at javax.naming.InitialContext.bind(InitialContext.java:400)
   at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
   at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
   … 38 more
Caused by: java.rmi.AlreadyBoundException: alfresco/jmxrmi
   at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:123)
   at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
   at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
   at sun.rmi.transport.Transport$1.run(Transport.java:159)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
   at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
   at java.lang.Thread.run(Thread.java:619)
   at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
   at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
   at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
   at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
   … 42 more
22:34:17,735 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.alfresco.web.app.ContextListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverConnector' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
Caused by:
java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
   at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
   at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
   at org.springframework.jmx.support.ConnectorServerFactoryBean.afterPropertiesSet(ConnectorServerFactoryBean.java:168)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:448)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
   at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122)
   at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
   at javax.naming.InitialContext.bind(InitialContext.java:400)
   at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
   at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
   … 38 more
Caused by: java.rmi.AlreadyBoundException: alfresco/jmxrmi
   at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:123)
   at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
   at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
   at sun.rmi.transport.Transport$1.run(Transport.java:159)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
   at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
   at java.lang.Thread.run(Thread.java:619)
   at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
   at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
   at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
   at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
   … 42 more

la commande netstat
root@serveur:~# netstat -lnp | egrep 'java|mb' | tr -s ''
tcp        0      0 192.168.1.25:139        0.0.0.0:*               LISTEN     6581/smbd          
tcp        0      0 192.168.1.25:445        0.0.0.0:*               LISTEN     6581/smbd          
tcp6       0      0 :::50500                :::*                    LISTEN     7500/java          
tcp6       0      0 ::ffff:127.0.0.1:8005   :::*                    LISTEN     7500/java          
tcp6       0      0 ::ffff:192.168.1.26:139 :::*                    LISTEN     7500/java          
tcp6       0      0 :::55374                :::*                    LISTEN     7500/java          
tcp6       0      0 :::8080                 :::*                    LISTEN     7500/java          
tcp6       0      0 ::ffff:192.168.1.26:21  :::*                    LISTEN     7500/java          
tcp6       0      0 ::ffff:192.168.1.26:445 :::*                    LISTEN     7500/java          
udp        0      0 192.168.1.25:137        0.0.0.0:*                          6579/nmbd          
udp        0      0 192.168.1.25:137        0.0.0.0:*                          6579/nmbd          
udp        0      0 192.168.1.25:138        0.0.0.0:*                          6579/nmbd          
udp        0      0 192.168.1.25:138        0.0.0.0:*                          6579/nmbd          
udp6       0      0 ::ffff:192.168.1.26:137 :::*                               7500/java          
udp6       0      0 ::ffff:192.168.1.26:138 :::*                               7500/java          

la commande netstat -an –inet
root@serveur:~# netstat -an –inet
Connexions Internet actives (serveurs et établies)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat     
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:59562           0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN    
tcp        0      0 192.168.1.25:139        0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:4559            0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:37526           0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:47032           0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN    
tcp        0      0 192.168.1.25:445        0.0.0.0:*               LISTEN    
tcp        0      0 192.168.1.26:56173      209.85.137.83:80        ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:55787         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:55786         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:55785         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:55789         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:55782         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:55783         ESTABLISHED
tcp        0      0 127.0.0.1:3306          127.0.0.1:55788         ESTABLISHED
udp        0      0 0.0.0.0:2049            0.0.0.0:*                         
udp        0      0 0.0.0.0:32775           0.0.0.0:*                         
udp        0      0 192.168.1.25:137        0.0.0.0:*                         
udp        0      0 192.168.1.25:137        0.0.0.0:*                         
udp        0      0 192.168.1.25:138        0.0.0.0:*                         
udp        0      0 192.168.1.25:138        0.0.0.0:*                         
udp        0      0 0.0.0.0:32788           0.0.0.0:*                         
udp        0      0 0.0.0.0:32789           0.0.0.0:*                         
udp        0      0 0.0.0.0:32790           0.0.0.0:*                         
udp        0      0 0.0.0.0:706             0.0.0.0:*                         
udp        0      0 0.0.0.0:5353            0.0.0.0:*                         
udp        0      0 0.0.0.0:111             0.0.0.0:*      

bon , j'ai publié une tartine , mais d'aprés les différents pots lu , cela semble etre les principales commandes pour essayer d'y voir + CLAIR
pour un pro  😎

si vous avez lu jusque la fin , ce sujet vous interesse.
merci d'avance et j'attend avec impatience vos remarques
NUA76
5 REPLIES 5

nua76
Champ on-the-rise
Champ on-the-rise
je trouve un autre sujet :
http://forum.alfresco-fr.org/viewtopic.php?f=6&t=1766
http://forum.alfresco-fr.org/viewtopic.php?f=6&t=1530

je me faire tirer les oreilles

si j'ai bien compris , même loguer en root , il faut mapper les ports ?

cleseach
Star Contributor
Star Contributor
En tant que root, vous pouvez utiliser tous les ports libres, même ceux inférieurs à 1024.
En revanche, même en tant que root, vous ne pouvez pas réutiliser un port déjà existant.

Votre fichier de log fait clairement apparaître un problème de réutilisation de port déjà affecté… mais ce port n'est pas lié à Samba.
Avant toute chose et si j'étais vous, je vérifierais que le serveur Alfresco que j'aurais précédemment démarré est bien arrêté.

nua76
Champ on-the-rise
Champ on-the-rise
probléme toujours non résolu  :twisted:

J'ai décidé de reprendre les choses dans l'order
toujours en root

1) j'ai viré samba
2 ) je relance alfresco par miracle cifs de nouveau dispo .

puis un autre petit pas , juste avec la modif des ports du fichier  file-servers.xml afin liberer les pots standard pour l'install ultérieur de samba

uniquement la partie des ports pour écouter sur :
 <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>

      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138"

je kill java , je relance  et cifs de nouveau à disparu

quelqu'un à  une explication ? ça me gave

michaelh
Champ on-the-rise
Champ on-the-rise
Si tu fais la modification des ports en écoute coté Alfresco, il faut forcément aussi ajouter une redirection de ports coté Linux, avec la commande iptables (parce que les postes clients, eux, ne savent utiliser que les ports par défaut).

rguinot
Confirmed Champ
Confirmed Champ
Vous accumulez les "non-best practices" pour ne pas dire "worst practices"….

1) lancer ss root n'est pas recommandé, et toutes les solutions pour lancer ss un autre user sont disponibles et abondamment décrites sur les wikis et ces forums.
2) Vous modifiez directement les fichiers du war, ce qui n'est pas recommandé non plus. vous devriez modifier plutôt file-servers-custom.xml.
3) "killer" java pour arrêter Alfresco de manière brutale n'est pas recommandé non plus. arrêtez le proprement par un script de service ou autre.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.