[GELÖST] No existing template directory found

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

[GELÖST] No existing template directory found

Post by OTRSsuperNOOB »

Hallo Ihr Lieben,

seit geraumer Zeit habe ich in den Logs den Fehler
"OTRS-CGI-54 | No existing template directory found ('/opt/otrs/Kernel/Output/HTML/Templates/OPR')!." und
"OTRS-CGI-54 | No existing template directory found ('/opt/otrs/Kernel/Output/JavaScript/Templates/OPR')!.".

Bereitsversucht:
  • in der Konfig "/opt/otrs/Kernel/config/Files/ZZZAAuto.pm" steht nichts von "OPR" -> $Self->{'Frontend::Themes'} = { };
  • Im Verzeichnis Tamplates befindet sich lediglich ein Ordner "Standard"
Für hielfen bin ich sehr Dankbar.
Last edited by OTRSsuperNOOB on 17 Nov 2021, 16:10, edited 4 times in total.
root
Administrator
Posts: 3961
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: No existing template directory found

Post by root »

Hallo,

schau mal in die Tabelle user_preferences ob der Wert in der Spalte preferences_value auftaucht.

- 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 ?
OTRSsuperNOOB
Znuny newbie
Posts: 39
Joined: 05 Feb 2020, 07:49
Znuny Version: 6.2.1
Real Name: Ines M.

Re: No existing template directory found

Post by OTRSsuperNOOB »

Hallo Roy,

ich hab einige ergebnisse erhalten die den Wert haben.

Jetzt via MySQL -> "UPDATE"-Befehl das Bild entfernen?
root
Administrator
Posts: 3961
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: No existing template directory found

Post by root »

Hi,

Du kannst diese Einträge auch gezielt löschen (und nur die). Das solltest Du aber tun wenn niemand angemeldet ist und keine Sessions mehr offen sind. Danach dann den Cache mit bin/otrs.Console.pl Maint::Cache::Delete löschen und fertig.
So etwas ist in der Regel ein Überbleibsel von einem älteren Update.

- 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 ?
OTRSsuperNOOB
Znuny newbie
Posts: 39
Joined: 05 Feb 2020, 07:49
Znuny Version: 6.2.1
Real Name: Ines M.

[LÖSUNG] Re: No existing template directory found

Post by OTRSsuperNOOB »

Danke Roy.

Ich hab meine Schritte noch einmal zusammen gefasst (Dokumentation ist alles :D )

Werte ausfindig machen:

Code: Select all

SELECT 	* 
FROM `otrs`.`user_preferences` 
WHERE `preferences_value` = 'OPR'
; 
Werte löschen:

Code: Select all

UPDATE `otrs`.`user_preferences` 
SET `preferences_value` = null 
WHERE (`preferences_key` = 'UserTheme') 
AND (`preferences_value` = 'OPR')
; 
Da ich mit dem MySQL Workbencher gearbeitet habe, musste ich das sichere Update deaktivierenn:
Workbench Preferences → SQL Editor → Hacken bei „Safe Updates“ entfernen und erneut versuchen.
Bei erfolgreichen löschen den Cache leeren:

Code: Select all

otrs@otrs:/root$ /opt/otrs/bin/otrs.Console.pl Maint::Cache::Delete 
Last edited by OTRSsuperNOOB on 17 Nov 2021, 16:10, edited 1 time in total.
OTRSsuperNOOB
Znuny newbie
Posts: 39
Joined: 05 Feb 2020, 07:49
Znuny Version: 6.2.1
Real Name: Ines M.

Re: No existing template directory found

Post by OTRSsuperNOOB »

Zu früh gefreut :(

Nachdem sich die Benutzer (Admin's & Kunden) angemeldet haben, ist das Systemprotokoll wieder voll mit:
"OTRS-CGI-54 | No existing template directory found ('/opt/otrs/Kernel/Output/HTML/Templates/OPR')!." und
"OTRS-CGI-54 | No existing template directory found ('/opt/otrs/Kernel/Output/JavaScript/Templates/OPR')!.".

Was kann ich nun machen?
root
Administrator
Posts: 3961
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: No existing template directory found

Post by root »

Hi,

waren den noch Sessions aktiv?

- 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 ?
OTRSsuperNOOB
Znuny newbie
Posts: 39
Joined: 05 Feb 2020, 07:49
Znuny Version: 6.2.1
Real Name: Ines M.

Re: No existing template directory found

Post by OTRSsuperNOOB »

Hi,

den Apache2 hatte ich gestoppt und dann die Einträge gelöscht.
root
Administrator
Posts: 3961
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: No existing template directory found

Post by root »

Da haben wir uns wohl falsch verstanden ;-)

Code: Select all

[znuny@assessment ~]$ bin/otrs.Console.pl Search Sessions
Searching for commands similar to 'Sessions'...
Maint
 Maint::Session::DeleteAll                - Delete all sessions.
 Maint::Session::DeleteExpired            - Delete expired sessions.
 Maint::Session::ListAll                  - List all sessions.
 Maint::Session::ListExpired              - List expired sessions.
[otrs@assessment ~]$
Der Apache hat nichts mit den Sessions zu tun

- 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 ?
OTRSsuperNOOB
Znuny newbie
Posts: 39
Joined: 05 Feb 2020, 07:49
Znuny Version: 6.2.1
Real Name: Ines M.

Re: No existing template directory found

Post by OTRSsuperNOOB »

Das heisst ich beende jetzt einfach alle Sessions und das Problem ist behoben?
root
Administrator
Posts: 3961
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: No existing template directory found

Post by root »

Hi,

So mache ich das zumindest immer. Aber wenn es noch sessions gab ist die Chance gross dass wieder etwas in der Datenbank steht, da also auch noch mal schauen.

- 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 ?
OTRSsuperNOOB
Znuny newbie
Posts: 39
Joined: 05 Feb 2020, 07:49
Znuny Version: 6.2.1
Real Name: Ines M.

Re: No existing template directory found

Post by OTRSsuperNOOB »

Hi,

vielen Dank.
Das hat geholfen und wieder was dazu gelernt :)

Die DB habe ich noch einmal kontrolliert und da stand nichts weiter drin.

Also noch einmal Dank.
wurzel
Znuny guru
Posts: 3230
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: [GELÖST] No existing template directory found

Post by wurzel »

Hi,

ich hatte das auch mal und ziehe seitdem die Verzeichnisse (leer) immer mit :lol:
Danke für die SQLs!!

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
root
Administrator
Posts: 3961
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: [GELÖST] No existing template directory found

Post by root »

wurzel wrote: 17 Nov 2021, 16:32 ich hatte das auch mal und ziehe seitdem die Verzeichnisse (leer) immer mit :lol:
Im Ernst? 😱
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 ?
wurzel
Znuny guru
Posts: 3230
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: [GELÖST] No existing template directory found

Post by wurzel »

Hi,
root wrote: 17 Nov 2021, 16:45
wurzel wrote: 17 Nov 2021, 16:32 ich hatte das auch mal und ziehe seitdem die Verzeichnisse (leer) immer mit :lol:
Im Ernst? 😱
Ja! ganz schön peinlich eigentlich :lol:

Flo

aber die Fehlermeldung war dann weg
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply