Hi Michiel,

IO::Socket::SSL and Net::SSLeay were both successfully installed.

In the meantime I have the solution:
The cronjob does not load the default environment variables like LD_LIBRARY_PATH. And this is the reason why libssl was not found.

I have built a small wrapper script:

#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib:....:/opt/sfw/lib:/usr/local/lib
/data/ticket/otrs-2.3.4/bin/PostMasterMailbox.pl $@

This wrapper script is executed by cron instead of the PostMasterMailbox.pl. Now it works perfectly.


Regards

Kevin Richter




Michiel Beijen schrieb:
Hi Kevin,

You write:
Can't locate object method "new" via package "IO::Socket::SSL" at /data/otrs-2.3.4/Kernel/cpan-

    lib/Mail/POP3Client.pm line 376.

    But the IO::Socket::SSL package has been successfully installed via
    CPAN shell.


I guess it was not THAT successful ;-) IO::Socket::SSL requires Net::SSLeay which on its turn requires dlls (or .so files, depending on your platform) from the OpenSSL in order to work. Is Net::SSLeay installed?

Regards,
--
Michiel Beijen
Software Consultant
+31 6 - 457 42 418
Bee Free IT + http://beefreeit.nl


On Fri, Jul 17, 2009 at 15:10, Kevin Richter <[email protected] <mailto:[email protected]>> wrote:

    Hello,

    after installing several packages via CPAN shell, POP3 vis SSL
    should work now. Executing ./bin/PostMasterMailbox.pl in the shell
    works:

    POP3S: Message 1/1 (help/servername.de <http://servername.de>)
    POP3S: Connection to servername.de <http://servername.de> closed.

    1)
    The debugging of PostMasterMailbox.pl does not work.
    ./PostMasterMailbox.pl -d 2 givs no output, only the two lines from
    above.

    Other people get output like this:
    http://lists.otrs.org/pipermail/otrs/2008-September/024512.html


    2)
    PostMasterMailbox.pl hangs somewhere and does not exit correctly.
    Only with the "-f" parameter it works:

    ./bin/PostMasterMailbox.pl -f 1
    Notice: PostMasterMailbox.pl is already running but is starting again!
    ...

    3)
    There is a cronjob executing this perl script every 5 minutes.
    Although this script gets executed every 5 minutes it only runs
    approx. every 15 minutes, because it is started without the "force"
    parameter.

    Every time it can be started, it gives following output:

    /data/otrs-2.3.4/bin/PostMasterMailbox.pl > /dev/null

    produced the following output:

    Can't locate object method "new" via package "IO::Socket::SSL" at
    /data/otrs-2.3.4/Kernel/cpan-lib/Mail/POP3Client.pm line 376.

    But the IO::Socket::SSL package has been successfully installed via
    CPAN shell.

    $ ./otrs.checkModules
      o CGI............................ok (v3.15)
      o Date::Pcalc....................ok (v1.2)
      o Date::Format...................ok (v2.22)
      o DBI............................ok (v1.58)
      o DBD::mysql.....................ok (v4.005)
      o Digest::MD5....................ok (v2.36)
      o Crypt::PasswdMD5...............ok (v1.3)
      o LWP::UserAgent.................ok (v2.036)
      o IO::Scalar.....................ok (v2.110)
      o IO::Wrap.......................ok (v2.110)
      o MIME::Base64...................ok (v3.07)
      o Mail::Internet.................ok (v2.04)
      o MIME::Tools....................ok (v5.427)
      o Net::DNS.......................ok (v0.61)
      o Net::POP3......................ok (v2.29)
         o Net::POP3::SSLWrapper.......ok (v0.02)
      o Net::IMAP::Simple..............ok (v1.17)
         o Net::IMAP::Simple::SSL......ok (v1.3)
      o Net::SMTP......................ok (v2.31)
         o Authen::SASL................ok (v2.11)
      o Net::LDAP......................ok (v0.34)
      o GD.............................ok (v2.35)
         o GD::Text....................ok (v0.86)
         o GD::Graph...................ok (v1.44)
         o GD::Graph::lines............ok (v1.15)
         o GD::Text::Align.............ok (v1.18)
      o PDF::API2......................ok (v0.62)
         o Compress::Zlib..............ok (v2.008)
      o XML::Parser....................ok (v2.36)

    All modules are installed. And if I execute this script in a shell
    with the force paramater, it works perfectly and fetches all mails.
    Why claims the cronjob that the new() function is not found?

    In the other 2 of 3 cases, there is following line in the OTRS syslog:
Fri Jul 17 15:00:02 2009 notice OTRS-PMAccount-16 Can't create PID PostMasterMailbox, because it's already running
    (www.servername.de/4133 <http://www.servername.de/4133>)!


    Can someone help me with these three big problems?


    Thanks,

    Kevin


    PS: I use Solaris 10 and OTRS-2.3.4 and Perl-5.8.8

    ---------------------------------------------------------------------
    OTRS mailing list: otrs - Webpage: http://otrs.org/
    Archive: http://lists.otrs.org/pipermail/otrs
    To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

    NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
    http://www.otrs.com/en/support/enterprise-subscription/



--
 /----------------------------------+---------------------------\
 | Kevin Richter, B.Sc.             | University of Hildesheim  |
 | [email protected]  | Computing Centre          |
 |                                  | Marienburger Platz 22     |
 | Tel: +49 (0)5121 883-217         | D-31141 Hildesheim        |
 | Fax: +49 (0)5121 883-205         | Germany                   |
 \----------------------------------+---------------------------/
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to