cancel
Showing results for 
Search instead for 
Did you mean: 

Erreur au lancement : Cannot run program

waazdaka
Champ in-the-making
Champ in-the-making
Bonjour,

Alors voila j'ai buché dessus toute la journée mais je n'ai toujours pas trouvé de solution fonctionnelle.
Alfresco (Share et Explorer) fonctionne bien sur le serveur Ubuntu 10.04.
Seul problème: les programmes "annexes" ne se lancent pas. (OpenOffice, pdf2swf, ImageMagick).
Tous cela est fonctionnel en dehors d'alfresco.

voici les logs de lancement:

Catalina.out

Sep 16, 2010 3:44:09 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
Sep 16, 2010 3:44:09 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 16, 2010 3:44:09 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 355 ms
Sep 16, 2010 3:44:09 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 16, 2010 3:44:09 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
Sep 16, 2010 3:44:09 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Sep 16, 2010 3:44:09 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Sep 16, 2010 3:44:09 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Sep 16, 2010 3:44:09 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor alfresco.xml
Sep 16, 2010 3:44:10 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
15:44:13,795  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
15:44:13,797  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
15:44:13,797  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/module/test/alfresco-global.properties]
15:44:13,797  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/module/tests/alfresco-global.properties]
15:44:13,797  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/var/lib/tomcat6/shared/classes/alfresco-global.properties]
15:44:13,797  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco-global.properties]
15:44:13,828  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
OpenJDK 64-Bit Server VM warning: Attempt to allocate stack guard pages failed.
Sep 16, 2010 3:45:45 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
15:45:49,884  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 227 Web Scripts (+0 failed), 235 URLs
15:45:49,885  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
15:45:49,885  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
15:45:49,954  INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 886.3341ms)
15:45:50,000  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:45:50,061  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:45:50,185  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:45:50,189  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:45:50,237  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:45:50,240  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
Sep 16, 2010 3:45:51 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive gestion.war
Sep 16, 2010 3:45:51 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 16, 2010 3:45:51 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 102182 ms

et alfresco.log

15:44:24,867 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
15:44:24,868 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
15:44:28,972 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
15:44:30,160 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
15:44:30,428 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
15:44:30,437 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:30,446 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
15:44:32,323 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
15:44:32,332 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:32,365 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [/usr/local/bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "/usr/local/bin/pdf2swf": java.io.IOException: error=12, Cannot allocate memory
15:44:32,401 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 08160000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [/usr/bin/convert, /tmp/tomcat6-tmp/Alfresco/ImageMagickContentTransformerWorker_init_source_467378057042713776.gif[0], /tmp/tomcat6-tmp/Alfresco/ImageMagickContentTransformerWorker_init_target_5921844881676053731.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "/usr/bin/convert": java.io.IOException: error=12, Cannot allocate memory
15:44:32,404 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
15:44:32,404 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
15:44:32,412 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:33,106 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
   os:         Linux
   command:    [/usr/bin/soffice, -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager, -env:UserInstallation=file:///srv/alfresco/alf_data/oouser, -nologo, -headless, -nofirststartwizard, -nocrashrep, -norestore]
   succeeded:  false
   exit code:  2
   out:       
   err:        Cannot run program "/usr/bin/soffice": java.io.IOException: error=12, Cannot allocate memory
15:44:33,146 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
15:44:33,154 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
15:44:37,247 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /srv/alfresco/alf_data
15:44:37,784 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
15:44:38,040 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
15:44:38,068 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
15:44:38,094 WARN  [org.alfresco.repo.module.ModuleServiceImpl] A previously-installed module 'org.alfresco.module.vti' (version 1.2) is not present in your distribution.
15:44:38,095 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
15:44:38,106 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:38,262 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
15:44:38,272 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:38,352 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
15:44:43,364 ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
15:44:43,364 ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)
15:44:43,401 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
15:44:43,401 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
15:44:43,401 ERROR [org.alfresco.fileserver] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
15:44:43,414 ERROR [org.alfresco.fileserver] org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
15:44:43,414 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:259)
15:44:43,414 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:472)
15:44:43,414 ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:636)
15:44:43,407 ERROR [org.alfresco.fileserver] [FTP] FTP Socket error : java.net.BindException: Permission denied
15:44:43,423 ERROR [org.alfresco.fileserver] java.net.BindException: Permission denied
15:44:43,423 ERROR [org.alfresco.fileserver]    at java.net.PlainSocketImpl.socketBind(Native Method)
15:44:43,423 ERROR [org.alfresco.fileserver]    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
15:44:43,423 ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.bind(ServerSocket.java:336)
15:44:43,423 ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(ServerSocket.java:202)
15:44:43,423 ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(ServerSocket.java:158)
15:44:43,423 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:555)
15:44:43,423 ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:636)
15:44:43,422 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:43,462 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
15:44:43,462 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound]
15:44:43,469 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:43,494 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete
15:44:43,494 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound]
15:44:43,502 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:43,530 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.util.List)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]
15:44:43,530 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)]
15:44:44,235 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
15:44:44,235 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'googledocs' subsystem, ID: [googledocs, default]
15:44:44,251 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:44,424 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
15:44:44,424 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
15:44:44,430 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
15:44:44,430 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
15:44:44,430 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
15:44:44,438 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:44,729 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
15:44:44,773 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_18-b18; maximum heap size 494.938MB
15:44:44,773 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 494.938MB is less than recommended 512MB
15:44:44,773 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.3.0 (g 2860) schema 4100 - Originally installed version 3.3.0 (g 2860) schema 4100
15:45:44,708 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 340 Web Scripts (+0 failed), 576 URLs
15:45:44,708 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
15:45:44,708 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
15:45:44,709 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 7348.761ms)
15:45:44,710 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:45:44,711 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js

J'ai déjà modifié /etc/init.d/tomcat6 pour mettre -Xmx1024M  et  -XX:MaxPermSize=512m

La limite n'est probablement pas physique (Processeur Intel Core i5 750 4x 2.66+ GHz avec Architecture 64b et 8Go DDR3 de ram)

Mais je ne trouve pas ce qu'il faut configurer pour que ces programmes se lancent "dans" alfresco (ils tournent très bien en même temps que le serveur).
Merci d'avance à tous ceux qui pourront réfléchir à cela.

WaazdaKa.
22 REPLIES 22

rguinot
Confirmed Champ
Confirmed Champ
qu'y a t il d'autre qui tourne sur ce serveur ? pouvez vous faire un "free -m" avant de lancer l'application poster le résultat ici ? de combien de swap la machine dispose-t-elle ?

semble que la JVM ne puisse pas forker les process natifs en question. combien de RAM avez vous donné à la Heap (Xmx) et a la Permsize ?

pouvez vous aussi afficher le résultat de la commande :

cat /proc/sys/vm/overcommit_memory

fabiensanglier
Champ in-the-making
Champ in-the-making
essaies la solution a: http://plone.4aero.com/Members/lmarzke/alfresco-3.4a-on-ubuntu_lucid (install les programmes externes independamment de alfresco…)
Ca marche pour moi.

stevegreenbaum
Champ in-the-making
Champ in-the-making
Hello –

I am having the same program using Centos 5.3 and v3.4b.  Did this issue ever get resolved?  Thank you.