[GELÖST] Parameter 'Config' must be a hash ref with data!

Hilfe zu OTRS Problemen aller Art
Post Reply
OTRSsuperNOOB
Znuny newbie
Posts: 25
Joined: 05 Feb 2020, 07:49
Znuny / OTRS Version: 6.2.1
Real Name: Ines M.

[GELÖST] Parameter 'Config' must be a hash ref with data!

Post by OTRSsuperNOOB »

Hallo in die Runde.

Neuer Fehler am heutigen Tag:
"OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerGenericAgentTaskManager-54 | Parameter 'Config' must be a hash ref with data!"

ps: Sind die Fehler durch das Update gekommen oder hat der eigentliche Admin die Wartung etwas schleifen lassen? :-|
Last edited by OTRSsuperNOOB on 24 Nov 2021, 09:55, edited 1 time in total.
reneeb
Znuny guru
Posts: 4964
Joined: 13 Mar 2011, 09:54
Znuny / OTRS Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Parameter 'Config' must be a hash ref with data!

Post by reneeb »

Das scheint eine Meldung bzgl. eines Dynamischen Feldes zu sein. Schau mal, ob in irgendeinem Log mehr steht als nur die eine Zeile.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
OTRSsuperNOOB
Znuny newbie
Posts: 25
Joined: 05 Feb 2020, 07:49
Znuny / OTRS Version: 6.2.1
Real Name: Ines M.

Re: Parameter 'Config' must be a hash ref with data!

Post by OTRSsuperNOOB »

Hallo Reneeb,

wie komme ich an die Loggs bzw wo wird es geloggt?
reneeb
Znuny guru
Posts: 4964
Joined: 13 Mar 2011, 09:54
Znuny / OTRS Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Parameter 'Config' must be a hash ref with data!

Post by reneeb »

In der Systemkonfiguration gibt es unter Core -> Log verschiedene Einstellungen. Schau mal, was da als Modul eingestellt ist (*::File oder *::SysLog). Wenn ::File, dann musst Du in die Datei schauen, die unter LogModule::LogFile eingestellt wird, ansonsten in Dein Systemlog.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
OTRSsuperNOOB
Znuny newbie
Posts: 25
Joined: 05 Feb 2020, 07:49
Znuny / OTRS Version: 6.2.1
Real Name: Ines M.

Re: Parameter 'Config' must be a hash ref with data!

Post by OTRSsuperNOOB »

