MailAccountFetch-34 No such ServiceID ()!

Moderator: crythias

Post Reply
bddagostino
Znuny newbie
Posts: 13
Joined: 03 Nov 2016, 15:46
Znuny Version: 6.0.29
Real Name: Berardino Davide D'Agostino
Company: CodeArchitects SysOps srl

MailAccountFetch-34 No such ServiceID ()!

Post by bddagostino »

Hello,

i'm getting various error messages :

Time Priority Facility Message
Tue Apr 20 12:40:04 2021 (Europe/Rome) error OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-34 No such ServiceID ()!

But i cannot find a way to understand what's wrong.

is there a more detailed log to read?

OTRS 6.0.29

Thank you
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: MailAccountFetch-34 No such ServiceID ()!

Post by root »

Hi,
bddagostino wrote: 20 Apr 2021, 12:59 i'm getting various error messages :

Time Priority Facility Message
Tue Apr 20 12:40:04 2021 (Europe/Rome) error OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-34 No such ServiceID ()!

But i cannot find a way to understand what's wrong.
My guess it's a postmaster filter with a wrong setting for a service.

bddagostino wrote: 20 Apr 2021, 12:59 is there a more detailed log to read?
You might try communication log.

- 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 ?
bddagostino
Znuny newbie
Posts: 13
Joined: 03 Nov 2016, 15:46
Znuny Version: 6.0.29
Real Name: Berardino Davide D'Agostino
Company: CodeArchitects SysOps srl

Re: MailAccountFetch-34 No such ServiceID ()!

Post by bddagostino »

root wrote: 20 Apr 2021, 15:00 Hi,
bddagostino wrote: 20 Apr 2021, 12:59 i'm getting various error messages :

Time Priority Facility Message
Tue Apr 20 12:40:04 2021 (Europe/Rome) error OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-34 No such ServiceID ()!

But i cannot find a way to understand what's wrong.
My guess it's a postmaster filter with a wrong setting for a service.

bddagostino wrote: 20 Apr 2021, 12:59 is there a more detailed log to read?
You might try communication log.

- Roy
Checked all the postmaster filters and they are ok, same for communication log, all green.
skullz
Znuny superhero
Posts: 618
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: MailAccountFetch-34 No such ServiceID ()!

Post by skullz »

I also agree with roy..check postmaster filter regarding the service..

Perhaps misspelling or white space issues (at end of wording)
bddagostino
Znuny newbie
Posts: 13
Joined: 03 Nov 2016, 15:46
Znuny Version: 6.0.29
Real Name: Berardino Davide D'Agostino
Company: CodeArchitects SysOps srl

Re: MailAccountFetch-34 No such ServiceID ()!

Post by bddagostino »

skullz wrote: 21 Apr 2021, 05:47 I also agree with roy..check postmaster filter regarding the service..

Perhaps misspelling or white space issues (at end of wording)
Checked, no mispelling, no spaces, checked also for case sensitive (Information, information).

But in my filters i only set the following headers:

Code: Select all

X-OTRS-CustomerNO 
X-OTRS-CustomerUser
X-OTRS-Queue
X-OTRS-State
X-OTRS-Type
The X-OTRS-Service is never set in the email header, does it to be set to avoid the error message?

Thanks.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: MailAccountFetch-34 No such ServiceID ()!

Post by root »

Hi,

There should be more details in the related entry from the communication log.

- 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 ?
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: MailAccountFetch-34 No such ServiceID ()!

Post by zzz »

Hey,

