Can't show item, no access rights for ConfigItem are given!

Hilfe zu OTRS Problemen aller Art
Post Reply
thomas91
Znuny advanced
Posts: 103
Joined: 23 Dec 2010, 23:01
Znuny Version: 6.0.18
Location: Lauda-Königshofen

Can't show item, no access rights for ConfigItem are given!

Post by thomas91 »

Hallo zusammen,

nach dem ich ein Update von Debian auf die Version 9.8 durchgeführt habe kommt leider nach der Anmeldung folgende Fehlermeldung:

Code: Select all

Ein Fehler ist aufgetreten.
Fehlermeldung: Can't show item, no access rights for ConfigItem are given! 
Ich gehe stark davon aus das es ein Probem mit der Berechtigung für Apache ist. Meine Daten leigen wie folgt:

Code: Select all

root@OTRS01:/opt# ls -la
insgesamt 75348
drwxr-xr-x  5 root root         4096 Mai 30  2016 .
drwxr-xr-x 24 root root         4096 Apr 26 08:17 ..
lrwxrwxrwx  1 root root           11 Mai 30  2016 otrs -> otrs-5.0.9/
drwxr-xr-x  9 otrs www-data     4096 Jan 14  2015 otrs-4.0.5
drwxr-xr-x  9 otrs www-data     4096 Mär 30  2016 otrs-5.0.9
drwxrwxrwx  7 root root         4096 Feb 24  2015 otrs-old
-rw-r--r--  1 root root     77050203 Feb 17  2014 otrs.sql
Normal habe ich folgendes ausgeführt:
Bin/otrs.SetPermission.pl –otrs-user=otrs –web-user=www-data –otrs-group=www-data –web-group=www-data /opt/otrs
Bin/otrs.SetPermission.pl –otrs-user=otrs –web-user=www-data –otrs-group=www-data –web-group=www-data /opt/otrs-5.0.9
MfG Thomas

Produktiv:
OTRS: 5.0.9
ITSM: 5.0.?
FAQ: 5.0.?
OS: Debian 9.8 x64
Application: Apache2/MySQL 5.5
VM auf: VMware ESXi 6.5
E-Mails: MS Exchange 2013

-- Achtung, es folgt ein Witz:

Code: Select all

    # dpkg-reconfigure brain
    Paket »brain« ist nicht installiert und es ist keine Info verfügbar.
-- weiter geht's im Thread…[/size]
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Can't show item, no access rights for ConfigItem are given!

Post by wurzel »

Hi,

ich habe vor langer Zeit auf Deb 9.8 aktualisiert und keine Probleme diesbezüglich.

Code: Select all

root@server ~ # cat /etc/debian_version 
9.8

Code: Select all

ls -l
   2691      4 drwxr-xr-x 13 otrs         www-data          4096 Apr 24 19:32 otrs
passt also.

Ein /opt/otrs/bin/otrs.SetPermissions.pl

sollte ohne zusätzliche Parameter alles richtig setzen.
Was sagt ein /opt/otrs/bin/otrs.RebuildConfig.pl ?

Und was, wenn Du das OTRS auf das aktuellste patch level 5.0.34 hebst?
Du hast mit der 5.0.9. 'ne Uralt Version.

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.
thomas91
Znuny advanced
Posts: 103
Joined: 23 Dec 2010, 23:01
Znuny Version: 6.0.18
Location: Lauda-Königshofen

Re: Can't show item, no access rights for ConfigItem are given!

Post by thomas91 »

wurzel wrote: 26 Apr 2019, 16:27

Code: Select all

ls -l
   2691      4 drwxr-xr-x 13 otrs         www-data          4096 Apr 24 19:32 otrs
Sieht bei mir so aus:

Code: Select all

ls -l
insgesamt 75340
lrwxrwxrwx 1 root root           11 Mai 30  2016 otrs -> otrs-5.0.9/
drwxr-xr-x 9 otrs www-data     4096 Jan 14  2015 otrs-4.0.5
drwxr-xr-x 9 otrs www-data     4096 Mär 30  2016 otrs-5.0.9
wurzel wrote: 26 Apr 2019, 16:27 Ein /opt/otrs/bin/otrs.SetPermissions.pl


sollte ohne zusätzliche Parameter alles richtig setzen.

Code: Select all

 /opt/otrs/bin/otrs.SetPermissions.pl
bin/otrs.SetPermissions.pl - set OTRS file permissions
Copyright (C) 2001-2014 xxx, http://otrs.com

Usage: otrs.SetPermissions.pl
    --web-group=<WEB_GROUP>         # web server group ('www', 'www-data' or similar)
    [--otrs-user=<OTRS_USER>]       # OTRS user, defaults to 'otrs'
    [--admin-group=<ADMIN_GROUP>]   # admin group, defaults to 'root'
    [--skip-article-dir]            # Skip var/article as it might take too long on some systems.
    [--skip-regex="..."]            # Add another skip regex like "^/var/my/directory".
                                    # Paths start with / but are relative to the OTRS directory.
                                    # --skip-regex can be specified multiple times.
    [--dry-run]                     # only report, don't change
    [--help]

Example: otrs.setPermissions.pl --web-group=www-data
root@OTRS01:/opt# /opt/otrs/bin/otrs.SetPermissions.pl --web-group=www-data
Setting permissions on /opt/otrs-5.0.9
wurzel wrote: 26 Apr 2019, 16:27 Was sagt ein /opt/otrs/bin/otrs.RebuildConfig.pl ?
Die Datei gibt es im Pfad nicht

Code: Select all

root@OTRS01:/opt# /opt/otrs/bin/otrs.RebuildConfig.pl
-bash: /opt/otrs/bin/otrs.RebuildConfig.pl: Datei oder Verzeichnis nicht gefunden
wurzel wrote: 26 Apr 2019, 16:27 Und was, wenn Du das OTRS auf das aktuellste patch level 5.0.34 hebst?
Du hast mit der 5.0.9. 'ne Uralt Version.
Ich hätte gerne das es wieder läuft und würde dannn ein Upgrade auf die neuste Community Version machen :(

Edit: Nachdem ich

Code: Select all

/opt/otrs/bin/otrs.SetPermissions.pl --web-group=www-data
ausgeführt habe bekomme ich folgende Meldung im Browser:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
MfG Thomas

Produktiv:
OTRS: 5.0.9
ITSM: 5.0.?
FAQ: 5.0.?
OS: Debian 9.8 x64
Application: Apache2/MySQL 5.5
VM auf: VMware ESXi 6.5
E-Mails: MS Exchange 2013

-- Achtung, es folgt ein Witz:

Code: Select all

    # dpkg-reconfigure brain
    Paket »brain« ist nicht installiert und es ist keine Info verfügbar.
-- weiter geht's im Thread…[/size]
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Can't show item, no access rights for ConfigItem are given!

Post by wurzel »

Hi,


das schaut gut aus.

Code: Select all

ls -l
insgesamt 75340
lrwxrwxrwx 1 root root           11 Mai 30  2016 otrs -> otrs-5.0.9/
drwxr-xr-x 9 otrs www-data     4096 Jan 14  2015 otrs-4.0.5
drwxr-xr-x 9 otrs www-data     4096 Mär 30  2016 otrs-5.0.9

Code: Select all

 /opt/otrs/bin/otrs.SetPermissions.pl
bin/otrs.SetPermissions.pl - set OTRS file permissions
Copyright (C) 2001-2014 xxx, http://otrs.com

Usage: otrs.SetPermissions.pl
    --web-group=<WEB_GROUP>         # web server group ('www', 'www-data' or similar)
    [--otrs-user=<OTRS_USER>]       # OTRS user, defaults to 'otrs'
    [--admin-group=<ADMIN_GROUP>]   # admin group, defaults to 'root'
    [--skip-article-dir]            # Skip var/article as it might take too long on some systems.
    [--skip-regex="..."]            # Add another skip regex like "^/var/my/directory".
                                    # Paths start with / but are relative to the OTRS directory.
                                    # --skip-regex can be specified multiple times.
    [--dry-run]                     # only report, don't change
    [--help]

Example: otrs.setPermissions.pl --web-group=www-data
root@OTRS01:/opt# /opt/otrs/bin/otrs.SetPermissions.pl --web-group=www-data
Setting permissions on /opt/otrs-5.0.9
OK, dann ist das in der alten Version mit dem --web-group=www-data noch nötig. In neueren nicht mehr.
wurzel wrote: 26 Apr 2019, 16:27 Was sagt ein /opt/otrs/bin/otrs.RebuildConfig.pl ?
Die Datei gibt es im Pfad nicht

Code: Select all

root@OTRS01:/opt# /opt/otrs/bin/otrs.RebuildConfig.pl
-bash: /opt/otrs/bin/otrs.RebuildConfig.pl: Datei oder Verzeichnis nicht gefunden

ich meinte auch ein otrs.Console.pl Maint::Config::Rebuild
;-)


Edit: Nachdem ich

Code: Select all

/opt/otrs/bin/otrs.SetPermissions.pl --web-group=www-data
ausgeführt habe bekomme ich folgende Meldung im Browser:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Dann musst mal schauen, in welcher Gruppe Dein otrs user drin ist, mit welcher user/Gruppe Dein apache läuft und was Deine Logfiles sagen.


Mir scheint, als hättest Du da irgendwie bei den Berechtigungen 'n Wurm drin.
Das Logfile sagt Dir am Besten wo's hängt.

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.
Post Reply