Nach OTRS6 Update, Berechtigungsproblem

Hilfe zu OTRS Problemen aller Art
Post Reply
Simon74
Znuny newbie
Posts: 20
Joined: 11 Mar 2015, 10:29
Znuny Version: OTRS5

Nach OTRS6 Update, Berechtigungsproblem

Post by Simon74 »

Hallo,

seit dem Update auf Version 6 haben wir jeden Montag morgen das Problem das OTRS nicht funktioniert, im LOG steht folgendes:

Code: Select all

Jan 15 08:40:01 tic CRON[10520]: (otrs) CMD ($HOME/bin/otrs.Daemon.pl start >> /dev/null)
Jan 15 08:42:04 tic OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-74[10536]: [Error][Kernel::System::MailAccount::POP3::Fetch][Line:413]: Exception while processing mail: mkdir /opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/3/e: Keine Berechtigung at /opt/otrs/Kernel/System/Cache/FileStorable.pm line 87.
Jan 15 08:42:04 tic OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-74[10536]: [Error][Kernel::System::CommunicationLog::_LogError][Line:538]: CommunicationLog(ID:35831,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Message,ObjectLogID:36256)::Kernel::System::MailAccount::POP3 => Could not process message. Raw mail saved (/opt/otrs/var/spool/problem-email-a5bafd96aabe2fa0ed60835082119ae0, report it on http://bugs.otrs.org/)!
Wenn ich dann die Berechtigungen setzen lasse, funktioniert es wieder bis nächsten Montag :shock:

Code: Select all

root@tic /opt/otrs/bin > [b]./otrs.SetPermissions.pl[/b]
Owner sollte passen:

Code: Select all

root@tic /opt/otrs > l
insgesamt 1,4M
4,0K drwxr-xr-x+  9 otrs www-data 4,0K Dez 21 14:42 .
4,0K drwxr-xr-x+  6 root root     4,0K Dez 21 14:41 ..
448K -rw-rw----   1 otrs www-data 445K Dez 21 14:42 ARCHIVE
4,0K -rw-rw----   1 otrs www-data 4,0K Dez 21 14:42 AUTHORS.md
4,0K -rw-rw----   1 otrs www-data 1,4K Sep 24  2015 .bash_completion
4,0K drwxrwsr-x+  4 otrs www-data 4,0K Dez 21 16:02 bin
788K -rw-rw----   1 otrs www-data 788K Dez 21 14:42 CHANGES.md
4,0K -rw-rw----   1 otrs www-data   74 Dez 21 14:42 CONTRIBUTING.md
 36K -rw-rw----   1 otrs www-data  34K Dez 21 14:42 COPYING
 16K -rw-rw----   1 otrs www-data  16K Dez 21 14:42 COPYING-Third-Party
4,0K drwxrwsr-x+  2 otrs www-data 4,0K Dez 21 14:42 Custom
4,0K drwxrwsr-x+  4 otrs www-data 4,0K Dez 21 14:48 doc
4,0K -rw-rw----   1 otrs www-data 1,2K Mär 27  2014 .fetchmailrc.dist
4,0K drwxrwsr-x+  3 otrs www-data 4,0K Dez 21 14:42 i18n
4,0K -rw-rw----   1 otrs www-data  142 Dez 21 14:42 INSTALL.md
4,0K drwxrwsr-x+ 10 otrs www-data 4,0K Dez 21 16:02 Kernel
4,0K -rw-rw----   1 otrs www-data 1,7K Sep 24  2015 .mailfilter.dist
4,0K -rw-rw----   1 otrs www-data 1,9K Sep 24  2015 .procmailrc.dist
4,0K -rw-rw----   1 otrs www-data 2,7K Dez 21 14:42 README.md
4,0K -rw-rw----   1 otrs www-data  102 Dez 21 14:42 RELEASE
4,0K drwxrwsr-x+  9 otrs www-data 4,0K Dez 21 14:48 scripts
4,0K -rw-rw----   1 otrs www-data  136 Dez 21 14:42 UPGRADING.md
4,0K drwxrwsr-x+ 15 otrs www-data 4,0K Dez 21 14:48 var
Module:

Code: Select all

root@tic /opt/otrs/bin > ./otrs.CheckModules.pl
  o Apache::DBI......................ok (v1.12)
  o Apache2::Reload..................ok (v0.13)
  o Archive::Tar.....................ok (v1.96)
  o Archive::Zip.....................ok (v1.39)
  o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
  o Crypt::SSLeay....................ok (v0.58)
  o Date::Format.....................ok (v2.24)
  o DateTime.........................ok (v1.12)
  o DBI..............................ok (v1.631)
  o DBD::mysql.......................ok (v4.028)
  o DBD::ODBC........................ok (v1.50)
  o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................Not installed! Use: 'apt-get install -y libdbd-pg-perl' (optional - Required to connect to a PostgreSQL database.)
  o Digest::SHA......................ok (v5.88)
  o Encode::HanExtra.................ok (v0.23)
  o IO::Socket::SSL..................ok (v2.002)
  o JSON::XS.........................ok (v2.34)
  o List::Util::XS...................ok (v1.38)
  o LWP::UserAgent...................ok (v6.26)
  o Mail::IMAPClient.................ok (v3.35)
    o IO::Socket::SSL................ok (v2.002)
    o Authen::SASL...................ok (v2.16)
    o Authen::NTLM...................ok (v1.09)
  o ModPerl::Util....................ok (v2.000009)
  o Net::DNS.........................ok (v0.81)
  o Net::LDAP........................ok (v0.64)
  o Template.........................ok (v2.24)
  o Template::Stash::XS..............ok (undef)
  o Text::CSV_XS.....................ok (v1.11)
  o Time::HiRes......................ok (v1.9726)
  o XML::LibXML......................ok (v2.0116)
  o XML::LibXSLT.....................ok (v1.92)
  o XML::Parser......................ok (v2.41)
  o YAML::XS.........................ok (v0.41)
Danke für hilfreichen Tip.
Last edited by Simon74 on 16 Jan 2018, 09:37, edited 1 time in total.
reneeb
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: Nach OTRS6 Update, Keine Berechtigung nach Wochenende

Post by reneeb »

Als welcher User werden die Cronjobs ausgeführt? Ist dieser User in den richtigen Gruppen?
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
Simon74
Znuny newbie
Posts: 20
Joined: 11 Mar 2015, 10:29
Znuny Version: OTRS5

Re: Nach OTRS6 Update, Keine Berechtigung nach Wochenende

Post by Simon74 »

Danke für Antwort / Nachfrage:
Die Installation wurde dazumal laut Setupanleitung für OTRS ausgeführt.

Cron: (andere OTRS Cronjobs konnte ich keine entdecken)

Code: Select all

crontab -u otrs -l
# Who gets the cron emails?
MAILTO="root@localhost"

# check OTRS daemon status
*/5 * * * *    $HOME/bin/otrs.Daemon.pl start >> /dev/null

Code: Select all

root@tic /etc > id otrs
uid=1001(otrs) gid=33(www-data) Gruppen=33(www-data)
root@tic /etc > groups otrs
otrs : www-data
Simon74
Znuny newbie
Posts: 20
Joined: 11 Mar 2015, 10:29
Znuny Version: OTRS5

Re: Nach OTRS6 Update, Keine Berechtigung nach Wochenende

Post by Simon74 »

Heute habe ich folgende Mail vom OTRS System erhalten:

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::SpoolMailsReprocess-74 Perl: 5.20.2 OS: linux Time: Tue Jan 16 00:10:08 2018

 Message: Could not re-process email /opt/otrs/var/spool/problem-email-a5bafd96aabe2fa0ed60835082119ae0.

 Traceback (7035): 
   Module: Kernel::System::Console::Command::Maint::PostMaster::SpoolMailsReprocess::Run Line: 73
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: (eval) Line: 144
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 123
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 232
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: /opt/otrs/bin/otrs.Daemon.pl Line: 137

Error: There were problems importing the spool mails.
Im OTRS Systemprotokoll erscheinen folgende Einträge:

Code: Select all

Tue Jan 16 00:10:09 2018 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::SpoolMailsReprocess-74 	There was an error executing Execute() in Kernel::System::Console::Command::Maint::PostMaster::SpoolMailsReprocess: ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::SpoolMailsReprocess-74 Perl: 5.20.2 OS: linux Time: Tue Jan 16 00:10:08 2018
Tue Jan 16 00:10:08 2018 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::SpoolMailsReprocess-74 	Could not re-process email /opt/otrs/var/spool/problem-email-a5bafd96aabe2fa0ed60835082119ae0.
Tue Jan 16 00:10:08 2018 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::Read-74 	CommunicationLog(ID:36767,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Message,ObjectLogID:37210)::Kernel::System::Console::Command::Maint::PostMaster::Read => An unexpected error occurred, message: mkdir /opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/9/8: Keine Berechtigung at /opt/otrs/Kernel/System/Cache/FileStorable.pm line 87.
Mon Jan 15 16:17:52 2018 	error 	OTRS-CGI-74 	Can't write '/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/8/1/818fa8f42fe7179f9714bacf85918275':
Mon Jan 15 16:17:51 2018 	error 	OTRS-CGI-74 	Can't write '/opt/otrs/var/tmp/CacheFileStorable/DynamicFieldValue/8/1/818fa8f42fe7179f9714bacf85918275': 
Simon74
Znuny newbie
Posts: 20
Joined: 11 Mar 2015, 10:29
Znuny Version: OTRS5

Re: Nach OTRS6 Update, Berechtigungsproblem

Post by Simon74 »

Ich habe nochmals das Berechtigungsscript ausgeführt und durchgebootet, hilft jedoch nichts, wieder fehlende Berechtigungen im tmp Folder.
Auch wenn es nicht schön ist, werde ich mir mit folgendem Würgaround (root crontab) behelfen:

Code: Select all

crontab -l

#OTRS Probleme mit tmp Berechtigungen
* * * * * chmod 777 -R /opt/otrs/var/tmp
Post Reply