cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.4a and MacOsX 10.6.4 errors

cvgaviao
Champ in-the-making
Champ in-the-making
Hi, I've installed Alfresco 3.4a from a downloaded installer (I've selected everything on install window) on my mac. I've followed this instructions http://wiki.alfresco.com/w/images/0/0a/Alfresco_Community_3_4_a_Mac_Simple_Install.pdf, but I'm getting some errors that I couldn't found a clue to get them resolved yet.

I've cutted the log to just ERROR and WARN logs:

10:07:19,917 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.

10:07:23,518 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)]
10:07:23,518 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.lang.String)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]

10:07:19,917 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.

10:07:19,360 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 09030000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Mac OS X
   command:    [/Applications/alfresco-3.4.a/common/bin/convert, /Applications/alfresco-3.4.a/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_3446932777884265162.gif[0], /Applications/alfresco-3.4.a/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_2390958615025722669.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        .convert.bin: no decode delegate for this image format `/Applications/alfresco-3.4.a/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_3446932777884265162.gif' @ constitute.c/ReadImage/526.
.convert.bin: missing an image filename `

10:07:23,263 ERROR [org.alfresco.fileserver] [SMB] Server error : org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
10:07:23,289 ERROR [org.alfresco.fileserver] org.alfresco.jlan.server.config.InvalidConfigurationException: Error initializing TCP-IP SMB session handler, Permission denied
10:07:23,289 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.nio.NIOCifsConnectionsHandler.initializeHandler(NIOCifsConnectionsHandler.java:259)
10:07:23,289 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:472)
10:07:23,289 ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:637)
And this is the generated Diagnostic Report
Process:         soffice.bin [779]
Path:            /Applications/alfresco-3.4.a/openoffice/Contents/MacOS/soffice.bin
Identifier:      soffice.bin
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  java [749]

Date/Time:       2010-10-03 10:07:19.778 -0300
OS Version:      Mac OS X 10.6.4 (10F569)
Report Version:  6

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
  Expected in: /Applications/alfresco-3.4.a/common/lib/libJPEG.dylib
in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib

Thanks for any help.

Cristiano
12 REPLIES 12

mikeh
Star Contributor
Star Contributor
Excellent detective work - many thanks. I've linked this information to http://issues.alfresco.com/jira/browse/ALF-5160 which could be related.

Thanks,
Mike

hairyone
Champ in-the-making
Champ in-the-making
Thanks Mike,

Sadly whilst the amended shell wrapper worked outside of Alfresco it still doesn't work when called from the alfresco startup. If I install a completely separate version of ImageMagick and update the paths to reference the independent installation (as advised by Loftux) it works (all of which was noted by the QA Team in their follow up to http://issues.alfresco.com/jira/browse/ALF-5160.

I am convinced this is a shared library issue, but the shell environment is obviously not the same as the one used when alfresco runs convert. It would appear that some of the env-vars are set in /srv/alfresco-3.4.a/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/thirdparty/default/imagemagick-transform-context.xml (see below), of which some *may* be overridden by the setenv.sh script called by the convert shell wrapper.

So for now I have come to the conclusion that the bundled ImageMacick in the Linux installer is broken (for me at least) and the fix is to install and reference a separate installation.



            <property name="processProperties">
               <map>
                  <entry key="MAGICK_HOME">
                     <value>${img.root}</value>
                  </entry>
                  <entry key="DYLD_LIBRARY_PATH">
                     <value>${img.dyn}</value>
                  </entry>
                  <entry key="LD_LIBRARY_PATH">
                     <value>${img.dyn}</value>
                  </entry>
               </map>
            </property>



root@server:/srv/alfresco-3.4.a/common/lib/ImageMagick-6.5.1/modules-Q16/coders# export LD_LIBRARY_PATH=/srv/alfresco-3.4.a/common/lib
root@server:/srv/alfresco-3.4.a/common/lib/ImageMagick-6.5.1/modules-Q16/coders# ldd -v gif.so
        linux-gate.so.1 =>  (0x00d27000)
        libMagickCore.so.2 => /srv/alfresco-3.4.a/common/lib/libMagickCore.so.2 (0x00110000)
        libjpeg.so.62 => /srv/alfresco-3.4.a/common/lib/libjpeg.so.62 (0x00410000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x00609000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00ec5000)
        libfreetype.so.6 => /srv/alfresco-3.4.a/common/lib/libfreetype.so.6 (0x00434000)
        libz.so.1 => /srv/alfresco-3.4.a/common/lib/libz.so.1 (0x006a1000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00f1e000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00d48000)
        /lib/ld-linux.so.2 (0x008e2000)

        Version information:
        ./gif.so:
                libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6
        /srv/alfresco-3.4.a/common/lib/libMagickCore.so.2:
                libdl.so.2 (GLIBC_2.1) => /lib/tls/i686/cmov/libdl.so.2
                libdl.so.2 (GLIBC_2.0) => /lib/tls/i686/cmov/libdl.so.2
                libpthread.so.0 (GLIBC_2.2) => /lib/tls/i686/cmov/libpthread.so.0
                libpthread.so.0 (GLIBC_2.0) => /lib/tls/i686/cmov/libpthread.so.0
                libm.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libm.so.6
                libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
                libc.so.6 (GLIBC_2.1.2) => /lib/tls/i686/cmov/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib/tls/i686/cmov/libc.so.6
                libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6
                libc.so.6 (GLIBC_2.2) => /lib/tls/i686/cmov/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6
        /srv/alfresco-3.4.a/common/lib/libjpeg.so.62:
                libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6
        /lib/tls/i686/cmov/libm.so.6:
                ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2

n9yty
Champ in-the-making
Champ in-the-making
Hmmm… On osx the libraries in common/lib look like this:   (otool -L output)


libjpeg.62.dylib:
   /bitnami/alfrescocustomstack-osx-x86/output/common/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0)
   /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.5)
I wonder if these should have the paths from /bitnami/alfrescocustomstack-osx-x86/output   changed to  /Applications/alfresco-3.4.a using install_name_tool

install_name_tool -id /Applications/alfresco-3.4.a/common/lib/libjpeg.62.dylib libjpeg.62.dylib
And any library that has links to them probably needs to be changed as well:

install_name_tool -change /bitnami/alfrescocustomstack-osx-x86/output/common/lib/libjpeg.62.dylib /Applications/alfresco-3.4.a/common/lib/libjpeg.62.dylib libwmf.dylib

This one is a good example with lots of dependencies….


libwmf.dylib:
   /bitnami/alfrescocustomstack-osx-x86/output/common/lib/libwmf-0.2.7.dylib (compatibility version 9.0.0, current version 9.0.0)
   /bitnami/alfrescocustomstack-osx-x86/output/common/lib/libwmflite-0.2.7.dylib (compatibility version 8.0.0, current version 8.1.0)
   /bitnami/alfrescocustomstack-osx-x86/output/common/lib/libfreetype.6.dylib (compatibility version 10.0.0, current version 10.15.0)
   /bitnami/alfrescocustomstack-osx-x86/output/common/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
   /usr/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.16.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.5)
   /usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 5.0.0)
   /bitnami/alfrescocustomstack-osx-x86/output/common/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
   /bitnami/alfrescocustomstack-osx-x86/output/common/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0)
   /bitnami/alfrescocustomstack-osx-x86/output/common/lib/libpng12.0.dylib (compatibility version 25.0.0, current version 25.0.0)
   /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

I understand that at build time this can be set using the -install_name flag to libtool, but not sure about the linked paths.

Sorry, this is an incomplete thought I know, but maybe it will spark an idea.

I know DYLD_LIBRARY_PATH is supposed to override this, but I wonder if it is a problem still…

Also - openoffice - the error I get about it not running.  Trying to debug that gives me this error:


dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /Applications/alfresco-3.4.a/common/lib/libJPEG.dylib

Trace/BPT trap

UPDATE:   The last issue was resolved by linking the libjpeg.dylib and libpng.dylib files to the system versions as indicated by another forum poster.  Seems the incompatible versions used by ImageIO and the bundled ones was causing a conflict.

openoffice was still not starting, complaining about component manager.  I fixed this by altering DYLD_LIBRARY_PATH in setenv.sh to include /Applications/alfresco-3.4.a/openoffice/Contents/MacOS and all is well for startup, but still document conversion attempts fail, causing openoffice to die.  Smiley Sad

imagemagick convert.bin still not working either.
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.