Antw: Re: LogFiles - Fehlermeldungen

"Josef Penzkofer" <[email protected]>
Newsgroups gmane.comp.otsr.user.german
Message-ID <[email protected]>
Hallo Ralf,

/var/log/ Rechte: rwxrwsr-x; Besitzer: otrs; Gruppe: www

Ist identisch zu unserem Produktivsystem OTRS 4 - und da funktioniert es.

Wenn ich in OTRS 5 allerdings einstell:
element: LogModule::LogFile 
/tmp/otrs.log
dann wird das LogFile geschrieben.
/tmp Rechte: rwxrwxrwt; Besitzer: root; Gruppe: root





>>> Ralf Hildebrandt <[email protected]> 21.12.2016 13:28 >>>
* Josef Penzkofer <[email protected]>:

> Zum element: LogModule::LogFile lautet die Beschreibung:
> Wenn "Datei" als LogModule konfiguriert wurde, muss hier eine Log-Datei
> hinterlegt werden. Existiert die Datei nicht, wird sie automatisch vom
System
> erstellt.

Geht bei fehlenden Rechten nicht. /var/log/ kann ggf. nur root
schreiben.

Wir nutzen LogModule Syslog, Facility user, sodaß unser syslog daemon
das File schreibt...

> Die Datei kann aber nicht geschrieben werden - siehe: nachfolgende
> Fehlermeldung. (aus Datei: SchedulerTaskWorkerERR.log)
> >> Can't write /var/log/otrs.log.2016-12: Permission denied <<

> Im Verzeichnis
> /var/log/Daemon
> gibt es dann aber Dateien vom Typ:
> SchedulerTaskWorkerERR-1482295386.log
> die jede Stunde bspw. um 08:40, 09:40, 10:40 ...  erzeugt werden.

Evtl. mal versuchen das Logfile nach /var/log/Daemon zu legen, sofern
dieses dem User "otrs" gehört.

Otrs läuft ja als user "otrs" (Daemonprozesse) bzw. "www-data" (Webserver)

> otrs.Daemon.pl: Can't locate Date/Format.pm in @INC (you may need to
install
> the Date::Format module) 

Da fehlt ein Perl Modul, weil du "LogModule::LogFile::Date" gesetzt
hast -- in Debian/Ubuntu ist dieses im Paket:

libemail-date-format-perl

-- 
Ralf Hildebrandt                   Charite Universitätsmedizin Berlin
[email protected]        Campus Benjamin Franklin
http://www.charite.de              Hindenburgdamm 30, 12203 Berlin
Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155
---------------------------------------------------------------------
OTRS mailing list: otrs-de - Webpage: http://otrs.org/ 
Archive: http://lists.otrs.org/pipermail/otrs-de 
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de
---------------------------------------------------------------------
OTRS mailing list: otrs-de - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs-de
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.