Cronjobs?!
Cronjobs?!
Hallo,
ich habe gestern ein Update von OTRS 3.0.1 auf 3.1.8 gemacht.
Leider funktioniert seit dem die automatische Abholung der EMails nicht mehr.
Manuelles abholen funktioniert ohne Probleme.
Laut google.de sollte das am cronjob liegen, aber wie kann ich den überprüfen bzw. korrigieren?
Bin mich noch etwas am reinfressen und mit OTRS noch nicht sooo gut. Wäre cool wenn ihr mir eine "ausführlichere" Antwort geben könntet
Danke schonmal im vorraus!
ich habe gestern ein Update von OTRS 3.0.1 auf 3.1.8 gemacht.
Leider funktioniert seit dem die automatische Abholung der EMails nicht mehr.
Manuelles abholen funktioniert ohne Probleme.
Laut google.de sollte das am cronjob liegen, aber wie kann ich den überprüfen bzw. korrigieren?
Bin mich noch etwas am reinfressen und mit OTRS noch nicht sooo gut. Wäre cool wenn ihr mir eine "ausführlichere" Antwort geben könntet
Danke schonmal im vorraus!
Re: Cronjobs?!
Windows oder Linux?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Cronjobs?!
Tschuldige, WindowsServer2003!
-
- Znuny ninja
- Posts: 1312
- Joined: 25 May 2012, 08:51
- Znuny Version: OTRS 4
- Real Name: Klaus Nehrer
Re: Cronjobs?!
Läuft der Dienst cronw?
Was steht in der crontab.txt, meist unter C:\Program Files (x86)\OTRS\CRONw
Was steht in der crontab.txt, meist unter C:\Program Files (x86)\OTRS\CRONw
Re: Cronjobs?!
Der cronw-Dienst läuft.
Inhalt der crontab.txt:
MAILTO="root@localhost"
20 0 * * 0 C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.DeleteCache.pl --expired
30 0 * * 0 C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.LoaderCache.pl -o delete
*/10 * * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.GenericAgent.pl -c db
*/20 * * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.GenericAgent.pl
45 */2 * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.PendingJobs.pl
*/10 * * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.PostMasterMailbox.pl
01 01 * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.RebuildTicketIndex.pl
55 */2 * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.DeleteSessionIDs.pl --expired
35 * * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.UnlockTickets.pl --timeout
Inhalt der crontab.txt:
MAILTO="root@localhost"
20 0 * * 0 C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.DeleteCache.pl --expired
30 0 * * 0 C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.LoaderCache.pl -o delete
*/10 * * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.GenericAgent.pl -c db
*/20 * * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.GenericAgent.pl
45 */2 * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.PendingJobs.pl
*/10 * * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.PostMasterMailbox.pl
01 01 * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.RebuildTicketIndex.pl
55 */2 * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.DeleteSessionIDs.pl --expired
35 * * * * C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/otrs.UnlockTickets.pl --timeout
-
- Znuny ninja
- Posts: 1312
- Joined: 25 May 2012, 08:51
- Znuny Version: OTRS 4
- Real Name: Klaus Nehrer
Re: Cronjobs?!
Ist der laufende Dienst auch der, der in dem Verzeichnis ist? -> Eigenschaften vom Dienst.
In der Readme und Installation steht, wie das Logging aktiviert wird. Damit kannst Du prüfen, was er macht ...
In der Readme und Installation steht, wie das Logging aktiviert wird. Damit kannst Du prüfen, was er macht ...
Re: Cronjobs?!
Das hier wäre der Pfad in den Diensteigenschaften:
"C:\Program Files\OTRS\StrawberryPerl\perl\bin\perl.exe" "C:\Program Files\OTRS\CRONw\cronService.pl" --crontab="C:\Program Files\OTRS\CRONw\crontab.txt"
Stimmt soweit..
In der cronw.log (hoffe die Datei meinst du) ist der letzte Status das der Dienst gestoppt wurde, obwohl er läuft..allerdings liegt das Datum auch ewig zurück
Mehr als seltsam..
"C:\Program Files\OTRS\StrawberryPerl\perl\bin\perl.exe" "C:\Program Files\OTRS\CRONw\cronService.pl" --crontab="C:\Program Files\OTRS\CRONw\crontab.txt"
Stimmt soweit..
In der cronw.log (hoffe die Datei meinst du) ist der letzte Status das der Dienst gestoppt wurde, obwohl er läuft..allerdings liegt das Datum auch ewig zurück
Mehr als seltsam..
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Cronjobs?!
Sonst noch Meldungen im OTRS Log?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Cronjobs?!
Ganz häufig tauch dieser Fehler in der OTRS.log auf:
[Mon Jan 27 07:40:03 2014][Error][Kernel::System::PID::PIDDelete][226] Table 'process_id' is marked as crashed and should be repaired, SQL: 'DELETE FROM process_id WHERE process_name = ? AND process_host = ?'
[Mon Jan 27 07:40:03 2014][Error][Kernel::System::PID::PIDCreate][154] Unknown column 'process_change' in 'field list', SQL: 'INSERT INTO process_id (process_name, process_id, process_host, process_create, process_change) VALUES (?, ?, ?, ?, ?)'
Ich hatte auch direkt nach dem Update ein Problem mit der SQL_Datenbank..konnte zu dem Zeitpunkt kein Postmastermail einrichten..hab das so gelöst: viewtopic.php?f=34&t=14164 und danach hat es auch funktioniert..ist da vielleicht noch was schief gelaufen?
Schonmal vielen Dank für eure Bemühungen!
[Mon Jan 27 07:40:03 2014][Error][Kernel::System::PID::PIDDelete][226] Table 'process_id' is marked as crashed and should be repaired, SQL: 'DELETE FROM process_id WHERE process_name = ? AND process_host = ?'
[Mon Jan 27 07:40:03 2014][Error][Kernel::System::PID::PIDCreate][154] Unknown column 'process_change' in 'field list', SQL: 'INSERT INTO process_id (process_name, process_id, process_host, process_create, process_change) VALUES (?, ?, ?, ?, ?)'
Ich hatte auch direkt nach dem Update ein Problem mit der SQL_Datenbank..konnte zu dem Zeitpunkt kein Postmastermail einrichten..hab das so gelöst: viewtopic.php?f=34&t=14164 und danach hat es auch funktioniert..ist da vielleicht noch was schief gelaufen?
Schonmal vielen Dank für eure Bemühungen!
Re: Cronjobs?!
Glaubt ihr das hier wäre hilfreich:
Issue in my case was with the database. I manually fired otrs.PostMasterMailbox.pl ( located in otrs/bin/ ) as otrs user (eg, otrs or www-data) and found following:
DBD::mysql::st execute failed: Table './otrs/process_id' is marked as crashed and last (automatic?) repair failed at /opt/otrs-3.0.4/Kernel/System/DB.pm line 553.
ERROR: OTRS-PostMasterMailbox.pl-10 Perl: 5.10.1 OS: linux Time: Wed Feb 22 13:06:57 2012
So that was database issue, table process_id been crashed somehow. I repaired that using myisamchk and all came up fine and working! Here is how I repaired the table :
cd /var/lib/mysql/otrs
myisamchk -r process_id
Quelle: http://crawnix.in/otrs-not-fetching-mails-from-mailbox/
EDIT: der Befehl funktioniert leider nicht..."file process_id doesnt exist"
Würde auch mit dem Fehler meinerseits zusammen passen und angeblich das Problem beheben..kann man diesem Befehl problemlos nutzen?
Issue in my case was with the database. I manually fired otrs.PostMasterMailbox.pl ( located in otrs/bin/ ) as otrs user (eg, otrs or www-data) and found following:
DBD::mysql::st execute failed: Table './otrs/process_id' is marked as crashed and last (automatic?) repair failed at /opt/otrs-3.0.4/Kernel/System/DB.pm line 553.
ERROR: OTRS-PostMasterMailbox.pl-10 Perl: 5.10.1 OS: linux Time: Wed Feb 22 13:06:57 2012
So that was database issue, table process_id been crashed somehow. I repaired that using myisamchk and all came up fine and working! Here is how I repaired the table :
cd /var/lib/mysql/otrs
myisamchk -r process_id
Quelle: http://crawnix.in/otrs-not-fetching-mails-from-mailbox/
EDIT: der Befehl funktioniert leider nicht..."file process_id doesnt exist"
Würde auch mit dem Fehler meinerseits zusammen passen und angeblich das Problem beheben..kann man diesem Befehl problemlos nutzen?
Re: Cronjobs?!
Dein DBA oder eine Lektüre des Mysql Admin Handbuches sollten hier hilfreich sein!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Cronjobs?!
Hab ein bisschen rumgespielt und mitlerweile läufts!
Erzähle mal kurz was ich gemacht habe:
mysql -u root
use "otrs databasename"
repair table process_id
Dann konnte ich wenigstens nochmal auf die process_id-Tabelle zugreifen.
alter table process_id add process_change varchar(250) null;
Da bei mir auch "process_change" fehlte hab ich diese Spalte noch der process_id-Tabelle hinzugefügt.
Danach konnte endlich auch mal der OTRS-Scheduler starten.
Nach dem kompletten Serverneustart hat das automatische Abholen der Mails ohne Probleme funktioniert.
Trotzdem vielen Dank für eure Hilfe!
Erzähle mal kurz was ich gemacht habe:
mysql -u root
use "otrs databasename"
repair table process_id
Dann konnte ich wenigstens nochmal auf die process_id-Tabelle zugreifen.
alter table process_id add process_change varchar(250) null;
Da bei mir auch "process_change" fehlte hab ich diese Spalte noch der process_id-Tabelle hinzugefügt.
Danach konnte endlich auch mal der OTRS-Scheduler starten.
Nach dem kompletten Serverneustart hat das automatische Abholen der Mails ohne Probleme funktioniert.
Trotzdem vielen Dank für eure Hilfe!