Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32

Thread: Free to a good home

  1. #21
    serivo is offline OpenSource Builder
    Join Date
    Sep 2007
    Posts
    46
    Rep Power
    7

    Default

    ok, it tooks some days to implement these.
    Changed /usr/gnu/bin/echo to echo, all other /usr/gnu utils to their Solaris10 blastwave implementations, fixed libraries (pcre, libtool) for different components of ThirdParties builds, changed sudo and sudoers and so on. Total 9 local commits after each fix. Perl Modules are building automatically but SpamAssassin, for it - I'm editing Makefile after it is created.
    Packages now can be installed. Upgrade fails. Some of the things I missed till now - whoami is called although it should not. At package installation time there are a lot of chown attempts without proper parameters. /opt/csw/etc/sudoers has 0000 mode but should have 0440.

    Although it is, by my opinion, very close to be working, but I can't estimate how much work still is required for the packages to get them working.

    If there are patches or updated instructions for 5.0.12 building for solaris-10. - I would be very glad for sharing them with me.
    --
    Sergey

  2. #22
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    well, i keep forgetting my password so now i'm dijichi4..

    sergey, you're doing something really wrong - the solaris patchset addresses all the problems you're seeing. have you followed my build instructions?

    Solaris - Build Instructions

    if you follow this, it should build cleanly, without any need for modifications.

    one thing for you to note, and others using/progressing this patchset. please, please, look at get_plat_env.sh - this is a critical new file that the patchset adds and carries crucial enviroment settings throughout the build process. you should be able to change whatever tools you're using here.

  3. #23
    serivo is offline OpenSource Builder
    Join Date
    Sep 2007
    Posts
    46
    Rep Power
    7

    Default

    I have now on fresh install after zimbra tried to start:
    ---
    -bash-3.00$ zmcontrol status
    Host mail.omniti.net
    antispam Running
    antivirus Running
    ldap Running
    logger Stopped
    zmlogswatchctl is not running
    mailbox Stopped
    zmmailboxdctl is not running.
    mta Running
    snmp Stopped
    Error: must be run as zimbra user
    spell Stopped
    zmapachectl is not running
    stats Running
    ---
    -bash-3.00$ bash -x zmmailboxdctl start
    + . /opt/zimbra/libexec/get_plat_env.sh
    ... a big spew ...
    /opt/zimbra/bin/zmtlsctl
    + /opt/csw/bin/sudo /opt/zimbra/libexec/zmmailboxdmgr status
    + '[' 1 = 0 ']'
    + '[' xjetty = xtomcat ']'
    + mkdir -p /opt/zimbra/mailboxd/work/service/jsp
    + mkdir -p /opt/zimbra/mailboxd/work/zimbra/jsp
    + mkdir -p /opt/zimbra/mailboxd/work/zimbraAdmin/jsp
    + mailboxd_thread_stack_size=256k
    ++ echo -client -XX:NewRatio=2 -Djava.awt.headless=true -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1
    ++ grep Xss
    + '[' -z '' ']'
    + mailboxd_java_options='-client -XX:NewRatio=2 -Djava.awt.headless=true -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -Xss256k'
    + echo -n 'Starting mailboxd...'
    Starting mailboxd...+ /opt/csw/bin/sudo /opt/zimbra/libexec/zmmailboxdmgr start -Xms3276m -Xmx3276m -client -XX:NewRatio=2 -Djava.awt.headless=true -XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1 -Xss256k
    + status=0
    + '[' 0 = 0 ']'
    + echo done.
    done.
    + exit 0
    ---
    and then
    ---
    -bash-3.00$ tail log/zmmailboxd.out
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    ---
    it's strange, because the system has 8 gig ram:
    ---
    bash-3.00# prtconf
    System Configuration: Sun Microsystems i86pc
    Memory size: 8192 Megabytes
    ---
    I will appreciate suggestions, help.
    --
    Sergey

  4. #24
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    sergey

    java VM initialization works differently on Solaris. because solaris is very different from other OSs in handling 32bit/64bit properly, 64bit initialization is done through java switch when launching zmmailboxd. the solaris patch does not do this yet, so you have to manually restrict the zmmailboxd to 2gb max heap (it's a zmprov option, can't remember off the top of my head).

    this doesn't occur on other platforms because java is either 32bit or 64bit and doesn't need a 64bit switch.

  5. #25
    serivo is offline OpenSource Builder
    Join Date
    Sep 2007
    Posts
    46
    Rep Power
    7

    Default

    Hi Dom,
    Thank you very much for your help!
    I started my attempts from trying to apply your 5.0.9 and later 5.0.10 patches to 5.0.13 sources. It results in too many rejects. So I started with the only available more recent solaris patches, that is, opensolaris.
    I have not tried them on opensolaris, so I'm not sure the packages are installable and working.
    With your hints I have started java mailboxd process, by restricting it's heap to 2GB (just set zmlocalconfig -e mailboxd_java_heap_memory_percent=24, because 8GB*24/100 < 2GB)
    Then I've started httpd processes, they failed because libphp5.so was not packed, and I just transferred it manually from build zone to testing zone. Will look for the place in the Makefiles to fix that later.
    Removed whoami from zmswatchctl and now it's running and working.
    But zmmailboxdctl and mysql.server now failing to recognize java and mysql servers running, and report they are not:
    ---
    zmcontrol status
    Host mail.omniti.net
    antivirus Running
    ldap Running
    logger Running
    mailbox Stopped
    mysql.server is not running.
    zmmailboxdctl is not running.
    mta Running
    snmp Stopped
    Error: must be run as zimbra user
    spell Running
    stats Running
    ---
    while
    ---
    $ pgrep -U zimbra -l
    21396 saslauthd
    14185 mysqld
    21395 saslauthd
    21394 saslauthd
    20417 freshclam
    16854 bash
    20363 amavisd
    20444 clamd
    19845 mysqld_safe
    20365 amavisd
    21759 zmlogger
    21397 saslauthd
    16889 httpd
    20403 slapd
    16890 httpd
    19878 mysqld
    20359 amavisd
    19974 zmmtaconfig
    21755 logswatch
    141 zmsaslauthdctl
    21398 saslauthd
    20364 amavisd
    15681 java
    14086 mysqld_safe
    21757 perl
    20366 amavisd
    16891 httpd
    140 sh
    16892 httpd
    16893 httpd
    16888 httpd
    ---
    and authentication is not working:
    ---
    -bash-3.00$ zmmailbox -z -m seriv@domain.com
    ERROR: zclient.IO_ERROR (invoke cannot determine soap protocol in reply: <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/><title>Error 503 SERVICE_UNAVAILABLE</title></head><body><h2>HTTP ERROR: 503</h2><pre>SERVICE_UNAVAILABLE</pre><p>RequestURI=/service/admin/soap/</p><p><i><small><a href="http://jetty.mortbay.org">Powered by jetty://</a></small></i></p></body></html>, server: localhost) (cause: com.zimbra.common.soap.SoapParseException cannot determine soap protocol in reply: <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/><title>Error 503 SERVICE_UNAVAILABLE</title></head><body><h2>HTTP ERROR: 503</h2><pre>SERVICE_UNAVAILABLE</pre><p>RequestURI=/service/admin/soap/</p><p><i><small><a href="http://jetty.mortbay.org">Powered by jetty://</a></small></i></p></body></html>)
    ---
    and
    ---
    cat log/zmmailboxd.out

    com.zimbra.cs.zclient.ZClientException: invoke cannot determine soap protocol in reply: <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/><title>Error 503 SERVICE_UNAVAILABLE</title></head><body><h2>HTTP ERROR: 503</h2><pre>SERVICE_UNAVAILABLE</pre><p>RequestURI=/service/admin/soap/</p><p><i><small><a href="http://jetty.mortbay.org">Powered by jetty://</a></small></i></p></body></html>, server: localhost
    ExceptionId:btpool0-1:1236732629637:187324efca6573c6
    Code:zclient.IO_ERROR
    at com.zimbra.cs.zclient.ZClientException.IO_ERROR(ZC lientException.java:47)
    at com.zimbra.cs.account.soap.SoapProvisioning.invoke (SoapProvisioning.java:195)
    at com.zimbra.cs.account.soap.SoapProvisioning.getDom ainInfo(SoapProvisioning.java:875)
    at com.zimbra.cs.taglib.tag.GetDomainInfoTag.getInfo( GetDomainInfoTag.java:90)
    at com.zimbra.cs.taglib.tag.GetDomainInfoTag.checkCac he(GetDomainInfoTag.java:77)
    at com.zimbra.cs.taglib.tag.GetDomainInfoTag.doTag(Ge tDomainInfoTag.java:66)
    at org.apache.jsp.public_.login_jsp._jspService(login _jsp.java:483)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:93)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:373)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:477)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:371)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at com.zimbra.webClient.servlet.JspServlet.service(Js pServlet.java:50)
    at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:716)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:406)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispa tcher.java:268)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispa tcher.java:126)
    at org.mortbay.jetty.servlet.DefaultServlet.doGet(Def aultServlet.java:465)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1093)
    at com.zimbra.webClient.filters.SetHeaderFilter.doFil ter(SetHeaderFilter.java:284)
    at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1084)
    at org.mortbay.servlet.UserAgentFilter.doFilter(UserA gentFilter.java:81)
    at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter .java:132)
    at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1084)
    at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:360)
    at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:716)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:406)
    at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:211)
    at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:139)
    at org.mortbay.jetty.handler.rewrite.RewriteHandler.h andle(RewriteHandler.java:350)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:313)
    at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:506)
    at org.mortbay.jetty.HttpConnection$RequestHandler.he aderComplete(HttpConnection.java:830)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:514)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:381)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec tChannelEndPoint.java:396)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.ru n(BoundedThreadPool.java:442)
    Caused by: com.zimbra.common.soap.SoapParseException: cannot determine soap protocol in reply: <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/><title>Error 503 SERVICE_UNAVAILABLE</title></head><body><h2>HTTP ERROR: 503</h2><pre>SERVICE_UNAVAILABLE</pre><p>RequestURI=/service/admin/soap/</p><p><i><small><a href="http://jetty.mortbay.org">Powered by jetty://</a></small></i></p></body></html>
    at com.zimbra.common.soap.SoapTransport.extractBodyEl ement(SoapTransport.java:246)
    at com.zimbra.common.soap.SoapTransport.parseSoapResp onse(SoapTransport.java:224)
    at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:261)
    at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:216)
    at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:315)
    at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:279)
    at com.zimbra.cs.account.soap.SoapProvisioning.invoke (SoapProvisioning.java:191)
    ... 48 more
    ---
    Also I have 5.0.9 of your binary build running and 5.0.13 not running as parallel zones on one host, and I'm going to compare scripts and setting to find what needed fixes I've missed.

    --
    WBR,
    Sergey.

  6. #26
    serivo is offline OpenSource Builder
    Join Date
    Sep 2007
    Posts
    46
    Rep Power
    7

    Default

    Can somebody help, I have soap service unable to start, in log/zmmailboxd.log:
    ---
    2009-03-11 14:23:40,946 ERROR [main] [] Versions - DB Version Mismatch: ours="53" from DB="52"
    2009-03-11 14:23:40,948 FATAL [main] [] soap - Unable to start servlet
    java.lang.RuntimeException: Data version mismatch. Reinitialize or upgrade the backend data store.
    at com.zimbra.cs.util.Zimbra.startup(Zimbra.java:166)
    at com.zimbra.cs.util.Zimbra.startup(Zimbra.java:137)
    at com.zimbra.soap.SoapServlet.init(SoapServlet.java: 117)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:241)
    ...
    --
    Sergey.

  7. #27
    serivo is offline OpenSource Builder
    Join Date
    Sep 2007
    Posts
    46
    Rep Power
    7

    Default

    I'm sorry, it was my fault: zmupgrade succeeded till 5.0.9, and at that point failed.
    As I understand, it caused version mismatch.

  8. #28
    serivo is offline OpenSource Builder
    Join Date
    Sep 2007
    Posts
    46
    Rep Power
    7

    Default need 64 bit zimbra for Solaris x86.

    As I see, zimbra on solaris, at least on x96, is 32-bit application.
    I've tried to start it as 64-bit. Java I have downloaded according to dijichi2 instructions have both 32-bit and 64-bit binaries. But it complains:
    ---
    854 INFO [main] log - Setting umask=027
    858 ERROR [main] log - failed SetUIDServer@61c80b01
    java.lang.UnsatisfiedLinkError: /opt/zimbra/lib/libsetuid.so: ld.so.1: java: fatal: /opt/zimbra/lib/libsetuid.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
    ---
    Then it looks like all /opt/zimbra/lib/ stuff should be compiled to be 64 bit too.
    I will go for it, but if somebody have tried this before or know how to do it, please share your knowledge.
    --
    Sergey

  9. #29
    siva.ss.kumar is offline OpenSource Builder
    Join Date
    May 2008
    Posts
    26
    Rep Power
    7

    Default

    For handling the Java heap memory problem, please modify zmshutil (in /opt/zimbra/bin) to have the function like below.

    ------------------
    #
    # Get available system memory in KB.
    #
    zmsysmemkb() {
    plat=`/opt/zimbra/libexec/get_plat_tag.sh`
    if [ -f /proc/meminfo ]; then
    memkb=`awk '/^MemTotal.*kB$/ { print $2; }' /proc/meminfo`
    elif [ "x$plat" = "xSOLARIS10" ]; then
    memkb=`/usr/sbin/prtconf 2>/dev/null |grep Memory |awk {'print \$3 * 102
    4'}`
    else
    memkb=$(/usr/sbin/sysctl hw.memsize 2>/dev/null | awk -F: '{ print $2 /
    1024; }');
    fi
    if ! echo $memkb | grep '^[0-9]*$' > /dev/null; then
    memkb=524288
    fi
    echo $memkb
    }
    ------------------
    I forgot to include this in my opensolaris patch. It worked fine in my OpenSolaris build as, it did not have a huge memory. But on my Sparc box (64G RAM), it failed big time. This was also having problem in initializing (zmsetup.pl) for the first time. So, better to fix it before running the zmsetup.pl
    Sergey, could you tell me why would you need to run Java in 64 bit?

  10. #30
    serivo is offline OpenSource Builder
    Join Date
    Sep 2007
    Posts
    46
    Rep Power
    7

    Default

    Thank you, siva,
    it solves problems with 32-bit zimbra.
    But there are potential clients with huge client base and mail traffic.
    They want advantages of zfs checksuming, snapshots and incremental backups. If solaris has only 32-bit application, I would recommend them to use linux.
    --
    Sergey

Page 3 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Inconsistent Zimbra install behaviour
    By mkolbjor in forum Installation
    Replies: 2
    Last Post: 02-07-2008, 03:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •