Errores al iniciar Alfresco en Ubuntu

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

Errores al iniciar Alfresco en Ubuntu

Hola!!,
Aún tengo algún problemilla con mi instalación de Alfresco en Ubuntu. Problemillas porque bueno… arrancar arranca, y parece que el funcionamiento es correcto pero al iniciarlo me sale en el fichero alfresco.log unas trazas de error que no consigo saber de que son. A ver si alguien puede ayudarme, muchas gracias de antemano.

Aquí están las trazas:

10:49:10,323 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    convert /home/david/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_23310.gif  /home/david/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_23311.png
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "convert": java.io.IOException: error=2, No such file or directory
10:49:12,189 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
10:49:19,016 ERROR [org.alfresco.repo.content.transform.swf.PDFToSWFContentTransformer] Failed to start SWF2PDF transformer:
Execution result:
   os:         Linux
   command:    pdf2swf -V
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "pdf2swf": java.io.IOException: error=2, No such file or directory
5 Replies
pjcaracuel_2349
Active Member II

Re: Errores al iniciar Alfresco en Ubuntu

Pudiera ser que no tengas el ImageMagick instalado.

Saludos
explorer_2939
Member II

Re: Errores al iniciar Alfresco en Ubuntu

Bueno, pues yo acabo de desplegar el war en un tomcat y me pasa lo mismo, tengo instalado ImageMagick, lo que ocurre es que la ruta donde tengo convert es /usr/bin/convert, lo unico que hice fue yum install ImageMagick.i386 y alfresco dice:

Cannot run program "./ImageMagick/bin/convert

Lo que no se es como configurar alfresco para que lo busque en  /usr/bin que es donde se ha instalado.

Saludos.
explorer_2939
Member II

Re: Errores al iniciar Alfresco en Ubuntu

Solucionado modificando el fichero /var/lib/tomcat5/shared/classes/alfresco/extensión/custom-repository.properties añadiendo:

img.root=/usr
crinfo
Member II

Re: Errores al iniciar Alfresco en Ubuntu

waaaaaaaaaa, yo no tenia idea lo q era el log, q toy re100 aprendiendo alfresco xD
me dio por mirar el log y me aparece mil errores, uno el mismo q el tuyo, pero la solucion q diste, no me aparece esa ruta q diste: /var/lib/tomcat5/shared/classes/alfresco/extensión/custom-repository.properties.
llego hasta var lib no mas y no sera q esa ruta es distinta porq instalaste alfresco en distinto directorio?
yo lo instale en root@cristian-laptop:/opt/Alfresco/tomcat/shared/classes/alfresco/extension#, etc
me guie de este link en la instalacion:
http://wiki.alfresco.com/wiki/Installing_Alfresco_Lab_3_Stable_on_Ubuntu_8.10
adjunto el LOG de todas formas:
01:50:21,959 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_2860565253816575869.gif, /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_4265327887448696919.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
01:50:28,208 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
01:52:09,302 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
01:52:09,302 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
Lo adjunto entero:
01:48:58,528 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 67 Web Scripts (+0 failed), 71 URLs
01:48:58,530 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 432.03012ms)
01:49:59,587 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 101 Web Scripts (+0 failed), 105 URLs
01:49:59,587 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 61019.375ms)
01:49:59,748 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
01:50:03,272 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
01:50:21,959 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_2860565253816575869.gif, /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_4265327887448696919.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
01:50:24,178 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
01:50:28,208 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
01:50:34,364 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
01:50:34,530 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchemaCreate-org.hibernate.dialect.MySQLInnoDBDialect-1518943353019041577.sql (Generated).
01:51:22,673 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-2318940685590689165.sql (Copied from classpath:alfresco/dbscripts/create/2.2/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoPostCreate-2.2-MappedFKIndexes.sql).
01:51:22,677 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-1501195567163858539.sql (Copied from classpath:alfresco/dbscripts/create/2.2/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoPostCreate-2.2-Extra.sql).
01:51:27,431 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-1304387627259317069.sql (Copied from classpath:alfresco/dbscripts/create/2.2/org.hibernate.dialect.MySQLInnoDBDialect/post-create-indexes-04.sql).
01:51:27,654 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-7890002400358162385.sql (Copied from classpath:alfresco/dbscripts/create/3.0/org.hibernate.dialect.MySQLInnoDBDialect/create-activities-extras.sql).
01:51:29,387 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements written to file /opt/Alfresco/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-All_Statements-2747921971444853857.sql.
01:51:55,249 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/Alfresco/alf_data
01:51:55,309 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
01:52:03,371 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]    Applying patch 'patch.wcmFolders' (Ensures the existance of the WCM specific 'Web Projects' and 'Web Forms' folders.).
01:52:04,128 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.db-V3.0-0-CreateActivitiesExtras
RESULT:
Script completed
=====================================
01:52:04,130 INFO  [org.alfresco.repo.admin.patch.PatchExecuter]
=== Applied patch                 ===
ID: patch.wcmFolders
RESULT:
The Web Projects folder was successfully created: workspace://SpacesStore/985f1d53-a2d1-43b3-9f00-755af94d952a

The Web Forms folder was successfully created: workspace://SpacesStore/985f1d53-a2d1-43b3-9f00-755af94d952a
=====================================
01:52:04,134 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
01:52:09,302 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
01:52:09,302 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
01:52:10,143 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_13-b03; maximum heap size 493,063MB
01:52:10,143 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493,063MB is less than recommended 512MB
01:52:10,144 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed version 3.0.0 (Stable 1526) schema 1002
sapodoble_3589
Member II

Re: Errores al iniciar Alfresco en Ubuntu

Añade también

img.root=/usr
swf.exe=/usr/bin/pdf2swf   (o la ruta donde lo tenga)


Solucionado modificando el fichero /var/lib/tomcat5/shared/classes/alfresco/extensión/custom-repository.properties añadiendo:

img.root=/usr