You are here: Foswiki>Tasks Web>Item884 (28 Oct 2010, DaveVanderWall)Edit Attach

Item884: MailerContrib cron tries to access setlib.cfg - can't find it

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: YogiParish
Waiting For:
Last Change By: DaveVanderWall
When running the cron job on a ubuntu / webmin administered system. I get the following error message

Can't locate setlib.cfg in @INC (@INC contains: bin /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at tools/mailnotify line 28.
BEGIN failed--compilation aborted at tools/mailnotify line 29.
The file is there alright, but the path is not included in the INC variable.

On a debian installed ubuntu version the correct path should be, at least to my knowledge: /usr/lib/cgi-bin/foswiki

-- YogiParish - 28 Jan 2009


I have a debian installed ubuntu version, and to get this to work my cronjob entry is
07 3 * * * (cd /var/lib/foswiki/ && perl -I /usr/lib/cgi-bin/foswiki tools/mailnotify -q)

-- EdMcDonagh - 23 Apr 2009

It does not seem like Yogu comes back to his bug

I consider this a support question answered.

No Action

-- KennethLavrsen - 16 Jun 2009

I'm running Ubuntu as well and had to include the entire path to foswiki/bin in order for this to work. Including only 'bin' as shown in the examples does not work. Foswiki version is 1.1.1.
00 19 * * * (cd /var/www/wiki && perl -I /var/www/wiki/bin tools/mailnotify -user AdminUser -q)

-- DaveVanderWall - 28 Oct 2010

ItemTemplate edit

Summary MailerContrib cron tries to access setlib.cfg - can't find it
ReportedBy YogiParish
Codebase 1.0.0
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r6 - 28 Oct 2010, DaveVanderWall
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy