
Hallo,
soweit läuft jetzt OTRS erstmal, bin ganz froh. Kann nur leider keine
Tickets erstellen, dann erhalte ich einen Serverfehler 500.
Habe dazu in einem Board gefunden:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Store the plain_article/attachments in database instead of filesystem
We added this feature because many people have problems with the file
permission if the webserver user isn't the otrs user. You need to
update
the following files from CVS:
Kernel/System/Ticket.pm
Kernel/System/Ticket/Article.pm
Kernel/System/Ticket/History.pm
Kernel/System/PostMaster/LoopProtection.pm
Kernel/System/PostMaster/LoopProtection/DB.pm
Kernel/System/PostMaster/LoopProtection/FS.pm
Kernel/Modules/AgentZoom.pm
Kernel/Modules/CustomerZoom.pm
scripts/DBUpdate.mysql.sql (or scripts/DBUpdate.postgresql.sql)
Update the database changes with "cat scripts/DBUpdate.mysql.sql |
mysql -p -f -u root otrs"
And add
[...]
# Storage for plain email [fs|db]
$Self->{ArticlePlainStorage} = 'db';
# Storage for attachments [fs|db]
$Self->{ArticleAttachmentStorage} = 'db';
[...]
to your Kernel/Config.pm
Restart your webserver and everything should work fine.
PS: You should also use "bin/SetPermissions.sh

Hi Pascal, On Tue, Dec 16, 2003 at 11:53:20PM +0100, Grabe, Pascal wrote:
Hallo,
soweit läuft jetzt OTRS erstmal, bin ganz froh. Kann nur leider keine Tickets erstellen, dann erhalte ich einen Serverfehler 500.
Habe dazu in einem Board gefunden: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Store the plain_article/attachments in database instead of filesystem We added this feature because many people have problems with the file
permission if the webserver user isn't the otrs user. You need to update the following files from CVS:
Kernel/System/Ticket.pm [...] Leider kann ich damit wenig anfangen. Was soll ich mit den *.pm Dateien machen, was mit der sql usw. Tut mir leid, dass ich so nervig bin, verstehe leider aber noch nicht so viel von der Materie und wurde auch noch nicht im Netz fündig.
Du sollst nichts mit den *.pm Dateien machen, da dies ein Patch für OTRS 0.5 ist und in OTRS 1.x schon längst drin ist! Um weiter zu kommen benötigst Du die Info aus Deine Apache error log, da steht der Fehler drin.
Danke!!
Greetings Pascal
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Hier die Passage aus error.log: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++ [Wed Dec 17 00:27:33 2003] null: Use of uninitialized value in split at /opt/otrs//Kernel/System/Ticket/Number/DateChecksum.pm line 53. ERROR: OTRS-CGI-87 Perl: 5.6.1 OS: linux Time: Wed Dec 17 00:27:33 2003 Message: Can't write /opt/otrs/var/log/TicketCounter.log: Permission denied Traceback (4693): Module: Kernel::System::Ticket::Number::DateChecksum::CreateTicketNr (v1.8.2.1) Line: 85 Module: Kernel::Modules::AgentPhone::Run (v1.37) Line: 459 Module: Apache::ROOTwww_2eg_2dlink_2ede::otrs::index_2epl::handler (v1.58) Line: 608 Module: (eval) (v2.01) Line: 143 Module: Apache::Registry::handler (v2.01) Line: 143 [Wed Dec 17 00:27:33 2003] [error] [Wed Dec 17 00:27:33 2003] null: Can't write /opt/otrs/var/log/TicketCounter.log: at /opt/ otrs//Kernel/System/Ticket/Number/DateChecksum.pm line 89. at /opt/otrs/Kernel/cpan-lib/CGI/Carp.pm line 301. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++ TicketCounter.log sieht so aus: total 8 drwxrwsr-x 2 otrs nogroup 4096 Dec 16 17:31 . drwxr-xr-x 10 otrs nogroup 4096 Jul 13 21:31 .. -rwxrwxr-x 1 otrs nogroup 0 Dec 17 00:15 TicketCounter.log Mit freundlichen Grüßen Pascal Grabe

Hi Pascal, On Wed, Dec 17, 2003 at 12:30:52AM +0100, Grabe, Pascal wrote:
Hier die Passage aus error.log: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++ [Wed Dec 17 00:27:33 2003] null: Use of uninitialized value in split at /opt/otrs//Kernel/System/Ticket/Number/DateChecksum.pm line 53. ERROR: OTRS-CGI-87 Perl: 5.6.1 OS: linux Time: Wed Dec 17 00:27:33 2003
Message: Can't write /opt/otrs/var/log/TicketCounter.log: Permission denied [...] TicketCounter.log sieht so aus:
total 8 drwxrwsr-x 2 otrs nogroup 4096 Dec 16 17:31 . drwxr-xr-x 10 otrs nogroup 4096 Jul 13 21:31 .. -rwxrwxr-x 1 otrs nogroup 0 Dec 17 00:15 TicketCounter.log
Da haben wir es ja. Der Webserver kann nicht auf das /opt/otrs/var/log/TicketCounter.log schreiben, ändere die Gruppe auf die Webserver-Gruppe. Beispiel: shell> chgrp www /opt/otrs/var/log/TicketCounter.log shell> chmod 664 /opt/otrs/var/log/TicketCounter.log
Mit freundlichen Grüßen Pascal Grabe
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Martin, Habe auf gruppe www-data geändert, selbst mit chmod 777 geht es nicht, selber Fehler in der /var/log/apache/error.log Mit freundlichen Grüßen Pascal -----Original Message----- From: otrs-de-bounces@otrs.org [mailto:otrs-de-bounces@otrs.org] On Behalf Of Martin Edenhofer Sent: Wednesday, December 17, 2003 12:47 AM To: User questions and discussions about OTRS in German. Subject: Re: [otrs-de] Interner Serverfehler Hi Pascal, On Wed, Dec 17, 2003 at 12:30:52AM +0100, Grabe, Pascal wrote:
Hier die Passage aus error.log:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++ [Wed Dec 17 00:27:33 2003] null: Use of uninitialized value in split at /opt/otrs//Kernel/System/Ticket/Number/DateChecksum.pm line 53. ERROR: OTRS-CGI-87 Perl: 5.6.1 OS: linux Time: Wed Dec 17 00:27:33 2003
Message: Can't write /opt/otrs/var/log/TicketCounter.log: Permission denied [...] TicketCounter.log sieht so aus:
total 8 drwxrwsr-x 2 otrs nogroup 4096 Dec 16 17:31 . drwxr-xr-x 10 otrs nogroup 4096 Jul 13 21:31 .. -rwxrwxr-x 1 otrs nogroup 0 Dec 17 00:15 TicketCounter.log
Da haben wir es ja. Der Webserver kann nicht auf das /opt/otrs/var/log/TicketCounter.log schreiben, ändere die Gruppe auf die Webserver-Gruppe. Beispiel: shell> chgrp www /opt/otrs/var/log/TicketCounter.log shell> chmod 664 /opt/otrs/var/log/TicketCounter.log
Mit freundlichen Grüßen Pascal Grabe
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication! _______________________________________________ OTRS Mailingliste: otrs-de - Webpage: http://otrs.org/ Archiv: http://lists.otrs.org/pipermail/otrs-de/ Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/ Support oder Consulting fuer Ihr OTRS System? => http://www.otrs.de/

