Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppArmor Errors #22

Open
aLTeReGo-SWI opened this issue Sep 23, 2022 · 0 comments
Open

AppArmor Errors #22

aLTeReGo-SWI opened this issue Sep 23, 2022 · 0 comments

Comments

@aLTeReGo-SWI
Copy link

aLTeReGo-SWI commented Sep 23, 2022

Issues running this under Debian. I'm receiving the following AppArmor errors. Please tweak your AppArmor settings for this container.

image

raise e
  File "/opt/custom_broker/mdns_register.py", line 50, in register_service
    return _register_service(service_name=service_name, service_name_template=service_name_template, service_type=service_type, service_port=service_port, service_priority=service_priority, service_weight=service_weight, data=data)
  File "/opt/custom_broker/mdns_register.py", line 32, in _register_service
    bus = SystemBus()
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 196, in __new__
    private=private)
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 102, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/local/lib/python3.7/dist-packages/dbus/bus.py", line 124, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender="(null)" (inactive) interface="org.freedesktop.DBus" member="Hello" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
usage: mdns_register.py [-h] {register,unregister} ...
mdns_register.py: error: unrecognized arguments: /run/s6/basedir/bin/halt
usage: mdns_register.py [-h] {register,unregister} ...
mdns_register.py: error: unrecognized arguments: /run/s6/basedir/bin/halt
[06:01:52] INFO: Advertising the Mosquitto daemon
[06:01:52] INFO: Advertising the Meross API service
Traceback (most recent call last):
  File "/opt/custom_broker/mdns_register.py", line 94, in <module>
    exit(main())
  File "/opt/custom_broker/mdns_register.py", line 82, in main
    path = register_service(service_name=args.service_name, service_name_template=args.service_name_template, service_type=args.service_type, service_port=args.service_port, service_priority=args.priority, service_weight=args.weight, data=args.set, update_if_present=args.update_if_present)
  File "/opt/custom_broker/mdns_register.py", line 55, in register_service
    raise e
  File "/opt/custom_broker/mdns_register.py", line 50, in register_service
    return _register_service(service_name=service_name, service_name_template=service_name_template, service_type=service_type, service_port=service_port, service_priority=service_priority, service_weight=service_weight, data=data)
  File "/opt/custom_broker/mdns_register.py", line 32, in _register_service
    bus = SystemBus()
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 196, in __new__
    private=private)
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 102, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/local/lib/python3.7/dist-packages/dbus/bus.py", line 124, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender="(null)" (inactive) interface="org.freedesktop.DBus" member="Hello" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
Traceback (most recent call last):
  File "/opt/custom_broker/mdns_register.py", line 94, in <module>
    exit(main())
  File "/opt/custom_broker/mdns_register.py", line 82, in main
    path = register_service(service_name=args.service_name, service_name_template=args.service_name_template, service_type=args.service_type, service_port=args.service_port, service_priority=args.priority, service_weight=args.weight, data=args.set, update_if_present=args.update_if_present)
  File "/opt/custom_broker/mdns_register.py", line 55, in register_service
    raise e
  File "/opt/custom_broker/mdns_register.py", line 50, in register_service
    return _register_service(service_name=service_name, service_name_template=service_name_template, service_type=service_type, service_port=service_port, service_priority=service_priority, service_weight=service_weight, data=data)
  File "/opt/custom_broker/mdns_register.py", line 32, in _register_service
    bus = SystemBus()
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 196, in __new__
    private=private)
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 102, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/local/lib/python3.7/dist-packages/dbus/bus.py", line 124, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender="(null)" (inactive) interface="org.freedesktop.DBus" member="Hello" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
usage: mdns_register.py [-h] {register,unregister} ...
mdns_register.py: error: unrecognized arguments: /run/s6/basedir/bin/halt
usage: mdns_register.py [-h] {register,unregister} ...
mdns_register.py: error: unrecognized arguments: /run/s6/basedir/bin/halt
[06:01:53] INFO: Advertising the Mosquitto daemon
[06:01:53] INFO: Advertising the Meross API service
Traceback (most recent call last):
  File "/opt/custom_broker/mdns_register.py", line 94, in <module>
    exit(main())
  File "/opt/custom_broker/mdns_register.py", line 82, in main
    path = register_service(service_name=args.service_name, service_name_template=args.service_name_template, service_type=args.service_type, service_port=args.service_port, service_priority=args.priority, service_weight=args.weight, data=args.set, update_if_present=args.update_if_present)
  File "/opt/custom_broker/mdns_register.py", line 55, in register_service
    raise e
  File "/opt/custom_broker/mdns_register.py", line 50, in register_service
    return _register_service(service_name=service_name, service_name_template=service_name_template, service_type=service_type, service_port=service_port, service_priority=service_priority, service_weight=service_weight, data=data)
  File "/opt/custom_broker/mdns_register.py", line 32, in _register_service
    bus = SystemBus()
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 196, in __new__
    private=private)
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 102, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/local/lib/python3.7/dist-packages/dbus/bus.py", line 124, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender="(null)" (inactive) interface="org.freedesktop.DBus" member="Hello" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
Traceback (most recent call last):
  File "/opt/custom_broker/mdns_register.py", line 94, in <module>
    exit(main())
  File "/opt/custom_broker/mdns_register.py", line 82, in main
    path = register_service(service_name=args.service_name, service_name_template=args.service_name_template, service_type=args.service_type, service_port=args.service_port, service_priority=args.priority, service_weight=args.weight, data=args.set, update_if_present=args.update_if_present)
  File "/opt/custom_broker/mdns_register.py", line 55, in register_service
    raise e
  File "/opt/custom_broker/mdns_register.py", line 50, in register_service
    return _register_service(service_name=service_name, service_name_template=service_name_template, service_type=service_type, service_port=service_port, service_priority=service_priority, service_weight=service_weight, data=data)
  File "/opt/custom_broker/mdns_register.py", line 32, in _register_service
    bus = SystemBus()
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 196, in __new__
    private=private)
  File "/usr/local/lib/python3.7/dist-packages/dbus/_dbus.py", line 102, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/local/lib/python3.7/dist-packages/dbus/bus.py", line 124, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender="(null)" (inactive) interface="org.freedesktop.DBus" member="Hello" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
usage: mdns_register.py [-h] {register,unregister} ...
mdns_register.py: error: unrecognized arguments: /run/s6/basedir/bin/halt
usage: mdns_register.py [-h] {register,unregister} ...
mdns_register.py: error: unrecognized arguments: /run/s6/basedir/bin/halt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant