Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Hilfe zu OTRS Problemen aller Art
Post Reply
radioalex
Znuny newbie
Posts: 6
Joined: 18 Jul 2023, 14:05
Znuny Version: 6.0.48
Real Name: Alexander Dudko
Company: MPIAGE

Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by radioalex »

Hallo zusammen,

zunächst vielen Dank an alle entwickler für die großartige Arbeit!!!
Ich versuche unser Znuny von 6.0.48 auf 6.5.2 oder 6.5.3 upzudaten, gehe über 6.1, 6.2, 6.3 und 6.4 nach der Anleitung https://doc.znuny.org/znuny_lts/release ... e-6.5.html
Nach dem Update von 6.4.4. auf 6.5.2 oder 6.5.3 habe ich folgendes Problem:
Ich kann keine neue Tickets über Tickets--> Neues E-Mail Ticket erstellen. Die Ticket Maske wird geöffnet, nach dem E-Mail Übermitteln erscheint im Browser "Internal Server Error". Dabei wird in /var/log/httpd/error_log folgendes protokoliert:
[Tue Jul 18 12:24:38.282704 2023] [:error] [pid 5144:tid 5144] Can't locate object method "ArticleSend" via package "Kernel::System::Ticket" at /opt/otrs/Kernel/Modules/AgentTicketEmail.pm line 1338.\n

Rocky Linux 9.2, Perl v5.32.1, SELINUX=permissive

Herr Dr, Google hilft mir diesmal leider nicht...
root
Administrator
Posts: 3969
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by root »

Hallo,

nach dem Update auf jeden Fall den Webserver neu starten. Ansonsten wäre eine Liste der Addons (Screenshot) hilfreiche.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
radioalex
Znuny newbie
Posts: 6
Joined: 18 Jul 2023, 14:05
Znuny Version: 6.0.48
Real Name: Alexander Dudko
Company: MPIAGE

Re: Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by radioalex »

Hi Roy,

danke für die Info. Die Liste von Addons ist in der Anlage. Es sollte aber nicht daran liegen - ich habe gerade alle Addons (inklusive ITSM, GeneralCatalog, FAQ usw) deinstalliert, httpd neu gestartet, das Problem bleibt...
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 3969
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by root »

Hi,

zwei Punkte habe ich noch:

1.) Ist es eine RPM Installation?
2.) Einmal bitte /opt/otrs/Kernel/Modules/AgentTicketEmail.pm* ausführen und das Ergebnis hier posten

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
radioalex
Znuny newbie
Posts: 6
Joined: 18 Jul 2023, 14:05
Znuny Version: 6.0.48
Real Name: Alexander Dudko
Company: MPIAGE

Re: Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by radioalex »

1) Ja. Vielleicht etwas mehr Info würde nicht schaden... Auf der produktiven VM (centos 7, RPM installation 6.0.48) wurde mit dem backup.pl Script gesichert, auf der Test VM (Rocky 9.2, neu aufgesetzt, 6.0.48 Installiert) mit restore.pl wiederhergestellt. Weitere updates (auf 6.1.x, 6.2.x, 6.3.x 6.4.x) waren ohne Probleme. UPdate auf 6.5.2 oder 6.5.3 zeigt auch keine Probleme.

2)

Code: Select all

perl AgentTicketEmail.pm
Can't locate Mail/Address.pm in @INC (you may need to install the Mail::Address module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at AgentTicketEmail.pm line 15.
BEGIN failed--compilation aborted at AgentTicketEmail.pm line 15.

#Mail::Address installert, um damit auszuprobieren
yum install "perl(Mail::Address)"

perl AgentTicketEmail.pm
Can't locate Kernel/System/VariableCheck.pm in @INC (you may need to install the Kernel::System::VariableCheck module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at AgentTicketEmail.pm line 17.
BEGIN failed--compilation aborted at AgentTicketEmail.pm line 17.
Kernel::System::VariableCheck konnte ich weder yum, noch mit cpan oder cpanm installieren...
root
Administrator
Posts: 3969
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by root »

Hallo,

mein Fehler, es sollte eigentlich

ls -l /opt/otrs/Kernel/Modules/AgentTicketEmail.pm*

heissen.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
radioalex
Znuny newbie
Posts: 6
Joined: 18 Jul 2023, 14:05
Znuny Version: 6.0.48
Real Name: Alexander Dudko
Company: MPIAGE

Re: Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by radioalex »

Code: Select all

 ls -l AgentTicketEmail.pm*
-rw-rw----. 1 otrs   apache  99151 Jan 14  2016 AgentTicketEmail.pm
-rw-rw----. 1 apache apache 125589 Jul 18 12:01 AgentTicketEmail.pm.custom_backup
root
Administrator
Posts: 3969
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by root »

Hi,

in der Kombination RPM udn ITSM gibt es manchmal Chaos das der Paketmanager nicht fixen kann.
Schau Dir mal das Datum der beiden Dateien an. AgentTicketEmail.pm ist die alte, AgentTicketEmail.pm.custom_backup sicherlich die neue.
Kopiere einfach mal AgentTicketEmail.pm.customer_back über AgentTicketEmail.pm und dann sollte es passen.

Weitere, mögliche Probleme findest du mit dem Befehl
find /opt/otrs -type f -name \*.custom_backup

Auch da mal das Alter prüfen und ggf. tauschen. Danach können die ganzen .custom_backup Dateien auch weg.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
radioalex
Znuny newbie
Posts: 6
Joined: 18 Jul 2023, 14:05
Znuny Version: 6.0.48
Real Name: Alexander Dudko
Company: MPIAGE

Re: Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by radioalex »

Vielen vielen Dank! Das hat sofort geholfen!

Für andere User, die vielleicht die nach der Lösung für das gleiche Problem suchen
die Datei /opt/otrs/Kernel/Modules/AgentTicketZoom.pm soll weg (ich habe die gesichert, falls ich die irgendwann wieder brauche)
mv /opt/otrs/Kernel/Modules/AgentTicketZoom.pm.custom_backup /opt/otrs/Kernel/Modules/AgentTicketZoom.pm
möglichwerweise den Owner von AgentTicketZoom.pm mit chown anpassen, bei mir war apache der owner, sollte aber otrs der owner sein
Restart Webserver
radioalex
Znuny newbie
Posts: 6
Joined: 18 Jul 2023, 14:05
Znuny Version: 6.0.48
Real Name: Alexander Dudko
Company: MPIAGE

Re: Update auf 6.5.2 (3) Can't locate object method "ArticleSend" via package "Kernel::System::Ticket"

Post by radioalex »

Thanks again for the great product and your help with our problems!

I had also other problems (browser send error if i opend a new phone ticket, something more I don't remember) after update and could solve them this way:
I downloaded https://download.znuny.org/releases/znu ... 6.5.tar.gz, took the files from there and replaced them in /opt/otrs/Kernel/Module
After that i ran Set Permisions script.

But one problem I can't solve:
Tickets--> Queue view - if I select M or L Size and click on any queue, I get "internal server error". But if I chose s-size, everything is working fine.
There no logs, that znuny stores at that moment. I also deleted all Packages, it doesn't help... I had this problem after update from 6.4.4 to 6.5.3

Do you have any idea, what should I check?
Post Reply