"No such user" nach update auf 4.0.8

Hilfe zu OTRS Problemen aller Art
Post Reply
Nima
Znuny newbie
Posts: 8
Joined: 18 Nov 2013, 11:40
Znuny Version: 4.0.8

"No such user" nach update auf 4.0.8

Post by Nima »

Hallo allerseits,

ich habe im Forum leider nichts passendes zu meinem Problem gefunden, deshalb ein neues Thema.

Seit dem Update auf 4.0.8 schickt der cron permanent Fehler Emails. Bei "xxxxx" steht immer die E-Mail adresse vom jeweiligen Kunden.

Bitte um Hilfestellung. Danke!

/edit: mit 4.0.7 lief alles einwandfrei.

----------------------------------------------

[Wed Jun 3 08:30:02 2015] otrs.PostMasterMailbox.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 197.
ERROR: OTRS-otrs.PostMasterMailbox.pl-10 Perl: 5.10.1 OS: linux Time: Wed Jun 3 08:30:02 2015

Message: No such user 'xxxxx'!

Traceback (17892):
Module: Kernel::System::CustomerUser::GetPreferences Line: 611
Module: Kernel::System::TemplateGenerator::AutoResponse Line: 585
Module: Kernel::System::Ticket::Article::SendAutoResponse Line: 3189
Module: Kernel::System::Ticket::Article::ArticleCreate Line: 453
Module: Kernel::System::PostMaster::NewTicket::Run Line: 428
Module: Kernel::System::PostMaster::Run Line: 368
Module: Kernel::System::MailAccount::POP3::Fetch Line: 216
Module: Kernel::System::MailAccount::MailAccountFetch Line: 441
Module: main::Fetch Line: 171
Module: /opt/otrs/bin/otrs.PostMasterMailbox.pl Line: 85
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: "No such user" nach update auf 4.0.8

Post by Rooobaaat »

Hast du eventuell den root@localhost umbenannt bzw deaktiviert?
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
Nima
Znuny newbie
Posts: 8
Joined: 18 Nov 2013, 11:40
Znuny Version: 4.0.8

Re: "No such user" nach update auf 4.0.8

Post by Nima »

Nein, mit 4.0.7 lief alles einwandfrei, danach nur das Update per rpm eingespielt.

Hat sonst keiner eine Idee ?
mettlerr
Znuny newbie
Posts: 11
Joined: 09 Sep 2010, 10:55
Znuny Version: 5.0.6
Real Name: Roland Mettler

Re: "No such user" nach update auf 4.0.8

Post by mettlerr »

Hallo zusammen

Würde mich auch interessieren was hier falsch läuft, ich habe dasselbe Problem auch seit ich auf 4.0.8 updated habe, und habe an der Config oder am System nichts geändert.

Gruss, Roli
OTRS: 5.0.6
OS: RedHat 6
Apache2/MySQL 5
Nima
Znuny newbie
Posts: 8
Joined: 18 Nov 2013, 11:40
Znuny Version: 4.0.8

Re: "No such user" nach update auf 4.0.8

Post by Nima »

Ich bin bisher noch nicht dazugekommen, mir nochmal 4.0.7 anzuschauen.

Problem ist aufjedenfall hier:

/otrs/Kernel/System/CustomerUser.pm

Öffne die Datei mit einem Editor, dann in der Funktion GetPreferences ab Zeile 611-614 auskommentieren.

Ich weiss nicht, warum OTRS an dieser Stelle eine E-Mail schickt, jedenfalls soll dort nur das Logging aktiv sein.
Wollen wir mal hoffen, dass der Fehler bei 4.0.9 gefixt wird, auch, wenn sich hier anscheind niemand dafür interessiert.

# check if user exists
my %User = $Self->CustomerUserDataGet( User => $Param{UserID} );
if ( !%User ) {
# $Kernel::OM->Get('Kernel::System::Log')->Log(
# Priority => 'error',
# Message => "No such user '$Param{UserID}'!",
# );
return;
}
mettlerr
Znuny newbie
Posts: 11
Joined: 09 Sep 2010, 10:55
Znuny Version: 5.0.6
Real Name: Roland Mettler

Re: "No such user" nach update auf 4.0.8

Post by mettlerr »

Besten Dank für den Tipp, werde ich so bald wie möglich ausprobieren.

Ich habe gerade in meinem 4.0.7 geschaut, und da ist der erwähnte Code-Block identisch mit dem aus 4.0.8 den es abzuändern gilt. Die Ursache wird wohl irgendwo anders liegen, auch wenn diese Änderung das Problem behebt.

Falls ich was entdecke, melde ich mich ebenfalls wieder.
OTRS: 5.0.6
OS: RedHat 6
Apache2/MySQL 5
Nima
Znuny newbie
Posts: 8
Joined: 18 Nov 2013, 11:40
Znuny Version: 4.0.8

Re: "No such user" nach update auf 4.0.8

Post by Nima »

Dann könnte der Hund in CustomerUserDataGet begraben sein.

Könntest du bitte diese Dateien gegen die Dateien aus 4.0.7 mit diff prüfen ?

Kernel/System/CustomerUser.pm:sub CustomerUserDataGet {
Kernel/System/CustomerUser/DB.pm:sub CustomerUserDataGet {
Kernel/System/CustomerUser/LDAP.pm:sub CustomerUserDataGet {

Danke :)
denydias
Znuny newbie
Posts: 49
Joined: 13 Jul 2014, 02:12
Znuny Version: 5.x.x

Re: "No such user" nach update auf 4.0.8

Post by denydias »

Hello,

I'm sorry to invade a topic from German speakers writing in English. I don't know how to write in German.

This was the only topic I found on this regression for 4.0.8. I have commented the GetPreferences function bits as pointed out by @Nima and the error was gone for now. I agree with @mettlerr that the error comes from other place, although the change does indeed get rid of it.

So, I just want to follow up with you. Let's hope it get fixed in 4.0.9 and OTRS get back to work fine as it used to do in 4.0.7.

Best wishes from Brazil.
mettlerr
Znuny newbie
Posts: 11
Joined: 09 Sep 2010, 10:55
Znuny Version: 5.0.6
Real Name: Roland Mettler

Re: "No such user" nach update auf 4.0.8

Post by mettlerr »

Thanks denydias for the confirmation that the fix works.

@Nima: Ich warte noch auf einen günstigen Moment (Wartungsfenster) um den Update nochmals zu versuchen, dann kann ich dir die Diffs senden. Es scheint aber, als hätte OTRS mittlerweile 4.0.9 rausgebracht. Siehe dazu FTP server von OTRS. Eventuell ist das Problem ja da behoben? Es gibt noch keine Release-Notes auf der Webpage von OTRS, wohl weil 4.0.9 erst seit gestern draussen ist...
OTRS: 5.0.6
OS: RedHat 6
Apache2/MySQL 5
Nima
Znuny newbie
Posts: 8
Joined: 18 Nov 2013, 11:40
Znuny Version: 4.0.8

Re: "No such user" nach update auf 4.0.8

Post by Nima »

I will continue writing in english.

I just performed the update to 4.0.9 and the problem still exists. I got 3 emails regarding non existing users yet.

During the update I also checked the diffs between 4.0.7 and 4.0.8 but the suspect function has not been changed in those files meaning the problem
is somewhere deeper in otrs. From my current point of view this only happens if someone "new" sends an email to your ticketsystem.

Unfortunately I do not have much time to check this further but I will leave 4.0.9 in it's original state as for now and will do further reports.
Nima
Znuny newbie
Posts: 8
Joined: 18 Nov 2013, 11:40
Znuny Version: 4.0.8

Re: "No such user" nach update auf 4.0.8

Post by Nima »

short update: As written before 4.0.9 still has this bug. I will turn off the notifications as I posted before as these are quite annoying.

I also just found this bug which has been reported to otrs's bugzilla on 2015-05-15.

http://bugs.otrs.org/show_bug.cgi?id=11295

Let's hope that it will be fixed in 4.0.10 ;)
denydias
Znuny newbie
Posts: 49
Joined: 13 Jul 2014, 02:12
Znuny Version: 5.x.x

Re: "No such user" nach update auf 4.0.8

Post by denydias »

Hello, Nima et all!

It's sad this keeps happening in 4.0.9. But I'm glad someone had a bit more initiative than me to open a bug up for this at the chocolate factory. I had filled a new comment in that bug report to help it gain momentum for a fix. Maybe all of you can do the same.

I think I'll just pass 4.0.9 update and wait for 4.0.10 to see if this is going to get properly fixed.

Best wishes,
Nima
Znuny newbie
Posts: 8
Joined: 18 Nov 2013, 11:40
Znuny Version: 4.0.8

Re: "No such user" nach update auf 4.0.8

Post by Nima »

Though it's not announced yet, 4.0.11 is online. I just updated to 4.0.11 and will keep you updated if this bug is resolved - but I highly assume this.
Post Reply