CVS Build Troubles

Ask questions about your setup or get help installing ZCS server (ZD section below).
dijichi2
Elite member
Elite member
Posts: 1133
Joined: Fri Sep 12, 2014 10:00 pm

CVS Build Troubles

Postby dijichi2 » Sun Dec 04, 2005 9:37 pm

little feedback so far on a couple of things i've noticed:
--

amavisd.patch produces hunk failure:

patching file amavisd

Hunk #2 succeeded at 262 (offset 2 lines).

Hunk #3 succeeded at 1029 with fuzz 1 (offset 1 line).

Hunk #4 succeeded at 6337 (offset 179 lines).

Hunk #5 FAILED at 7955.

Hunk #6 succeeded at 12829 (offset 475 lines).

1 out of 6 hunks FAILED -- saving rejects to file amavisd.rej (attached)
--

lots of symlinks fail because the link already exists - this sometimes doesnt matter, but sometimes does when version numbers change. we could use 'ln -sf' instead of 'ln -s' but i find that unreliable - better to use 'rm && ln -s'
--

Thirdparty/Postfix/Postfix-2.2.3 currently exists but install scripts expect 2.2.5
--

when running instal.sh

Checking for prerequisites...

NPTL...MISSING

NPTL is mostly a redhat-ism, although i'm sure more linux distros will use it in the future, nevertheless it's not useful for a portable source install. i disable this check by commenting out line 254 in ZimbraBuild/zcs/util/utilfunc.sh

amavisd.rej.txt



dijichi2
Elite member
Elite member
Posts: 1133
Joined: Fri Sep 12, 2014 10:00 pm

CVS Build Troubles

Postby dijichi2 » Sun Dec 04, 2005 11:08 pm

Right, i guess java is important then :)
install process went better this time, although i had to change 'dpkg -i' to 'dpkg --force-overwrite -i' in util/utilfunc.sh because aspell package had some conflicts with apache package.
setup is now failing with tls error. if i start by hand with -d 1 , slapd says this:
TLS: could not load client CA list (file:`/opt/zimbra/conf/ca/ca.pem',dir:`').

TLS: error:0906D06C:PEM routines:PEM_read_bio:no start line pem_lib.c:644

main: TLS init def ctx failed: -1
logs attached

install.log.2726.txt


zmsetup.log.3924.txt

14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

CVS Build Troubles

Postby 14319KevinH » Sun Dec 04, 2005 11:19 pm

Might want to try removing the tls/ssl stuff from slapd.conf. Just to see if that will get you going.
dijichi2
Elite member
Elite member
Posts: 1133
Joined: Fri Sep 12, 2014 10:00 pm

CVS Build Troubles

Postby dijichi2 » Mon Dec 05, 2005 12:06 am

Thanks, that helped.
One problem, one request
request: mysql version currently mysql-standard-4.1.10a-pc-linux-gnu-i686. trouble is, this is a platform specific version which is not great for portable source install. further, this particular version is almost impossible to find on mysql.com, thus i've had to download 4.1.15, unpack, rename directory to 4.1.10a, repack and place where zimbra expects to find it. this version number is hardwired in several places through the build procedure.
problem: the source build of apache-httpd runs from the makefile in Thirdparty/apache-httpd, compiles, then packs the builds//httpd-2.0.54.tgz file. unfortunately this doesnt have the php module in it, so much later on after installation and setup you find this problem in the log files. its possible to build httpd, then build php, then rebuild httpd, but easier just postpone the packing until after php is built?
dijichi2
Elite member
Elite member
Posts: 1133
Joined: Fri Sep 12, 2014 10:00 pm

CVS Build Troubles

Postby dijichi2 » Mon Dec 05, 2005 7:48 am

right, i have the installer and setup going seemingly without problem. as far as i can see all the processes are running, however looking at the box with a web browser on ports 80 and 7071 just hang, waiting for response. /opt/zimbra/bin/zimbra status reports some of the services not running:
antispam Stopped

antivirus Running

ldap Running

logger Stopped

mailbox Running

mta Stopped

snmp Stopped

spell Running
although both postfix and the mysql logger processes are running (amavis is not). is the status thingee maybe looking for specific version strings?
i've looked through all the logs in can find in various places, particularly /tmp and /var/log and /opt/zimbra/logs but can't see any obvious errors.
what now? :)
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

CVS Build Troubles

Postby marcmac » Mon Dec 05, 2005 10:10 am

In general:

sh -x zmctl status will tell you what's not running.
If amavis isn't running, mta, antispam will show up as down.

If swatch is failing, logger and snmp will show as down (check /tmp/swatch.out or /tmp/logswatch.out.)
For the hang - check zimbra/log/zimbra.log or zimbra/tomcat/logs/catalina.out for stack traces.
dijichi2
Elite member
Elite member
Posts: 1133
Joined: Fri Sep 12, 2014 10:00 pm

CVS Build Troubles

Postby dijichi2 » Mon Dec 05, 2005 11:01 am

ah, right. turns out default perl on debian is;
This is perl, v5.8.7 built for i486-linux-gnu-thread-multi
so i had to add: /opt/zimbra/zimbramon/lib/i486-linux-gnu-thread-multi to the end of PERLLIB in /opt/zimbra/.bashrc
fixed a whole bunch of perl thingees
cheers
dijichi2
Elite member
Elite member
Posts: 1133
Joined: Fri Sep 12, 2014 10:00 pm

CVS Build Troubles

Postby dijichi2 » Mon Dec 05, 2005 11:19 am

> For the hang - check zimbra/log/zimbra.log or zimbra/tomcat/logs/catalina.out for stack traces.
zimbra/log/zimbra.log doesnt exist, catalina.out doesnt show anything untowards, except a warning. there a few stack files but they're empty. all services now running, things look like they're all installed and running ok, processes and logs ticking away in the background. i can talk to the apache aspell interface. just tomcat is hanging!
willow:/opt/zimbra/tomcat/logs# ls -l

total 4

-rw-r--r-- 1 zimbra zimbra 1523 2005-12-05 17:03 catalina.out

-rw-r--r-- 1 zimbra zimbra 0 2005-12-05 16:52 stacktrace.10496

-rw-r--r-- 1 zimbra zimbra 0 2005-12-05 17:01 stacktrace.15135

-rw-r--r-- 1 zimbra zimbra 0 2005-12-05 13:04 stacktrace.30648

-rw-r--r-- 1 zimbra zimbra 0 2005-12-05 13:50 stacktrace.8069

willow:/opt/zimbra/tomcat/logs# more catalina.out

zmtomcatstart: info: stale pid 11036 in pid file: No such process

05-Dec-2005 17:02:58 org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-80

05-Dec-2005 17:03:00 org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-7071

05-Dec-2005 17:03:00 org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 6918 ms

05-Dec-2005 17:03:01 org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

05-Dec-2005 17:03:01 org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/5.5.7

05-Dec-2005 17:03:01 org.apache.catalina.core.StandardHost start

INFO: XML validation disabled

05-Dec-2005 17:03:06 org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive zimbraAdmin.war

05-Dec-2005 17:03:06 org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive service.war

log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase).

log4j:WARN Please initialize the log4j system properly.

Zimbra server reserving server socket port=110 bindaddr=null

Zimbra server reserving server socket port=995 bindaddr=null

Zimbra server reserving server socket port=143 bindaddr=null

Zimbra server reserving server socket port=993 bindaddr=null

Zimbra server process is running as root, changing to user=zimbra uid=1005 gid=113

Zimbra server process, after change, is running with uid=1005 euid=1005 gid=113 egid=113
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

CVS Build Troubles

Postby marcmac » Mon Dec 05, 2005 11:45 am

Stop tomcat (tomcat stop)
THen sh -x bin/tomcat start and post the output.
dijichi2
Elite member
Elite member
Posts: 1133
Joined: Fri Sep 12, 2014 10:00 pm

CVS Build Troubles

Postby dijichi2 » Mon Dec 05, 2005 1:50 pm

tomcat stop gives this:
--

zimbra@willow:~/tomcat$ tomcat stop

Using CATALINA_BASE: /opt/zimbra/tomcat

Using CATALINA_HOME: /opt/zimbra/tomcat

Using CATALINA_TMPDIR: /opt/zimbra/tomcat/temp

Using JRE_HOME: /opt/zimbra/java

05-Dec-2005 19:44:22 org.apache.catalina.startup.Catalina stopServer

SEVERE: Catalina.stop:

java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)

at java.net.Socket.connect(Socket.java:507)

at java.net.Socket.connect(Socket.java:457)

at java.net.Socket.(Socket.java:365)

at java.net.Socket.(Socket.java:178)

at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)

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.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411)

Waiting ..... trying again
--

and repeats forever..
so, kill the master process by hand, and start sh -x bin/tomcat start (output attached).
then i get lots of processes like this:
zimbra 13675 1 12 19:49 pts/1 00:00:06 /opt/zimbra/jdk1.5.0_05/bin/java -Xms265m -Xmx265m -client -XX:NewRatio=2 -Dcatalina.base=/opt/zimbra/jakarta-tomcat-5.5.7 -Dcatalina.home=/opt/zimbra/jakarta-tomcat-5.5.7 -Djava.io.tmpdir=/opt/zimbra/jakarta-tomcat-5.5.7/temp -Djava.library.path=/opt/zimbra/lib -Djava.endorsed.dirs=/opt/zimbra/jakarta-tomcat-5.5.7/common/endorsed -classpath /opt/zimbra/jakarta-tomcat-5.5.7/bin/bootstrap.jar:/opt/zimbra/jakarta-tomcat-5.5.7/bin/commons-logging-api.jar org.apache.catalina.startup.Bootstrap start

tomcat.start.txt


Return to “Installation and Upgrade”

Who is online

Users browsing this forum: fnortech and 2 guests