Probleme nach Update auf 4.3 "permission error log_write"

Antworten
Freeway92
Beiträge: 9
Registriert: 11 Jul 2019, 10:23

Probleme nach Update auf 4.3 "permission error log_write"

Beitrag von Freeway92 »

Hallo zusammen,

ich habe unseren OPSI von 4.2 auf 4.3 gebracht. Nun erhalte ich aber leider beim installieren des neuen OPSI Agents auf einem frische Client folgende Meldung die die Installation verhindert.

Code: Alles auswählen

[3] [2023-12-04 15:54:19.425] [10.62.84.180   ] Opsi service permission error: No permission for method 'log_write'   (jsonrpc.py:441)
Traceback (most recent call last):
  File "opsiconfd/application/jsonrpc.py", line 439, in process_rpcs
  File "opsiconfd/application/jsonrpc.py", line 410, in process_rpc
  File "opsiconfd/application/jsonrpc.py", line 347, in execute_rpc
  File "starlette/concurrency.py", line 41, in run_in_threadpool
  File "anyio/to_thread.py", line 33, in run_sync
  File "anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
  File "anyio/_backends/_asyncio.py", line 807, in run
  File "opsiconfd/backend/rpc/__init__.py", line 172, in wrapper
  File "opsiconfd/backend/rpc/main.py", line 425, in _get_ace
opsicommon.exceptions.OpsiServicePermissionError: Opsi service permission error: No permission for method 'log_write'

Installierte OPSI Pakete auf dem Server

Code: Alles auswählen

ii  opsi-linux-bootimage           20231116-1                     all          opsi bootimage for netboot tasks.
rc  opsi-server                    4.2.0.72-1                     all          opsi server
ii  opsi-server-full               4.3.1.1-1                      all          opsi server
ii  opsi-tftpd-hpa                 5.2.8-78                       amd64        HPA's tftp server
ii  opsi-utils                     4.3.1.0-1                      amd64        Utilities for working with opsi
ii  opsi-windows-support           4.2.0.3-1                      all          Install utilities useful for deploying Windows with opsi.
ii  opsiconfd                      4.3.1.9-1                      amd64        opsi configuration service
ii  opsipxeconfd                   4.3.1.2-1                      amd64        opsi pxe configuration service
rc  python-opsi                    4.1.1.101-1                    all          opsi python library
würde mich über Lösungsvorschläge freuen :)
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1819
Registriert: 29 Mai 2008, 15:14

Re: Probleme nach Update auf 4.3 "permission error log_write"

Beitrag von j.schneider »

Hallo!

Das ist wahrscheinlich eine veraltete /etc/opsi/backendManager/acl.conf
Bitte die Datei durch das Original aus dem opsiconfd 4.3 Paket ersetzen.
Das Original liegt wahrscheinlich im gleichen Verzeichnis als acl.conf.dpkg-dist

Grüße
Jan Schneider
Freeway92
Beiträge: 9
Registriert: 11 Jul 2019, 10:23

Re: Probleme nach Update auf 4.3 "permission error log_write"

Beitrag von Freeway92 »

Guten Morgen,

vielen Dank für die Info das hat das Problem direkt behoben :)
a.albang
Beiträge: 10
Registriert: 09 Feb 2022, 08:44

Re: Probleme nach Update auf 4.3 "permission error log_write"

Beitrag von a.albang »

Unter Almalinux 8 lag die "acl.conf" leider nicht zusätzlich als "acl.conf.dpkg-dist" bzw. als "acl.conf.rpmnew" vor.
Ich habe die acl.conf mal hier als Anhang angehängt falls sie noch jemand benötigt und nicht extra das File aus dem .rpm extrahieren will.
Dateianhänge
acl.conf.txt
(3.42 KiB) 107-mal heruntergeladen
Antworten