Danke, habs gefunden. Nur der Inhalt sagt mir auch nichts :(
Inhalt ist:

Code: Select all

[Fri Nov 19 09:05:07 2021][Error][Kernel::System::DynamicField::_SanitizeConfig][1728] Parameter 'Config' must be a hash ref with data!
reneeb
Znuny guru
Posts: 4964
Joined: 13 Mar 2011, 09:54
Znuny / OTRS Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Parameter 'Config' must be a hash ref with data!

Post by reneeb »

Mach mal im Adminbereich in der SQL Box folgendes:
SELECT name, config FROM dynamic_field

Dann schau Dir die Config-Spalte an, ob Dir dort was auffällt...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
OTRSsuperNOOB
Znuny newbie
Posts: 25
Joined: 05 Feb 2020, 07:49
Znuny / OTRS Version: 6.2.1
Real Name: Ines M.

Re: Parameter 'Config' must be a hash ref with data!

Post by OTRSsuperNOOB »

Auffällig, naja evtl. TicketFreeText3 & 4

Code: Select all

TicketFreeKey1 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText1 	--- TranslatableValues: '1'
TicketFreeKey2 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText2 	--- TranslatableValues: '1'
TicketFreeText3 	--- {}
TicketFreeText4 	--- {}
TicketFreeText5 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText6 	--- DefaultValue: ~ PossibleValues: '': Nein Ja: Ja
TicketFreeKey7 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText7 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeKey8 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText8 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeKey9 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText9 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeKey10 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText10 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeKey11 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText11 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeKey12 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText12 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeKey13 	--- DefaultValue: ~ PossibleValues: ~
ITSMCriticality 	--- DefaultValue: '' Link: '' PossibleNone: 1 PossibleValues: 1 very low: 1...
Telefonnummer 	--- DefaultValue: '' Link: ''
TicketFreeText14Old 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeKey15 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText15Old 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeKey16 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeText16Old 	--- DefaultValue: ~ PossibleValues: ~
TicketFreeTime1 	--- DefaultValue: ~
TicketFreeTime2 	--- DefaultValue: ~
ITSMRepairStartTime 	--- DefaultValue: '0' Link: '' YearsInFuture: '5' YearsInPast: '5' YearsPerio...
ITSMRecoveryStartTime 	--- DefaultValue: '0' Link: '' YearsInFuture: '5' YearsInPast: '5' YearsPerio...
ITSMDecisionDate 	--- DefaultValue: '0' Link: '' YearsInFuture: '5' YearsInPast: '5' YearsPerio...
ITSMDueDate 	--- DefaultValue: '259200' Link: '' YearsInFuture: '1' YearsInPast: '9' Years...
ArticleFreeKey1 	--- DefaultValue: ~ PossibleValues: ~
ArticleFreeText1 	--- TranslatableValues: '1'
ArticleFreeKey2 	--- DefaultValue: ~ PossibleValues: ~
ArticleFreeText2 	--- DefaultValue: ~ PossibleValues: ~
ArticleFreeKey3 	--- DefaultValue: ~ PossibleValues: ~
ArticleFreeText3 	--- DefaultValue: ~ PossibleValues: ~
ITSMImpact 	--- DefaultValue: 3 normal Link: '' PossibleNone: 1 PossibleValues: 1 very ...
ITSMReviewRequired 	--- DefaultValue: No Link: '' PossibleNone: '0' PossibleValues: No: No Ye...
ITSMDecisionResult 	--- DefaultValue: Pending Link: '' PossibleNone: '1' PossibleValues: Approv...
ProcessManagementProcessID 	--- DefaultValue: ''
ProcessManagementActivityID 	--- DefaultValue: ''
AmtAuswahl 	--- DefaultValue: '' Link: '' PossibleNone: '1' PossibleValues: Amt_10: Amt...
OsAuswahl 	--- DefaultValue: '' Link: '' LinkPreview: '' PossibleNone: '0' PossibleValue...
Aufgabe 	--- DefaultValue: '' Link: '' LinkPreview: '' PossibleNone: '0' PossibleValue...
PCName 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
EDVNummer 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
USMLizenzFreigegeben 	--- DefaultValue: '0'
AD 	--- DefaultValue: '0'
GData 	--- DefaultValue: '0'
OPSI 	--- DefaultValue: '0'
Inventar 	--- DefaultValue: '0'
HDDAusgebaut 	--- DefaultValue: '0'
InvNR 	--- DefaultValue: '0'
SerNR 	--- DefaultValue: '0'
UMSGeraet 	--- DefaultValue: '0'
VerschrottungMelden 	--- DefaultValue: '0'
VMBetriebssystem 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMProzessorkerne 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMCoreJeCPU 	--- DefaultValue: '1' Link: '' LinkPreview: '' RegExList: []
VMArbeitsspeicher 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMSpeicherkapazitaet 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMNetzwerkadapter 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMNetzwerkadresse 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMHostname 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMHostnameFQDN 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMLizenz 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMUpdateeinstellungen 	--- DefaultValue: '' Link: '' LinkPreview: '' PossibleNone: '0' PossibleValue...
VMUpdateeinstellungenGrund 	--- Cols: '' DefaultValue: '' RegExList: [] Rows: ''
VMDaSi 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMNagios 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMZusatz 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
VMBereitstellungsDatum 	--- DateRestriction: '' DefaultValue: '1209600' Link: '' LinkPreview: '' Year...
PersonalMeldungArt 	--- DefaultValue: '' Link: '' LinkPreview: '' PossibleNone: '0' PossibleValue...
PersonalKVNummer 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: - ErrorMessage: Bitt...
PersonalVorname 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: - ErrorMessage: Bitt...
PersonalNachname 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: - ErrorMessage: Bitt...
PersonalEMail 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: - ErrorMessage: Gült...
PersonalBeruf 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
PersonalSonstiges 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
Amt 	--- DefaultValue: '' Link: '' LinkPreview: '' PossibleNone: '0' PossibleValue...
BeschaffungBestellungTitel 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
BeschaffungNettoSumme 	--- DefaultValue: '' Link: '' LinkPreview: '' PossibleNone: '0' PossibleValue...
BeschaffungKlTeilListe 	--- DefaultValue: '0'
BeschaffungBudgetklaerung 	--- DefaultValue: '0'
BeschaffungBudgetreservierung 	--- DefaultValue: '0'
BeschaffungBestellungausgeloesst 	--- DefaultValue: '0'
BeschaffungBestellKopie 	--- DefaultValue: '0'
BeschaffungArtDerAusgabe 	--- DefaultValue: '' Link: '' LinkPreview: '' PossibleNone: '0' PossibleValue...
BeschaffungProdukt 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: - ErrorMessage: Nur ...
BeschaffungKonto 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: - ErrorMessage: Nur ...
BeschaffungBudgetVorhanden 	--- DefaultValue: '0'
BeschaffungDreiAngebote 	--- DefaultValue: '0'
BeschaffungAngebotPruefen 	--- DefaultValue: '0'
BeschaffungVergabevorschlagErstellt 	--- DefaultValue: '0'
BeschaffungAuftragErstellen 	--- DefaultValue: '0'
BeschaffungMailLanghoff 	--- DefaultValue: '0'
BeschaffungAuftragsStatusDoku 	--- DefaultValue: '0'
BeschaffungEDVNrVergeben 	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: - ErrorMessage: Nur ...
BeschaffungAmtPersonZuordnen 	--- DefaultValue: '0'
BeschaffungStatusBestellt 	--- DefaultValue: '0'
TicketCalendarStartTime 	--- DateRestriction: '' DefaultValue: 0 Link: '' LinkPreview: '' YearsInFutur...
TicketCalendarEndTime 	--- DateRestriction: '' DefaultValue: 0 Link: '' LinkPreview: '' YearsInFutur...
Technikanfrage 	--- DefaultValue: '' Link: '' LinkPreview: '' PossibleNone: '0' PossibleValue...
ProcessManagementAttachment 	--- DefaultValue: '' 
reneeb
Znuny guru
Posts: 4964
Joined: 13 Mar 2011, 09:54
Znuny / OTRS Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Parameter 'Config' must be a hash ref with data!

Post by reneeb »

Am besten mal die beiden Dynamischen Felder zum Bearbeiten öffnen und wieder speichern
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
tpsupport
Znuny newbie
Posts: 74
Joined: 02 Feb 2011, 14:45
Znuny / OTRS Version: 6.0.12

Re: Parameter 'Config' must be a hash ref with data!

Post by tpsupport »

Hey everyone!

Since updating from Znuny 6.0.36 to 6.0.38 I experience the same error in my logs every time I just run "/bin/otrs.Console.pl Maint::Cache::Delete".
According to the Changelog there have been some changes regarding Dynamic Fields in 6.0.37. https://github.com/znuny/Znuny/blob/rel-6_0/CHANGES.md
Will be testing with downgrading to 6.0.36 and upgrading to 6.0.37 to see if this is the root cause.


Here is the output for 'SELECT name, config FROM dynamic_field'

Code: Select all

ProcessManagementProcessID	--- DefaultValue: ''
ProcessManagementActivityID	--- DefaultValue: ''
TicketFreeText1	--- TranslatableValues: '1'
TicketFreeText2	--- TranslatableValues: '1'
ArticleFreeText1	--- TranslatableValues: '1'
ArticleNote	--- DefaultValue: ''
ITSMCriticality	--- DefaultValue: '' Link: '' PossibleNone: 1 PossibleValues: 1 very low: 1...
ITSMImpact	--- DefaultValue: 3 normal Link: '' PossibleNone: 1 PossibleValues: 1 very ...
ITSMReviewRequired	--- DefaultValue: No Link: '' PossibleNone: 0 PossibleValues: No: No Yes:...
ITSMDecisionResult	--- DefaultValue: Pending Link: '' PossibleNone: 1 PossibleValues: Approved...
ITSMRepairStartTime	--- DefaultValue: 0 Link: '' YearsInFuture: 5 YearsInPast: 5 YearsPeriod: 1
ITSMRecoveryStartTime	--- DefaultValue: 0 Link: '' YearsInFuture: 5 YearsInPast: 5 YearsPeriod: 1
ITSMDecisionDate	--- DefaultValue: 0 Link: '' YearsInFuture: 5 YearsInPast: 5 YearsPeriod: 1
ITSMDueDate	--- DateRestriction: '' DefaultValue: 0 Link: '' LinkPreview: '' YearsInFutur...
MasterSlave	--- DefaultValue: '' PossibleNone: 1 TranslatableValues: 1
serverlist	--- AgentLink: https://portal.abc.net/index.cfm?fuseaction=appSys...
Recipients	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
NotifyBcc	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
ContractUntil	--- DateRestriction: '' DefaultValue: '0' Link: '' LinkPreview: '' YearsInFut...
CustomerDomains	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: - ErrorMessage: The ...
TargetQueue	--- DefaultValue: '' Link: '' LinkPreview: '' PossibleNone: '0' PossibleValue...
TimeAccounted	--- DefaultValue: '0' Link: '' LinkPreview: '' RegExList: []
DoceboTicket	--- DefaultValue: '' Link: https://hp.zendesk.com/hc/en-us/requests/[% Da...
PreProcApplicationRecorded	--- DefaultValue: '' PossibleNone: '1' PossibleValues: no: no yes: yes Tr...
PreProcDaysRemaining	--- {}
PreProcVacationStart	--- DateRestriction: DisablePastDates
PreProcVacationEnd	--- DateRestriction: DisablePastDates
PreProcDaysUsed	--- {}
PreProcEmergencyTelephone	--- {}
PreProcRepresentationBy	--- Cols: '80' Rows: '10'
PreProcProcessStatus	--- {}
PreProcApprovedSuperior	--- DefaultValue: '' PossibleNone: '1' PossibleValues: no: no yes: yes Tr...
PreProcVacationInfo	--- Cols: '80' Rows: '10'
TicketTimeAccounted	--- DefaultValue: '' Link: '' LinkPreview: '' RegExList: []
OTRS 6 - Ubuntu 16.04 x64, Azure Database for MySQL server 5.7, Perl 5.22.1, Apache/2.4.18
tpsupport
Znuny newbie
Posts: 74
Joined: 02 Feb 2011, 14:45
Znuny / OTRS Version: 6.0.12

Re: Parameter 'Config' must be a hash ref with data!

Post by tpsupport »

Possibly found the change that's now leading to the error, _SanitizeConfig() has been introduced in the following change in 6.0.37

2021-09-27 JavaScript in the error message of regular expression checks for dynamic field values now will be removed instead of being executed when showing the error message. Thanks to Stefan Härter (OTOBO) for reporting the issue.
https://github.com/znuny/Znuny/commit/5 ... f3deb725fb
OTRS 6 - Ubuntu 16.04 x64, Azure Database for MySQL server 5.7, Perl 5.22.1, Apache/2.4.18
OTRSsuperNOOB
Znuny newbie
Posts: 25
Joined: 05 Feb 2020, 07:49
Znuny / OTRS Version: 6.2.1
Real Name: Ines M.

[LÖSUNG] Re: Parameter 'Config' must be a hash ref with data!

Post by OTRSsuperNOOB »

reneeb wrote: 22 Nov 2021, 12:58 Am besten mal die beiden Dynamischen Felder zum Bearbeiten öffnen und wieder speichern
Sieht ersteinmal sehr gut aus.
Hab alle dynamischen Felder bei den nur "DefaultValue: ~ PossibleValues: ~" oder "DefaultValue: ''"" neu gespeichert.
Mehr werde ich die nächsten Stunden/Tage feststellen können.
tpsupport
Znuny newbie
Posts: 74
Joined: 02 Feb 2011, 14:45
Znuny / OTRS Version: 6.0.12

Re: [GELÖST] Parameter 'Config' must be a hash ref with data!

Post by tpsupport »

Problem in my case are the Dynamic Fields created by Process Management. See https://github.com/znuny/Znuny/issues/173.
Opening and saving Dynamic Fields once will most probably resolve the problem when there is a 'Parameter 'Config' must be a hash ref with data!' error.
OTRS 6 - Ubuntu 16.04 x64, Azure Database for MySQL server 5.7, Perl 5.22.1, Apache/2.4.18
Post Reply