No, you don't need to set it. Check the error log of your web server for a better error traceback.
You can also take a look at the communication protocol entry of the mail that is triggering the message (if it's getting triggered by a mail and not by FetchMail in general).

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
bddagostino
Znuny newbie
Posts: 13
Joined: 03 Nov 2016, 15:46
Znuny Version: 6.0.29
Real Name: Berardino Davide D'Agostino
Company: CodeArchitects SysOps srl

Re: MailAccountFetch-34 No such ServiceID ()!

Post by bddagostino »

zzz wrote: 21 Apr 2021, 14:51 Hey,

No, you don't need to set it. Check the error log of your web server for a better error traceback.
You can also take a look at the communication protocol entry of the mail that is triggering the message (if it's getting triggered by a mail and not by FetchMail in general).

Best regards
Emin
Hello, the errorlog of the apache is clear, the communication log also green.

EDIT: Using the

Code: Select all

bin/otrs.Console.pl Maint::PostMaster::MailAccountFetch --debug
i found that the error is being generating when the email is received:

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-34 Perl: 5.26.1 OS: linux Time: Thu Apr 22 12:02:07 2021

 Message: No such ServiceID ()!

 Traceback (65889):
   Module: Kernel::System::Service::ServiceGet Line: 538
   Module: Kernel::System::PostMaster::NewTicket::Run Line: 280
   Module: Kernel::System::PostMaster::Run Line: 433
   Module: (eval) Line: 391
   Module: Kernel::System::MailAccount::IMAPTLS::_Fetch Line: 390
   Module: Kernel::System::MailAccount::IMAPTLS::Fetch Line: 92
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 566
   Module: (eval) Line: 172
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 164
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 80
   Module: bin/otrs.Console.pl Line: 36

[Thu Apr 22 12:02:07 2021] otrs.Console.pl: Use of uninitialized value $ServiceData{"ServiceID"} in string ne at /opt/otrs/Kernel/System/PostMaster/NewTicket.pm line 289.
maybe i have to upgrade the OTRS version?

Thank you.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: MailAccountFetch-34 No such ServiceID ()!

Post by root »

Hi bddagostino ,

Upgrading is always a good idea if there are security issues with your current version.

But I doubt this will fix this issue. Did you check the Communication Log for this e-mail if there are services used?

- 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 ?
bddagostino
Znuny newbie
Posts: 13
Joined: 03 Nov 2016, 15:46
Znuny Version: 6.0.29
Real Name: Berardino Davide D'Agostino
Company: CodeArchitects SysOps srl

Re: MailAccountFetch-34 No such ServiceID ()!

Post by bddagostino »

root wrote: 22 Apr 2021, 12:16 Hi bddagostino ,

Upgrading is always a good idea if there are security issues with your current version.

But I doubt this will fix this issue. Did you check the Communication Log for this e-mail if there are services used?

- Roy
hello, as the printscreen attached i have no error in communication log in the last 24 hours.

But the error seems clear

Code: Select all

[Thu Apr 22 12:02:07 2021] otrs.Console.pl: Use of uninitialized value $ServiceData{"ServiceID"} in string ne at /opt/otrs/Kernel/System/PostMaster/NewTicket.pm line 289.
he's having issues with the serviceID when trying to create a new ticket.

Is there something i can check to understand why this is happening?

Thanks.
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: MailAccountFetch-34 No such ServiceID ()!

Post by root »

Hi,
bddagostino wrote: 22 Apr 2021, 12:31 hello, as the printscreen attached i have no error in communication log in the last 24 hours.
I asked for checking the related log entry, not if there is an error shown. The entry contains details on all executed filters. A wrong service setting is not a communiction error.
bddagostino wrote: 22 Apr 2021, 12:31 Is there something i can check to understand why this is happening?
You really want me to repeat it?

- 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 ?
skullz
Znuny superhero
Posts: 618
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: MailAccountFetch-34 No such ServiceID ()!

Post by skullz »

Others place i would take a look at system configuration > PostMaster::PreFilterModule###
bddagostino
Znuny newbie
Posts: 13
Joined: 03 Nov 2016, 15:46
Znuny Version: 6.0.29
Real Name: Berardino Davide D'Agostino
Company: CodeArchitects SysOps srl

Re: MailAccountFetch-34 No such ServiceID ()!

Post by bddagostino »

Checked the communication log, was setting a value for a wrong header.

Thank you.
Post Reply