Hi Pascal, On Wed, Dec 17, 2003 at 01:00:29AM +0100, Grabe, Pascal wrote:
Habe auf gruppe www-data geändert, selbst mit chmod 777 geht es nicht, selber Fehler in der /var/log/apache/error.log
Dass es mit chmod 777 auch nicht geht, dass kann nicht sein. Bitte check es nochmal.
Mit freundlichen Grüßen Pascal
Martin -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Leider doch: Die Rechte in dem Verzeichnis sehen so aus: ++++++++++++++ ipx20134:/opt/otrs/var/log# ls -al total 8 drw-r--r-- 2 otrs www-data 4096 Dec 16 17:31 . drwxr-xr-x 10 otrs nogroup 4096 Jul 13 21:31 .. -rwxrwxrwx 1 otrs www-data 0 Dec 17 00:15 TicketCounter.log ipx20134:/opt/otrs/var/log# ++++++++++++++ Das error.log sagt noch das: ++++++++++++++ ERROR: OTRS-CGI-87 Perl: 5.6.1 OS: linux Time: Wed Dec 17 01:13:44 2003 Message: Can't write /opt/otrs/var/log/TicketCounter.log: Permission denied Traceback (5485): Module: Kernel::System::Ticket::Number::DateChecksum::CreateTicketNr (v1.8.2.1) Line: 85 Module: Kernel::Modules::AgentPhone::Run (v1.37) Line: 459 Module: Apache::ROOTwww_2eg_2dlink_2ede::otrs::index_2epl::handler (v1.58) Line: 608 Module: (eval) (v2.01) Line: 143 Module: Apache::Registry::handler (v2.01) Line: 143 [Wed Dec 17 01:13:44 2003] [error] [Wed Dec 17 01:13:44 2003] null: Can't write /opt/otrs/var/log/TicketCounter.log: at /opt/ otrs//Kernel/System/Ticket/Number/DateChecksum.pm line 89. at /opt/otrs/Kernel/cpan-lib/CGI/Carp.pm line 301. ++++++++++++++ Und nun??

Grabe, Pascal wrote:
Leider doch: Die Rechte in dem Verzeichnis sehen so aus:
++++++++++++++ ipx20134:/opt/otrs/var/log# ls -al total 8 drw-r--r-- 2 otrs www-data 4096 Dec 16 17:31 . drwxr-xr-x 10 otrs nogroup 4096 Jul 13 21:31 .. -rwxrwxrwx 1 otrs www-data 0 Dec 17 00:15 TicketCounter.log ipx20134:/opt/otrs/var/log# ++++++++++++++
Das error.log sagt noch das:
++++++++++++++ ERROR: OTRS-CGI-87 Perl: 5.6.1 OS: linux Time: Wed Dec 17 01:13:44 2003
Message: Can't write /opt/otrs/var/log/TicketCounter.log: Permission denied
Traceback (5485): Module: Kernel::System::Ticket::Number::DateChecksum::CreateTicketNr (v1.8.2.1) Line: 85 Module: Kernel::Modules::AgentPhone::Run (v1.37) Line: 459 Module: Apache::ROOTwww_2eg_2dlink_2ede::otrs::index_2epl::handler (v1.58) Line: 608 Module: (eval) (v2.01) Line: 143 Module: Apache::Registry::handler (v2.01) Line: 143
[Wed Dec 17 01:13:44 2003] [error] [Wed Dec 17 01:13:44 2003] null: Can't write /opt/otrs/var/log/TicketCounter.log: at /opt/ otrs//Kernel/System/Ticket/Number/DateChecksum.pm line 89. at /opt/otrs/Kernel/cpan-lib/CGI/Carp.pm line 301. ++++++++++++++
Und nun??
braucht er nicht ein +x in das Verzeichnis um da überhaupt rein zu dürfen? versuchs mal sicherheitshalber 777 auf das log-verzeichnis. thomas

Klar, sonst kommt er ja nit in das Verzeichnis, ist ja eigentlich logisch! Geht, habe jetzt Verzeichnis und TicketCounter.log mit 774 versehen, sollte das ein Sicherheitsproblem darstellen? Anders scheint es aber nit zu gehen. So, jetzt mache ich Schluss, morgen bzw nachm Schlafen gehts mit der Konfiguration weiter... Danke an alle! Mit freundlichen Grüßen Pascal Grabe
participants (3)
-
Grabe, Pascal
-
Martin Edenhofer
-
Thomas Seifert