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

permission denied error when deleting a WiFi network #183

Open
mehrdadfeller opened this issue Oct 12, 2024 · 1 comment
Open

permission denied error when deleting a WiFi network #183

mehrdadfeller opened this issue Oct 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mehrdadfeller
Copy link
Collaborator

I cannot delete a WiFi network on software v1.0. I see the following errors in the logs.

I got this also on sentry.

1728702093.742532 [ERROR] Event loop exception
Traceback (most recent call last):
  File "/opt/ubo/env/lib/python3.11/site-packages/ubo_app/services/030-wifi/wifi_manager.py", line 379, in forget_wireless_connection
    await wait_for(network_connection_settings.delete())
  File "/usr/lib/python3.11/asyncio/tasks.py", line 479, in wait_for
    return fut.result()
           ^^^^^^^^^^^^
  File "/opt/ubo/env/lib/python3.11/site-packages/sdbus/dbus_proxy_async_method.py", line 107, in _dbus_async_call
    reply_message = await bus.call_async(call_message)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sdbus_async.networkmanager.exceptions.NmSettingsPermissionDeniedError: Insufficient privileges - extra: {
  "error_message": "Task exception was never retrieved",
  "future": "<Task finished name='Task-17565' coro=<forget_wireless_connection() done, defined at /opt/ubo/env/lib/python3.11/site-packages/ubo_app/services/030-wifi/wifi_manager.py:362> exception=NmSettingsPermissionDeniedError('Insufficient privileges')>",
  "loop": "<_UnixSelectorEventLoop running=True closed=False debug=False>",
  "parent_stack": "None"
}
@mehrdadfeller mehrdadfeller added the bug Something isn't working label Oct 12, 2024
@mehrdadfeller mehrdadfeller moved this to Todo in Ubo App Oct 12, 2024
@zytegalaxy
Copy link
Collaborator

@sassanh I suggest we try to find a temporary solution that allows us to keep ubo as sudoer and address permission issue with polkit settings; later we should separate login and deskop users and let the pod owner give a user sudo access via GUI as discussed: https://github.com/orgs/ubopod/projects/1/views/1?pane=issue&itemId=83704218&issue=ubopod%7Cubo_app%7C184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants