cancel
Showing results for 
Search instead for 
Did you mean: 

Startup error on Mac OS X

alexandra
Champ on-the-rise
Champ on-the-rise
This thread is a little bit messy Smiley Happy I had an error message here before which I don´t think is relevant any more so I deleted it for clarity…
11 REPLIES 11

alexandra
Champ on-the-rise
Champ on-the-rise
I have got ImageMagick to work now by modifying the alfresco.sh startup script with these lines:

If ImageMagick has been installed in /opt/imagemagick then add the following lines to the alfresco.sh startup script :

export PATH=$PATH:/opt/imagemagick/ImageMagick-6.3.3/bin
export MAGICK_HOME="/opt/imagemagick/ImageMagick-6.3.3"
export DYLD_LIBRARY_PATH="/opt/imagemagick/ImageMagick-6.3.3/lib"

However, I am soon giving up on getting OpenOffice to start on Mac OS X 10.4.9.

I have tried exporting displays, Xfvb frame buffer and using the open-X11 startup script but no matter how I do it I either get a DISPLAY error, a CID font error or more recently an error in X11 "Undefinied error" when it tries to start OpenOfffice.

So far I have added this to the start_oo.sh

export PATH=$PATH:/usr/X11R6/bin
export DYLD_LIBRARY_PATH="/Applications/OpenOffice.org\ 2.2.app//Contents/MacOS/program"

Which seem to help…

I am using OpenOffice 2.2 (installed in /Applications) for Mac OS X with X11 installed from Apples DVD.

How should the start_oo.sh script look like on Mac OS X? Specifically settings for X11 and valid launch arguments for soffice…

Which version of OpenOffice should I use?

PLEASE HELP!

alexandra
Champ on-the-rise
Champ on-the-rise
When I checked my log I found out two things about ImageMagick which I wonder if anyone has any suggestions on how to fix

1/

INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/imagemagick/ImageMagick-6.3.3/lib:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java


2/

When I run some transformations I get these errors listed below. The strange thing is that my preview images have been created when I look in the space to which they are copied to:

01:55:58,736 ERROR [util.transaction.SpringAwareUserTransaction] Transaction didn't commit
org.alfresco.service.cmr.repository.ContentIOException: Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2007/4/10/1/55/db38f363-e6f5-11db-b203-654bb96fe784.bin, mimetype=image/jpeg, size=82, encoding=UTF-8]
   writer: ContentAccessor[ contentUrl=store://2007/4/10/1/55/dc887dda-e6f5-11db-b203-654bb96fe784.bin, mimetype=image/jpeg, size=0, encoding=UTF-8]
   options: {options=-resize 500}
   at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:254)
   at org.alfresco.repo.action.executer.ImageTransformActionExecuter.doTransform(ImageTransformActionExecuter.java:91)
   at org.alfresco.repo.action.executer.TransformActionExecuter.executeImpl(TransformActionExecuter.java:284)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:120)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:537)
   at org.alfresco.repo.action.executer.CompositeActionExecuter.executeImpl(CompositeActionExecuter.java:72)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:120)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:537)
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:472)
   at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:399)
   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:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
   at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:116)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:219)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:165)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
   at $Proxy16.executeAction(Unknown Source)
   at org.alfresco.repo.rule.RuleServiceImpl.executeRule(RuleServiceImpl.java:915)
   at org.alfresco.repo.rule.RuleServiceImpl.executePendingRule(RuleServiceImpl.java:883)
   at org.alfresco.repo.rule.RuleServiceImpl.executePendingRulesImpl(RuleServiceImpl.java:854)
   at org.alfresco.repo.rule.RuleServiceImpl.executePendingRules(RuleServiceImpl.java:827)
   at org.alfresco.repo.rule.RuleTransactionListener.beforeCommit(RuleTransactionListener.java:69)
   at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:591)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:657)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:482)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:266)
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:405)
   at org.alfresco.filesys.server.SrvSession.endTransaction(SrvSession.java:627)
   at org.alfresco.filesys.smb.server.SMBSrvSession.run(SMBSrvSession.java:1362)
   at java.lang.Thread.run(Thread.java:613)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to perform ImageMagick transformation:
Execution result:
   os:         Mac OS X
   command:    convert /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_source_30791.jpg -resize 500 /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_target_30792.jpg
   succeeded:  false
   exit code:  1
   out:       
   err:        convert: Not a JPEG file: starts with 0x00 0x05 `/opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_source_30791.jpg'.
convert: missing an image filename `/opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_target_30792.jpg
   at org.alfresco.repo.content.transform.magick.ImageMagickContentTransformer.transformInternal(ImageMagickContentTransformer.java:110)
   at org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer.transformInternal(AbstractImageMagickContentTransformer.java:224)
   at org.alfresco.repo.content.transform.AbstractContentTransformer.transform(AbstractContentTransformer.java:245)
   … 44 more

sdavis139
Champ in-the-making
Champ in-the-making
I've seen some of the same issues on Mac OS when using Apple's terminal to provide the command line.  Switching to xterm (at least to start and stop Alfresco) made everything work perfectly for OpenOffice!  I was able to quickly add a rule to one of my spaces that transformed incoming Word Docs to PDF.

BTW, thanks so much for your wiki at http://wiki.alfresco.com/wiki/Installing_on_MacOS_X .  It was a big help for me to get CIFS access.

alexandra
Champ on-the-rise
Champ on-the-rise
Ok great tip. But how does your start_oo.sh script look like when you are starting it from xterm? The same as the one included in the download?

Great that my install-page could help someone Smiley Happy

sdavis139
Champ in-the-making
Champ in-the-making
Ok great tip. But how does your start_oo.sh script look like when you are starting it from xterm?

The line from my script is:

/Applications/OpenOffice.org\ 2.1.app/Contents/MacOS/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &

BTW, if you get tired of having X11 crowd things, take a look at

http://www.cse.psu.edu/support/docs/apple/mac_x11.php

for some cool tips!

alexandra
Champ on-the-rise
Champ on-the-rise
Interesting…

My server is complaining and wants the DISPLAY environment variable using the -display option to be set which is missing from your line…

Any ideas why your line is working…and mine is not?

caedmon
Champ in-the-making
Champ in-the-making
I am using OpenOffice 2.2 (installed in /Applications) for Mac OS X with X11 installed from Apples DVD.

Which version of OpenOffice should I use?

PLEASE HELP!

Why not use NeoOffice? It's Mac Native, and there's a line for it in start_oo.sh. I'm about to give it a try.

caedmon
Champ in-the-making
Champ in-the-making
Why not use NeoOffice? It's Mac Native, and there's a line for it in start_oo.sh. I'm about to give it a try.

Ouch. Ok, NeoOffice is a wash…  It's not meant to run under Root.

http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=2579&highlight=running+root+us...

Basically they say, for Server type uses, use regular OpenOffice under X11.

I tried getting around it by using this line in start_oo.sh:

sudo -H -u jh03625 /Applications/NeoOffice.app/Contents/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &

It didn't work.

So when are you going to try your hand at the WCM module?

alexandra
Champ on-the-rise
Champ on-the-rise
Ok, it is working now!

Here is what happened. My brother told me to start alfresco as root in order to easliy make the CIFS-server working and being able to mount the volume as ALFRESCO in Mac OS X Finder.

However, when I opted to use the OpenOffice launch arguments without the DISPLAY environment variable without being root and starting it from xterm in X11 it just started working.

However, that change (I guess) gave the following error in the log and mounting the CIFS-volume did not work of cours

03:29:06,898 ERROR [org.alfresco.smb.protocol.netbios] NetBIOSNameServer
setup error:
java.net.BindException: Permission denied
   at java.net.PlainDatagramSocketImpl.bind0(Native Method)
   at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
   at java.net.DatagramSocket.bind(DatagramSocket.java:368)
   at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
   at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
   at java.net.DatagramSocket.<init>(DatagramSocket.java:234)
   at
org.alfresco.filesys.netbios.server.NetBIOSNameServer.openSocket(NetBIOSNameServer.java:1084)
   at
org.alfresco.filesys.netbios.server.NetBIOSNameServer.run(NetBIOSNameServer.java:1556)
   at java.lang.Thread.run(Thread.java:613)
03:29:06,916 ERROR [org.alfresco.smb.protocol] Server error :
java.net.BindException: Permission denied
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at java.net.ServerSocket.<init>(ServerSocket.java:141)
   at
org.alfresco.filesys.smb.server.SessionSocketHandler.initialize(SessionSocketHandler.java:257)
   at
org.alfresco.filesys.smb.server.NetBIOSSessionSocketHandler.createSessionHandlers(NetBIOSSessionSocketHandler.java:165)
   at org.alfresco.filesys.smb.server.SMBServer.run(SMBServer.java:495)
   at java.lang.Thread.run(Thread.java:613)
03:29:06,927 ERROR [org.alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Permission denied
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at java.net.ServerSocket.<init>(ServerSocket.java:141)
   at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:407)
   at java.lang.Thread.run(Thread.java:613)


Mac OS X Windows File Server is not running and I have tested with the firewall completely off and still the same…