Page 1 of 1

Install on Debian Etch

Posted: Fri May 11, 2007 9:27 am
by eblubow
I am attempting to install the community version of Scalix 11.0.4 on Debian Etch. Everytime I get to installing the scalix-tomcat package, I get the following error:

Code: Select all

/var/lib/dpkg/info/scalix-tomcat.postinst: line 21: syntax error near unexpected token `)'
/var/lib/dpkg/info/scalix-tomcat.postinst: line 21: `    /opt/scalix-tomcat/bin/sxtomcat-create-instance "")'
dpkg: error processing scalix-tomcat (--configure):
 subprocess post-installation script returned error exit status 2

This error then prevents anything from installing since tomcat is a dependency for every other package. Am I doing something out of order that is causing this?

I am running all this in a vmware image of Debian with a 2.6.18 kernel. Thanks.

Eric

Posted: Fri May 11, 2007 9:58 am
by ScalixSupport
Hi!

Can you try the installation using the steps at:
http://www.scalix.com/wiki/index.php?ti ... ebian_Etch

Thanks,
Subir

Posted: Fri May 11, 2007 11:16 am
by eblubow
Subir,

Yep, that did it. Once I used the scripts, everything installed just fine. But now all the URLs are giving me 404s. It can't seem to find anything. Tomcat is running because it is Tomcat that's throwing the 404s.

Eric

Posted: Fri May 11, 2007 12:34 pm
by florian
for the problem originally reported, check

http://bugzilla.scalix.com/show_bug.cgi?id=15319

Florian.

Posted: Sat May 19, 2007 2:49 am
by tobbe
Hello Florian!

I checked Bugzilla and found the bug resolved.
But when can I expect a new .deb package for download, which fixes the bug?

Tried to unpack the .deb and edit the postinst myself, but I can't build a new .deb-package out of the files.
So I deped on you.

Any release date within sight?

regards

tobbe

Posted: Sat May 19, 2007 2:56 am
by florian
yup, early next month; we currently do monthly releases and if testing results are good, they usually happen first week of each month.

i believe a .deb file is either a .cpio or .tar file technically, so it should not be too difficult to unpack and repackage yourself. google is your friend.

Florian.

Posted: Mon May 28, 2007 10:26 pm
by phobik
Wow, im surprised nobody posted a step by step guide to fix this, it totally screwed up my mail server when trying to upgrade, and then took while to figure out how to fix it.

Here it goes:
download the 11.0.4 debian tarball, then extract it

Code: Select all

tar -zxvf scalix-11.0.4-GA-debian-intel.tgz
cd scalix-debian-11.0.4-GA/software/scalix_server/
ar x scalix-tomcat_5.5.16-263_all.deb
tar -zxvf control.tar.gz

Code: Select all

vi postinst
delete the close parenthesis ')' at the end of line 21, save it.

Code: Select all

tar -czf control.tar.gz control conffiles md5sums postinst postrm prerm
ar -q scalix-tomcat.deb debian-binary control.tar.gz data.tar.gz


now the deb package is repacked! lets clean things up and get it ready for the etch install script....

Code: Select all

rm -rf conffiles control control.tar.gz data.tar.gz debian-binary postinst prerm postrm md5sums scalix-tomcat_5.5.16-263_all.deb
mv scalix-tomcat.deb scalix-tomcat_5.5.16-263_all.deb
cd ../../../
rm -rf scalix-11.0.4-GA-debian-intel.tgz &&  tar -czf scalix-11.0.4-GA-debian-intel.tgz scalix-debian-11.0.4-GA/


Now in the etch install script, comment out the wget line so it doesn't fetch the tarball, run the script from the same directory as the tarball and your golden.

# Download Scalix 11
#cd /tmp/
#wget -N $scalix11downloadurl


I don't understand why the Scalix guys are still distributing the broken tarball... But I hope they will fix it after this post.

-Greg

--
Greg Martin
Econet - Sentinel IPS
http://www.networkcloaking.com