Koozali.org: home of the SME Server

Custom iso & e-smith-Spamassassin

Craig

Custom iso & e-smith-Spamassassin
« on: April 15, 2003, 06:48:04 PM »
Hi,
  Following the great HOWTO at http://mirror.contribs.org/smeserver/contribs/dmay/mitel/howto/sme-iso-howto.html I have created an iso that includes all of the addons that I normally install after an install of SME.

They all install and I'm able to use the ones that I have added with one exception.  The e-smtih-spamassassin addon.

I install, run through the configs that is asks for, reboot. Go to the server-manager, click on the spamassasin link.  At this point I get the  following error instead of the usual config page.

Spam Assassin Settings
Content-type: text/html
Software error:

Can't call method "props" on an undefined value at /etc/e-smith/web/panels/manager/cgi-bin/spamassassin line 124.

For help, please send mail to the webmaster (admin@tuxx2), giving this error message and the time and date of the error.

Through some testing I have found that just by removing and then reinstalling the rpm in question it solves the problem.  The rpm in question is e-smith-spamassassin-0.0.2-1.noarch.rpm.

I have looked at the line in the spamassassin config and it gives no clues.

Any ideas how to solve this and why it's happening?

Feel free to ask me more question.

Craig

bud

Re: Custom iso & e-smith-Spamassassin
« Reply #1 on: April 16, 2003, 01:57:37 AM »
When installing your CD, do a ALT-F2 to monitor the package.  You can also check the /root/ directory on your HDD after to view the installation logs.

Craig

Re: Custom iso & e-smith-Spamassassin
« Reply #2 on: April 16, 2003, 03:36:59 AM »
I did ALT-F2 but it passed by so fast that I missed it.
The install.log showed me what the error is.  It appears to be that the e-smith-spamassassin is being installed to early and so is trying to run a script that doesn't yet exist.

Any idea how to make it run later on (last?).

Thanks for your help.

Craig

bud

Re: Custom iso & e-smith-Spamassassin
« Reply #3 on: April 17, 2003, 02:16:25 AM »
Well, couldn't you just put it in the %post section of your kickstart script.

I know that's a pretty ugly way to install an RPM... I'm sure that there is something wrong with the e-smith-spamassassin RPM (dependency, etc.).

Post the error to this forum... maybe I can help you then...

Craig

Re: Custom iso & e-smith-Spamassassin
« Reply #4 on: April 17, 2003, 06:56:43 PM »
That is a bit of an ugly way to start it but the error may give you a clue.

Installing e-smith-esi-lanlord-1.0.2-02.
/var/tmp/rpm-tmp.32801: ln: command not found
execution of %post scriptlet from e-smith-esi-lanlord-1.0.2-02 failed, exit status 127

Installing e-smith-reinstall-floppy-1.10.0-01.
Installing e-smith-samba-1.8.0-01.
Installing e-smith-spamassassin-0.0.2-1.
/var/tmp/rpm-tmp.32801: /sbin/e-smith/signal-event: No such file or directory
/var/tmp/rpm-tmp.32801: chown: command not found
/var/tmp/rpm-tmp.32801: chmod: command not found
/var/tmp/rpm-tmp.32801: chmod: command not found
execution of %post scriptlet from e-smith-spamassassin-0.0.2-1 failed, exit status 127

As you can see the e-smith-esi-landlord rpm also doesn't install correctly, but this doesn't appear to stop it working as it should after the reboot.  Unlike the e-smith-spamassassin.

Thanks for you help Bud

Craig

JeffC

Re: Custom iso & e-smith-Spamassassin
« Reply #5 on: April 17, 2003, 07:11:15 PM »
Many rpms won't install from the iso since they are dependant on services that are not running during install.

Keep your rpms in the iso so that they are automatically placed into the directory structure, but don't try to run the actual install scripts.  

Edit initscripts so that it calls a primary install script as the last line of rc.local.

In the primary install script do an "if exist" and run the "real" install.  As the last step of the install delete the real install script and you won't get any error messages.

Convoluted, but it works.

-jeff

Craig

Re: Custom iso & e-smith-Spamassassin
« Reply #6 on: April 17, 2003, 08:57:01 PM »
Hmm, I think I will use this as a last resort option.

Thanks any way.

bud

Re: Custom iso & e-smith-Spamassassin
« Reply #7 on: April 17, 2003, 09:28:15 PM »
It's possible that the reason the installer can't find the "ln" command is because it should be specified as "/bin/ln".

The same goes for "chmod"... it should be "/bin/chmod".

I don't know what the heck is going on the "/sbin/e-smith/signal-event" file/directory not found.  But it shouldn't be required for the installation of a new RPM from the ISO cdrom.

Obtain the source code (SRPM) and fix the problems that I mentioned above.  Remove the "/sbin/e-smith/signal-event" line from the %post section.

Both the lanlord and e-smith-spamassassin do not conform to the proper way to build an RPM.  That's the problem.

Study some of e-smith's SRPM's for more detail.

Craig

Re: Custom iso & e-smith-Spamassassin
« Reply #8 on: April 17, 2003, 09:39:28 PM »
Thanks, I will have a look at the e-smith-spamassassin SRPM as I have that.  I don't have the lanlord SRPM and that works so I'll have a look at that later.

Craig

Charlie Brady

Re: Custom iso & e-smith-Spamassassin
« Reply #9 on: April 18, 2003, 02:28:02 AM »
JeffC wrote:

> Edit initscripts so that it calls a primary install script as
> the last line of rc.local.

There's never any need to add to rc.local. Just drop a script (or symlink) into /etc/e-smith/events/local.

Charlie

JeffC

Re: Custom iso & e-smith-Spamassassin
« Reply #10 on: April 18, 2003, 04:43:04 AM »
Thanks Charlie.  I wasn't aware of that and it's certainly a cleaner solution.

-jeff.

Peter Schubert

Got it: Custom iso & e-smith-Spamassassin
« Reply #11 on: June 03, 2003, 05:44:48 PM »
Simple:

Add the following line the the %post part of the files:
  cdrom/image/install.cfg and cdrom/image/upgrade.cfg

/sbin/e-smith/signal-event spamassassin-update


Build a new iso, thats it.

Peter