[gelöst]CronJob postmaster_mailbox

Hilfe zu Znuny Problemen aller Art
Locked
thomas91
Znuny advanced
Posts: 103
Joined: 23 Dec 2010, 23:01
Znuny Version: 6.0.18
Location: Lauda-Königshofen

[gelöst]CronJob postmaster_mailbox

Post by thomas91 »

Hallo Community,

ich habe gerade mich an den CronJobs für die Automatische abholung der E-Mails meines POP3 Kontos versucht.
Meine Schritte entsprechen der Doc http://doc.otrs.org/3.0/de/html/manual- ... l#cronjobs von Punkt 3.15 bis 3.18.
Danach habe ich eine Test Mail an meinen OTRS Benutzer geschickt und länger als die eingestellten 10 Minuten gewartet. Die E-mail wurde niocht abgeholt.
Nachdem ich dann manuell die E-Mails abgerufen habe wurde die E-Mail abgerufen, ein neues Ticket erstellt und eine eingangsbestätigung an mich versendet.

Ich wäre dankbar für Tipps, momentan weis ich nicht wo ich ansetzten soll um das Problem zu lösen.
Last edited by thomas91 on 24 Oct 2013, 08:25, edited 3 times in total.
MfG Thomas

Produktiv:
OTRS: 5.0.9
ITSM: 5.0.?
FAQ: 5.0.?
OS: Debian 9.8 x64
Application: Apache2/MySQL 5.5
VM auf: VMware ESXi 6.5
E-Mails: MS Exchange 2013

-- Achtung, es folgt ein Witz:

Code: Select all

    # dpkg-reconfigure brain
    Paket »brain« ist nicht installiert und es ist keine Info verfügbar.
-- weiter geht's im Thread…[/size]
KlausNehrer
Znuny ninja
Posts: 1312
Joined: 25 May 2012, 08:51
Znuny Version: OTRS 4
Real Name: Klaus Nehrer

Re: CronJob postmaster_mailbox

Post by KlausNehrer »

Was steht im cron Log?
thomas91
Znuny advanced
Posts: 103
Joined: 23 Dec 2010, 23:01
Znuny Version: 6.0.18
Location: Lauda-Königshofen

Re: CronJob postmaster_mailbox

Post by thomas91 »

CronJob Log:

Code: Select all

Oct  2 14:00:01 OTRS01 /USR/SBIN/CRON[26474]: (administrator) CMD ($HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null)
Oct  2 14:00:01 OTRS01 /USR/SBIN/CRON[26475]: (administrator) CMD ($HOME/bin/otrs.GenericAgent.pl >> /dev/null)
Oct  2 14:00:01 OTRS01 /USR/SBIN/CRON[26477]: (administrator) CMD ($HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null)
Oct  2 14:00:01 OTRS01 /USR/SBIN/CRON[26470]: (CRON) error (grandchild #26474 failed with exit status 127)
Oct  2 14:00:01 OTRS01 /USR/SBIN/CRON[26471]: (CRON) error (grandchild #26477 failed with exit status 127)
Oct  2 14:00:01 OTRS01 /USR/SBIN/CRON[26472]: (CRON) error (grandchild #26475 failed with exit status 127)
MfG Thomas

Produktiv:
OTRS: 5.0.9
ITSM: 5.0.?
FAQ: 5.0.?
OS: Debian 9.8 x64
Application: Apache2/MySQL 5.5
VM auf: VMware ESXi 6.5
E-Mails: MS Exchange 2013

-- Achtung, es folgt ein Witz:

Code: Select all

    # dpkg-reconfigure brain
    Paket »brain« ist nicht installiert und es ist keine Info verfügbar.
-- weiter geht's im Thread…[/size]
KlausNehrer
Znuny ninja
Posts: 1312
Joined: 25 May 2012, 08:51
Znuny Version: OTRS 4
Real Name: Klaus Nehrer

Re: CronJob postmaster_mailbox

Post by KlausNehrer »

Suche doch mal nach (CRON) error (grandchild failed with exit status 127) mit der Suchmaschine Deines Vertrauens und korrigiere diesen Fehler.
thomas91
Znuny advanced
Posts: 103
Joined: 23 Dec 2010, 23:01
Znuny Version: 6.0.18
Location: Lauda-Königshofen

Re: CronJob postmaster_mailbox

Post by thomas91 »

Hallo,

wenn ich folgendes Ausführe:

Code: Select all

linux:/opt/otrs/var/cron# cd /opt/otrs/bin/
linux:/opt/otrs/bin# su administrator
linux:~/bin$ ./Cron.sh start
bekomme ich folgende Meldung:

Code: Select all

./Cron.sh: 116: cannot create /opt/otrs/var/tmp/otrs-cron-tmp.30602: Permission denied
failed
Unter crontab -l -u administrator ist mein CronJob zum Abrufen eines POP3 Kontos (postmaster_mailbox) enthalten.
Kann es sein das mein benutzer nicht genügend Rechte hat?
MfG Thomas

Produktiv:
OTRS: 5.0.9
ITSM: 5.0.?
FAQ: 5.0.?
OS: Debian 9.8 x64
Application: Apache2/MySQL 5.5
VM auf: VMware ESXi 6.5
E-Mails: MS Exchange 2013

-- Achtung, es folgt ein Witz:

Code: Select all

    # dpkg-reconfigure brain
    Paket »brain« ist nicht installiert und es ist keine Info verfügbar.
-- weiter geht's im Thread…[/size]
KlausNehrer
Znuny ninja
Posts: 1312
Joined: 25 May 2012, 08:51
Znuny Version: OTRS 4
Real Name: Klaus Nehrer

Re: CronJob postmaster_mailbox

Post by KlausNehrer »

Ja.
thomas91
Znuny advanced
Posts: 103
Joined: 23 Dec 2010, 23:01
Znuny Version: 6.0.18
Location: Lauda-Königshofen

Re: CronJob postmaster_mailbox

Post by thomas91 »

Ich habe jetzt folgendes noch einmal durch geführt:

Code: Select all

cd /opt/otrs
bin/otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=otrs --web-user=www-data --web-group=www-data /opt/otrs

/opt/otrs# cd bin/
root@OTRS01:/opt/otrs/bin# su otrs
$ ./Cron.sh start
/opt/otrs/bin
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.22 $>
Copyright (C) 2001-2012 xxx, http://otrs.org/
(using /opt/otrs) done

Jetzt Funktioniert der Abruf der E-Mails mittels Cronjob.
MfG Thomas

Produktiv:
OTRS: 5.0.9
ITSM: 5.0.?
FAQ: 5.0.?
OS: Debian 9.8 x64
Application: Apache2/MySQL 5.5
VM auf: VMware ESXi 6.5
E-Mails: MS Exchange 2013

-- Achtung, es folgt ein Witz:

Code: Select all

    # dpkg-reconfigure brain
    Paket »brain« ist nicht installiert und es ist keine Info verfügbar.
-- weiter geht's im Thread…[/size]
Locked